Cubic Equation Calculator
Solve cubic equations and find their real or complex roots with clear step-by-step calculations.
---
Visual Graph & Diagram
Interactive mathematical coordinate representation
Calculation Reference Table
Benchmark values and quick reference intervals
How to Calculate Cubic Equation Calculator
Step-by-Step Mathematical Solution & Verification
How to Use & Educational Guide
In-depth guide for Cubic Equation Calculator
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:
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:
- Step 1 (Arrange in Standard Form): Move all terms to one side so the equation matches $ax^3 + bx^2 + cx + d = 0$.
- 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.
- 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$.
- Step 4 (Divide by $(x - r)$): Use synthetic division or polynomial long division to divide the cubic by $(x - r)$, leaving a quadratic equation.
- Step 5 (Solve the Remaining Quadratic): Factor the quadratic or apply the quadratic formula to find the other two roots.
- 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:
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?
What is the standard form of a cubic equation?
How do you solve and factorise a cubic equation?
What is the sum of the roots of a cubic equation?
Can a cubic equation have no real roots?
Discover Other Calculation Suites
Browse our full ecosystem of precision calculation and conversion tools
Mathematics Suite
Percentages, Algebra, Fractions, Geometry, and step-by-step math solvers.
Date & Time Tools
Days ago, days from today, business days, and calendar date calculators.
Unit Converter
Convert length, weight, volume, temperature, and international units.
Countdown Tracker
Live real-time event countdowns, holidays, and deadline trackers.
Explore Related Calculators
More tools in Algebra
Simplify Algebraic Expressions
Step-By-Step Solver
Evaluate Expression Calculator
Step-By-Step Solver
Combine Like Terms Calculator
Step-By-Step Solver
Expand Algebraic Expressions (FOIL)
Step-By-Step Solver
Linear Equation Solver (ax + b = c)
Step-By-Step Solver
One-Step Equation Calculator
Step-By-Step Solver