Cubic Equation Solver logo
Cubic Equation Solver

Mathematical Instruments

Cubic Equation solver

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

Cubic Equation calculator

The Equation

Enter Polynomial Coefficients

f(x) = 0 = 0

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

The Solution

Solve roots, formulas, and derived measures

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

The Method

How to Use This Calculator

Solve any cubic equation in seconds. Enter your coefficients a, b, c, d below and get exact roots, the discriminant, step-by-step Cardano's method working, and a graph, free with no signup. Here's how:

  1. 1
    Spot your four numbers. Rewrite your equation as ax³ + bx² + cx + d = 0. In 2x³ - x + 5 = 0, the coefficients are a=2, b=0, c=-1, d=5. Missing term? That's a zero.
  2. 2
    Type them in. Enter each coefficient in its box above. Negatives and decimals are fine. Just remember: a can't be zero. That's what makes it cubic.
  3. 3
    Hit Solve Cubic. The calculator tries rational roots first (instant when they exist), then runs Cardano's formula or the trigonometric method. All three roots appear with their types: real, repeated, or complex.
  4. 4
    Read the graph. The curve shows you the truth at a glance: every x-intercept is a real root. No intercepts visible? Your roots are complex, and that's normal.
  5. 5
    Steal the working. Expand the step-by-step panel for the full derivation: depressed cubic, discriminant, each root. Copy it into your homework. We won't tell.

The Examples

Cubic Examples

Try these classic cubics with one click — each loads into the instrument above.

The Definition

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. While a quadratic equation (degree two) traces a simple parabola, a cubic traces an S-shaped curve that can twist and cross the x-axis up to three times. That extra twist is why finding its roots took mathematicians centuries longer than the quadratic formula.

Cubic equations have one of the most dramatic histories in all of mathematics. Around 1515, Scipione del Ferro of Bologna secretly solved the depressed cubic but told no one. On his deathbed he passed the secret to his student. Then Niccolò Tartaglia, a self-taught mathematician who had survived a sword cut to the face as a boy, independently cracked it. Girolamo Cardano pried the method from Tartaglia under oath of secrecy, then published it in 1545 in Ars Magna, crediting them both. The betrayal stung, but the formula, now called Cardano's formula, transformed algebra forever. Centuries before computers, these men found exact formulas for every possible cubic.

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 pointx₁x₂x₃Y-int (0, d)
Roots
x1, x2, x3
Turning Pts
Max & Min
Inflection
b/(3a)
Y-intercept
f(0) = d

The Types

Types of Cubic Equations

Not all cubics are created equal. A cubic like x³ - 8 = 0 solves in one line, while 2x³ - 6x² + 11x - 6 = 0 needs the full machinery. Knowing which type you're facing tells you which method to reach for, and saves you from using a sledgehammer on a nail.

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 matters because Cardano's formula needs the equation 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.

The Formulas

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

The History

Cardano's Formula & The Depressed Cubic

The quadratic formula solves any degree-2 equation in one line. Cardano's formula is its degree-3 equivalent, but with a twist that baffled mathematicians for decades. Published by Girolamo Cardano in 1545 (building on the secret work of del Ferro and Tartaglia), it was humanity's first general algebraic solution for cubic equations, and it revealed something shocking: sometimes you must travel through complex numbers to reach real answers.

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, yet Cardano's formula forces you to take the cube root of complex numbers to find them. This paradox, called the casus irreducibilis, puzzled mathematicians for 300 years and was key evidence that complex numbers are unavoidable in algebra. We bypass it using the Trigonometric Method, which finds all three real roots directly with cosines.

The Theory

Mathematics Behind Cubic Equations

Four ideas govern everything about cubic equations. Understand these and you'll never be intimidated by a cubic again. You'll know exactly how many roots to expect, where they hide, and how they're related.

The Fundamental Theorem of Algebra

Every polynomial of degree n has exactly n roots, counting repeats and complex numbers. A cubic has exactly 3. Not 2, not 4. This isn't a suggestion; it's a theorem proved by Gauss. So when you find one real root, you know two more are out there somewhere.

Complex Conjugate Root Theorem

If your equation has real coefficients (a, b, c, d are all real numbers) and you find a complex root like 2 + 3i, its mirror image 2 - 3i is automatically a root too. Complex roots travel in pairs. This is why a cubic always has at least one real root: with 3 total and complexes pairing up, one real root is unavoidable.

Vieta's Formulas

Vieta discovered something beautiful: the roots and coefficients are secretly the same information in different clothes. For ax³ + bx² + cx + d = 0 with roots r₁, r₂, r₃: their sum equals -b/a, their pairwise products sum to c/a, and their product equals -d/a. Found your roots? Add them up: if the sum isn't -b/a, something's wrong. It's a built-in error check.

  • 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

The Process

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.

Delta > 0

1 real root

+ 2 complex conjugates

→ Cardano branch

Delta = 0

Repeated real roots

Triple or double root

→ Repeated-root path

Delta < 0

3 distinct real roots

Trigonometric method

→ Cosine method

The Walkthrough

Cubic Examples

Theory is nice. Watching a cubic surrender is better. Here are three equations, one of each type you'll meet in the wild, solved step by step. Try them in the calculator above and follow along.

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)

