Discriminant Calculator

The discriminant tells you what kind of roots a quadratic has without solving it, a common exam question.

Results update as you type.

Discriminant

−24

no real roots (two complex roots)

About this calculator

Enter a, b and c of ax² + bx + c = 0.

How to use it

  1. Enter a, b and c.
  2. Read the discriminant and nature of roots.

The formula

D = b² − 4ac
D > 0
two distinct real roots
D = 0
two equal real roots
D < 0
no real roots

Worked example

2x² + 4x + 5 = 0

  1. D = 16 − 40 = −24.
  2. 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

Discriminant and roots of common quadratics
EquationDNature of rootsRoots
x² − 5x + 6 = 01Distinct, real, rational2 and 3
2x² − 7x + 3 = 025Distinct, real, rational3 and 1/2
x² − 2x − 1 = 08Distinct, real, irrational1 ± √2
x² + 6x + 4 = 020Distinct, real, irrational−3 ± √5
x² − 4x + 4 = 00Equal, real2 (repeated)
x² + x + 1 = 0−3No real rootscomplex
3x² + 2x + 5 = 0−56No real rootscomplex

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.