Math · 64 calculators
Quadratic Equation Calculator
Every quadratic equation has a closed-form solution. The discriminant tells you what kind of answer to expect before you compute anything, which is the part people skip.
Last updated
Root using + sqrt(D)
3
- Root using - sqrt(D)
- 2
- Discriminant (b² - 4ac)
- 1
- Vertex — x coordinate
- 2.5
- Vertex — y coordinate
- -0.25
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
x = (-b +/- sqrt(b^2 - 4ac)) / (2a)
- a
- Coefficient of x^2 — must not be zero
- b
- Coefficient of x
- c
- Constant term
- D = b^2 - 4ac
- Discriminant — decides how many real roots exist
How to check the result by hand
- 1
Put the equation in standard form
Move every term to one side so the other is zero, then collect like powers. Coefficients identified from an uncollected expression are wrong far more often than the arithmetic that follows.
- 2
Identify a, b and c with their signs
For x^2 - 5x + 6 = 0 those are 1, -5 and 6. Writing b as 5 instead of -5 flips every answer, and nothing later reveals it.
- 3
Compute the discriminant first
D = (-5)^2 - 4 x 1 x 6 = 25 - 24 = 1. Squaring a negative b always gives a positive contribution, which is a common source of sign surprise.
- 4
Take the square root and apply both signs
sqrt(1) = 1, so the roots are (5 + 1)/2 = 3 and (5 - 1)/2 = 2. Note that -b is +5 here, not -5.
- 5
Verify with Vieta and with substitution
The roots sum to 5 and multiply to 6, matching -b/a and c/a. Substituting x = 3 gives 9 - 15 + 6 = 0, confirming the answer directly.
Common Questions
How does the Quadratic Equation Calculator work?
Compute the discriminant b^2 - 4ac first. For x^2 - 5x + 6 = 0 it is 25 - 24 = 1, and because it is positive there are two real roots: x = (5 + 1)/2 = 3 and x = (5 - 1)/2 = 2. A discriminant of exactly zero means one repeated root, and a negative one means no real roots at all — the parabola never touches the axis, and going further requires complex numbers.
What do I need to enter in the Quadratic Equation Calculator?
It takes 3 inputs: Coefficient a (x²), Coefficient b (x), Constant c. Fields that expect a unit say so next to the label.
Where does Root using + sqrt(D) come from?
It comes from x = (-b +/- sqrt(b^2 - 4ac)) / (2a) — derived by completing the square. The plus gives one root, the minus the other; their midpoint is always the vertex.
What is the most common mistake with the Quadratic Equation Calculator?
Dropping the sign of b. For x^2 - 5x + 6 = 0 the coefficient b is -5, not 5. Getting this wrong changes both roots, and every later step remains internally consistent, so nothing flags it.
For worked examples, common mistakes and the limits of this formula, read the full How To Solve A Quadratic Equation page.
