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

Enter 0 for any term that isn't present in your equation. The a value cannot be 0 (or it wouldn't be a cubic).

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)

Yes, always at least one. Since a cubic graph starts at negative infinity on one end and positive infinity on the other (or the reverse), it has to cross the x-axis somewhere, guaranteeing at least one real root, even when the other two roots turn out to be complex.

A cubic always has 3 roots when you count repeats, but two (or all three) of them can land on the exact same value. In that case you'll see a repeated root listed more than once rather than 3 different numbers.

The letter i represents the imaginary unit, the square root of negative 1. A root written like −0.22 + 0.53i is a complex number, and complex roots of a cubic always come in matching pairs that only differ by the sign in front of the i.

Enter 0 for any missing term rather than leaving the field blank. A missing b, c or d term simply means its coefficient is 0, which the calculator needs explicitly to solve the equation correctly.

No. The link only encodes the exact a, b, c and d values you entered, so anyone opening it sees the same calculation you did, nothing more.