Cubic Equation Solver

Quick answer

A cubic equation solver finds the roots of a x cubed plus b x squared plus c x plus d equals zero. Enter the four coefficients and it returns up to three roots, real or complex. The equation x cubed minus 6 x squared plus 11 x minus 6 has the roots 1, 2 and 3.

Updated 2026-09-09By Shakeel MuzaffarReviewed by Prof. Dr. Khalil Mudassar, PhD
Try
Algebra
The number in front of x cubed. It cannot be zero for a cubic.
The number in front of x squared.
The number in front of x.
The constant term.
Roots
--
Number of real roots--
Nature--

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How to Use the Cubic Equation Solver

  1. Write your equation as a x^3 + b x^2 + c x + d = 0.
  2. Enter the four coefficients a, b, c and d.
  3. Read the roots, whether real or complex.
  4. See how many are real and the nature of the solution.

Here is what each result means:

ResultWhat it means
RootsThe values of x that make the equation zero.
Number of real rootsEither one or three for a cubic.
NatureWhether roots are distinct, repeated or complex.

What Is a Cubic Equation?

A cubic equation is a third-degree equation of the form a x^3 + b x^2 + c x + d = 0, where a is not zero. Its graph is a curve that can bend twice, and it always crosses the x-axis at least once. So a cubic has one or three real roots, and any roots that are not real come as a complex pair.

Cubics appear in geometry, physics and engineering, wherever a volume, a curve or a balance leads to a third-degree relation. Solving one by hand is much harder than a quadratic, which is why a solver that handles every case is so useful.

How Does the Cubic Solver Work?

It divides through by the leading coefficient, then applies the standard cubic method to find all three roots.

Idea: reduce the cubic to a simpler depressed form, compute a discriminant, and read off real or complex roots.
  1. Normalize the equation so the leading coefficient is one.
  2. Form the discriminant to decide the type of roots.
  3. Use radicals for one real root, or a trigonometric form for three real roots.

If the leading coefficient is zero, the equation is really a quadratic; the quadratic equation calculator handles that case.

Cubic Equation Example

Solve x^3 - 6x^2 + 11x - 6 = 0.

Calculation: this cubic factors as (x - 1)(x - 2)(x - 3), so the three real roots are 1, 2 and 3. The solver reaches the same answer directly from the coefficients, without needing you to spot the factors.

How Many Roots a Cubic Has

The discriminant decides the mix of real and complex roots.

CaseRootsGraph
Discriminant positiveOne real, two complexCrosses the x-axis once
Discriminant zeroThree real, a repeatTouches the x-axis
Discriminant negativeThree distinct realCrosses the x-axis three times

Whatever the case, a cubic always has at least one real root, because its curve runs from far below to far above the axis.

Cubic vs Quadratic Equations

A cubic is a step up in degree, and in difficulty, from a quadratic.

FeatureQuadraticCubic
Highest powerx squaredx cubed
Number of rootsUp to 2Exactly 3, counting repeats
Real roots0 or 21 or 3
Solved byThe quadratic formulaThe cubic method or factoring

Unlike a quadratic, a cubic can never have zero real roots, since its curve must cross the axis at least once.

What Affects the Roots

The Discriminant

Its sign sets whether you get one real root with a complex pair, or three real roots.

The Leading Coefficient

It stretches the curve and sets which way the ends point, but a of zero makes it a quadratic.

The Constant Term

It shifts the curve up or down, moving where it crosses the x-axis.

When to Use a Cubic Equation Solver

Algebra Homework

Find roots that do not factor neatly, including complex ones.

Geometry and Volume

Solve a third-degree relation for a length when a volume is fixed.

Physics and Engineering

Handle cubic relations that arise in equations of state or stability.

Common Mistakes

1. Missing a Root

A cubic has three roots counting repeats. Do not stop at the first one you find.

2. Ignoring Complex Roots

When only one root is real, the other two are complex, not nonexistent.

3. Treating It as a Quadratic

If a is not zero, it is a cubic. Only a of zero drops it to a quadratic.

4. Sign Errors in Coefficients

Move every term to one side first and read the signs carefully.

5. Rounding Too Soon

Small rounding can hide a neat whole-number root. Keep precision and round at the end.

Accuracy and Limitations

The method is exact; only the displayed decimals are rounded.

What it calculates accurately

  • All three roots, real or complex
  • The number of real roots
  • Whether roots are distinct or repeated

What it does not do

  • Solve higher-degree equations
  • Show factoring steps
  • Give exact surd or fraction forms
  • Graph the curve visually

How We Solve Your Cubic

Method
Normalize, form a discriminant, then use radicals or a trigonometric form for the roots.
Inputs used
Coefficients a, b, c and d.
Assumptions
A true cubic with a not zero; a of zero is treated as a quadratic.
Rounding
Roots to four decimals.
Edge cases
A zero discriminant gives a repeated root; a positive one gives a complex pair.
Sources
See Sources below.
Last reviewed
2026-09-08.

Frequently Asked Questions

How do you solve a cubic equation?

Write it as a x cubed plus b x squared plus c x plus d equals zero, then apply the cubic method. This tool normalizes the equation and returns all three roots, real or complex, from the coefficients.

How many roots does a cubic have?

Exactly three, counting repeats. Either all three are real, or one is real and the other two are a complex pair. A cubic always has at least one real root.

Can a cubic have no real roots?

No. Unlike a quadratic, a cubic curve runs from far below the axis to far above it, so it must cross at least once. There is always at least one real root.

What are complex roots of a cubic?

When only one root is real, the other two are complex numbers that form a conjugate pair, with equal real parts and opposite imaginary parts. This happens when the discriminant is positive.

What if the leading coefficient is zero?

Then it is not a cubic. With a of zero the highest power is x squared, so it is a quadratic. Use a quadratic solver, which this tool points you to.

Is there a cubic formula like the quadratic one?

Yes, but it is far more complex. This solver uses the standard cubic method, including a trigonometric form for the case of three real roots, so you do not have to work through it by hand.

Why might my roots look slightly off?

Results are rounded to four decimals for display. A root that is really a whole number can show a tiny rounding difference in the last place.

How is a cubic different from a quadratic?

A cubic has x cubed as its highest power and exactly three roots counting repeats, while a quadratic tops out at x squared with up to two roots. A cubic always has at least one real root.

Is my information saved?

No. The calculation runs in your browser and nothing you enter is stored or sent anywhere, unless you choose Save, which keeps the result only on this device.

Sources

Related Calculators

Looking for more algebra tools?

Explore all math calculators

This solver finds the roots of a cubic equation using the standard cubic method. Results are rounded for display, so a root that is really a whole number may show a tiny rounding difference. A leading coefficient of zero is treated as a quadratic. Spotted an error? Let us know.

Author

shakeel-Muzaffar
Founder & Editor-in-Chief at  ~ Web ~  More Posts

Shakeel Muzaffar is the Founder and Editor-in-Chief of MultiCalculators.com, bringing over 15 years of experience in digital publishing, product strategy, and online tool development. He leads the platform's editorial vision, ensuring every calculator meets strict standards for accuracy, usability, and real-world value. Shakeel personally oversees content quality, formula verification workflows, and the platform's commitment to publishing tools that are genuinely useful for students, professionals, and everyday users worldwide.