Cubic Equation Formula (Cardano) with Examples

#Formula
TL;DR
The cubic equation formula solves t3+pt+q=0t^3+pt+q=0 as a sum of two cube roots, after the quadratic term is removed. This article gives five worked examples.
BT
Bhanzu TeamLast updated on November 7, 20267 min read

Key Points

  • The cubic equation formula applies to the depressed cubic t3+pt+q=0t^3 + pt + q = 0 and gives t=−q2+q24+p3273+−q2−q24+p3273t = \sqrt[3]{-\frac{q}{2}+\sqrt{\frac{q^2}{4}+\frac{p^3}{27}}} + \sqrt[3]{-\frac{q}{2}-\sqrt{\frac{q^2}{4}+\frac{p^3}{27}}}.

  • Any cubic must first be depressed by substituting x=t−b3ax = t - \frac{b}{3a}, which removes the squared term.

  • MacTutor records that Cardano published methods for solving the cubic and quartic in Ars Magna in 1545, after obtaining the cubic method from Tartaglia in 1539.

  • The discriminant Δ=−4p3−27q2\Delta = -4p^3 - 27q^2 decides the root pattern: positive gives three real roots, zero a repeated root, negative one real and two complex.

  • When three real roots exist the formula requires cube roots of complex numbers, a situation known as the casus irreducibilis.

What Is the Cubic Equation Formula?

The cubic equation formula solves a cubic that has had its squared term removed. For t3+pt+q=0t^3 + pt + q = 0:

t=−q2+q24+p3273 + −q2−q24+p3273t = \sqrt[3]{-\frac{q}{2}+\sqrt{\frac{q^2}{4}+\frac{p^3}{27}}} \ + \ \sqrt[3]{-\frac{q}{2}-\sqrt{\frac{q^2}{4}+\frac{p^3}{27}}}

This article covers that solution method. For the structure and factoring of cubic expressions, see cubic polynomials and factoring cubic polynomials, which handle those separately.

Why the Cubic Must Be Depressed First

The formula has no place for a squared term, so a general cubic ax3+bx2+cx+d=0ax^3+bx^2+cx+d=0 cannot be fed into it directly. Substituting x=t−b3ax = t - \frac{b}{3a} shifts the variable and makes the t2t^2 coefficient vanish.

The shift works because the sum of the three roots equals −ba-\frac{b}{a}, so moving the origin to their average centres them and kills the squared term. What remains is t3+pt+q=0t^3+pt+q=0 in the new variable.

After solving for tt, the shift must be undone with x=t−b3ax = t - \frac{b}{3a}. Forgetting that last step returns a root of the depressed cubic rather than of the original equation.

Variable Key

Symbol

Meaning

Unit or type

Notes

a,b,c,da,b,c,d

original coefficients

numbers

a≠0a \neq 0

pp, qq

depressed coefficients

numbers

after the substitution

tt

depressed variable

number

solve for this first

xx

original variable

number

x=t−b3ax = t - \frac{b}{3a}

Δ\Delta

discriminant

number

−4p3−27q2-4p^3-27q^2

Example 1

Solve t3+3t−4=0t^3 + 3t - 4 = 0 using the formula.

Here p=3p = 3 and q=−4q = -4, so R=164+2727=4+1=5R = \frac{16}{4} + \frac{27}{27} = 4 + 1 = 5:

t=2+53+2−53≈1.618−0.618=1t = \sqrt[3]{2+\sqrt{5}} + \sqrt[3]{2-\sqrt{5}} \approx 1.618 - 0.618 = 1

Final answer: t=1t = 1, which checks since 1+3−4=01 + 3 - 4 = 0.

Example 2

Solve x3−6x2+11x−6=0x^3 - 6x^2 + 11x - 6 = 0 by applying the formula to it directly.

The formula looks ready to use with p=11p = 11 and q=−6q = -6 taken straight from the equation. Doing that gives R=9+133127≈58.3R = 9 + \frac{1331}{27} \approx 58.3, and the resulting value does not satisfy the original equation.

The reason is structural: the formula solves t3+pt+q=0t^3+pt+q=0, which has no squared term, and this equation has −6x2-6x^2. The coefficients pp and qq do not exist until the cubic is depressed.

Substituting x=t+2x = t + 2 removes the squared term:

t3−t=0  ⟹  t(t−1)(t+1)=0  ⟹  t=0,1,−1t^3 - t = 0 \implies t(t-1)(t+1) = 0 \implies t = 0, 1, -1 x=t+2  ⟹  x=2,3,1x = t + 2 \implies x = 2, 3, 1

Final answer: x=1,2,3x = 1, 2, 3. Here the rational root theorem would have found these faster, which is usually true when the roots are small integers.

Example 3

Solve t3−15t−4=0t^3 - 15t - 4 = 0 and comment on the intermediate values.

With p=−15p = -15 and q=−4q = -4, R=4−125=−121R = 4 - 125 = -121, so R=11i\sqrt{R} = 11i:

