Skip to content
MasterMath

Cubic Equation Calculator

Solve ax³ + bx² + cx + d = 0 and get every real root, along with the check: substituting each one back must give zero.

Real solutions

—

Real solutions—
How many distinct real roots—
Type—
Discriminant—
Check—

How it was solved

    The formula

    Cardano's method, after reducing to the depressed cubic t³ + pt + q = 0

    Why it works

    Every cubic has at least one real root, because the graph runs from minus infinity to plus infinity and has to cross zero somewhere. Getting all of them means first removing the x² term with a substitution, which turns the equation into the depressed form Cardano's method can handle.

    How to solve it by hand

    1. Divide through by a so the leading coefficient is 1
    2. Substitute x = t − b/3 to remove the t² term
    3. Apply Cardano's formula to the depressed cubic
    4. Undo the substitution to get back to x

    What is worth knowing

    The history here is worth knowing: Cardano published the method in 1545 after obtaining it from Tartaglia under an oath of secrecy, and the resulting feud is the most famous priority dispute in mathematics. The method also forced the first serious use of complex numbers — in the case with three real roots, Cardano's formula routes through square roots of negatives even though every answer is real. Mathematicians used them reluctantly for two centuries before accepting they were real objects. There is no equivalent formula beyond the fourth degree: Abel proved in 1824 that none can exist.

    Frequently asked questions

    How many solutions does a cubic have?

    Three, counted with multiplicity. At least one is always real, and the other two are either both real or a complex conjugate pair.

    Why does every cubic have a real root?

    Because the graph goes to minus infinity in one direction and plus infinity in the other, so it must cross the x-axis at least once.

    Can I solve it by factorising?

    Often, if a root is a simple rational. Try the divisors of d over the divisors of a, then use Ruffini's rule to reduce it to a quadratic.

    Is there a formula for higher degrees?

    For the fourth, yes. Beyond that, Abel proved in 1824 that no general formula in radicals exists.