This discriminant calculator computes D = b² − 4ac for a quadratic ax² + bx + c and reads its verdict: positive means two distinct real roots, zero means one repeated root, negative means a complex conjugate pair. It also returns the roots themselves, because a classification you can’t cash out is only half an answer — but the discriminant is the star: a single arithmetic expression that knows the whole future of the equation.

–

The ± in the Quadratic Formula, Isolated

The quadratic formula x = (−b ± √(b² − 4ac)) / 2a makes one decision on your behalf: whether the square root is real. The discriminant D = b² − 4ac is precisely the expression under that root, and its sign settles the equation's character before any root is computed. D > 0: the root is real and nonzero, the ± gives two different answers, and the parabola crosses the x-axis twice. D = 0: the ± contributes nothing, both branches collapse to one repeated root at the vertex, and the parabola kisses the axis and turns around. D < 0: the root is imaginary, the parabola floats entirely on one side of the axis, and the “solutions” live in the complex plane as a conjugate pair p ± qi. Three regimes, one subtraction-sized calculation — which is why the discriminant is also the fastest error check in equation solving: if your laboriously computed roots contradict D's prediction, the algebra, not the discriminant, is wrong.

A subtler gift hides in D's value, not just its sign: when D is a perfect square, the roots are rational and the quadratic factors over the rationals — the calculator flags this case because it changes your solving strategy (factor first, formula as backup). And in the theory of equations, discriminants generalize far beyond quadratics (the cubic's discriminant sorts its three roots similarly), so the intuition built here — one expression, reading the roots' nature — is a first step into Galois-flavored territory.

Worked Examples (Verified)

  • 2x² − 4x + 1 (defaults): D = 16 − 8 = 8 > 0 → two real roots, x = 1 ± √2/2 ≈ 1.7071 and 0.2929. D isn't a perfect square, so the surds stay — factoring was never going to work here, and D told you before you tried.
  • x² − 6x + 9: D = 36 − 36 = 0 → repeated root x = 3 — indeed (x − 3)². The D = 0 case is the algebraic signature of a perfect-square trinomial.
  • x² + 2x + 5: D = 4 − 20 = −16 → roots −1 ± 2i; the parabola y = (x+1)² + 4 bottoms out at y = 4, visibly never reaching the axis — geometry and discriminant agreeing, as always.

Discriminant Discipline

  • Standard form first: the equation must be arranged as ax² + bx + c = 0 with everything on one side — b is the coefficient of x as arranged; a stray sign from moving terms is the classic D error.
  • Watch b² with negative b: (−4)² = +16, not −16. More discriminants die here than anywhere else; the calculator is immune, hand work isn't.
  • D > 0 doesn't promise “nice” roots — only real ones. Rationality requires the perfect-square condition on top.
  • For parameter problems (“find k so the equation has equal roots”), set D = 0 and solve for the parameter — the discriminant converts a root-nature condition into an ordinary equation, the standard exam maneuver.
  • Multiply through to clear fractions/decimals before reading a, b, c — D scales by the square of your multiplier, so its sign survives but its perfect-square status needs the cleared form.

Related Tools

Frequently Asked Questions

How do you calculate the discriminant?

D = b² − 4ac from the standard-form coefficients of ax² + bx + c = 0. For 2x² − 4x + 1: (−4)² − 4(2)(1) = 16 − 8 = 8. The sign of the result classifies the roots — positive: two distinct real roots; zero: one repeated root; negative: complex conjugate pair. This calculator computes D, classifies, and returns the roots themselves (real or complex) with the perfect-square/factoring note.

What does a positive discriminant mean?

Two different real roots — the parabola crosses the x-axis at two points. A refinement worth knowing: if D is additionally a perfect square (1, 4, 9, 16, 25…), those roots are rational numbers and the quadratic factors cleanly over the rationals; if D is positive but not a perfect square, the roots are irrational conjugate surds like 1 ± √2/2 in our worked example.

What does a discriminant of zero mean?

One real root of multiplicity two — the quadratic is a perfect square (a(x − r)²), and its graph is tangent to the x-axis at the vertex, touching without crossing. Algebraically the ± in the quadratic formula contributes zero, so both root branches coincide at x = −b/2a. In parameter problems, “equal roots” is the instruction to set D = 0 and solve.

What does a negative discriminant mean?

No real roots: the quadratic's values never reach zero, its parabola lying entirely above the x-axis (a > 0) or below it (a < 0). The roots still exist as complex numbers — a conjugate pair p ± qi with p = −b/2a and q = √|D|/|2a| — and this calculator reports them, because in electrical engineering, control theory and physics those “imaginary” roots describe real oscillations and resonances.

Why is it called the discriminant?

Because it discriminates — it distinguishes the cases. The name (Sylvester, in the 19th-century algebra tradition) reflects the expression's job across polynomial theory: the discriminant of a general polynomial is, up to scaling, the product of squared differences of its roots, vanishing exactly when roots repeat. The quadratic's b² − 4ac is the smallest member of that family, and its D = 0 ⟺ repeated root behavior is the family trait in miniature.

How do I find k so a quadratic has equal roots?

Set the discriminant to zero and solve for k. Example: x² + kx + 9 has equal roots when k² − 36 = 0, so k = ±6 (indeed (x ± 3)²). If the problem asks for two distinct real roots, solve D > 0 (here |k| > 6); for no real roots, D < 0 (−6 < k < 6). The discriminant turns verbal conditions about roots into inequalities about parameters — the maneuver behind a whole genus of exam questions.

Does the discriminant work for cubics and higher?

Yes, but the formula grows teeth: the cubic discriminant (in terms of its coefficients) involves terms like b²c² − 4ac³ − 4b³d − 27a²d² + 18abcd and sorts three-real-roots vs one-real-and-two-complex, again vanishing at repeated roots. Degree n has a discriminant built from the resultant of the polynomial and its derivative. The quadratic case on this page is the friendly face of a deep invariant — the classification idea scales even when the arithmetic stops being a party trick.

Is this discriminant calculator free?

Yes — free, instant, no sign-up. Enter a, b, c for D, the root classification, the roots themselves (real or complex) and the perfect-square factoring signal.