Cubic Equation Calculator
Solve cubic equations ax³+bx²+cx+d=0 and find all real and complex roots with step-by-step working.
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.