Cubic Equation Solver

    Solve cubic equations from a full equation or coefficients with Cardano's method, real and complex roots, a depressed-cubic discriminant, and a graph.

    Coefficient mode builds the equation string automatically. If the leading coefficient is near zero, the solver handles the degenerate case.
    Quick input
    Equation roots
    Depressed discriminant
    4
    Positive: 3 distinct real roots
    Inflection point
    (2; 0)
    Extrema
    max: (1.42265; 0.3849)
    min: (2.57735; -0.3849)
    Graph of the reduced polynomial
    Step-by-step solution
    The original input was parsed.
    Move all terms to the left side and collect coefficients.
    cubic coefficient: 1, quadratic coefficient: -6, linear coefficient: 11, constant term: -6
    Normalize the equation and shift the variable by -2.
    This gives a depressed cubic with no quadratic term.
    depressed cubic parameter p: -1
    depressed cubic parameter q: 0
    Depressed cubic discriminant: 4
    Positive discriminant: three distinct real roots.
    Roots after reversing the shift: 1, 2, 3

    A cubic equation is solved here by reducing it to a depressed cubic and applying Cardano's method. The displayed discriminant belongs to that reduced step; its sign classifies the roots.

    What this cubic equation solver does

    A cubic equation has degree three after simplification. This solver accepts a complete equation or four coefficients, moves all terms to one side, collects the polynomial, and solves the resulting cubic.

    x is the unknown; a, b, c, and d are the collected coefficients, with a not equal to zero for a true cubic.

    y is the shifted variable used to remove the quadratic term.

    p and q are the depressed-cubic parameters used by Cardano's method.

    Delta is the depressed-cubic discriminant used here to classify the roots.

    1. Reduce the equation to a polynomial of degree three or lower
    2. Shift to a depressed cubic so Cardano's method can be applied
    3. Use the depressed-cubic discriminant to classify root types
    4. Convert roots back to the original variable
    5. Show real roots, complex conjugate roots, and a graph when useful

    Root types

    The sign of the depressed-cubic discriminant determines whether the solver shows three real roots, a repeated-root case, or one real root with a complex conjugate pair.

    Discriminant signRootsMethod
    PositiveThree distinct real rootsTrigonometric form
    ZeroRepeated rootsMultiple-root special case
    NegativeOne real root and two complex rootsCardano form with cube roots
    Numerical output
    The calculator gives numerical roots and the calculation path. It is not a full symbolic algebra system for every radical form.

    Equation input and coefficient input

    Search intent for a cubic equation calculator usually expects both coefficient entry and a complete equation box. This tool supports parentheses, a right-hand side, decimal coefficients, fractions, and implicit multiplication.

    • works for products of three linear factors
    • accepts equations with a nonzero right-hand side
    • tracks simple excluded values when variable denominators can be cleared
    • shows an error if simplification creates degree higher than three

    Graph and limits

    The graph helps check the real roots as x-axis crossings. The solver also reports the inflection point and local extrema when they exist.

    Reading the graph
    If there are no local extrema, the cubic is monotonic and has one real root. If extrema exist, the graph helps explain why three crossings can appear.

    Frequently Asked Questions

    Sources and References

    Calculations are based on the listed reference sources. Links open in a new tab.

    Updated:

    Related Tools