ThisCalculator

Conversions

Cubic Polynomial Root Calculator: Find All Roots

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

Cubic Polynomial Root Calculator: Find All Roots

A cubic polynomial root calculator finds the values of x that make a third-degree polynomial equal zero. Enter its four coefficients, from the x³ term through the constant term, and the calculator returns the real and complex roots, including repeated roots when applicable.

Formula

The calculator solves the equation ax³ + bx² + cx + d = 0. Here, a, b, c, and d are the entered coefficients, and x is the unknown root. The coefficient a must not be zero; otherwise the equation is quadratic or lower degree, not cubic. Coefficients have no required physical units, but they must be entered consistently.

The roots are the solutions of this equation. In the example calculator block, the first, second, and third real roots are shown as outputs. These default values describe x³ − 6x² + 11x − 6 = 0, which factors as (x − 1)(x − 2)(x − 3) = 0, giving roots 1, 2, and 3.

Worked Example

Using the defaults in the calculator:

  • a = 1, b = −6, c = 11, and d = −6.
  • Substitute them into the polynomial: x³ − 6x² + 11x − 6 = 0.
  • Factor the polynomial: (x − 1)(x − 2)(x − 3) = 0.
  • Set each factor to zero: x = 1, x = 2, or x = 3.

The results are 1.0000, 2.0000, and 3.0000 to four decimal places, matching the calculator outputs.

What the Roots Mean

A root is an input value that makes the polynomial’s output zero. On a graph of y = ax³ + bx² + cx + d, every real root is an x-coordinate where the curve touches or crosses the x-axis. A cubic has three roots when multiplicity is counted, but not necessarily three distinct real roots.

Depending on its coefficients, a cubic can have:

  • Three distinct real roots.
  • One real root and a pair of non-real complex conjugate roots.
  • Repeated roots, such as one simple root and one double root, or a triple root.

Complex roots have the form u + vi, where i² = −1. Real-coefficient polynomials produce complex roots in conjugate pairs: if u + vi is a root, then u − vi is also a root. A calculator that displays only real roots is therefore incomplete for some cubics; check whether the tool reports complex solutions as well.

How a Cubic Solver Works

Some cubics factor neatly, as the worked example does. In general, a solver first checks the coefficients and then applies a numerical method or a closed-form method based on reducing the equation to a simpler cubic form. It may use a transformation to remove the squared term, then evaluate the resulting cubic’s discriminant to determine the pattern of roots.

For a general cubic with real coefficients, the discriminant can distinguish three distinct real roots from one real root plus a complex pair. A zero discriminant signals at least one repeated root. These classifications describe the exact mathematical structure; a numerical calculator then approximates roots to a chosen display precision. Different solvers may use different algorithms and rounding, so the last displayed digits can vary.

When to Use a Cubic Root Calculator

Use one when solving a third-degree equation by hand would be tedious, when roots are not obvious integers, or when you need to check algebra. It can also help translate between an equation and its graph: real roots identify the x-axis intercepts, while repeated roots correspond to a curve that meets the axis without necessarily crossing it.

Before entering values, write the equation in standard form, with zero on one side and terms in descending powers of x. For example, change 2x³ + 3x = 5x² + 7 into 2x³ − 5x² + 3x − 7 = 0. The coefficients are then 2, −5, 3, and −7, including a coefficient for every power, even when a term is absent. A missing x² term, for instance, means its coefficient is 0.

Common Input and Result Problems

  • Wrong coefficient order: The inputs correspond to x³, x², x, and the constant, in that order. They are not the roots themselves.
  • Sign errors: Keep negative signs when moving terms to one side. A sign change can produce an entirely different polynomial.
  • Zero leading coefficient: If a = 0, the equation is not cubic. Use a solver for its actual degree.
  • Rounding mistaken for error: Rounded roots may not make the displayed polynomial exactly zero. Substitute using more digits, or compare the residual—the polynomial’s value at the approximate root.
  • Repeated roots shown more than once: A solver may list a repeated root twice or three times because the root’s multiplicity counts toward the cubic’s total of three roots.

For a useful check, substitute each reported root into the original polynomial. The result should be zero for an exact root, or close to zero for a rounded numerical approximation. The size of a residual should be judged in context because scaling every coefficient changes the polynomial’s numerical values without changing its roots.

Frequently Asked Questions

How many roots does a cubic polynomial have?
A cubic has three roots over the complex numbers when multiplicity is counted. It has either one or three real roots, also counting repeated roots.

Can a cubic have no real roots?
No. Every cubic with real coefficients has at least one real root. Its other two roots are either real or a complex-conjugate pair.

What if a coefficient is missing?
Enter zero for that coefficient. For example, x³ − 4x + 1 = 0 has coefficients 1, 0, −4, and 1.

Why does my answer differ slightly from another calculator?
Solvers can use different numerical methods and show different numbers of decimal places. Compare extra digits or substitute the answers into the same polynomial to check their accuracy.

Can I use the calculator for a quadratic equation?
Not as a cubic: a zero coefficient on x³ makes the equation lower degree. Use a quadratic solver, or simplify the equation and select the appropriate tool.

Related

Formula used
in a | Coefficient of x^3 | - | 1 | 
in b | Coefficient of x^2 | - | -6 |
in c | Coefficient of x | - | 11 |
in d | Constant term | - | -6 |
out r1 | First real root | - | 1 | 4
out r2 | Second real root | - | 2 | 4
out r3 | Third real root | - | 3 | 4

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.