About this calculator
Enter a, b and c of ax² + bx + c = 0.
How to use it
- Enter a, b and c.
- Read the discriminant and nature of roots.
The formula
- D > 0
- two distinct real roots
- D = 0
- two equal real roots
- D < 0
- no real roots
Worked example
2x² + 4x + 5 = 0
- D = 16 − 40 = −24.
- D is negative, so there are no real roots.
What the result means
If D is a perfect square and a, b, c are whole numbers, the roots are rational.
Examples of D and the nature of roots
| Equation | D | Nature of roots | Roots |
|---|---|---|---|
| x² − 5x + 6 = 0 | 1 | Distinct, real, rational | 2 and 3 |
| 2x² − 7x + 3 = 0 | 25 | Distinct, real, rational | 3 and 1/2 |
| x² − 2x − 1 = 0 | 8 | Distinct, real, irrational | 1 ± √2 |
| x² + 6x + 4 = 0 | 20 | Distinct, real, irrational | −3 ± √5 |
| x² − 4x + 4 = 0 | 0 | Equal, real | 2 (repeated) |
| x² + x + 1 = 0 | −3 | No real roots | complex |
| 3x² + 2x + 5 = 0 | −56 | No real roots | complex |
Finding k for equal or real roots
Questions often include an unknown k. For equal roots set D = 0; for real roots (equal or distinct) solve D ≥ 0.
- kx² − 6x + 1 = 0: D = 36 − 4k = 0, so k = 9.
- Check: 9x² − 6x + 1 = (3x − 1)², with the repeated root x = 1/3.
- For real roots of kx² − 6x + 1 = 0, 36 − 4k ≥ 0 gives k ≤ 9, with k ≠ 0 so it stays a quadratic.
What D tells you about the graph
The graph of y = ax² + bx + c is a parabola. When D > 0 it crosses the x-axis twice, when D = 0 it touches the axis at its vertex, and when D < 0 it never meets the axis.
Assumptions
- Real coefficients a, b and c, with a not equal to 0.
Limitations
- Results are rounded to 10 significant figures.
Frequently asked questions
What does a negative discriminant mean?
The roots are complex, not real.
When are roots equal?
When D = 0.
How do I find k for equal roots?
Set b² − 4ac = 0 and solve for k.
What is the discriminant of x² + x + 1?
−3, since 1² − 4 × 1 × 1 = −3. The equation has no real roots.
What is the discriminant of x² − 5x + 6?
1. It is a perfect square, so the roots are rational: 2 and 3.
Last reviewed on 12 October 2026. How we calculate and check. Found a mistake? Tell us.

