Skip to main content

Cubic Equation Solver

Cubic equation concepts with polynomial curves, Cardano's method, and algebraic solution techniques

Cubic Equation Solver — Solve ax³ + bx² + cx + d = 0 Instantly

This free cubic equation solver finds all real solutions of equations in the form ax³ + bx² + cx + d = 0. Enter the four coefficients and get up to three real roots calculated using Cardano's method — the classical algebraic technique that has been solving cubics for nearly 500 years. Whether you're studying polynomial theory, solving volume problems, or exploring algebraic curves, this tool provides accurate results with clear explanations.

Cubic equations represent a significant leap in mathematical complexity from quadratics. They were the first equations whose solution required genuinely new mathematical techniques, and their history spans centuries of mathematical development — from Renaissance Italy to modern computational algebra.

Solve ax³ + bx² + cx + d = 0

Result will appear here.

1. What Is a Cubic Equation?

A cubic equation is a polynomial equation where the highest power of the variable is three. The general standard form has four terms, each representing a different degree of the variable x:

Standard form: ax³ + bx² + cx + d = 0   (where a ≠ 0)

The coefficient a cannot be zero — if it were, the x³ term would vanish and the equation would become quadratic or linear. Cubic equations are the first polynomial equations that can have inflection points — places where the curve changes from bending one way to bending the other — making them fundamentally more complex than quadratics.

For quadratic equations, use our quadratic equation solver. For factoring cubic expressions, try the polynomial factorization calculator.

2. Why Cubic Equations Are Important

Cubic equations appear naturally in mathematical models across science, engineering, and mathematics. They're the simplest equations that can describe systems with turning points and changes in direction:

📐 Volume Calculations: Finding dimensions of boxes and containers — volume is inherently cubic (length × width × height)

🚀 Physics: Modeling motion with changing acceleration where position depends on t³

🎨 Computer Graphics: Bézier curves and splines use cubic polynomials to create smooth, natural-looking shapes

🔬 Engineering: Stress-strain analysis and beam deflection calculations involve cubic equations

🎓 Calculus: Finding inflection points — where concavity changes — requires solving cubic equations

📊 Optimization: Cubic functions model diminishing returns and non-linear relationships in various systems

3. How the Cubic Equation Solver Works

The calculator uses Cardano's Method, published by Gerolamo Cardano in 1545. This was the first general solution for cubic equations and remains the standard algebraic approach today:

Step 1: Validate inputs and ensure a ≠ 0.

The calculator checks that all four coefficients are valid numbers and that the leading coefficient isn't zero. Without an x³ term, the equation isn't cubic.

Step 2: Normalize the equation.

All coefficients are divided by a, transforming the equation into x³ + (b/a)x² + (c/a)x + (d/a) = 0.

Step 3: Convert to a depressed cubic.

A clever substitution eliminates the x² term, producing t³ + pt + q = 0. This "depressed" cubic has no squared term and is much easier to solve analytically.

Step 4: Compute the discriminant.

Using Δ = q²/4 + p³/27, the calculator determines how many real roots exist. Positive: one real root. Negative: three real roots. Zero: multiple roots.

Step 5: Calculate the roots.

For Δ ≥ 0, Cardano's formula directly gives the answer using cube roots. For Δ < 0, the trigonometric form uses cosine functions to find all three real roots — the casus irreducibilis.

Step 6: Display all real solutions.

Results are shown with six decimal places of precision.

4. The Discriminant of a Cubic Equation

The discriminant tells you everything about the nature of a cubic's roots. Unlike quadratics, cubics always have at least one real solution:

Discriminant Real Roots Description
Δ > 0 One real root The cubic crosses the x-axis once. Other two roots are complex conjugates.
Δ = 0 Multiple real roots At least two roots coincide. The curve is tangent to the x-axis.
Δ < 0 Three distinct real roots The casus irreducibilis — cubic crosses the x-axis three times.

5. Worked Examples

Example 1: Three Real Roots

