Enter the four coefficients and get all three roots, real or complex, together with the sum and product of the roots and the factorised form of the polynomial.
For ax³ + bx² + cx + d = 0
| Sum of roots −b/a | |
| Sum of products in pairs c/a | |
| Product of roots −d/a | |
| Discriminant | |
| Factorised form |
You very often do not need the roots themselves. For ax³ + bx² + cx + d = 0 with roots α, β, γ:
α + β + γ = −b/a
αβ + βγ + γα = c/a
αβγ = −d/a
These hold whether the roots are real or complex, rational or irrational. A question asking for the sum or product of the roots of a cubic is asking you to read off a coefficient ratio, not to factorise anything — which is why those questions are worth doing first in an exam.
Run the relations backwards. If you know the three roots, the polynomial is
x³ − (α+β+γ)x² + (αβ+βγ+γα)x − αβγ
So roots 1, 2 and 3 give x³ − 6x² + 11x − 6, which is the example loaded above. Multiply through by any non-zero constant and the roots are unchanged.
The method that works in an exam is the rational root theorem followed by division.
If no rational candidate works, the cubic has no rational root and hand factorisation stops there; the calculator above falls back to Cardano's closed form, which always works.
Before solving, the discriminant Δ says what kind of answer to expect:
A cubic with real coefficients always has at least one real root, because the curve runs from minus infinity to plus infinity and must cross the axis somewhere. Complex roots can only arrive in pairs.
For a x cubed plus b x squared plus c x plus d equals zero, the sum of the roots is minus b over a. This holds whether the roots are real or complex, so you can read it straight off the coefficients without solving.
The product of the roots is minus d over a. Note the minus sign, which comes from the odd degree; for a quadratic the product is plus c over a with no sign change.
Use the rational root theorem to list candidate roots as plus or minus factors of d divided by factors of a, test them until one gives zero, divide the cubic by that linear factor to get a quadratic, then factorise the quadratic.
The polynomial is x cubed minus the sum of roots times x squared plus the sum of pairwise products times x minus the product of roots. Any non-zero multiple of it has the same roots.
No. A cubic with real coefficients always has at least one real root, because the graph runs from minus infinity to plus infinity and must cross the x axis. Complex roots occur only in conjugate pairs, so a cubic has either one or three real roots.
A positive discriminant means three distinct real roots, zero means there is a repeated root with all roots real, and a negative discriminant means one real root and a pair of complex conjugates.