The cubic formula is the algebraic solution for finding the roots of any cubic equation, the same way the quadratic formula solves any quadratic equation. But where the quadratic formula fits on a napkin, the cubic formula is far longer, more complex, and full of surprising quirks that kept mathematicians busy for centuries. It works on any equation of the form ax³ + bx² + cx + d = 0, and it always produces the correct roots, but getting there requires several transformation steps.
The General Cubic Equation
A cubic equation has the standard form ax³ + bx² + cx + d = 0, where a is not zero. Every cubic equation has exactly three roots (counting complex roots and repeated roots). Some of those roots may be real numbers you can plot on a number line, and some may be complex numbers involving the square root of negative one.
The first simplification is dividing everything by a, the leading coefficient. This gives you an equation where the x³ term has a coefficient of 1: x³ + (b/a)x² + (c/a)x + (d/a) = 0. From here, the real work of the cubic formula begins.
Eliminating the Squared Term
The key insight behind the cubic formula is a substitution that removes the x² term entirely. You replace x with a new variable w using the substitution w = x + b/(3a). This shift recenters the equation and eliminates the squared term, producing what mathematicians call a “depressed cubic”:
w³ + pw + q = 0
Here, p and q are new coefficients calculated from the original a, b, c, and d. This looks much simpler because there’s no w² term. Solving this depressed cubic is the core of the formula, and once you find w, you convert back to x by reversing the substitution.
How the Formula Actually Works
To solve w³ + pw + q = 0, the method (often called Cardano’s formula) introduces two new variables, u and v, where w = u + v. Through algebraic manipulation, the problem reduces to solving a quadratic equation in disguise:
t² + qt − p³/27 = 0
Since this is a quadratic, you can solve it with the familiar quadratic formula. The two solutions give you the cubes of u and v. You then take cube roots to find u and v themselves, and the three roots of the depressed cubic are:
- w₁ = u + v
- w₂ = εu + ε²v
- w₃ = ε²u + εv
The symbol ε here is the “primitive cube root of unity,” a complex number equal to −1/2 + i√3/2. Multiplying by ε and ε² rotates through the three cube roots, generating all three solutions. To get the final answers for x, you subtract b/(3a) from each w value.
Written out fully with the original coefficients, the formula becomes enormous. That’s why most references present it in stages rather than as a single expression.
The Discriminant: Predicting Root Types
Before grinding through the full formula, you can learn a lot from the cubic’s discriminant. For the depressed cubic x³ + px + q = 0, the discriminant is:
D = −4p³ − 27q²
This single number tells you what kind of roots to expect. When D is positive, all three roots are real and distinct. When D is zero, all roots are real but at least two are equal. When D is negative, there is one real root and two complex roots that are conjugates of each other.
For example, the equation x³ + 3x + 1 = 0 has a discriminant of −135, which is negative, so it has only one real root. The equation x³ − 3x + 1 = 0 has a discriminant of 81, which is positive, confirming that all three of its roots are real.
The Strange Case of Three Real Roots
One of the most counterintuitive aspects of the cubic formula involves what’s called the “casus irreducibilis,” Latin for “the irreducible case.” When an irreducible cubic equation has three real roots, Cardano’s formula forces you to take cube roots of complex numbers to find them. You start with real coefficients, you end with real answers, but the path between them passes unavoidably through complex arithmetic.
This isn’t a flaw in the formula or a sign that you’re doing something wrong. It was proven that there is no way to express those three real roots using only real-valued radicals. Complex numbers are a mandatory detour. This fact actually played a major role in the historical acceptance of complex numbers as legitimate mathematical objects, not just abstract curiosities.
The History Behind the Formula
The cubic formula has one of the most dramatic origin stories in mathematics. Italian mathematician Scipione del Ferro first discovered a solution for depressed cubics sometime around 1515, but kept it secret. On his deathbed, he passed the method to his student Antonio Fior.
In 1534, Niccolò Tartaglia independently discovered his own solution. Fior challenged Tartaglia to a public problem-solving contest, and Tartaglia won decisively. Gerolamo Cardano, a prominent mathematician and physician, persuaded Tartaglia to share the method under an oath of secrecy. Cardano then extended the work significantly, generalizing it to all cubic equations. When he learned that del Ferro had discovered the solution first, Cardano felt justified in publishing the full method in his 1545 book “Ars Magna.” Tartaglia was furious, and the resulting feud, carried on partly through Cardano’s student Ludovico Ferrari, became one of the most famous disputes in the history of mathematics.
Despite the controversy, the formula is most commonly called Cardano’s formula today, since Cardano was the one who published and generalized it.
Why It’s Rarely Used in Practice
Unlike the quadratic formula, which is a standard everyday tool, the cubic formula sees surprisingly little practical use. The expression is long, the intermediate calculations involve cube roots and complex numbers even for simple-looking equations, and rounding errors accumulate quickly when computing with it numerically.
For most real-world applications in engineering and science, numerical methods like Newton’s method are preferred. These iterative approaches start with an approximate answer and refine it to any desired precision, sidestepping the messy algebra entirely. They’re faster, more stable with floating-point arithmetic, and easier to implement in software. Some researchers have noted that Cardano’s method introduces rounding errors that make purely numerical approaches more reliable in computational settings.
The cubic formula’s real value is theoretical. It proves that every cubic equation can be solved in closed form using only arithmetic operations and radicals. This is a powerful statement about the nature of cubic polynomials, and it set the stage for solving quartic (degree 4) equations and, eventually, for proving that no general formula exists for degree 5 and above.

