Since 2010 · Powering 2M+ tool runs every month
Since 2010
Add to Chrome

My Toolbox

Automatic Mode

No saved tools yet.

Go Premium
Related tools
Quartic Equation SolverLogarithmic Equation SolverTrigonometric Equation SolverLinear Equation SolverRadical Equation SolverRecurrence Relation SolverConic Section Identifier
Home Page > Math > Algebra Calculators

Cubic Equation Solver

Solve any cubic equation ax³+bx²+cx+d=0 using Cardano's formula. Get all three roots (real and complex), step-by-step solution, discriminant analysis, and interactive graph.

Free to useNo sign-up requiredInstant Results
Cubic Equation SolverTry it now — free ▼
Try:
\(ax^3 + bx^2 + cx + d = 0\)
ax³ + bx² + cx + d = 0  (a ≠ 0)

Embed Cubic Equation Solver Widget

About Cubic Equation Solver

The Cubic Equation Solver finds all three roots of any cubic equation in the form ax³ + bx² + cx + d = 0. Enter the four coefficients and get instant results with step-by-step solution using Cardano's method, discriminant analysis, factored form, Vieta's relations, and an interactive graph.

How to Use the Cubic Equation Solver

  1. Enter coefficients: Type the values of a, b, c, and d for your cubic equation ax³ + bx² + cx + d = 0. The coefficient a must not be zero.
  2. Click "Solve Cubic Equation" to compute all three roots.
  3. View the roots: Each root is displayed with a label indicating whether it is real or complex. Real roots appear in green cards, complex roots in blue.
  4. Study the step-by-step solution: Follow the full Cardano's method derivation, including the depressed cubic transformation, discriminant calculation, and root extraction.
  5. Explore the graph: See the cubic function plotted with real roots marked in green and the inflection point in orange.

What Is a Cubic Equation?

A cubic equation is a polynomial equation of degree three:

\(ax^3 + bx^2 + cx + d = 0\)

where \(a \neq 0\). By the Fundamental Theorem of Algebra, every cubic equation has exactly three roots (counting multiplicity), which may be real or complex numbers.

Cardano's Formula

Published in 1545 by Gerolamo Cardano (though discovered earlier by Scipione del Ferro and Niccolo Tartaglia), this method works by:

  1. Depressing the cubic: Substituting \(x = t - \frac{b}{3a}\) eliminates the \(x^2\) term, yielding \(t^3 + pt + q = 0\)
  2. Computing p and q: \(p = \frac{3ac - b^2}{3a^2}\), \(q = \frac{2b^3 - 9abc + 27a^2d}{27a^3}\)
  3. Applying the formula: \(t = \sqrt[3]{-\frac{q}{2} + \sqrt{\frac{q^2}{4} + \frac{p^3}{27}}} + \sqrt[3]{-\frac{q}{2} - \sqrt{\frac{q^2}{4} + \frac{p^3}{27}}}\)

The Discriminant

The discriminant \(\Delta = -4p^3 - 27q^2\) determines the nature of the roots:

Vieta's Formulas for Cubic Equations

If \(x_1, x_2, x_3\) are the three roots of \(ax^3 + bx^2 + cx + d = 0\), then:

Special Cases

Applications of Cubic Equations

FAQ

What is a cubic equation?

A cubic equation is a polynomial equation of degree 3, written in the form ax³ + bx² + cx + d = 0, where a is not zero. Every cubic equation has exactly three roots, which may be real or complex numbers.

How does Cardano's formula work?

Cardano's formula solves cubic equations by first reducing the equation to a depressed cubic (without the x² term) through a substitution, then applying a formula involving cube roots. The depressed cubic t³ + pt + q = 0 is solved using t = cube_root(-q/2 + sqrt(q²/4 + p³/27)) + cube_root(-q/2 - sqrt(q²/4 + p³/27)).

What does the discriminant of a cubic equation tell you?

The discriminant determines the nature of the roots. If positive, there are three distinct real roots. If zero, there are repeated roots. If negative, there is one real root and two complex conjugate roots.

Can a cubic equation have all complex roots?

No. Every cubic equation with real coefficients has at least one real root. Complex roots always come in conjugate pairs, so a cubic has either three real roots or one real root and two complex conjugate roots.

What is Vieta's formulas for cubic equations?

Vieta's formulas relate the roots to the coefficients. For ax³ + bx² + cx + d = 0 with roots r1, r2, r3: the sum of roots equals -b/a, the sum of products of pairs equals c/a, and the product of all roots equals -d/a.

Reference this content, page, or tool as:

"Cubic Equation Solver" at https://MiniWebtool.com/cubic-equation-solver/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool.com team. Updated: 2026-03-29

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Algebra Calculators:

Top & Updated:

FTP & Power Zones CalculatorIcebreaker Question GeneratorDehumidifier Size CalculatorView all →
Home Page > Math > Algebra Calculators > Cubic Equation Solver