Stats & Algebra
Exact roots

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.

Your numbers
On the number plane

Use Left and Right Arrow, Home, or End to inspect data points.

940-0.52.55.5

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.

Quadratic equations, solved
EquationDiscriminantExact rootsDecimal roots
x² − 5x + 6 = 01x = 2, 32, 3
x² + 2x − 8 = 036x = -4, 2-4, 2
2x² − 7x + 3 = 025x = 1/2, 30.5, 3
x² − 6x + 9 = 00x = 33
x² + 4x + 1 = 012x = -2 ± √3-3.732051, -0.267949
x² + 2x + 5 = 0-16x = -1 ± 2i-1 ± 2i
3x² + 5x − 2 = 049x = -2, 1/3-2, 0.333333
−x² + 4x + 5 = 036x = -1, 5-1, 5

Decimals are rounded to six places. The roots of x² + 2x + 5 = 0 are complex.

Studying statistics or linear algebra? See every tool in the Stats & Algebra hub — variance, interpolation, RREF and eigenvectors, cross-linked.

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.

Frequently asked questions