Cubic Equation Solver logo
Cubic Equation Solver

Cubic Equation solver

Solve cubic equations and understand every result clearly with roots, graph insights, and guided steps.

Cubic Equation calculator

Enter Polynomial Coefficients

Enter coefficients and solve to view roots, formulas, graph states, and step-by-step explanation.

Solve roots, formulas, and derived measures

Cubic Solution Workspace

Enter coefficients and solve to view roots, formulas, graph states, and step-by-step explanation.

Cubic Diagram

Real x-interceptsNo real x-intercepts
Y-intercept(0, 0)
Inflection point(0, 0)
Turning pointsNo local max or min

What Is a Cubic Equation?

A cubic equation is a third-degree polynomial equation of the form ax³ + bx² + cx + d = 0, where the leading coefficient a must be non-zero. The word \"cubic\" refers to the highest power of the variable, which is three. Just as quadratic equations (degree two) describe parabolas, cubic equations describe S-shaped curves that can cross the x-axis up to three times.

Cubic equations have a rich history dating back to ancient civilizations. The first general algebraic solution was discovered by Scipione del Ferro around 1515 and published by Girolamo Cardano in 1545 in his landmark book Ars Magna. This was centuries before computers, yet mathematicians found exact formulas for every possible cubic — a remarkable achievement that transformed algebra.

Today, cubic equations appear everywhere: in engineering optimization, physics simulations, computer graphics (Bézier curves), economic modeling, and scientific research. Whether you are a student learning polynomial theory or an engineer solving a design constraint, understanding cubics is essential. This page provides the calculator, the theory, and the worked examples you need to master them.

Anatomy of a Cubic Curve

xyLocal MaxLocal MinInflection pointx1x2x3Y-int (0, d)
Roots
x1, x2, x3
Turning Pts
Max & Min
Inflection
b/(3a)
Y-intercept
f(0) = d

Cubic Definition and Structure

Every cubic equation can be written in the standard form ax³ + bx² + cx + d = 0. The four coefficients a, b, c, and d completely determine the shape, position, and behavior of the cubic curve. Changing any single coefficient transforms the graph — stretching it, shifting it, or altering where it crosses the axes.

The leading coefficient a is the most important because it controls whether the curve rises to the right (a positive) or falls to the right (a negative). It also affects the steepness of the curve. The coefficient b shifts the inflection point horizontally, c affects the slope near the origin, and d sets the y-intercept — the exact point where the curve crosses the vertical axis.

Standard notation used in the solver

aax³

Leading coefficient must be non-zero. Controls end behavior and curve direction.

bbx²

Quadratic coefficient shifts the curvature and moves the inflection point horizontally.

ccx

Linear coefficient affects the slope at the origin and overall steepness of the curve.

dd (constant)

Constant term the y-intercept where the curve crosses the vertical axis.

Core Cubic Formulas You Need First

Before solving any cubic, identify known coefficients, then choose the correct symbolic route.

Reduction formulas

Substitution

x = t - b/(3a)

Depressed Form

t^3 + pt + q = 0

Discriminant

Delta = (q/2)^2 + (p/3)^3

Geometry and graph formulas

Y-intercept

f(0) = d

Inflection X

x = -b/(3a)

Turning points

Solve f'(x) = 3ax^2 + 2bx + c = 0

How To Solve Any Cubic Equation

Every cubic equation can be solved by following a systematic five-step process. This method works for all cubics regardless of their coefficients, whether the roots are real or complex, and whether they are repeated or distinct. The discriminant at step three determines which mathematical branch to use for the final computation.

01

Write the equation in standard form and validate a != 0.

02

Normalize and reduce to depressed cubic form.

03

Evaluate discriminant to select the numeric branch.

04

Compute roots and transform back to x-space.

05

Verify roots by substitution and graph checks.

Discriminant Decision Tree

Delta = (q/2)^2 + (p/3)^3Delta > 01 real root+ 2 complex conjugatesDelta = 0Repeated real rootsTriple or double rootDelta < 03 distinct real rootsTrigonometric method-> Cardano branch-> Repeated-root path-> Cosine method

