Finds the real roots of ax³ + bx² + cx + d = 0. Shifting x by b/(3a) removes the squared term, and the remaining t³ + pt + q = 0 is solved according to the sign of the discriminant. There is always at least one real root.
This finds the real roots of . A cubic always has at least one real root: its graph runs from the bottom left to the top right, so it has to cross the axis somewhere.
Shifting this way removes the squared term and leaves . From there the sign of the discriminant decides how to carry on.
A positive discriminant means one real root, found by adding two cube roots in Cardano's formula. Zero means there is a repeated root, leaving one or two real roots. A negative discriminant means three distinct real roots, but Cardano's formula then asks for the cube root of a negative number and cannot be written with real numbers, so trigonometry is used instead.
For , the shift gives and , so the discriminant is , which is negative. There are three distinct real roots: . Expanding returns the original equation.
Only distinct real roots are listed, smallest first. A repeated root counts once, so has the single root 0. Any unused slots are filled with a hyphen.
Complex roots are not given. With equal to 0 this is not a cubic, so use the quadratic calculator instead.