Cubic Equation Solver
A cubic equation has the form ax³ + bx² + cx + d = 0 and always has at least one real root. This solver looks for rational roots using the rational root theorem, divides out the factor, and solves the remaining quadratic exactly. If no rational root exists, it finds the real roots numerically.
How to use the cubic equation solver
- Rearrange the equation to ax³ + bx² + cx + d = 0.
- Enter a, b, c and d.
- Press Calculate to see the roots, the factorisation and the graph.
Formula
Worked example: x³ − 6x² + 11x − 6 = 0
- a (x³): 1
- b (x²): -6
- c (x): 11
- d (constant): -6
✓ Answer checked
- Real roots (decimal)
Step-by-step working (4 steps)
Write the equation
Make sure it is in the form ax³ + bx² + cx + d = 0.
Find a rational root Rational root theorem
Try ± (factors of the constant) ÷ (factors of the leading coefficient).
Divide out the factor Factor theorem
Divide by (x − 1) using synthetic division.
Solve the quadratic Quadratic formula
Use the quadratic formula on the remaining factor.
Formulas used
How this was checked
- ✓ Substituting each real root into the cubic gives 0.
Frequently asked questions
How many roots does a cubic have?
Exactly three, counting repeated and complex roots. At least one is always real.
What is the rational root theorem?
Any rational root p/q has p dividing the constant term and q dividing the leading coefficient, so there is a short list of candidates to test.
Why are some answers decimals?
If no rational root exists, the exact roots involve complicated cube roots. The calculator gives accurate decimals instead and labels them as partly checked.