Solve: x³ − 6x² + 11x − 6 = 0

This cubic factors neatly into (x − 1)(x − 2)(x − 3) = 0
Solutions: x = 1, x = 2, x = 3

The discriminant is negative, confirming three distinct real roots — the casus irreducibilis.

Example 2: One Real Root

Solve: x³ + x + 1 = 0

The discriminant is positive. Cardano's formula gives:
x ≈ −0.682328 (the other two roots are complex)

This is the most common case for random cubic equations.

6. Special Cases

Case 1: d = 0

The equation is ax³ + bx² + cx = 0. Factor out x: x(ax² + bx + c) = 0. One root is x = 0, and the other two come from the quadratic factor.

Case 2: b = 0

The equation is already depressed: ax³ + cx + d = 0. Cardano's method applies directly without substitution.

Case 3: Repeated roots

When Δ = 0, at least two roots are equal. The cubic has a double root (or a triple root) at the point where it's tangent to the x-axis.

7. Common Mistakes When Solving Cubic Equations

Mistake 1: Forgetting that a must not be zero

Without an x³ term, the equation isn't cubic. The calculator checks this and alerts you — if a = 0, you're dealing with a quadratic or linear equation.

Mistake 2: Incorrectly simplifying coefficients

When dividing all terms by a, every coefficient (including the constant term d) must be divided. Missing the constant term is a common error.

Mistake 3: Misinterpreting the discriminant

Unlike quadratics where a positive discriminant means two roots, a positive cubic discriminant means one real root. The sign convention is reversed.

Mistake 4: Forgetting that all cubics have at least one real root

Unlike quadratics, cubic equations always cross the x-axis at least once. The question is whether they cross once or three times.

8. Frequently Asked Questions

Yes. When the discriminant is negative, a cubic equation has three distinct real solutions. This is called the casus irreducibilis — the "irreducible case" — because expressing these real roots algebraically requires complex numbers or trigonometry, even though the roots themselves are perfectly real.

This calculator focuses on real solutions, which are the most commonly used in practice. When there's only one real root (Δ > 0), the other two form a complex conjugate pair in the complex plane.

Yes. Cardano's method is mathematically exact and has been used since 1545. It handles every possible cubic equation, from simple ones with integer roots to complicated ones with irrational real solutions.

A depressed cubic has no x² term — the quadratic term has been "depressed" or removed through a substitution. This simplification was the key insight that made solving cubics possible. Once the x² term is gone, the remaining equation t³ + pt + q = 0 can be solved using Cardano's formula.

Yes. Every cubic equation with real coefficients has at least one real root. This is because as x → +∞, the x³ term dominates and the function goes to +∞ (if a > 0), and as x → −∞, it goes to −∞. A continuous function going from negative to positive must cross zero at least once.

The solution of the cubic was one of the great mathematical achievements of the Renaissance. Scipione del Ferro solved the depressed cubic around 1515 but kept it secret. Niccolò Tartaglia independently solved it in 1535. Cardano published the full solution — with attribution — in his 1545 book Ars Magna. The controversy between Tartaglia and Cardano is legendary in mathematical history.

Explore Math Topics

Continue your learning journey with our other math guides

Conclusion

This cubic equation solver is a powerful mathematical tool that simplifies complex algebraic problems. Whether you're a student, teacher, engineer, or math enthusiast, this calculator helps you understand and solve third-degree polynomial equations accurately and efficiently.

From volume calculations and physics modeling to computer graphics and optimization problems, cubic equations appear wherever relationships involve three dimensions or changing rates of change. Bookmark this page for the next time you need to solve ax³ + bx² + cx + d = 0 with confidence.

Remember that while this tool is incredibly helpful, practicing cubic equation solving by hand will deepen your understanding of polynomial theory and Cardano's method. Try factoring simple cubics mentally first, then verify with the calculator.

Readers who wish to continue practicing and reinforce what they've learned can explore the companion learning resource for guided exercises.