Skip to content
D DocNectar

Free Cubic Equation Solver

Solve any cubic equation ax³+bx²+cx+d=0 using Cardano's formula, handling all three root cases.

100% Free No Signup Works on all devices

Built and fact-checked by the DocNectar team — see our editorial standards

Thanks for rating!

Key Features

Instant Calculation

Get accurate results in real time with our optimized algorithm.

Mobile Friendly

Fully responsive design. Works on all devices & screen sizes.

Privacy Focused

Your data stays on your device. We don't store any inputs.

100% Free

No hidden costs. This tool is completely free forever.

Unlike the quadratic formula, solving a cubic equation requires checking which of three distinct cases applies — one real root with a complex pair, a repeated real root, or three distinct real roots.

This calculator solves any cubic equation using Cardano's formula, automatically detecting and handling all three cases.

How it works

Enter the coefficients a, b, c, and d. The calculator reduces the equation to a depressed cubic, computes the discriminant, and applies Cardano's formula (or the trigonometric method for three real roots) based on the discriminant's sign.

  1. Enter a (coefficient of x³).
  2. Enter b (coefficient of x²).
  3. Enter c (coefficient of x).
  4. Enter d (constant).
  5. Click Calculate to see your results.

Examples

x³-6x²+11x-6=0

This equation has three distinct real roots: 1, 2, and 3 — found using the trigonometric method since the discriminant is negative.

Who should use it

  • Solving cubic equations for algebra or numerical methods coursework.
  • Checking a hand-solved cubic equation's roots.

Industry applications

  • Mathematics and engineering education
  • Numerical methods and applied mathematics

Advantages

  • Handles all three discriminant cases automatically, including the tricky trigonometric method for three real roots.
  • Shows the discriminant value so you can understand which case applies.

Limitations

  • Complex roots are reported in a ± bi form rather than as fully separate interactive values.

Common mistakes to avoid

  • Assuming every cubic has three real roots — many have just one real root and a complex conjugate pair.
  • Manually trying to guess the case instead of trusting the discriminant.

Best practices

  • Verify a computed root by substituting it back into the original equation and confirming it evaluates to (approximately) zero.

Tips

  • Every cubic equation with real coefficients has at least one real root — the discriminant only determines whether there are one or three real roots total, never zero.

Frequently asked questions

Yes, with no signup and no limit on how many equations you solve.
The calculator checks this automatically using the discriminant — you don't need to determine it yourself before using the tool.
When the discriminant is positive, two of the three roots are complex numbers of the form p ± qi — they always come in this conjugate pair for a cubic with real coefficients.
If a were 0, the equation would no longer be cubic (degree 3) — it would become a quadratic or lower, which this tool isn't designed to solve.

Get new calculators and guides in your inbox

No spam — just new tools like Cubic Equation Solver and practical guides.

Favorites