Maths & numbers

Cubic discriminant calculator

Classify roots of a real cubic using the sign of its discriminant.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A positive discriminant gives three real roots, while a negative discriminant gives one real root and a complex conjugate pair.

THE FORMULAΔ = b²c² − 4ac³ − 4b³d − 27a²d² + 18abcd

A 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.

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.

The default cubic crosses the real axis at one, two and three123Δ = 4 > 0Three distinct real crossings
For (x − 1)(x − 2)(x − 3), the discriminant 4 signals three distinct real roots. It does not locate the roots by itself.

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.

Find your calculator

Start typing to explore the library.