← All tools/Calculators/Math/Quadratic Equation Solver

Quadratic Equation Solver

Roots of ax² + bx + c = 0, with the discriminant — real roots, repeated roots and complex roots explained.

Roots

—

Root 1Root 2

How it works

Discriminant = b² − 4ac
x = (−b ± √(b² − 4ac)) ÷ 2a
Positive discriminant: two real roots. Zero: one repeated root. Negative: no real roots.

Worked example: for x² − 5x + 6 = 0, the discriminant is 25 − 24 = 1, so the roots are (5 ± 1) ÷ 2, which are x = 3 and x = 2.

Frequently asked questions

What if a is zero?

Then it is not quadratic at all — it is a linear equation bx + c = 0, with the single root x = −c ÷ b, and this page says so.

What does a negative discriminant mean?

There are no real roots: the curve never crosses the x-axis. The roots are a complex pair, which this page also shows.

How do I check a root?

Put it back into ax² + bx + c. For x = 3 in x² − 5x + 6: 9 − 15 + 6 = 0, so 3 is a root.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.