Solve roots, formulas, and derived measures
Cubic Solution Workspace
Cubic Diagram
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
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
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.
Leading coefficient must be non-zero. Controls end behavior and curve direction.
Quadratic coefficient shifts the curvature and moves the inflection point horizontally.
Linear coefficient affects the slope at the origin and overall steepness of the curve.
Constant term the y-intercept where the curve crosses the vertical axis.
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
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.
Discriminant Decision Tree
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.
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.
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.
Provide all four coefficients and keep numeric format clean.
The solver applies cubic reduction and discriminant branching in real time.
Use graph labels, states, and residual checks to verify the solution.
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
Every cubic equation flows through the same five-stage pipeline, from raw coefficients to verified roots.
Built specifically for cubic polynomials, this tool offers precision, transparency, and speed that general-purpose calculators cannot match.
No distractions from other polynomial degrees. Every feature is tuned for third-degree equations.
See the full derivation from normalization to root extraction - not just the final answer.
Interactive SVG graph updates as you type, showing roots, turning points, and inflection in real time.
Available in 19 languages so students and professionals worldwide can learn in their native language.
Client-side JavaScript engine means zero server round-trips. Results appear the moment you press Solve.
Residual checks confirm each root satisfies the equation within a tolerance of 1e-10.
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.
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 is crucial because Cardano's formula requires the equation to be 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.
We designed this solver to be intuitive. Follow these steps to get precise roots and step-by-step breakdowns for any cubic equation.
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.
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.
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 describe the direct relationship between the polynomial's coefficients and its roots (r₁, r₂, r₃). For the equation ax³ + bx² + cx + d = 0:
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.
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 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.
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 of a cubic equation reveals its secrets at a glance. Our calculator generates this curve automatically, but knowing what to look for is essential.
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 local maximum (peak) and local minimum (valley). A cubic has either exactly two turning points or zero.
The exact center of rotational symmetry where the curve changes concavity (from an arch to a bowl, or vice versa).
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.
Used to calculate stress-strain curves in materials, optimizing structural loads, and designing aerodynamic profiles.
Essential for the van der Waals equation of state, which models the behavior of real, non-ideal gases.
Bézier curves, the foundation of vector graphics and 3D modeling, rely entirely on cubic polynomials to draw smooth lines.
Used to model cost, revenue, and profit functions where marginal rates fluctuate significantly over time.
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 optimization landscapes.
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 the leading coefficient 'a' is zero, the x³ term disappears and it becomes a quadratic equation. Always ensure a ≠ 0.
Forgetting to include the minus sign when substituting negative coefficients into Cardano's formula is the #1 source of manual errors.
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.
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.
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.
Never assume your roots are correct without proving it. Here are four mathematically rigorous ways to verify your cubic equation solutions.
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).
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.
Plot the cubic curve. The real roots you calculated mathematically must align perfectly with the x-intercepts on the graph.
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.
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.
Robust classical division tool supporting quadratic divisors with full transparency.
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.
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 seamlessly. It maintains extremely high floating-point precision throughout all intermediate steps to ensure the final output is accurate.