🧊 Algebra Solver

Cubic Equation Calculator

Solve cubic equations and find their real or complex roots with clear step-by-step calculations.

Cubic Polynomial Equation

Enter values to calculate instant result

ℹ️ Info
💡 Try:
Verified Solution

---

📖

How to Use & Educational Guide

In-depth guide for Cubic Equation Calculator

Educational Overview

What Is a Cubic Equation?

A cubic equation is a degree-3 polynomial equation in which the highest power of the variable is $3$, written in standard form as $ax^3 + bx^2 + cx + d = 0$ ($a \ne 0$). Every cubic equation has exactly three roots when complex roots and multiplicities are counted—either three real roots, or one real root and a pair of complex conjugate roots.

Cubic Equation Standard Form

The standard form of a cubic polynomial equation is:

$$ax^3 + bx^2 + cx + d = 0, \qquad a \ne 0$$

Here, $a$, $b$, and $c$ are coefficients and $d$ is the constant term. Solving the equation finds all values of $x$ (roots or zeros) where the cubic function $f(x) = ax^3 + bx^2 + cx + d$ equals zero.

How to Solve a Cubic Equation

You can solve most algebra cubic equations by factoring out a linear term first and reducing the remaining expression to a quadratic equation:

  1. Step 1 (Arrange in Standard Form): Move all terms to one side so the equation matches $ax^3 + bx^2 + cx + d = 0$.
  2. Step 2 (Factor Out Any GCF or Group Terms): If $d = 0$, factor out $x$; if there are four terms, check whether factoring by grouping works directly.
  3. Step 3 (Find a Rational Root): Use the Rational Root Theorem to test divisors of $\frac{d}{a}$ until you find a root $x = r$ that makes the polynomial equal $0$.
  4. Step 4 (Divide by $(x - r)$): Use synthetic division or polynomial long division to divide the cubic by $(x - r)$, leaving a quadratic equation.
  5. Step 5 (Solve the Remaining Quadratic): Factor the quadratic or apply the quadratic formula to find the other two roots.
  6. Step 6 (Verify All Three Roots): Plug the roots back into the original cubic equation or check their sum ($-b/a$).

Cubic Equation Examples

Example 1: Rational Root & Factoring $x^3 - 6x^2 + 11x - 6 = 0$

• Find a root: Testing $x = 1$ gives $1 - 6 + 11 - 6 = 0$, so $(x - 1)$ is a factor.

• Divide out $(x - 1)$: Dividing $x^3 - 6x^2 + 11x - 6$ by $(x - 1)$ yields $x^2 - 5x + 6$.

• Factor the quadratic: $x^2 - 5x + 6 = (x - 2)(x - 3) = 0$.

👉 Roots: $x = 1,\; 2,\; 3$

Example 2: Greatest Common Factor $x^3 - 4x = 0$

• Factor out $x$: $x(x^2 - 4) = 0$.

• Difference of squares: $x(x - 2)(x + 2) = 0$.

• Solve each factor: $x = 0$, $x = 2$, or $x = -2$.

👉 Roots: $x = -2,\; 0,\; 2$

Example 3: Factoring by Grouping $x^3 + 2x^2 - 9x - 18 = 0$

• Group in pairs: $(x^3 + 2x^2) - (9x + 18) = 0$.

• Factor each pair: $x^2(x + 2) - 9(x + 2) = (x^2 - 9)(x + 2) = 0$.

• Factor completely: $(x - 3)(x + 3)(x + 2) = 0$.

👉 Roots: $x = -3,\; -2,\; 3$

Example 4: One Real and Two Complex Roots $x^3 + x + 1 = 0$

• Check rational roots: Neither $x = 1$ nor $x = -1$ gives zero, so numerical or Cardano's cubic formula is used.

• Real root: $x \approx -0.6823$.

• Complex roots: $x \approx 0.3412 \pm 1.1615i$ (complex conjugate pair).

👉 Result: $1$ real root and $2$ complex roots

Sum and Product of Roots (Vieta's Formulas)

For any cubic equation $ax^3 + bx^2 + cx + d = 0$ with roots $r_1$, $r_2$, and $r_3$, Vieta's formulas link the roots directly to the coefficients:

$$r_1 + r_2 + r_3 = -\frac{b}{a}$$ $$r_1r_2 + r_1r_3 + r_2r_3 = \frac{c}{a}$$ $$r_1r_2r_3 = -\frac{d}{a}$$

Use these three identities to double-check your calculated roots in seconds without re-solving the equation.

Cubic Function Graph

A cubic function $y = ax^3 + bx^2 + cx + d$ forms an S-shaped curve with up to two turning points (one local maximum and one local minimum). Because both ends extend in opposite vertical directions ($-\infty$ to $+\infty$), every real cubic graph must cross the $x$-axis at least once—guaranteeing at least one real root.

Real-World Applications

📦 3D Geometry and Volume

Finding the dimensions of boxes, tanks, or spheres from a target volume leads directly to cubic polynomial equations.

📈 Engineering and Spline Curves

Cubic polynomials power computer graphics (Bézier and cubic splines), thermodynamics equations of state, and structural beam deflection models.

Common Mistakes to Avoid

  • Missing Zero Coefficients: In equations like $x^3 - 4x = 0$ or $x^3 + x + 1 = 0$, remember that the missing $x^2$ term has coefficient $b = 0$ when using synthetic division or Vieta's formulas.
  • Stopping After Finding One Root: Finding one root $r$ only gives the first linear factor $(x - r)$—always solve the remaining quadratic for the other two roots.
  • Dividing Both Sides by $x$: Never divide $x^3 - 4x = 0$ by $x$, as that loses the valid root $x = 0$—factor $x$ out instead.
  • Ignoring Complex Roots: When the reduced quadratic has a negative discriminant, its two roots are complex conjugates rather than real numbers.

Mathematical accuracy verified by AptCalc Engine

Frequently Asked Questions (FAQs)

Answers to common questions about this calculator

How many roots does a cubic equation have?
A cubic equation always has three roots when complex roots and repeated roots are counted—either three real roots, or one real root and two complex conjugate roots.
What is the standard form of a cubic equation?
The standard form of a cubic equation is ax³ + bx² + cx + d = 0, where a ≠ 0.
How do you solve and factorise a cubic equation?
Find one root r by factoring out a GCF, grouping terms, or testing rational factors of d/a. Divide the cubic polynomial by (x - r) using synthetic or long division to get a quadratic, then solve that quadratic by factoring or the quadratic formula.
What is the sum of the roots of a cubic equation?
For ax³ + bx² + cx + d = 0, Vieta's formula states that the sum of the three roots is r₁ + r₂ + r₃ = -b/a, and their product is r₁r₂r₃ = -d/a.
Can a cubic equation have no real roots?
No. Every cubic equation with real coefficients has at least one real root because its graph extends from -∞ to +∞ and must cross the x-axis at least once.
Explore More Tools

Discover Other Calculation Suites

Browse our full ecosystem of precision calculation and conversion tools