Understanding the Binomial Theorem with Examples

Multiplying out (x+y)^10 by hand would take all day. There's a shortcut hiding in Pascal's triangle, and once you see where it comes from, you'll never expand a binomial the slow way again.

By Petrus Sheya

August 13, 2026 · 6 min read

Try expanding (x+y)10(x+y)^{10} by hand. Go on, multiply it out term by term.

You'll be there a while. Ten factors of (x+y)(x+y), each one splitting into two branches, the whole thing exploding into over a thousand pieces before you even start combining like terms.

And yet there's a two-line formula that spits out the answer instantly. It's called the binomial theorem, and once you see where it actually comes from, it stops looking like a memorized rule and starts looking obvious.


Small cases first: what's the pattern?

Let's not jump straight to (x+y)10(x+y)^{10}. Start small.

(x+y)1=x+y(x+y)^1 = x + y (x+y)2=x2+2xy+y2(x+y)^2 = x^2 + 2xy + y^2 (x+y)3=x3+3x2y+3xy2+y3(x+y)^3 = x^3 + 3x^2y + 3xy^2 + y^3

Look at just the numbers out front: 1, 1. Then 1, 2, 1. Then 1, 3, 3, 1. And hey, notice that each row is symmetric, it reads the same forwards and backwards.

Also notice the powers. In every term, the power of xx and the power of yy add up to nn. As you move left to right, xx's power counts down while yy's power counts up. That part's easy to see just from multiplying things out.

The coefficients are the mystery. Where do 1, 3, 3, 1 actually come from? That's the real content of the binomial theorem, and it has nothing to do with algebra tricks. It's about counting.


Where the coefficients actually come from

Here's a way to think about (x+y)3(x+y)^3 that has nothing to do with expanding polynomials. Picture three switches in a row. Each switch can be flipped to xx or flipped to yy.

If you flip all three to xx, you get one specific outcome: xxxxxx. There's only one way to do that. Same for flipping all three to yy: only one way, yyyyyy.

But what about getting exactly one yy and two xx's? You could put the yy in switch one, switch two, or switch three. Three different arrangements, all producing the same term when you multiply them out, because xxy=xyx=yxx=x2yxxy = xyx = yxx = x^2y.

That's exactly why the coefficient of x2yx^2y is 3. It's not a coincidence and it's not algebra magic, it's just counting how many ways you can choose which switches land on yy.

This is the same lattice-of-choices idea that builds Pascal's triangle, where every entry is the sum of the two above it because every path to a cell has to come from one step left or one step right of the row before.

Every number is the sum of the two above it. Drag n and watch row n light up, that row is exactly the list of coefficients in $(x+y)^n$.

111121133114641151010511615201561172135352171182856705628811936841261268436911104512021025221012045101
hover a circle to see which two numbers above it were added
Row 51, 5, 10, 10, 5, 1

Drag nn up and down. Watch how row 3 really is 1, 3, 3, 1, and row 5 really is 1, 5, 10, 10, 5, 1. Hover a circle and you'll see exactly which two numbers above it got added together to make it. The whole triangle builds itself from nothing but addition, one row at a time.

Now we can name the thing we've been counting. "How many ways to choose kk switches out of nn to flip to yy" gets written as

(nk)\binom{n}{k}

read as "nn choose kk". If you've seen this notation before in the context of probability, that's the exact same idea. Our permutations vs combinations guide walks through why order doesn't matter here, which is precisely why xxyxxy and xyxxyx collapse into the same count.


Putting the whole expansion together

We now have both pieces. The coefficient of the term with kk copies of yy is (nk)\binom{n}{k}. The term itself is xnkykx^{n-k}y^k, since the other nkn-k switches landed on xx.

Multiply those together and sum over every possible kk, and you get the full binomial theorem:

(x+y)n=k=0n(nk)xnkyk(x+y)^n = \sum_{k=0}^{n} \binom{n}{k} \, x^{n-k} y^k

