Free Cubic Equation Calculator
This cubic equation calculator solves any third-degree polynomial in the form ax³ + bx² + cx + d = 0, including any complex solutions. Enter the four coefficients and get all 3 roots — real or complex — instantly.
Looking for something else? Explore more free tools in our Exponents Calculator, Dot Product Calculator and Average Calculator — or browse our full calculator library to find exactly what you need.
Cubic Equation Calculator
ax3 + bx2 + cx + d = 0
How Many Roots Will I Get?
Every cubic equation has exactly 3 roots (counting repeats), but they show up in one of two patterns:
- 3 real roots — these might be 3 different numbers, or the same number appearing twice or three times.
- 1 real root + 2 complex roots — the complex pair are always mirror images of each other (conjugates).
Solutions for x
Share This Calculation
Opening this link fills in a, b, c, d and shows this result automatically.
Enter a, b, c and d and the 3 solutions for x will appear here.
What Is a Cubic Equation?
A cubic equation is just a polynomial where the highest power of x is 3. Written out in standard form, it looks like this, where a can never be 0 (otherwise the x³ term disappears and it's no longer a cubic):
ax3 + bx2 + cx + d = 0
The b, c and d terms are all allowed to be missing (or zero) — only the a term is required.
Worked Example
Solve 22x³ + 25x² + 14x + 5 = 0:
x₁ = −0.6914
x₂ = −0.22248 + 0.52841i
x₃ = −0.22248 − 0.52841i
Here there's one real solution and a pair of complex solutions, which is a completely normal outcome for a cubic — not every cubic factors into three neat real numbers.
How This Calculator Solves It
Behind the scenes, this uses Cardano's method: the equation first gets simplified into a "depressed" cubic with no x² term, then a substitution turns it into something that can be solved with cube roots directly. Depending on a value called the discriminant, the result comes out as either three real roots or one real root plus a complex conjugate pair, exactly like the quadratic formula's discriminant tells you whether you're dealing with real or complex roots — just one degree up.
A Shortcut When There's No Constant Term
If d = 0, you can skip straight to factoring out an x, since x = 0 is automatically one of the solutions. What's left is a plain quadratic, which you can solve with the quadratic formula, completing the square, or factoring — whichever's fastest for that equation.
Vieta's Formulas: A Useful Shortcut
If you already know one root of a cubic, Vieta's formulas let you find the other two without repeating the full method. For roots p, q and r of ax³+bx²+cx+d=0:
p + q + r = −b/a
pq + qr + rp = c/a
pqr = −d/a
Since these are just three equations, knowing any one root lets you solve for the remaining two using ordinary algebra.
Frequently Asked Questions (FAQs)
Explore our advanced mathematical formulas and scientific calculation tools: