Quadratic Formula Calculator
Enter a, b and c to solve any quadratic equation. You get the discriminant, both roots (exact and as decimals, complex when needed), the vertex, a check and the graph of the parabola.
x² − 5x + 6 = 0 is true at x = 2 and x = 3.
The working
4 stepsRead off a, b and c
The equation is x² − 5x + 6 = 0, in the standard form ax² + bx + c = 0.
- a (x² coefficient)
- 1
- b (x coefficient)
- -5
- c (constant)
- 6
Work out the discriminant
The discriminant is positive, so there are two different real roots.
D = b² − 4ac = (-5)² − 4 × 1 × 6 = 1Put the numbers into the quadratic formula
x = (−b ± √D) ÷ 2a. Taking the minus sign and then the plus sign gives the two roots.
x = (5 ± √1) ÷ 2- x₁
- 2
- x₂
- 3
Find the vertex and check
The parabola crosses the x-axis at both roots and turns at x = 2.5, halfway between them. Factored form: (x − 2)(x − 3).
vertex = (−b ÷ 2a, c − b² ÷ 4a) = (2.5, -0.25)- x₁ + x₂ (should equal −b/a)
- 5 = 5
- x₁ × x₂ (should equal c/a)
- 6 = 6
Use Left and Right Arrow, Home, or End to inspect data points.
Works instantly in your browser — nothing is uploaded, and the URL keeps your numbers so you can share the exact worked example.
Quadratic equations, solved
Common textbook equations, each solved by the calculator above.
| Equation | Discriminant | Exact roots | Decimal roots |
|---|---|---|---|
| x² − 5x + 6 = 0 | 1 | x = 2, 3 | 2, 3 |
| x² + 2x − 8 = 0 | 36 | x = -4, 2 | -4, 2 |
| 2x² − 7x + 3 = 0 | 25 | x = 1/2, 3 | 0.5, 3 |
| x² − 6x + 9 = 0 | 0 | x = 3 | 3 |
| x² + 4x + 1 = 0 | 12 | x = -2 ± √3 | -3.732051, -0.267949 |
| x² + 2x + 5 = 0 | -16 | x = -1 ± 2i | -1 ± 2i |
| 3x² + 5x − 2 = 0 | 49 | x = -2, 1/3 | -2, 0.333333 |
| −x² + 4x + 5 = 0 | 36 | x = -1, 5 | -1, 5 |
Decimals are rounded to six places. The roots of x² + 2x + 5 = 0 are complex.
Formula, factoring or completing the square?
All three give the same roots. Factoring is fastest when the roots are whole numbers or simple fractions, which happens exactly when the discriminant is a perfect square. Completing the square is how the formula is derived and is the method behind the vertex form a(x − h)² + k. The quadratic formula always works, which is why it is the safe choice when an equation does not factor at a glance.
Checking your roots
Two quick checks need no substitution. The two roots add up to −b/a and multiply to c/a. For x² − 5x + 6 = 0 the roots 2 and 3 add to 5 and multiply to 6. The calculator prints both checks under every answer with two real roots.
Compared with other solvers
General algebra apps such as Symbolab, Mathway and Wolfram Alpha solve quadratics too, but often put the full steps behind a subscription. Calculator Soup and Calculator.net show the result with a short method. This page writes out the discriminant, the substituted formula, exact and decimal roots, the vertex and the sum and product check for free, and the link keeps your numbers so you can share the worked answer.