Cubic Equation Calculator

Solve any cubic equation ax³ + bx² + cx + d = 0 instantly. Our Cubic Equation Calculator finds all real and complex roots using Cardano's formula and shows the discriminant.

800.8K usesUpdated · 2026-04-25Runs locally · zero upload

How to Use Cubic Equation Calculator

The Cubic Equation Calculator solves equations of the form ax³ + bx² + cx + d = 0 in real time. Here is how:

  1. Enter coefficient a — The leading coefficient for the x³ term. Must not be zero.
  2. Enter coefficients b, c, d — The x², x, and constant term coefficients respectively.
  3. Read the live equation preview — The Cubic Equation Calculator reconstructs the equation as you type so you can verify the input.
  4. View the roots — All roots (up to three) are shown instantly. Real roots appear in standard form; complex roots are displayed in a + bi notation and labeled.
  5. Check the discriminant and root type — The Cubic Equation Calculator shows Δ and describes whether the equation has three distinct real roots, repeated roots, or one real plus two complex roots.

The Cubic Equation Calculator also displays the depressed form t³ + pt + q = 0, giving insight into the algebraic method used.

Formula & Theory — Cubic Equation Calculator

The Cubic Equation Calculator applies a two-stage solving process:

Stage 1 — Depress the cubic:

Substitute $x = t - \frac{b}{3a}$ to eliminate the quadratic term:

p = (3ac − b²) / (3a²)
q = (2b³ − 9abc + 27a²d) / (27a³)

This yields the depressed form: t³ + pt + q = 0

Stage 2 — Classify by discriminant:

Δ = −(4p³ + 27q²)
Δ Root Type Method Used
Δ > 0 3 distinct real roots Trigonometric (casus irreducibilis)
Δ = 0 Repeated root(s) Direct formula
Δ < 0 1 real + 2 complex Cardano's formula

Cardano's formula (Δ < 0):

u = ∛(−q/2 + √(−Δ/108))
v = ∛(−q/2 − √(−Δ/108))
t₁ = u + v   (real root)
t₂,₃ = −(u+v)/2 ± i(√3/2)|u−v|   (complex roots)

The Cubic Equation Calculator handles all three cases automatically and shifts the roots back to x = t + shift.

Use Cases for Cubic Equation Calculator

The Cubic Equation Calculator is essential across many disciplines:

  • Students — Check homework answers and visualize root types for cubic polynomial problems without manual Cardano computations.
  • Engineering — Cubic equations appear in kinematics, control systems, and beam deflection; the Cubic Equation Calculator delivers fast numerical solutions.
  • Physics — Energy potential curves and fluid dynamics equations often reduce to cubic form.
  • Computer graphics — Bezier curve intersection and collision detection algorithms solve cubics in real time.
  • Finance — Internal rate of return (IRR) calculations for non-uniform cash flows can require solving a cubic.

Whether you need exact roots for academic work or quick numerical answers for applied problems, the Cubic Equation Calculator handles every case.

Frequently asked questions about Cubic Equation Calculator

How does the Cubic Equation Calculator find the roots?

The Cubic Equation Calculator first converts the equation to depressed form (t³ + pt + q = 0) by substituting x = t − b/(3a), then uses the discriminant to determine root types and applies either the trigonometric method (3 real roots) or Cardano's formula (1 real + 2 complex roots).

What does the discriminant tell me in the Cubic Equation Calculator?

If Δ > 0, the cubic has three distinct real roots. If Δ = 0, there are repeated roots (a double root and a single root, or a triple root). If Δ < 0, there is one real root and two complex conjugate roots. The Cubic Equation Calculator displays Δ automatically.

Can the Cubic Equation Calculator handle complex roots?

Yes. When the discriminant is negative, the Cubic Equation Calculator returns the one real root plus both complex conjugate roots in a + bi form, clearly labeled.

What is the depressed cubic form shown by the Cubic Equation Calculator?

The depressed form t³ + pt + q = 0 is an intermediate step where the x² term is eliminated. The Cubic Equation Calculator shows this to help you understand the algebraic transformation behind the solution.

Is my data stored?

No. All calculations happen in your browser; nothing is sent to a server.