Algebra / FREE CALCULATOR

Quadratic equation

Solve ax² + bx + c = 0 with real coefficients. Find two real roots, a repeated root, or a pair of complex roots.

Start with your numbers

Enable JavaScript to calculate. The formula and example below remain available.

The formula

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

A worked example

For x² − 5x + 6 = 0, the discriminant is 25 − 24 = 1, so the roots are 2 and 3.

A useful thing to know

What does a negative discriminant mean? There are no real roots, but there are two complex conjugate roots. A quadratic must have a nonzero coefficient of x².

Using your answer

Write down the inputs and the method as well as the final answer. If a result looks surprising, check signs, units and weights first. This tool uses your numbers exactly as entered and cannot know your teacher’s marking scheme. Decimal results are rounded to a maximum of six decimal places.

Found an issue? Send a correction with the calculator name and an example.