Cubic Equation Solver

Solve any cubic equation ax³ + bx² + cx + d = 0. Find all three roots (real and complex), discriminant, and Vieta's formulas with step-by-step analysis.

Equation
x³ − 6x² + 11x − 6 = 0
The cubic equation being solved
Discriminant (Δ)
4.000000
Three distinct real roots
Real Roots
3
Number of real roots among the solutions
Complex Roots
0
Number of complex conjugate root pairs
Sum of Roots (−b/a)
6.000000
By Vieta's: r₁ + r₂ + r₃ = −b/a
Product of Roots (−d/a)
6.000000
By Vieta's: r₁·r₂·r₃ = −d/a

Roots Summary

RootValueTypef(root) verification
x13.000000Root 10.000000
x22.000000Root 20.000000
x31.000000Root 30.000000

Discriminant Analysis

Δ > 0 → 3 distinct real roots
Δ = 0 → repeated root
Δ < 0 → 1 real + 2 complex roots

Vieta's Formulas

FormulaExpressionValue
r₁ + r₂ + r₃−b/a = −(-6)/(1)6.000000
r₁r₂ + r₁r₃ + r₂r₃c/a = (11)/(1)11.000000
r₁·r₂·r₃−d/a = −(-6)/(1)6.000000

Root Positions

3.00
2.00
1.00
Planning notes, formulas, and examples

About the Cubic Equation Solver

A cubic equation is a polynomial equation of degree three, written in the standard form ax³ + bx² + cx + d = 0, where a ≠ 0. Unlike quadratic equations — which always have a neat formula with a single square root — cubic equations require more sophisticated methods to solve. The general solution was first published in the 16th century by Italian mathematicians Cardano and Tartaglia and involves cube roots and a discriminant that determines the nature of the roots.

Every cubic equation has exactly three roots when counted with multiplicity in the complex numbers. The discriminant Δ tells you their nature: when Δ > 0 there are three distinct real roots, when Δ = 0 there is a repeated root, and when Δ < 0 there is one real root and a pair of complex conjugate roots. This cubic equation solver computes all three roots using Cardano's method and trigonometric substitution. It displays the discriminant, verifies each root by substitution, and shows Vieta's formulas relating the roots to the coefficients. Presets for classic cubics let you explore the behavior quickly, and a visual number line shows where real roots are positioned. Whether you are solving homework problems, analyzing polynomial behavior, or building intuition for higher algebra, the page gives you the full root picture.

When This Page Helps

Cubic equations are where polynomial solving stops being routine. Once the quadratic intuition no longer works, it is helpful to keep the equation, discriminant, real roots, and complex roots tied together in one view. This page does that so you can check whether a coefficient change altered the root structure, whether repeated roots appear, and whether Vieta's formulas still reconcile with the outputs.

How to Use the Inputs

  1. Enter a (x³ coefficient) and b (x² coefficient) in the input fields.
  2. Select the mode, method, or precision options that match your cubic equation solver problem.
  3. Read Equation first, then use Discriminant (Δ) to confirm your setup is correct.
  4. Try a preset such as "x³ − 6x² + 11x − 6" to test a known case quickly.
Formula used
Given ax³+bx²+cx+d=0, substitute x=t−b/(3a) to get depressed cubic t³+pt+q=0. Discriminant Δ=−4p³−27q². If Δ>0: three real roots via trigonometric method. If Δ<0: Cardano's formula with one real and two complex roots.

Example Calculation

Result: Equation shown by the calculator

Using the preset "x³ − 6x² + 11x − 6", the calculator evaluates the cubic equation solver setup, applies the selected algebra rules, and reports Equation with supporting checks so you can verify each transformation.

Tips & Best Practices

  • If a = 0, the equation is quadratic, not cubic — use the quadratic equation solver instead.
  • A positive discriminant guarantees all roots are real; a negative one means complex roots appear.
  • Vieta's formulas let you verify your roots: their sum should equal −b/a and product should equal −d/a.
  • For integer-coefficient cubics, try rational roots ±(factors of d)/(factors of a) as a quick check.
  • Complex roots of a polynomial with real coefficients always come in conjugate pairs.

How This Cubic Equation Solver Works

This calculator takes a (x³ coefficient), b (x² coefficient), c (x coefficient), d (constant) and applies the relevant cubic equation solver relationships from your chosen method. It returns both final and intermediate values so you can audit the process instead of treating it as a black box.

Interpreting Results

Start with the primary output, then use Equation, Discriminant (Δ), Real Roots, Complex Roots to confirm signs, magnitude, and internal consistency. If anything looks off, change one input and compare the updated outputs to isolate the issue quickly.

Study Strategy

Sources & Methodology

Last updated:

Frequently Asked Questions

  • Every cubic equation has exactly three roots when counted with multiplicity in the complex numbers. It may have three real roots, or one real root and two complex conjugate roots.