In short

The discriminant of a quadratic equation ax^2 + bx + c = 0 is the number D = b^2 - 4ac. Its sign alone decides the nature of the roots: D > 0 means two distinct real roots, D = 0 means one repeated real root, and D < 0 means two complex conjugate roots with no real solutions. Geometrically, D tells you whether the parabola cuts, touches, or misses the horizontal axis.

Solve x^2 - 6x + 9 = 0 and you get one root, x = 3. Solve x^2 - 6x + 8 = 0 and you get two, x = 2 and x = 4. Solve x^2 - 6x + 10 = 0 and you get none (at least, none that are real). Three equations that look almost identical -- the only thing that changed is the constant term -- yet they behave in completely different ways.

There is a single number hidden inside every quadratic that predicts which of these three worlds you will land in, before you solve. It is called the discriminant, and it is the expression under the square root in the quadratic formula: D = b^2 - 4ac. Compute it first, and you already know the shape of the answer.

Why the discriminant controls everything

Look at the formula again: x = \dfrac{-b \pm \sqrt{D}}{2a}. The square root \sqrt{D} is the fork in the road.

Three cases, three different worlds — and a single number decides which one you are in. That is why computing D first, before doing anything else, is standard practice. It tells you the shape of the answer before you reach it.

The three cases, geometrically

The equation ax^2 + bx + c = 0 asks: where does the parabola y = ax^2 + bx + c cross the x-axis? The discriminant answers this geometrically.

Three parabolas illustrating the three cases of the discriminantThree upward-opening parabolas side by side. The left one crosses the horizontal axis at two distinct points, labelled D greater than 0. The middle one touches the axis at exactly one point at its vertex, labelled D equals 0. The right one sits entirely above the axis without touching it, labelled D less than 0. r₁ r₂ D > 0 two distinct real roots r (repeated) D = 0 one repeated root D < 0 no real roots
The three cases controlled by the discriminant. Left: the parabola cuts through the axis at two points — two distinct real roots. Centre: the parabola just grazes the axis at its vertex — one repeated root. Right: the parabola floats above the axis, never touching it — no real roots (the roots are complex).

The vertex of the parabola y = ax^2 + bx + c sits at x = -b/(2a), and its y-coordinate is

y_{\text{vertex}} = c - \frac{b^2}{4a} = -\frac{b^2 - 4ac}{4a} = -\frac{D}{4a}

When a > 0 (parabola opens upward), the vertex is the lowest point. The parabola crosses the axis only if that lowest point is at or below y = 0 — which happens exactly when -D/(4a) \leq 0, i.e., D \geq 0. When a < 0 (parabola opens downward), the vertex is the highest point, and the same logic works in reverse. Either way, D decides whether the parabola reaches the axis.

The deeper point: the discriminant is not just a formula trick. It is measuring the vertical gap between the vertex of the parabola and the x-axis. That gap is |D|/(4|a|). When the gap is zero, the vertex sits right on the axis and you get a repeated root. When the gap is positive (vertex on the correct side), the parabola crosses the axis at two points. When the gap goes the wrong way, the parabola misses the axis entirely.

The formal definition

Discriminant of a quadratic

For a quadratic equation ax^2 + bx + c = 0 with a \neq 0, the discriminant is

D = b^2 - 4ac

The nature of the roots depends on D:

Value of D Nature of roots Geometrical meaning
D > 0 Two distinct real roots Parabola cuts the axis at two points
D = 0 One repeated (equal) real root Parabola touches the axis at the vertex
D < 0 Two complex conjugate roots Parabola does not meet the axis

Additionally, when D > 0 and D is a perfect square (with a, b, c rational), the roots are rational. When D > 0 but not a perfect square, the roots are irrational.

The rational-versus-irrational distinction is worth knowing for competitive exams. If a, b, c are integers and D = 49, the roots are rational (since \sqrt{49} = 7). If D = 48, the roots involve \sqrt{48} = 4\sqrt{3}, which is irrational. The formula x = (-b \pm \sqrt{D})/(2a) makes this visible: rational roots require \sqrt{D} to be rational, which means D must be a perfect square.

A closer look at each case

Case 1: D > 0 — two distinct real roots

Take x^2 - 7x + 10 = 0. Here a = 1, b = -7, c = 10.

D = (-7)^2 - 4(1)(10) = 49 - 40 = 9

Since D = 9 > 0, there are two distinct real roots. And since 9 = 3^2 is a perfect square, the roots are rational:

x = \frac{7 \pm 3}{2} \implies x = 5 \text{ or } x = 2

The distance between the roots is \sqrt{D}/|a| = 3/1 = 3 — and indeed, 5 - 2 = 3. The discriminant literally encodes the gap between the two roots.

Case 2: D = 0 — one repeated root