How This Solver Presents Step-by-Step Results

Unlike general-purpose math tools that simply output a number, this solver is designed to show the complete mathematical reasoning behind every cubic equation solution. Each result includes the formula used, the exact values substituted, the computed roots with their classification, and an interpretation of what the discriminant tells you about the curve. This transparency helps students learn the method, teachers verify student work, and professionals audit their calculations.

*

Formula: exact relation used for the current branch.

*

Substitution: values inserted into the symbolic equation.

*

Answer: root set with real/complex type labels.

*

Explanation: short interpretation of discriminant and curve shape.

Choose the Right Calculator by Goal

For root solving

  • >Use the main cubic solver for complete root sets.
  • >Use formula pages when verifying symbolic steps.
  • >Use examples for exam-style practice cases.

For graph analysis

  • >Use graphing page for turning points and inflection checks.
  • >Use types page to map equation shape categories.

Practical Use Cases

Classroom and exam preparation with transparent solution paths.

Engineering prototyping where polynomial roots define constraints.

Data curve fitting and simulation checkpoints.

Control and optimization tasks requiring reliable root classification.

Accuracy Checklist Before You Finalize

Confirm a is non-zero and inputs are numeric.

Avoid early rounding in intermediate steps.

Check residual f(x) values for each computed root.

Use graph states to validate intercept and turning behavior.

Cross-check with examples when precision is critical.

How Cubic Equation Solver works

From input to proof-ready output in three clean steps.

1. Enter known values

Provide all four coefficients and keep numeric format clean.

2. Solve instantly

The solver applies cubic reduction and discriminant branching in real time.

3. Validate the geometry

Use graph labels, states, and residual checks to verify the solution.

Reference Values

Reference Values

Compare common cubic families and typical root outcomes.

Equation

x³ - 6x² + 11x - 6 = 0

Root Signature

1.000, 2.000, 3.000

Equation

x³ - 3x² + 3x - 1 = 0

Root Signature

1.000 (triple)

Equation

x³ + x + 1 = 0

Root Signature

-0.682 + complex pair

Equation

x³ - 4x = 0

Root Signature

-2.000, 0.000, 2.000

Solving Pipeline

End-to-End Cubic Solving Pipeline

Every cubic equation flows through the same five-stage pipeline, from raw coefficients to verified roots.

Inputa, b, c, d1Normalize/ by a2ReduceDepressed3SolveDelta branch4Verifyf(x) ~ 05Enter 4coefficientsDivide allterms by ax = t - b/(3a)substitutionCardano ortrig methodSubstitutioncheck

Why Use This Cubic Equation Solver?

Built specifically for cubic polynomials, this tool offers precision, transparency, and speed that general-purpose calculators cannot match.

Cubic-Only Focus

No distractions from other polynomial degrees. Every feature is tuned for third-degree equations.

Step-by-Step Transparency

See the full derivation from normalization to root extraction - not just the final answer.

Live Graph Visualization

Interactive SVG graph updates as you type, showing roots, turning points, and inflection in real time.

Multi-Language Support

Available in 19 languages so students and professionals worldwide can learn in their native language.

Instant Computation

Client-side JavaScript engine means zero server round-trips. Results appear the moment you press Solve.

Built-in Verification

Residual checks confirm each root satisfies the equation within a tolerance of 1e-10.

Types of Cubic Equations

While every cubic equation shares the fundamental property of being a third-degree polynomial, they can be categorized into different types based on their coefficients and root properties. Understanding these types helps you choose the fastest solving method.

Standard Cubic

ax³ + bx² + cx + d = 0

The general form where 'a' is non-zero. All other types are special cases of this standard form.

Monic Cubic

x³ + bx² + cx + d = 0

A cubic where the leading coefficient a=1. If a≠1, you can create a monic cubic by dividing the entire equation by 'a'.

Depressed Cubic

t³ + pt + q = 0

A cubic with no x² term (b=0). This form is crucial because Cardano's formula requires the equation to be in depressed form first.

Factorable Cubic

(x - r)(ax² + bx + c) = 0

