Cubic Equation Calculator

Solve any cubic equation ax³ + bx² + cx + d = 0 for all three roots, real or complex, with the discriminant and root type.

100% FreeNo sign-upPrivate — runs in your browser
—

Result

Root 1
—
Root 2
—
Root 3
—
Discriminant Δ
—
Root type
—

Copied to clipboard

How to use this tool

1
Enter the coefficients

Enter a, b, c and d for ax³ + bx² + cx + d = 0.

2
Read the roots

Read all three roots, real or complex.

3
Read the discriminant

Use Δ to see whether the roots are distinct, repeated or complex.

4
Verify a root

Substitute a root back into the equation to confirm it gives zero.

Formula & worked example

Depressed cubic t³ + pt + q = 0 with p = (3ac − b²)/(3a²), q = (2b³ − 9abc + 27a²d)/(27a³); discriminant Δ = 18abcd − 4b³d + b²c² − 4ac³ − 27a²d².

x³ − 6x² + 11x − 6 = 0 has roots 1, 2 and 3.

Limitations — read this before you rely on it

Cubic equations only (a ≠ 0). Very large or tiny coefficients can lose precision in floating-point arithmetic.

Frequently asked questions

Cardano’s formula solves the depressed cubic t³ + pt + q = 0; this tool applies it and uses the trigonometric form when all three roots are real.

Δ > 0 means three distinct real roots, Δ = 0 means a repeated root, and Δ < 0 means one real root plus a complex conjugate pair.

Yes. A complex pair is shown as a ± bi, with the real root listed first.

Then the equation is quadratic, not cubic, so the tool asks for a non-zero a instead of giving a misleading answer.

Substitute it back: for x = 1 in the example, 1 − 6 + 11 − 6 = 0.