Cubic equations appear when you work with volumes, cubic splines, the equations of state of gases and many optimisation problems. Unlike quadratics, a cubic always has at least one real root, because its graph goes from −∞ to +∞.
How to use the Cubic Equation Calculator
- a (x³)
- b (x²)
- c (x)
- d (constant)
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
The calculator finds the roots numerically to full double precision (Durand–Kerner iteration polished with Newton’s method), which avoids the cancellation problems of Cardano’s formula. The discriminant classifies the roots.
Formula
Δ = 18abcd − 4b³d + b²c² − 4ac³ − 27a²d²
Δ > 0: three distinct real roots · Δ = 0: a repeated root · Δ < 0: one real, two complex
Worked example
Inputs: a (x³): 1; b (x²): -6; c (x): 11; d (constant): -6.
Results: x₁ = 1; x₂ = 2; x₃ = 3; Discriminant Δ = 4; Nature of the roots = Three distinct real roots.
Key terms
- Cubic equation
- A polynomial equation of degree 3.
- Discriminant
- A quantity that determines the nature of the roots.
Frequently asked questions
Does every cubic have a real root?
Yes. A cubic with real coefficients always crosses the x-axis at least once.
What does a zero discriminant mean?
At least two roots coincide (a double or triple root).
Can I use Cardano's formula?
Yes, but it can involve complex intermediate numbers even when all roots are real; numerical methods are more robust.
How do I find a rational root by hand?
Try the candidates ±(factors of d)/(factors of a); see the rational zeros calculator.