A cubic that can be easily factored using grouping or synthetic division. Once factored, the remaining quadratic can be solved instantly.

How to Use This Calculator

We designed this solver to be intuitive. Follow these steps to get precise roots and step-by-step breakdowns for any cubic equation.

  1. 1
    Identify your coefficients. Format your equation as ax³ + bx² + cx + d = 0. Identify the numbers for a, b, c, and d. For example, in 2x³ - x + 5 = 0, a=2, b=0, c=-1, and d=5.
  2. 2
    Enter the values. Type the coefficients into the left panel. Use the minus sign for negative numbers and a decimal point for fractions. Remember, 'a' cannot be zero.
  3. 3
    Review the Roots. Click 'Solve Cubic'. The right panel instantly displays all three roots, labeling them as Real, Complex Conjugates, or Repeated Roots.
  4. 4
    Check the Graph. Scroll down to the interactive graph. It visually confirms the real roots (where the line crosses the x-axis) and shows turning points and the y-intercept.
  5. 5
    Open the Step-by-Step Details. Expand the details section to see the depressed cubic transformation, the discriminant calculation, and the mathematical reasoning behind the final answer.

Mathematics Behind Cubic Equations

The behavior of cubic equations is governed by several elegant mathematical theorems. Understanding these principles helps explain why cubics always have three roots and why complex roots always appear in pairs.

The Fundamental Theorem of Algebra

This foundational theorem states that every polynomial of degree 'n' has exactly 'n' roots in the complex number system, provided you count repeated roots. Since a cubic is degree 3, it always has exactly three roots.

Complex Conjugate Root Theorem

If a polynomial has real coefficients (which is true for all equations entered in this calculator), any complex roots must come in conjugate pairs. If (u + vi) is a root, then (u - vi) is also a root. Because cubics have three roots and complex roots require a pair, every cubic must have at least one real root.

Vieta's Formulas

Vieta's formulas describe the direct relationship between the polynomial's coefficients and its roots (r₁, r₂, r₃). For the equation ax³ + bx² + cx + d = 0:

  • Sum of roots: r₁ + r₂ + r₃ = -b/a
  • Sum of pairwise products: r₁r₂ + r₁r₃ + r₂r₃ = c/a
  • Product of roots: r₁r₂r₃ = -d/a

Cardano's Formula & The Depressed Cubic

The quadratic formula solves any degree-2 equation. Cardano's formula is its degree-3 equivalent. Published by Girolamo Cardano in 1545 (based on work by Scipione del Ferro and Niccolò Tartaglia), it was the first general algebraic solution for cubic equations.

Step 1: The Tschirnhaus Transformation

Cardano's formula cannot be applied directly to ax³ + bx² + cx + d = 0. We must first eliminate the x² term. We do this by substituting x = t - b/(3a). This transforms the general cubic into a Depressed Cubic: t³ + pt + q = 0.

Step 2: The Discriminant (Δ)

Using the 'p' and 'q' from the depressed cubic, we calculate the discriminant: Δ = (q/2)² + (p/3)³. The sign of Δ dictates the rest of the algorithm:

  • Δ > 0: One real root, two complex roots. Cardano's formula is applied directly using cube roots.
  • Δ = 0: Real roots, with at least one repeated root. Solved via simplified algebraic limits.
  • Δ < 0 (Casus Irreducibilis): Three distinct real roots. Paradoxically, Cardano's formula requires computing the cube root of complex numbers to find these real answers. We bypass this using the Trigonometric Method.

Cubic Examples

The best way to understand cubic equations is to see them solved. Here are common scenarios you will encounter, spanning different root types and coefficient structures.

1. Simple Factorable Cubic

x³ - 6x² + 11x - 6 = 0

Step 1: Notice that x=1 makes the equation zero (1 - 6 + 11 - 6 = 0).

Step 2: Factor out (x-1) to get (x-1)(x² - 5x + 6) = 0.

Step 3: Factor the quadratic into (x-2)(x-3).

Roots: x = 1, x = 2, x = 3

2. Depressed Cubic (Δ = 0)