That's it. That's the whole theorem. Not a rule to memorize, just "count the arrangements, multiply by the term, add them all up."

Watch the full expansion of $(x+y)^n$ assemble, term by term. The power of x always counts down while the power of y counts up, and the coefficients come straight from row n of the triangle.

hover a term to see what it counts
Number of terms5
Sum of coefficients16 = 24

Slide nn and watch the full expansion rebuild itself. Hover any term and it'll tell you exactly what it's counting: choose kk of the nn factors to hand over to yy, and the rest default to xx. And notice the sum of all the coefficients always lands on 2n2^n, that's because 2n2^n is the total number of ways to flip nn switches, period, before you even sort them by how many landed on yy.


Not every term matters equally

Here's something the formula doesn't shout about: when xx and yy are actual numbers instead of symbols, the terms are wildly unequal in size. Some barely register. One or two usually dominate the entire sum.

Each bar is one term, C(n, k) times y to the k. Drag y and watch which term stops being negligible and starts running the show.

012345678
hover a bar to read its exact contribution
Dominant k2
Total, (1+y)^n25.629

Set yy small, near 0.1, and watch the bars. The first couple of terms tower over everything else, the higher powers of yy shrink so fast they barely show up. Now drag yy up past 1, and the balance shifts hard toward the high-kk terms instead.

This matters because it means you rarely need the whole expansion. If yy is small, the first two or three terms already capture almost all of the total. The rest is noise you can safely ignore.


The shortcut hiding inside: approximation

That last observation leads somewhere genuinely useful. Take nn large and xx small, say estimating (1.02)20(1.02)^{20} without a calculator.

Expand it with the binomial theorem:

(1+x)n=1+nx+(n2)x2+(n3)x3+(1+x)^n = 1 + nx + \binom{n}{2}x^2 + \binom{n}{3}x^3 + \dots

When xx is small, x2x^2 is much smaller, and x3x^3 is smaller still. So the first two terms alone give a solid estimate:

(1+x)n1+nx(1+x)^n \approx 1 + nx

That single line is the engine behind quick compound-interest estimates, error propagation in physics, and a dozen other back-of-envelope calculations. It's the same growth idea covered in the math behind compound interest, just approached from the expansion side instead of the exponential side.

Hit play and watch the truncated expansion catch up to the real curve, one term at a time. Near x = 0, just the first couple of terms already get you close.

white = true (1+x)^n · amber = 1-term approximation
true value = 1.340, approximation = 1.000, error = 0.3401
Terms included1 / 7
Error0.3401

Hit play. Watch the amber curve, built from only a handful of terms, chase down the true white curve as more terms get added. Near x=0x = 0 they're already nearly indistinguishable after just two terms. Push xx further from zero and you'll see the approximation start to peel away, because the higher-order terms we dropped stop being negligible.


The short version

The binomial theorem is a counting statement wearing algebra's clothes. Expanding (x+y)n(x+y)^n means picking, for each of nn factors, whether it contributes an xx or a yy. The coefficient of any term is just the number of ways to make that choice, which is (nk)\binom{n}{k}, and Pascal's triangle is nothing more than that counting problem laid out row by row.

(x+y)n=k=0n(nk)xnkyk(x+y)^n = \sum_{k=0}^{n} \binom{n}{k} \, x^{n-k} y^k

When the numbers get real, not every term pulls equal weight. A handful of terms near the front usually carry almost the entire sum, which is exactly why (1+x)n1+nx(1+x)^n \approx 1 + nx works so well for small xx. The full theorem gives you exactness. The first couple of terms give you a shortcut you can trust.

Next time you see (x+y)10(x+y)^{10}, you won't reach for a thousand terms of brute multiplication. You'll reach for row 10 of the triangle instead.


All visualizations run live in the browser: Pascal's triangle is built directly from the recursive sum, the expansion and term weights are computed from the exact binomial coefficients, and the approximation curve is drawn from partial sums, no libraries beyond React.