Cubic Equation Calculator
Solve third-degree polynomial equations and find all real and complex roots with Cardano's method.
ax cubed + bx squared + cx + d = 0
About cubic equations
Cubic equation examples
The root pattern changes with the coefficients and discriminant.
| Equation | Roots | Root pattern |
|---|---|---|
| x cubed - 6x squared + 11x - 6 = 0 | 1, 2, 3 | Three distinct real roots. |
| x cubed + 1 = 0 | -1, 0.5 plus or minus 0.8660254i | One real root and a complex-conjugate pair. |
| x cubed - 3x + 2 = 0 | -2, 1, 1 | One simple root and one repeated root. |
How to solve a cubic equation
- Move all terms to one side and arrange them from the third power down to the constant.
- Enter coefficients a, b, c, and d, using zero for every missing power.
- Select Solve Cubic Equation to apply the discriminant and Cardano branches.
- Read all three real or complex roots and account for any repeated values.
Frequently asked questions
How many roots does a cubic equation have?
A cubic has three roots when complex values and multiplicity are counted. The number of distinct real roots depends on its discriminant.
Why can cubic roots be complex?
A real cubic always has at least one real root, but the other two may not lie on the real number line. With real coefficients, those two nonreal roots form a conjugate pair.
What if a coefficient is missing?
Enter zero for the coefficient of that missing power. Skipping its position would attach the remaining values to the wrong terms.
Can coefficient a be zero?
No, a zero leading coefficient makes the equation quadratic or lower degree rather than cubic. Use a solver designed for that lower degree instead.
What does a repeated root mean?
A repeated root appears more than once in the polynomial's factorization. On a graph, it often marks a point where the curve touches the horizontal axis without crossing it.
Are the displayed roots exact?
Integer and simple decimal roots can display exactly, while irrational and complex components are rounded. The underlying calculation uses standard floating-point precision.