The Graph

Graph Interpretation Guide

The graph is a lie detector for your answers. Before trusting any root, glance at the curve. It tells you instantly how many real roots exist and roughly where they are.

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 hill and valley of the S-curve. A cubic has either two turning points or none (never just one). If the hill sits above the x-axis and the valley below it, the curve must cross three times. Three real roots, guaranteed.

Inflection Point

The exact center of the S: the point where the curve switches from curving one way to curving the other. It's at x = -b/3a, always. The graph is perfectly symmetric around this point: rotate it 180° and it looks identical.

The Applications

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

When engineers bend a beam, the relationship between load and deflection follows a cubic curve. Get the equation wrong and the bridge sways. Structural software solves thousands of cubics per second to keep buildings standing.

Chemistry

The van der Waals equation, which predicts how real gases behave under pressure, is a cubic in volume. Chemists solve it to design everything from refrigerators to rocket fuel tanks.

Computer Graphics

Every curve you see in animation, from a character's smile to a car's silhouette, is a Bézier curve defined by cubic polynomials. Pixar's artists manipulate cubic control points; the software solves cubic equations to render each frame.

Economics

When a factory's production cost rises steeply after a point (overtime, machine strain), economists model it with a cubic. The inflection point, where costs start accelerating, tells managers exactly when to stop scaling.

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 relationships.

The Pitfalls

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 without noticing

If a = 0, your 'cubic' is actually a quadratic (or worse). The cubic formula divides by a, so you'll get garbage or a crash. Always check: is the x³ coefficient really non-zero?

2. Dropping negative signs

In 2x³ - 6x² + 11x - 6 = 0, the coefficients are 2, -6, 11, -6. Enter 6 instead of -6 and every root changes. Sign errors are the #1 cause of wrong answers. Double-check each coefficient before solving.

3. Forgetting zero coefficients

For x³ - 8 = 0, the full form is 1x³ + 0x² + 0x - 8 = 0. Those zeros matter: the formulas use b and c explicitly. Leaving them blank isn't the same as entering 0.

4. Stopping at one root

A cubic always has three roots. If you find x = 2 and stop, you've missed two. They might be complex (invisible on the graph) or repeated, but they're there. The Fundamental Theorem of Algebra insists.

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.

The Proof

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)

Take each root and plug it back into ax³ + bx² + cx + d. You should get 0 (or something like 0.0000001, which is just floating-point dust). If you get 7.3, your root is wrong. This is the single most reliable check.

2. Vieta's Formula Check

Add your three roots. The answer must equal -b/a exactly. For x³ - 6x² + 11x - 6 = 0 with roots 1, 2, 3: 1 + 2 + 3 = 6, and -(-6)/1 = 6. Match. If it doesn't match, recheck your work.

3. Visual Graph Confirmation

Look at the graph. Every real root is a place where the curve touches or crosses the x-axis. Count the crossing points: they should match the number of real roots the solver reported. Complex roots won't appear on the graph, and that's expected.

4. Derivative Check for Repeated Roots

If the solver says x = r is a double root, then the derivative 3ax² + 2bx + c must also equal zero at x = r. A double root is a place where the curve just kisses the x-axis: flat, not crossing. The derivative confirms the flatness.

The Collection

Explore Our Cubic Tools

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

01

Cubic Discriminant Calculator

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

Open Tool→
02

Cardano's Method Calculator

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

Open Tool→
03

Depressed Cubic Calculator

Transform standard cubic equations into their simpler depressed form automatically.

Open Tool→
04

Cubic Roots Calculator

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

Open Tool→
05

Cubic Function Graph Generator

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

Open Tool→
06

Inflection Point Calculator

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

Open Tool→
07

Turning Points Calculator

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

Open Tool→
08

Polynomial Factorization Calculator

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

Open Tool→
09

Synthetic Division Calculator

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

Open Tool→
10

Polynomial Long Division Calculator

Classic long-division tool that supports quadratic divisors and shows every step.

Open Tool→
11

Rational Root Theorem Calculator

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

Open Tool→
12

Remainder Theorem Calculator

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

Open Tool→
13

Vieta's Formula Calculator

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

Open Tool→
14

Complex Roots Calculator

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

Open Tool→
15

Polynomial Graph Plotter

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

Open Tool→
16

Roots Relationship Calculator

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

Open Tool→

The Questions

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 with ease. It maintains extremely high floating-point precision throughout all intermediate steps to ensure the final output is accurate.

Can a cubic equation have exactly 2 roots?

Not exactly. A cubic always has 3 roots counting multiplicity. What looks like 2 roots is actually 3 where one root is repeated twice (a double root). For example, x³ - 3x + 2 = 0 factors as (x-1)²(x+2) = 0, so x=1 appears twice and x=-2 once. The discriminant equals zero exactly in this case.

What's the difference between Cardano's method and the rational root theorem?

The rational root theorem is a shortcut: it lists possible fraction roots (± factors of d / factors of a) to test. It's fast when a nice rational root exists, but fails for irrational or complex roots. Cardano's method always works. It gives exact roots for every cubic, no guessing. This solver uses both: it tries rational roots first for clean answers, then falls back to Cardano's formula.