Cubic Equation Calculator

AlgebraFreeNo sign-up

A cubic equation ax³ + bx² + cx + d = 0 always has three roots, counted with multiplicity, and at least one is real. For x³ − 6x² + 11x − 6 = 0 the roots are 1, 2 and 3, because the cubic factors as (x − 1)(x − 2)(x − 3).

FreeStep by stepExact rootsGraph
Try:
Roots of the cubic
\(\displaystyle x = 1,\quad 3,\quad 2\)
\(x^{3} – 6x^{2} + 11x – 6 = 0\) has three real roots, found exactly with the rational root theorem.
xy0.51.01.52.02.53.03.5−3−2−1123132

Real roots are where the curve crosses the x-axis.

Roots
x1 1
x2 3
x3 2
Checks (Vieta)
Sum of roots = −b/a 6
Product of roots = −d/a 6
Turning points at x 2.57735 and 1.42265
Show steps
  1. Rational root theorem: any rational root is ±p/q with p dividing 6 and q dividing 1.
  2. Test the candidates: x = 1 makes the left side 0, so (x − 1) is a factor.
  3. Divide (synthetic division) to get the quadratic factor 1x² − 5x + 6.
  4. Solve 1x² − 5x + 6 = 0 with the quadratic formula: discriminant = -5² − 4(1)(6) = 1.

How to use the cubic equation calculator

  1. Write your equation as ax³ + bx² + cx + d = 0 (move everything to one side).
  2. Enter a, b, c and d. Use 0 for a missing term, and decimals are fine.
  3. Press Solve. You get the roots, the method, a check with Vieta’s formulas and a graph.

Method 1: rational root theorem and factoring

If the coefficients are integers, any rational root is ±p/q, where p divides d and q divides a. Test the candidates; when one works, divide by (x − root) to get a quadratic, then use the quadratic formula. Example: for 2x³ − 3x² − 11x + 6, x = 3 works, and 2x³ − 3x² − 11x + 6 = (x − 3)(2x² + 3x − 2) = (x − 3)(2x − 1)(x + 2).

Method 2: Cardano and the trigonometric method

Substitute x = t − b/(3a) to remove the x² term, giving t³ + pt + q = 0. The discriminant Δ = −(4p³ + 27q²) decides the case:

  • Δ > 0: three different real roots (use the cosine formula).
  • Δ = 0: a repeated root.
  • Δ < 0: one real root and two complex conjugates (use Cardano’s formula).

Checking your roots

For roots r₁, r₂, r₃ of ax³ + bx² + cx + d: r₁ + r₂ + r₃ = −b/a, r₁r₂ + r₁r₃ + r₂r₃ = c/a and r₁r₂r₃ = −d/a. For x³ − 6x² + 11x − 6: 1 + 2 + 3 = 6 and 1 · 2 · 3 = 6.

Cubic equations practice quiz: 10 questions

Test yourself with 10 multiple-choice questions. Choose an answer and press Submit to see if you are right and why. Your score appears at the end.

Question 1 of 10
1. How many roots (with multiplicity) does a cubic have?

Found a mistake? Let us know!

2. Must a real cubic have a real root?

Found a mistake? Let us know!

3. Roots of (x − 1)(x + 2)(x − 4) = 0?

Found a mistake? Let us know!

4. Possible rational roots of x³ − 2x + 4?

Found a mistake? Let us know!

5. Is x = 2 a root of x³ − 8?

Found a mistake? Let us know!

6. The sum of the roots of x³ − 5x² + 2x + 8 is…

Found a mistake? Let us know!

7. The product of the roots of x³ − 5x² + 2x + 8 is…

Found a mistake? Let us know!

8. Factor x³ − x.

Found a mistake? Let us know!

9. x³ + 1 = 0 has how many real roots?

Found a mistake? Let us know!

10. Complex roots of a real cubic come in…

Found a mistake? Let us know!

Frequently asked questions

How do you solve a cubic equation step by step?

Look for a rational root with the rational root theorem, divide it out with synthetic division, and solve the remaining quadratic. If there is no rational root, use Cardano's formula or the trigonometric method.

Is there a cubic formula?

Yes. Cardano's formula solves any cubic, but it is long and can require complex numbers even when all roots are real. The calculator picks the cleanest method.

Can a cubic have no real roots?

No. A real cubic always crosses the x-axis at least once.

What if a = 0?

Then the equation is quadratic. Use the quadratic formula calculator.

Why are some roots shown as decimals?

When no root is rational, exact forms involve cube roots and are usually messy, so the calculator gives accurate decimals.

Sources

Related calculators

Browse all calculators

More algebra calculators

Browse all 458 calculators

Related to This Article

What people say about "Cubic Equation Calculator: Solve ax³ + bx² + cx + d = 0"?

No one replied yet.

Leave a Reply