How this calculation works
A positive discriminant gives three real roots, while a negative discriminant gives one real root and a complex conjugate pair.
Δ = b²c² − 4ac³ − 4b³d − 27a²d² + 18abcdA worked example
For x³−6x²+11x−6, Δ=4 and all three roots are distinct and real.
Good to know
The sign can be sensitive to rounding near repeated roots.
Reference: OpenStax Algebra and Trigonometry (opens in a new tab) ↗
Classify the roots before solving the cubic
The default polynomial x³ − 6x² + 11x − 6 factors as (x − 1)(x − 2)(x − 3). Its discriminant is 4, which indicates three distinct real roots. The SVG plots its three crossings at x = 1, 2 and 3.
For ax³ + bx² + cx + d, the discriminant is b²c² − 4ac³ − 4b³d − 27a²d² + 18abcd. With real coefficients and a nonzero leading coefficient, a positive value means three distinct real roots. A negative value means one real root and a nonreal complex-conjugate pair. Zero means at least one repeated root.
Check the sign with root separations and contrasting examples
When the roots are r₁, r₂ and r₃, the same discriminant equals a⁴(r₁ − r₂)²(r₁ − r₃)²(r₂ − r₃)². For roots 1, 2 and 3 with a = 1, this is 1 × 4 × 1 = 4. A repeated root makes one factor zero.
The polynomial x³ + 1 has discriminant −27 and one real root, −1. In contrast, x³ − 3x + 2 has discriminant zero and factors as (x − 1)²(x + 2). The Descartes’ rule of signs for cubics calculator separately bounds positive and negative root counts. Near a repeated root, cancellation in the discriminant formula can make floating-point classification sensitive to rounded inputs, so inspect the factorisation or use higher precision when the reported value is close to zero.
A few questions, answered
Does a positive discriminant mean the roots are positive?
No. It means three distinct real roots. Their signs require other information.
Does zero discriminant mean all roots are equal?
No. A double root and a different third root also make the discriminant zero.