Cubic Equation Calculator
Use this Cubic Equation Calculator to solve equations of the form \( ax^3 + bx^2 + cx + d = 0 \). Enter the coefficients \( a \), \( b \), \( c \), and \( d \), then the calculator will find all three roots, identify whether the roots are real or complex, show the discriminant, and explain how the equation behaves.
A cubic equation is a polynomial equation with degree \( 3 \). That means its highest power of \( x \) is \( x^3 \). Cubic equations can have three real roots, one real root and two complex roots, repeated roots, or special factorable patterns. This page gives you a working calculator, the cubic formula structure, discriminant rules, step-by-step solving methods, worked examples, common mistakes, and FAQs in one WordPress-ready section.
Cubic equation form
\( a \ne 0 \). If \( a = 0 \), the equation is not cubic.
A cubic equation has exactly three roots when counted with multiplicity over the complex number system.
Solve a cubic equation
Enter the coefficients for \( ax^3 + bx^2 + cx + d = 0 \). For example, the equation \( x^3 - 6x^2 + 11x - 6 = 0 \) has \( a=1 \), \( b=-6 \), \( c=11 \), and \( d=-6 \).
Result
What is a cubic equation?
A cubic equation is a polynomial equation whose highest power of the variable is \( 3 \). The standard form is \( ax^3 + bx^2 + cx + d = 0 \), where \( a \), \( b \), \( c \), and \( d \) are constants and \( a \ne 0 \). The coefficient \( a \) is important because it controls the cubic term. If \( a = 0 \), the equation no longer has an \( x^3 \) term, so it becomes a quadratic equation, linear equation, or constant equation instead of a cubic.
Cubic equations are important because they are the next major polynomial family after linear and quadratic equations. A linear equation has degree \( 1 \), a quadratic equation has degree \( 2 \), and a cubic equation has degree \( 3 \). The degree tells you the highest exponent and also gives important information about the number of roots. By the Fundamental Theorem of Algebra, a cubic equation has exactly three roots over the complex numbers when roots are counted with multiplicity.
In practical terms, a cubic equation can have three real roots, one real root and two complex conjugate roots, or repeated roots. The graph of a cubic function can cross the \( x \)-axis once, twice with tangency/repetition, or three times. The roots of the cubic equation are the \( x \)-values where the graph meets or touches the \( x \)-axis. This is why solving cubic equations is connected to graphing, factoring, optimization, physics, engineering, economics, and modeling curved relationships.
Cubic equation formula and root structure
The general cubic equation is:
To solve a cubic by formula, the first step is often to convert the standard cubic into a depressed cubic. A depressed cubic removes the squared term. This is done by substituting:
After this substitution, the cubic becomes:
where:
Cardano’s formula solves the depressed cubic by using:
This formula explains the algebraic structure of cubic roots, but direct numerical solving is often more stable and easier to display in a web calculator because complex cube roots and repeated-root cases can make Cardano’s formula visually complicated. The calculator above uses numerical complex-root iteration to return all roots, while the guide explains the exact formulas and interpretation.
Discriminant of a cubic equation
The discriminant helps classify the roots of a cubic equation without solving the equation completely. For the cubic \( ax^3 + bx^2 + cx + d = 0 \), the discriminant is:
The sign of the discriminant gives useful information:
| Discriminant condition | Root pattern | Graph meaning |
|---|---|---|
| \( \Delta > 0 \) | Three distinct real roots | The cubic graph crosses the \( x \)-axis three times |
| \( \Delta = 0 \) | Multiple root; all roots are real and at least two are equal | The graph touches or crosses with repeated contact |
| \( \Delta < 0 \) | One real root and two non-real complex conjugate roots | The graph crosses the \( x \)-axis once |
The discriminant is especially useful when you want to understand the nature of the answer before looking at the actual roots. For example, if \( \Delta > 0 \), you know the equation has three distinct real roots. If \( \Delta < 0 \), you know only one root is real and the other two are complex conjugates. If \( \Delta = 0 \), the equation has a repeated root.
How to solve a cubic equation step by step
There is more than one way to solve a cubic equation. The best method depends on the coefficients and the expected answer form. Some cubic equations factor nicely. Others require numerical methods or the cubic formula. In school algebra, factoring and rational root testing are often used first. In advanced algebra, Cardano’s formula may be introduced. In calculator work, numerical root-finding is usually the fastest and most flexible method.
- Write the equation in standard form. Move all terms to one side so the equation looks like \( ax^3 + bx^2 + cx + d = 0 \). Make sure the \( x^3 \) coefficient \( a \) is not zero.
- Identify the coefficients. Read off \( a \), \( b \), \( c \), and \( d \). Include signs carefully. For \( x^3 - 6x^2 + 11x - 6 = 0 \), the coefficients are \( a=1 \), \( b=-6 \), \( c=11 \), and \( d=-6 \).
- Check for simple rational roots. If the coefficients are integers, possible rational roots often come from factors of \( d \) divided by factors of \( a \). Try simple values such as \( 1 \), \( -1 \), \( 2 \), and \( -2 \) when appropriate.
- Factor if a root is found. If \( r \) is a root, then \( x-r \) is a factor. Divide the cubic by \( x-r \) to get a quadratic factor.
- Solve the remaining quadratic. Use factoring, completing the square, or the quadratic formula: \( x = \frac{-b \pm \sqrt{b^2-4ac}}{2a} \), applied to the remaining quadratic.
- Use the discriminant to classify roots. The cubic discriminant helps determine whether the equation has three real roots, one real root and two complex roots, or repeated roots.
- Use numerical solving when factoring is difficult. Many cubic equations do not factor neatly over the rational numbers. A calculator can find numerical real and complex roots efficiently.
- Verify the result. Substitute each root back into \( ax^3 + bx^2 + cx + d \). The result should be close to zero, allowing for rounding.
Worked example: \( x^3 - 6x^2 + 11x - 6 = 0 \)
Consider the cubic equation:
Here \( a=1 \), \( b=-6 \), \( c=11 \), and \( d=-6 \). Since the coefficients are integers, we can look for rational roots. The possible integer roots include factors of \( 6 \), such as \( \pm1, \pm2, \pm3, \pm6 \).
Test \( x=1 \):
Since the result is zero, \( x=1 \) is a root, and \( x-1 \) is a factor. Dividing the cubic by \( x-1 \) gives:
Now factor the quadratic:
Therefore:
The roots are:
This example has three distinct real roots. Its discriminant is positive, which matches the root pattern. On a graph, the cubic crosses the \( x \)-axis at \( x=1 \), \( x=2 \), and \( x=3 \).
Worked example with complex roots: \( x^3 - 1 = 0 \)
The equation \( x^3 - 1 = 0 \) may look as if it has only one answer, because \( x=1 \) is easy to see. But over the complex numbers, a cubic equation has three roots. We can factor the difference of cubes:
The first root is \( x=1 \). The remaining roots come from:
Use the quadratic formula:
So the three roots are:
This example shows why a cubic calculator should include complex roots. If it only shows real roots, it gives an incomplete picture of the polynomial.
Factoring methods for cubic equations
Many classroom cubic problems are designed to factor. Factoring is often the cleanest method because it gives exact answers. A cubic can sometimes be factored by grouping, by using special identities, or by finding a rational root first. Once one linear factor is found, the remaining factor is quadratic, and the quadratic formula can finish the problem.
Common cubic identities include:
These identities are useful for equations such as \( x^3 - 8 = 0 \) or \( x^3 + 27 = 0 \). For example:
The root \( x=2 \) is real, and the quadratic factor gives the remaining two complex roots. This pattern is very common in algebra and precalculus.
How to interpret cubic roots
The roots of a cubic equation are the values of \( x \) that make the polynomial equal zero. If the polynomial is written as \( f(x)=ax^3+bx^2+cx+d \), then the roots are the solutions to \( f(x)=0 \). A real root corresponds to an \( x \)-intercept of the graph. A complex root does not appear as an \( x \)-intercept on the real coordinate plane, but it is still a valid algebraic solution.
Cubic roots can be distinct or repeated. If a root appears more than once, it has multiplicity greater than one. For example:
This equation has roots \( x=2 \), \( x=2 \), and \( x=-1 \). The root \( x=2 \) has multiplicity \( 2 \). On the graph, repeated roots often create a touch or flattening behavior at the \( x \)-axis. If the multiplicity is even, the graph may touch and turn around. If the multiplicity is odd, the graph usually crosses.
Complex roots of real-coefficient polynomials come in conjugate pairs. That means if \( 2+3i \) is a root of a polynomial with real coefficients, then \( 2-3i \) is also a root. This is why a cubic with real coefficients and one non-real complex root must have another non-real complex root paired with it. Since a cubic has three roots total, that leaves exactly one real root.
Common mistakes when solving cubic equations
- Forgetting that \( a \ne 0 \). If the coefficient of \( x^3 \) is zero, the equation is not cubic. It may be quadratic or linear instead.
- Missing complex roots. A cubic has three roots over the complex numbers. If only one real root is listed, there may still be two complex roots.
- Using the quadratic formula on the whole cubic. The quadratic formula only applies to degree \( 2 \). A cubic must be factored first or solved with a cubic method.
- Losing signs in the coefficients. In \( x^3 - 6x^2 + 11x - 6 \), the coefficients are \( 1, -6, 11, -6 \), not \( 1, 6, 11, 6 \).
- Stopping after finding one root. Finding one root is only the beginning. Use division or another method to find the remaining two roots.
- Confusing repeated roots with missing roots. A cubic may have repeated roots. For example, \( (x-1)^3=0 \) has three roots counted with multiplicity, but all are \( 1 \).
- Rounding too early. If roots are approximate, substitute the rounded values back into the equation carefully. Small residual errors may come from rounding, not from a wrong method.
FAQ
What is a cubic equation?
A cubic equation is a polynomial equation of degree \( 3 \). Its standard form is \( ax^3 + bx^2 + cx + d = 0 \), where \( a \ne 0 \).
How many roots does a cubic equation have?
A cubic equation has exactly three roots over the complex numbers when counted with multiplicity. The roots may all be real, or one may be real while two are complex conjugates.
Can a cubic equation have complex roots?
Yes. A cubic equation with real coefficients can have one real root and two non-real complex conjugate roots. Complex roots are valid solutions even though they do not appear as real \( x \)-intercepts.
What does the cubic discriminant tell you?
The discriminant tells the nature of the roots. If \( \Delta > 0 \), there are three distinct real roots. If \( \Delta = 0 \), there is a repeated root. If \( \Delta < 0 \), there is one real root and two complex roots.
What is Cardano’s formula?
Cardano’s formula is the classical algebraic formula for solving cubic equations. It usually begins by converting the cubic into depressed form \( t^3+pt+q=0 \), then using cube roots to find the solutions.
What happens if \( a = 0 \)?
If \( a = 0 \), the equation is not cubic because the \( x^3 \) term disappears. The calculator may treat it as a lower-degree equation, but it is no longer a cubic equation.
Related tools and guides
Cubic equations connect naturally to polynomial roots, quadratic equations, radicals, complex numbers, and graphing. Use these related Num8ers resources as the next step when building an algebra study pathway.