Cubic Equation Calculator
Solve ax^3 + bx^2 + cx + d = 0, see all three roots, and understand whether the cubic has three real roots, a repeated root, or a complex-conjugate pair.
Three distinct real roots: 1, 2, and 3.
Three real roots were found. The solver uses the discriminant branch and checks the reported values by substitution before showing them.
Was this useful?
Examples
How It Works
Formula
Variables
- Coefficient of x^3 (must be non-zero)
- Coefficient of x^2
- Coefficient of x
- Constant term
- Unknown root value
Start with the canonical cubic with . The solver normalizes by dividing through by , then shifts the variable so the term disappears. From there the discriminant tells which branch to use: three real roots, a repeated real root, or one real root with a complex-conjugate pair.
This is a focused numeric cubic solver, not a full symbolic algebra system. When a root is not simple enough to present cleanly, the calculator labels it with and checks the reported roots by substitution before showing them.