Cubic Equation Calculator tool

Cubic Equation Calculator

A cubic equation has an x³ term — the highest power is three.

What is a cubic equation calculator?

A cubic equation calculator finds real roots of ax³ + bx² + cx + d = 0. You enter coefficients a, b, c, and d with a ≠ 0. It uses Cardano's method or a trigonometric form when three distinct real roots appear, listing every real solution the algorithm finds.

How to use the Cubic Equation Calculator

  1. Enter a on x³; it must be non-zero.
  2. Enter b on x², c on x, and constant d.
  3. Read each real root listed in results.
  4. Set a = 1 if the polynomial is monic.
  5. Use quadratic tool if a = 0 by mistake.

About this calculator

A cubic equation has an x³ term — the highest power is three. Unlike quadratics, cubics always have at least one real root, and may have three. Enter coefficients a, b, c, d for ax³ + bx² + cx + d = 0.

The solver uses Cardano's method when one real root appears, and a trigonometric identity when three distinct real roots exist. Repeated roots show up when the discriminant is zero.

For degree-two problems use the [[quadratic]] calculator. For straight lines try the [[linear-equation]] calculator. For polynomial expansion practice see the [[foil-method]] calculator.

Formula for cubic equations

ax³ + bx² + cx + d = 0
Depressed cubic via x = t − b/(3a); Cardano solves for t
  • a is the leading coefficient, must not be 0
  • Real cubics have at least one real root
  • Discriminant sign decides one vs three real roots

Cubic equation example: x³ − 6x² + 11x − 6 = 0

Enter a = 1, b = −6, c = 11, d = −6. The polynomial factors as (x − 1)(x − 2)(x − 3), so roots are 1, 2, and 3.

Check root 2: 8 − 24 + 22 − 6 = 0. A simpler cubic x³ − 8 = 0 has root 2 with multiplicity one and complex conjugate roots elsewhere.

Enter the first set of coefficients to see three real roots on the panel; discriminant cases with one real root return a single value plus complex pairs not shown here.

For x³ − 8 = 0, enter a = 1, b = 0, c = 0, d = −8 to read real root 2. Complex roots exist but this panel lists real solutions only.

Solve x³ − 3x² + 2x = 0 by factoring x(x − 1)(x − 2). Enter a = 1, b = −3, c = 2, d = 0 to list roots 0, 1, and 2.

Check root x = 1: 1 − 3 + 2 = 0. For x³ + 3x² − 4 = 0, enter a = 1, b = 3, c = 0, d = −4. The panel lists 1, −2, and −2 from (x − 1)(x + 2)².

Depressed cubic homework often starts monic: x³ − 7x + 6 = 0 uses a = 1, b = 0, c = −7, d = 6. Integer tries show x = 1 is a root because 1 − 7 + 6 = 0 before you read the full root list.

Common uses

  • Find roots of cubic polynomials for calculus homework
  • Check engineering curves that reduce to cubics
  • Explore discriminant cases (one vs three real roots)
  • Verify factorisation by comparing roots

Frequently asked questions

How many roots does a cubic have?

Up to three real roots (counting repeats). Complex roots come in conjugate pairs, so a cubic with real coefficients always has at least one real root.

What if a = 0?

The equation is not cubic — it drops to quadratic or linear. Enter a non-zero leading coefficient or use the quadratic calculator instead.

What is an example with three real roots?

x³ − 6x² + 11x − 6 = 0 factors as (x−1)(x−2)(x−3), roots 1, 2, and 3.

Does this show complex roots?

This tool lists real roots. When the discriminant is positive, only one real root is returned; the other two are complex conjugates.

Related calculators

Maintained by J Jaya Prakash · Last updated: October 2026