Take x^2 - 6x + 9 = 0. Here a = 1, b = -6, c = 9.

D = (-6)^2 - 4(1)(9) = 36 - 36 = 0

The formula gives x = 6/2 = 3. Both roots are 3. You can see this directly by factoring: x^2 - 6x + 9 = (x - 3)^2, which is zero only when x = 3.

Geometrically, the parabola y = (x - 3)^2 has its vertex at (3, 0) — sitting exactly on the x-axis.

Parabola y equals x minus 3 squared touching the x-axis at x equals 3An upward-opening parabola whose vertex sits exactly on the horizontal axis at x equals 3. The parabola touches the axis at this single point and rises on both sides. A label marks the repeated root at x equals 3. x y 1 2 3 4 repeated root: x = 3
The parabola $y = (x - 3)^2$ barely touches the $x$-axis at its vertex. This is what $D = 0$ looks like — the parabola arrives at the axis, kisses it at a single point, and turns back. Algebraically, both roots have collapsed into one.

Case 3: D < 0 — complex roots

Take x^2 + 2x + 5 = 0. Here a = 1, b = 2, c = 5.

D = 4 - 20 = -16

Negative discriminant. The formula gives

x = \frac{-2 \pm \sqrt{-16}}{2} = \frac{-2 \pm 4i}{2} = -1 \pm 2i

The two roots are -1 + 2i and -1 - 2i — a complex conjugate pair. They share the same real part (-1) and have opposite imaginary parts (\pm 2). No real number satisfies the equation.

Parabola y equals x squared plus 2x plus 5 floating above the x-axisAn upward-opening parabola whose lowest point is at negative 1 comma 4, well above the horizontal axis. The parabola never touches the axis, illustrating that the discriminant is negative and the roots are complex. x y −1 1 4 8 vertex (−1, 4) gap = 4 = |D|/(4a)
The parabola $y = x^2 + 2x + 5$ sits entirely above the $x$-axis. Its vertex is at $(-1, 4)$, four units above — and that gap is exactly $|D|/(4|a|) = 16/4 = 4$. The discriminant measures the distance between the vertex and the axis.

An interactive discriminant explorer

Drag the point below to change the value of c in x^2 - 4x + c = 0. Watch the discriminant D = 16 - 4c change sign as c crosses 4, and see the roots merge and then vanish.

Interactive discriminant explorer for x squared minus 4x plus cA horizontal slider from c equals 0 to c equals 8. A draggable red point controls c. Readouts above display c, the discriminant D equals 16 minus 4c, and the two roots. As c passes 4, the discriminant changes sign and the roots transition from real to complex. 0 2 4 6 8 drag to change c
Drag the red point to vary $c$. At $c = 4$, the discriminant hits zero and the two roots merge into one ($x = 2$). For $c < 4$, the roots are real and spread apart. For $c > 4$, the discriminant is negative — the readouts collapse because no real roots exist.

Two worked examples

Example 1: Determine the nature of roots of 3x² − 2x − 5 = 0

Step 1. Identify a, b, c.

a = 3, \quad b = -2, \quad c = -5

Why: compare with ax^2 + bx + c = 0. The sign on c is negative — this will make -4ac positive, pushing D higher.

Step 2. Compute the discriminant.

D = (-2)^2 - 4(3)(-5) = 4 + 60 = 64

Why: D = 64 > 0, so two distinct real roots. And 64 = 8^2, a perfect square — so the roots are rational.

Step 3. Find the roots.

x = \frac{-(-2) \pm \sqrt{64}}{2(3)} = \frac{2 \pm 8}{6}

Step 4. Separate.

x_1 = \frac{2 + 8}{6} = \frac{10}{6} = \frac{5}{3} \qquad x_2 = \frac{2 - 8}{6} = \frac{-6}{6} = -1

Result. Two distinct rational roots: x = \dfrac{5}{3} and x = -1.

Parabola y equals 3x squared minus 2x minus 5 with roots at negative 1 and five thirdsAn upward-opening parabola crossing the horizontal axis at x equals negative 1 and x equals five thirds (approximately 1.67). The vertex sits well below the axis near x equals one third. The two roots are marked with red dots. x y −1 1 2 x = −1 x = ⁵⁄₃ vertex
The parabola $y = 3x^2 - 2x - 5$ crosses the axis at two points, exactly where the formula says. The wide gap between the roots ($5/3 - (-1) = 8/3$) matches the formula $\sqrt{D}/|a| = 8/3$. The perfect-square discriminant $D = 64$ produced clean rational roots.

The discriminant told you everything before you even applied the formula: two real roots, both rational. That is the power of checking D first.

Example 2: For what values of k does kx² + 4x + 1 = 0 have equal roots?

This is a different kind of question — not "solve the equation" but "find the condition on a parameter." The discriminant is the perfect tool.