x³ - 3x + 2 = 0

Step 1: This is depressed (no x²). Here p = -3, q = 2.

Step 2: Discriminant Δ = (2/2)² + (-3/3)³ = 1 - 1 = 0.

Step 3: A zero discriminant means repeated roots.

Roots: x = 1 (double root), x = -2

3. One Real, Two Complex (Δ > 0)

x³ + x + 2 = 0

Step 1: Depressed cubic with p = 1, q = 2.

Step 2: Δ = (2/2)² + (1/3)³ = 1 + 1/27 ≈ 1.037 > 0.

Step 3: The curve crosses the x-axis exactly once.

Roots: x = -1 (real), x = 0.5 ± 1.323i (complex)

4. Triple Root

x³ - 3x² + 3x - 1 = 0

Step 1: Notice this perfectly matches the expansion of (x-1)³.

Step 2: Therefore, the equation is (x-1)³ = 0.

Step 3: The graph has a horizontal inflection point at x=1.

Roots: x = 1 (triple root)

Graph Interpretation Guide

The graph of a cubic equation reveals its secrets at a glance. Our calculator generates this curve automatically, but knowing what to look for is essential.

X-Intercepts (Roots)

Where the curve crosses the horizontal axis. A cubic will cross either 1, 2, or 3 times.

Y-Intercept

Where the curve crosses the vertical axis. This is always exactly equal to the constant term 'd'.

Turning Points (Extrema)

The local maximum (peak) and local minimum (valley). A cubic has either exactly two turning points or zero.

Inflection Point

The exact center of rotational symmetry where the curve changes concavity (from an arch to a bowl, or vice versa).

Real-World Applications of Cubic Equations

Cubic equations aren't just abstract math — they describe the physical world. Any system involving volume, 3D space, or changing acceleration often results in a third-degree polynomial.

Engineering

Used to calculate stress-strain curves in materials, optimizing structural loads, and designing aerodynamic profiles.

Chemistry

Essential for the van der Waals equation of state, which models the behavior of real, non-ideal gases.

Computer Graphics

Bézier curves, the foundation of vector graphics and 3D modeling, rely entirely on cubic polynomials to draw smooth lines.

Economics

Used to model cost, revenue, and profit functions where marginal rates fluctuate significantly over time.

Physics

Models projectile motion experiencing air drag, certain wave equations, and fluid dynamics simplifications.

Machine Learning

Polynomial regression models often use third-degree expansions to map complex, non-linear optimization landscapes.

Common Mistakes When Solving Cubic Equations

Even experienced mathematicians can make errors when solving third-degree polynomials by hand. Here are the most frequent pitfalls and how to avoid them.

1. Setting a = 0

If the leading coefficient 'a' is zero, the x³ term disappears and it becomes a quadratic equation. Always ensure a ≠ 0.

2. Dropping Negative Signs

Forgetting to include the minus sign when substituting negative coefficients into Cardano's formula is the #1 source of manual errors.

3. Missing Zero Coefficients

For an equation like x³ - 8 = 0, you must explicitly account for b = 0 and c = 0. Failing to do so throws off the entire calculation.

4. Ignoring Complex Roots

A cubic always has three roots. If you find only one real root, you are not done — the other two exist as a complex conjugate pair.

5. Premature Rounding

Rounding numbers in the middle of calculating p, q, and the discriminant causes massive cascading errors in the final roots. Keep exact fractions until the very end.

6. Misinterpreting the Graph

Assuming a curve that touches the x-axis without crossing it has no root there. In reality, it represents a double (repeated) root.

How to Verify Your Solutions

Never assume your roots are correct without proving it. Here are four mathematically rigorous ways to verify your cubic equation solutions.

1. Direct Substitution (The Residual Check)

Plug each calculated root back into the original equation f(x) = ax³ + bx² + cx + d. If the math is correct, the result should be exactly zero. Due to floating-point math, computers look for a result very close to zero (e.g., 1e-10).

2. Vieta's Formula Check

Add all three of your roots together. The sum must exactly equal -b/a. Then, multiply all three roots together. The product must exactly equal -d/a. If either fails, your roots are wrong.

