The Solution
Solve roots, formulas, and derived measures
Cubic Diagram
Mathematical Instruments
Solve cubic equations and understand every result clearly with roots, graph insights, and guided steps.
Enter Polynomial Coefficients
Solve roots, formulas, and derived measures
Cubic Diagram
The Method
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:
The Examples
Try these classic cubics with one click — each loads into the instrument above.
The Definition
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
The Types
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.
The general form where 'a' is non-zero. All other types are special cases of this standard form.
A cubic where the leading coefficient a=1. If a≠1, you can create a monic cubic by dividing the entire equation by 'a'.
A cubic with no x² term (b=0). This form matters because Cardano's formula needs the equation in depressed form first.
A cubic that can be easily factored using grouping or synthetic division. Once factored, the remaining quadratic can be solved instantly.
The Formulas
Before solving any cubic, identify known coefficients, then choose the correct symbolic route.
Substitution
x = t - b/(3a)
Depressed Form
t^3 + pt + q = 0
Discriminant
Delta = (q/2)^2 + (p/3)^3
Y-intercept
f(0) = d
Inflection X
x = -b/(3a)
Turning points
Solve f'(x) = 3ax^2 + 2bx + c = 0
The History
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.
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.
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:
The Theory
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.
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.
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 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.
The Process
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.
Write the equation in standard form and validate a != 0.
Normalize and reduce to depressed cubic form.
Evaluate discriminant to select the numeric branch.
Compute roots and transform back to x-space.
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
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.
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
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
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)
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
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.
Where the curve crosses the horizontal axis. A cubic will cross either 1, 2, or 3 times.
Where the curve crosses the vertical axis. This is always exactly equal to the constant term 'd'.
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.
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
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.
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.
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.
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.
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.
Models projectile motion experiencing air drag, certain wave equations, and fluid dynamics simplifications.
Polynomial regression models often use third-degree expansions to map complex, non-linear relationships.
The Pitfalls
Even experienced mathematicians can make errors when solving third-degree polynomials by hand. Here are the most frequent pitfalls and how to avoid them.
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?
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.
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.
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.
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.
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
Never assume your roots are correct without proving it. Here are four mathematically rigorous ways to verify your cubic equation solutions.
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.
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.
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.
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
Discover our suite of specialized calculators, guides, and visual resources for mastering cubic equations.
Identify the nature of roots instantly. Find out if your cubic has real, complex, or repeated solutions.
Step-by-step calculator applying Cardano's historical formula by eliminating the squared term.
Transform standard cubic equations into their simpler depressed form automatically.
Lightning-fast extraction of x-intercepts, accurately solving both real and complex root pairs.
Interactive curve plotting tool to visualize roots, turning points, and slope behaviors.
Pinpoint the exact rotational symmetry center where your cubic curve changes concavity.
Determine the precise peaks (Local Maxima) and valleys (Local Minima) of your polynomial.
Break down cubic equations elegantly into clean binomial factors perfectly without decimals.
Fast shorthand division tool to check factors and slash down cubics into solvable quadratics.
Classic long-division tool that supports quadratic divisors and shows every step.
Generate a rigorous list of all possible clean fractional and integer roots for your equation.
Evaluate roots quickly bypassing full division, checking factors purely through quick substitution.
Analyze the sums and products of your cubic roots straight from the polynomial coefficients.
Specialized utility to extract strictly the imaginary conjugate pairs from third-degree curves.
High-detail SVG plotting application strictly hyper-focused on deep cubic graphing.
Measure the distances, spreads, and absolute differences between found polynomial roots.
The Questions
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.
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.
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.
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.
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.
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.
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.