Step 1. Identify a, b, c in terms of k.

a = k, \quad b = 4, \quad c = 1

Why: the equation has k as the leading coefficient. For the equation to be quadratic at all, you need k \neq 0.

Step 2. Write the discriminant.

D = 4^2 - 4(k)(1) = 16 - 4k

Why: equal roots happen exactly when D = 0. That is the condition you need to solve.

Step 3. Set D = 0 and solve.

16 - 4k = 0 \implies k = 4

Step 4. Verify. With k = 4, the equation is 4x^2 + 4x + 1 = 0, which factors as (2x + 1)^2 = 0, giving x = -1/2 as a repeated root. Correct.

Result. The equation has equal roots when k = 4.

Three parabolas for k equals 1, 4, and 8 showing how k controls the discriminantThree upward-opening parabolas all passing through similar regions but with different widths. The widest (k equals 1) crosses the axis at two points. The middle one (k equals 4) just touches the axis at one point. The narrowest (k equals 8) sits above the axis. Labels identify each case. x y −1 −2 k = 1 k = 4 (D = 0) k = 8
The parameter $k$ controls the shape and position of the parabola. At $k = 1$ (dashed), $D = 12 > 0$ — two real roots. At $k = 4$ (bold red), $D = 0$ — the parabola touches the axis at exactly one point, $x = -1/2$. At $k = 8$ (solid), $D = -16 < 0$ — no real roots. The discriminant condition $D = 0$ pinpoints the critical value $k = 4$.

Problems like this — "find the value of a parameter that forces a specific nature of roots" — appear constantly in board exams and JEE. The method is always the same: write D in terms of the parameter, then impose the condition D > 0, D = 0, or D < 0 as needed.

The distance between roots

There is a clean relationship between D and the gap between the two roots. If the roots are r_1 and r_2, then

r_1 - r_2 = \frac{\sqrt{D}}{|a|}

This follows directly from the formula: subtracting the two roots cancels -b and doubles \sqrt{D}, giving 2\sqrt{D}/(2a) = \sqrt{D}/a, and taking the absolute value gives \sqrt{D}/|a|.

So a larger D means the roots are farther apart, and the parabola dips deeper below the axis (if a > 0). A smaller positive D means the roots are close together and the parabola barely touches the axis. At D = 0, the roots merge. The discriminant is a measure of how "spread out" the roots are.

Rational versus irrational roots

When a, b, c are all rational numbers (which they usually are in school problems), there is a finer classification:

The irrational roots always come in pairs — if p + \sqrt{D}/(2a) is a root, so is p - \sqrt{D}/(2a). You cannot have one rational root and one irrational root when a, b, c are rational. This is because the \pm in the formula forces the two roots to be symmetric around -b/(2a).

Similarly, complex roots always come in conjugate pairs: if \alpha + \beta i is a root, then \alpha - \beta i is also a root. This is a deep fact — it holds not just for quadratics but for all polynomials with real coefficients.

Common confusions

Going deeper

If you came here to learn what the discriminant is, how to compute it, and what it tells you about the roots, you have all of that — you can stop here. The rest is for readers who want to see the discriminant from a more structural perspective.

The discriminant as a polynomial in the coefficients

The discriminant D = b^2 - 4ac is itself a polynomial — in the coefficients a, b, c, not in x. It is quadratic in b, linear in a, and linear in c. This means that if you hold a and c fixed and vary b, the discriminant traces a parabola in the (b, D) plane, opening upward. The roots of that parabola are b = \pm 2\sqrt{ac} (when ac > 0), which are the values of b that make D = 0.

Discriminants for higher-degree polynomials

The idea of a discriminant generalises beyond quadratics. A cubic ax^3 + bx^2 + cx + d = 0 has a discriminant too:

\Delta = 18abcd - 4b^3d + b^2c^2 - 4ac^3 - 27a^2d^2

It is messier, but it plays the same role: \Delta > 0 means three distinct real roots, \Delta = 0 means at least two roots coincide, and \Delta < 0 means one real root and a conjugate pair of complex roots. The discriminant is always a polynomial in the coefficients, and it always detects repeated roots — in fact, \Delta = 0 exactly when the polynomial has a repeated root. That is the unifying principle across all degrees.

Connection to the vertex form

You can rewrite any quadratic ax^2 + bx + c in vertex form:

a\!\left(x + \frac{b}{2a}\right)^2 - \frac{D}{4a}

The term -D/(4a) is the y-coordinate of the vertex. This makes the discriminant's role transparent: D/(4a) is how far the vertex sits from the x-axis. Positive D (with a > 0) means the vertex is below the axis; zero D means it is on the axis; negative D means it is above. The vertex form is the quadratic with the discriminant exposed.

Where this leads next