3. Visual Graph Confirmation

Plot the cubic curve. The real roots you calculated mathematically must align perfectly with the x-intercepts on the graph.

4. Derivative Check for Repeated Roots

If you believe you have a double root at x=r, then substituting 'r' into the derivative f'(x) = 3ax² + 2bx + c must also equal zero.

Other Resources

Explore Our Cubic Tools

Discover our suite of specialized calculators, guides, and visual resources for mastering cubic equations.

Δ > 0

Cubic Discriminant Calculator

Identify the nature of roots instantly. Find out if your cubic has real, complex, or repeated solutions.

Open Tool
u+v

Cardano's Method Calculator

Step-by-step calculator applying Cardano's historical formula by eliminating the squared term.

Open Tool
t³+pt

Depressed Cubic Calculator

Transform standard cubic equations into their simpler depressed form automatically.

Open Tool
x₁, x₂, x₃

Cubic Roots Calculator

Lightning-fast extraction of x-intercepts, accurately solving both real and complex root pairs.

Open Tool
f(x)

Cubic Function Graph Generator

Interactive curve plotting tool to visualize roots, turning points, and slope behaviors.

Open Tool
f″ = 0

Inflection Point Calculator

Pinpoint the exact rotational symmetry center where your cubic curve changes concavity.

Open Tool
f′(x) = 0

Turning Points Calculator

Determine the precise peaks (Local Maxima) and valleys (Local Minima) of your polynomial.

Open Tool
(x-r₁)(x-r₂)(x-r₃)

Polynomial Factorization Calculator

Break down cubic equations elegantly into clean binomial factors perfectly without decimals.

Open Tool
r | a b c d

Synthetic Division Calculator

Fast shorthand division tool to check factors and slash down cubics into solvable quadratics.

Open Tool

Polynomial Long Division Calculator

Robust classical division tool supporting quadratic divisors with full transparency.

Open Tool
±p/q

Rational Root Theorem Calculator

Generate a rigorous list of all possible clean fractional and integer roots for your equation.

Open Tool
f(c)

Remainder Theorem Calculator

Evaluate roots quickly bypassing full division, checking factors purely through quick substitution.

Open Tool
∑r

Vieta's Formula Calculator

Analyze the sums and products of your cubic roots straight from the polynomial coefficients.

Open Tool
a±bi

Complex Roots Calculator

Specialized utility to extract strictly the imaginary conjugate pairs from third-degree curves.

Open Tool
📈

Polynomial Graph Plotter

High-detail SVG plotting application strictly hyper-focused on deep cubic graphing.

Open Tool
|a-b|

Roots Relationship Calculator

Measure the distances, spreads, and absolute differences between found polynomial roots.

Open Tool
Cubic Examples

Frequently Asked Questions about Cubic Equations

What makes an equation a \\"cubic\\" equation?

An equation is cubic when the highest exponent (power) of the variable is 3. For example, in 4x³ - 2x + 1 = 0, the x³ term is what defines it as a cubic polynomial.

Can a cubic equation have no real roots?

No. Because complex roots always come in pairs (conjugates), and a cubic must have exactly 3 roots total, there will always be at least one real root. Geometrically, the curve extends from negative to positive infinity, guaranteeing it crosses the x-axis at least once.

What does the discriminant tell me?

The discriminant acts like a diagnostic scan. If it is positive, you have 1 real and 2 complex roots. If it is exactly zero, you have repeated real roots. If it is negative, you have 3 distinct real roots.

Why does the calculator use trigonometric functions for some real roots?

When a cubic has three real roots (negative discriminant), Cardano's algebraic formula gets stuck trying to calculate the cube root of a complex number. To bypass this \"casus irreducibilis\", mathematicians use trigonometric identities (involving cosine and arccosine) to compute the exact real roots cleanly.

Can I enter decimal fractions for coefficients?

Yes! The calculator's engine handles integers, negative numbers, and decimals seamlessly. It maintains extremely high floating-point precision throughout all intermediate steps to ensure the final output is accurate.