Cubic Equation Calculator

Solve cubic equations ax³+bx²+cx+d=0 and find all real and complex roots with step-by-step working.

units
units

Enter your values above to see the results.

Tips & Notes

  • Rational Root Theorem: list ±(constant factors)/(leading factors). Test with synthetic division.
  • Every polynomial of odd degree has at least one real root — guaranteed by IVT.
  • Conjugate pairs: complex roots come in pairs a+bi and a−bi for real-coefficient polynomials.
  • Synthetic division is faster than long division for testing potential roots.
  • After finding one root r, divide by (x−r) to reduce degree by 1. Repeat until quadratic.

Common Mistakes

  • Using the quadratic formula on a cubic equation. The quadratic formula only applies to degree-2 equations. A cubic ax³+bx²+cx+d=0 has three roots (real or complex) and requires different methods: factoring, rational root theorem, or Cardano's formula.
  • Missing complex roots and reporting only the real root. A cubic always has exactly 3 roots counting multiplicity. When one real root r is found, divide by (x−r) to get a quadratic — solve that for the remaining two roots, which may be complex.
  • Testing rational roots in the wrong order. Rational Root Theorem: possible rational roots are ±(factors of constant term)/(factors of leading coefficient). For 2x³−3x²−11x+6: test ±1, ±2, ±3, ±6, ±1/2, ±3/2.
  • Sign errors when performing synthetic division. Each multiplication and subtraction in synthetic division must be done carefully. A single sign error propagates through all subsequent steps and produces an incorrect quotient.
  • Assuming all three roots are distinct. A cubic can have a repeated root — for example x³−3x+2 = (x−1)²(x+2), giving roots 1 (multiplicity 2) and −2. Check the quotient polynomial after dividing out the first root.

Cubic Equation Calculator Overview

A cubic equation is a polynomial equation of degree 3 — the highest power of the variable is 3. Standard form is ax³ + bx² + cx + d = 0 where a ≠ 0. Every cubic equation with real coefficients has exactly three roots counting multiplicity, and at least one of those roots is always real. This is because complex roots of real polynomials always come in conjugate pairs, and an odd-degree polynomial cannot pair up all its roots.

Finding rational roots first — the Rational Root Theorem lists every possible rational root:

Possible rational roots = ±(factors of d) / (factors of a)

EX: x³ − 6x² + 11x − 6 = 0 → possible roots: ±1, ±2, ±3, ±6 → test x=1: 1−6+11−6=0 ✓

Synthetic division reduces the cubic once a root is found, giving a quadratic to solve directly:

EX: x=1 is a root of x³−6x²+11x−6 → divide: quotient = x²−5x+6 = (x−2)(x−3) → all roots: x=1, x=2, x=3

Cardano's Formula solves any depressed cubic t³ + pt + q = 0 (the general form after substituting x = t − b/3a to eliminate the x² term):

t = ∛(−q/2 + √(q²/4 + p³/27)) + ∛(−q/2 − √(q²/4 + p³/27))

The discriminant Δ = −4p³ − 27q² determines the nature of the roots:

  • Δ > 0 — three distinct real roots
  • Δ = 0 — a repeated root (at least two roots are equal)
  • Δ < 0 — one real root and two complex conjugate roots

EX: x³ − 3x + 2 = 0 → p=−3, q=2 → Δ = −4(−27) − 27(4) = 108 − 108 = 0 → repeated root → factors: (x−1)²(x+2) → roots: x=1 (double), x=−2

The three root scenarios each have a distinct geometric interpretation. Three real roots means the cubic crosses the x-axis three times. A repeated root means the cubic touches the x-axis at that point without crossing — the tangent line is horizontal there. One real root means the cubic crosses once, with the other two roots being complex conjugates that never appear on the real number line.

For higher-degree polynomials beyond cubic, no algebraic formula using radicals exists for degree ≥ 5 (Abel-Ruffini theorem). Instead, numerical methods such as Newton's method iterate toward roots. The Rational Root Theorem and synthetic division extend to any degree, and finding one root at a time then reducing the degree remains the most practical strategy for degree 4 and 5 by hand.

Real-world cubic equations appear in engineering and physics constantly. Beam deflection under a distributed load is a cubic function of position. The van der Waals gas equation of state is cubic in volume — its three roots correspond to gas phase, liquid-gas coexistence, and liquid phase. The trajectory of a projectile with air resistance involves cubic terms. Signal analysis and control systems both generate characteristic equations of cubic or higher degree whose roots determine stability.

Frequently Asked Questions

A cubic equation has the form ax³+bx²+cx+d=0. Every cubic with real coefficients has at least one real root — guaranteed by the Intermediate Value Theorem (it must cross the x-axis since it goes from −∞ to +∞). Methods: try rational roots (±factors of d / ±factors of a), factor by grouping, or apply Cardano's formula for the general case. Example: x³−6x²+11x−6=0. Rational root candidates: ±1,±2,±3,±6. Test x=1: 1−6+11−6=0 ✓. Factor: (x−1)(x²−5x+6)=(x−1)(x−2)(x−3). Roots: 1, 2, 3.

The Rational Root Theorem: if p/q is a root of axⁿ+...+d (in lowest terms), then p divides d (constant) and q divides a (leading coefficient). For x³−2x²−5x+6=0 (a=1, d=6): test ±1,±2,±3,±6. Test x=1: 1−2−5+6=0 ✓. Factor out (x−1): x³−2x²−5x+6 = (x−1)(x²−x−6) = (x−1)(x−3)(x+2). Roots: 1, 3, −2. If no rational root works, the roots are irrational or complex — use Cardano's formula or numerical methods.

After finding one root r, divide the cubic by (x−r) using synthetic division or polynomial long division to obtain a quadratic ax²+bx+c. Solve the quadratic using the quadratic formula to find the remaining two roots. Example: x³−6x²+11x−6, root r=1. Synthetic division by (x−1): coefficients 1,−6,11,−6. Bring down 1. 1×1=1, −6+1=−5. 1×(−5)=−5, 11+(−5)=6. 1×6=6, −6+6=0. Quotient: x²−5x+6. Factor: (x−2)(x−3). All roots: 1, 2, 3.

A cubic can have three distinct real roots, one real root and two complex conjugate roots, or one real root with a repeated root. The discriminant Δ = 18abcd−4b³d+b²c²−4ac³−27a²d² determines this. Δ>0: three distinct real roots. Δ=0: repeated root (at least two roots are equal). Δ<0: one real root and two complex conjugates. Example: x³−3x+2: roots are 1, 1, −2 (repeated root at 1, so Δ=0). x³+x: roots are 0 and ±i (one real, two complex, Δ<0).

Complex roots of polynomials with real coefficients always appear in conjugate pairs a+bi and a−bi. A cubic has exactly 3 roots counting multiplicity. If one root is real (required for any cubic with real coefficients), the other two are either both real or complex conjugates. Example: x³−1=0 has roots 1, (−1+i√3)/2, (−1−i√3)/2 — one real and two complex conjugates. Multiplying: (x−1)(x²+x+1)=0. The quadratic x²+x+1 has discriminant 1−4=−3<0, confirming complex roots.

Cubic equations model real-world problems in physics, engineering, and economics. Volume of a box: if l=x, w=x+2, h=x−1 with volume=24, then x(x+2)(x−1)=24 → x³+x²−2x−24=0. Rational root test: try x=2: 8+4−4−24=−16 ✗. Try x=3: 27+9−6−24=6 ✗. Try values near 2.5 or solve numerically. In engineering, beam deflection under load, fluid flow in pipes, and optimal container sizing all produce cubic equations that require these solution methods.