t=2+11i3+2−11i3=(2+i)+(2−i)=4t = \sqrt[3]{2+11i} + \sqrt[3]{2-11i} = (2+i) + (2-i) = 4

Final answer: t=4t = 4, since 64−60−4=064 - 60 - 4 = 0.

The root is a plain integer, yet the formula reached it through complex numbers. This is the casus irreducibilis, and it is what pushed sixteenth-century algebraists towards accepting complex quantities.

Example 4

Use the discriminant to describe the roots of t3−7t+6=0t^3 - 7t + 6 = 0.

Δ=−4(−7)3−27(6)2=1372−972=400\Delta = -4(-7)^3 - 27(6)^2 = 1372 - 972 = 400

Final answer: Δ>0\Delta > 0, so the equation has three distinct real roots. They are 11, 22 and −3-3.

Example 5

Use the discriminant to describe the roots of t3+t+1=0t^3 + t + 1 = 0.

Δ=−4(1)3−27(1)2=−4−27=−31\Delta = -4(1)^3 - 27(1)^2 = -4 - 27 = -31

Final answer: Δ<0\Delta < 0, so there is one real root and two complex conjugate roots.

A negative discriminant is the comfortable case for the formula, because RR is then positive and no complex cube roots are needed.

When to Use the Formula and When Not To

Situation

Better method

Why

Small integer or rational roots

rational root theorem, then factorise

far faster, no cube roots

One obvious root visible

divide out, solve the quadratic

reduces to a familiar case

No rational roots, Δ<0\Delta < 0

the cubic equation formula

gives the single real root directly

Three real irrational roots

trigonometric form, or numerical methods

avoids complex cube roots

The formula is a guarantee rather than a first resort. It always works, but for school-level cubics the rational root theorem reaches the answer in a fraction of the effort.

Cubic Equation, Where Things Go Sideways

Mistake 1: Skipping the depression step

Where it slips in: The formula names pp and qq, and a general cubic has coefficients that look like they could serve.

Don't do this: Read pp and qq off ax3+bx2+cx+dax^3+bx^2+cx+d while b≠0b \neq 0.

The correct way: Substitute x=t−b3ax = t - \frac{b}{3a} first, then read pp and qq from the depressed form.

Students who check whether the squared term is absent before writing anything down never make this error. One glance at the x2x^2 coefficient decides whether the formula is even applicable yet.

Mistake 2: Forgetting to undo the substitution

Where it slips in: The formula returns a value and it feels like the answer.

Don't do this: Report the value of tt as a root of the original equation.

The correct way: Convert back with x=t−b3ax = t - \frac{b}{3a}. In Example 2 the depressed roots were 0,1,−10, 1, -1 while the real answers were 2,3,12, 3, 1.

Mistake 3: Reaching for the formula before trying rational roots

Where it slips in: The question says cubic, so the cubic formula seems to be what is wanted.

Don't do this: Run Cardano's method on x3−6x2+11x−6=0x^3-6x^2+11x-6=0.

The correct way: Test small divisors of the constant term first. That equation factors as (x−1)(x−2)(x−3)(x-1)(x-2)(x-3) in a couple of lines, and the formula would take many more.

Bottom Line

  • The cubic equation formula solves t3+pt+q=0t^3+pt+q=0 as the sum of two cube roots.

  • A general cubic must be depressed by x=t−b3ax = t - \frac{b}{3a} before the formula applies, and the shift must then be undone.

  • The discriminant −4p3−27q2-4p^3-27q^2 predicts the root pattern before any roots are computed.

  • Three real roots force the formula through complex intermediate values, the casus irreducibilis.

  • To work through polynomial equations with a teacher, explore an algebra tutor or math tuition.

Where to Go From Here

Solve t3−6t−9=0t^3 - 6t - 9 = 0 with the formula. Then take x3−3x2−4x+12=0x^3 - 3x^2 - 4x + 12 = 0, find a rational root by inspection, and compare how much work each route costs.

Want a live Bhanzu trainer to walk through more algebra problems? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the cubic equation formula?
For t3+pt+q=0t^3+pt+q=0 it is t=−q2+R3+−q2−R3t = \sqrt[3]{-\frac{q}{2}+\sqrt{R}} + \sqrt[3]{-\frac{q}{2}-\sqrt{R}}, where R=q24+p327R = \frac{q^2}{4}+\frac{p^3}{27}.
Why does the cubic equation formula need the equation depressed first?
Because the formula has no term for a squared coefficient. Substituting x=t−b3ax = t - \frac{b}{3a} removes it and produces the pp and qq the formula needs.
Who discovered the cubic equation formula?
MacTutor records that Tartaglia had an algebraic solution for cubics and that Cardano obtained the method from him in 1539, then published it in Ars Magna in 1545. It is now called the Cardan-Tartaglia formula.
What does the discriminant tell me?
Δ=−4p3−27q2\Delta = -4p^3-27q^2. A positive value means three distinct real roots, zero means a repeated root, and a negative value means one real root with two complex conjugates.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →