Skip to content
LoveToCalc

Identity — what does that mean?

Cube of a sum

The cube of a sum has four terms, and the two middle ones carry a three — those threes are what the rule is about.

In Swedish: Kuberingsregeln

(a+b)³=a³+3a²b+3ab²+b³

a
First term
b
Second term
Show why the formula is true
  1. A square is the factor multiplied by itself.

    (a+b)³=(a+b)(a+b)(a+b)

  2. Multiply every term in the first bracket by every term in the second.

    (a+b)(a+b)(a+b)=(a²+2ab+b²)(a+b)

  3. Multiply every term in the first bracket by every term in the second.

    (a²+2ab+b²)(a+b)=a³+2a²b+ab²+a²b+2ab²+b³

  4. The two middle terms are the same product, so together they are twice it.

    a³+2a²b+ab²+a²b+2ab²+b³=a³+3a²b+3ab²+b³

Practice questions

Work out

(10+5)³

Why there are four terms

A cube is a square times one more factor. The proof above this text does that: it rewrites (a + b)³ as (a + b)(a + b)(a + b), multiplies the first two brackets together with the square of a sum, and then multiplies the result by the last one.

Six products come out. None of them cancel. Two pairs collect instead: 2a²b with a²b makes 3a²b, and ab² with 2ab² makes 3ab². What is left is a³ + 3a²b + 3ab² + b³.

Where the threes come from

The coefficients 1, 3, 3, 1 are the row for n = 3 in Pascal’s triangle, and they sit in the same place 1, 2, 1 sits for the square of a sum:

Power Coefficients Expanded
(a + b)¹ 1, 1 a + b
(a + b)² 1, 2, 1 a² + 2ab + b²
(a + b)³ 1, 3, 3, 1 a³ + 3a²b + 3ab² + b³
(a + b)⁴ 1, 4, 6, 4, 1 a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴

Each row is the sum of the two numbers above it. So the two in the squaring rule and the threes here are not two separate things to learn but the same thing two steps apart: the coefficient counts how many of the eight products in (a + b)(a + b)(a + b) come out the same.

The exponents behave the same way every time. a starts at 3 and counts down, b starts at 0 and counts up, and in every term the exponents add to 3. If they do not, a term has been written wrong.

Worked examples

Expand. (x + 2)³ = x³ + 3 · x² · 2 + 3 · x · 4 + 8 = x³ + 6x² + 12x + 8.

In your head. 21³ = (20 + 1)³ = 8,000 + 3 · 400 · 1 + 3 · 20 · 1 + 1 = 8,000 + 1,200 + 60 + 1 = 9,261.

With a minus. (a − b)³ = a³ − 3a²b + 3ab² − b³. It is the same rule with b replaced by −b, so the signs alternate: minus, plus, minus. Compare the square of a difference, where only the middle term changes sign — for a cube, every other term does.

Not the same as a sum of cubes

The two rules look alike in a search box and do opposite things:

Rule From To
Cube of a sum (a + b)³ a³ + 3a²b + 3ab² + b³
Sum of cubes (a + b)(a² − ab + b²) a³ + b³

The first expands a cube of a sum; the second factors a sum of cubes. That (a + b)³ is not a³ + b³ is quickest to see with numbers: (2 + 3)³ is 125, while 8 + 27 is 35.

Common mistakes

Frequently asked questions

Does the rule hold for every number? Yes. It follows from the ordinary laws of arithmetic and holds for positive numbers, negative numbers, fractions and expressions with variables in them.

What is (a + b + c)³? Ten terms: the cubes a³ + b³ + c³, six terms of the form 3a²b for each ordered pair, and 6abc. It is easier to cube in two steps — square first, then multiply — than to try to remember it.

Is there a rule for (a + b)⁴? Yes, and for every exponent. The row of Pascal’s triangle gives the coefficients, and the general statement is called the binomial theorem. For exponents above 4, people read the coefficients off the triangle rather than memorising the row.

Last reviewed October 6, 2026 ·How pages are reviewed

AlgebraAll formulas