Quadratic Formula Calculator

Home › Math Calculators › Quadratic Formula Calculator

Solve ax² + bx + c = 0 and see the roots, including complex roots.

How the calculation works

The discriminant (b² − 4ac) tells you the type of roots: positive gives two real roots, zero gives one repeated root, and negative gives two complex roots.

Formula used

x = (−b ± √(b² − 4ac)) ÷ (2a)

Example

For x² − 5x + 6 = 0 (a = 1, b = −5, c = 6) the discriminant is 1 and the roots are 3 and 2.

About quadratic equations

The quadratic formula

For an equation ax squared plus bx plus c equals zero, the solutions are x equals minus b plus or minus the square root of b squared minus 4ac, all divided by 2a.

The discriminant

The part under the square root, b squared minus 4ac, tells you what kind of roots you get. If it is positive there are two real roots, if zero there is one repeated root and if negative the roots are complex.

Reading the graph

The graph is a parabola. Real roots are where it crosses the horizontal axis, and the vertex is its highest or lowest point. If a is positive the parabola opens up, and if negative it opens down.

Uses

Quadratics describe projectile motion, areas, profit curves and many physics and engineering problems.

Frequently asked questions

Why can’t a be zero?

If a is zero the equation is linear, not quadratic.

What are complex roots?

Roots that include the imaginary unit i, shown when the discriminant is negative.

Results are estimates for general information only and are not professional financial, medical or legal advice.

All Calculators

Every calculator on the site, in 16 categories.