← All tools/Calculators/Math/Cubic Equation Solver
Cubic Equation Solver
Enter the four coefficients of a cubic equation and get all three roots — real or complex — with the discriminant.
Roots of the cubic
Three distinct real roots
How it works
ax³ + bx² + cx + d = 0, a ≠ 0 Depressed cubic (t = x + b/3a): t³ + pt + q = 0, where p = (3ac − b²) / 3a² and q = (2b³ − 9abc + 27a²d) / 27a³ Discriminant Δ = 18abcd − 4b³d + b²c² − 4ac³ − 27a²d² Δ > 0: three distinct real roots · Δ = 0: a repeated root · Δ < 0: one real root and two complex roots
x³ − 6x² + 11x − 6 = 0 factorises as (x − 1)(x − 2)(x − 3) = 0, so the roots are x = 1, x = 2 and x = 3. Check: (x − 1)(x − 2) = x² − 3x + 2, times (x − 3) gives x³ − 6x² + 11x − 6. The discriminant is Δ = 4, which is positive, matching three distinct real roots. A triple root: x³ − 3x² + 3x − 1 = (x − 1)³ = 0, so x = 1 three times and Δ = 0.
Frequently asked questions
What is a cubic equation?
An equation with an x³ term as its highest power: ax³ + bx² + cx + d = 0, with a ≠ 0. A cubic always has three roots, counting repeats and complex roots, though they are not always all real.
What does the discriminant tell me?
It tells you the kind of roots before you solve: Δ > 0 means three distinct real roots, Δ = 0 means a repeated root, and Δ < 0 means one real root and two complex roots. The example has Δ = 4, so three distinct real roots: 1, 2 and 3.
How do I check a root is correct?
Put it back into the equation. For x = 2 in x³ − 6x² + 11x − 6: 8 − 24 + 22 − 6 = 0. If the result is 0, the root is right.
What do complex roots look like?
They come in a pair, a + bi and a − bi. Try a = 1, b = 0, c = 0, d = −1: the equation is x³ − 1 = 0, with one real root x = 1 and two complex roots −0.5 ± 0.87i. The page shows them as text, never as an error.
Tell us what you think
Loving this tool, or stuck on something? Tell us — it takes a minute.
We’ll only use your name and email to reply if needed. The tool and page are filled in for you.