Category

Binomial Theorem Calculator

Formula

Enter your values

Enter your values and press Calculate — your answer, visual and step-by-step solution appear here.

This binomial theorem calculator expands (a + b)ⁿ and shows every coefficient, term, and Pascal's-triangle row — so you can both get the answer and see exactly how it was reached.

What Is the Binomial Theorem?

The binomial theorem is a formula that expands a binomial — an expression with two terms, like (a + b) — raised to a whole-number power n, without multiplying it out by hand n times. Instead of laboriously computing (a + b)(a + b)(a + b)…, the theorem tells you every term of the result at once.

In plain English, it is a shortcut. The expansion of (a + b)ⁿ always has exactly n + 1 terms, the powers of a count down from n to 0, the powers of b count up from 0 to n, and each term carries a number called a binomial coefficient. The binomial theorem calculator above applies this rule instantly for any n from 0 to 10.

Key fact: Expanding (a + b)ⁿ produces n + 1 terms. So (a + b)³ has 4 terms, (a + b)⁵ has 6 terms, and (a + b)¹⁰ has 11 terms.

Binomial Theorem Formula (Explained)

The binomial theorem is written compactly using summation notation:

(a + b)ⁿ = Σ C(n,k) aⁿ⁻ᵏ bᵏ  (k = 0 → n)

Each part of the formula means something specific:

The binomial coefficient itself is computed with factorials:

C(n,k) = n! / [ k! (n − k)! ]

This calculator uses exact integer factorials and coefficients, so there is no floating-point rounding error in the numbers it returns.

How to Expand a Binomial Step by Step

You can reproduce the calculator's result by hand in five steps. This is the method graders expect to see on an exam:

  1. Identify a, b, and n. Read off the first term (a), the second term (b, including its sign), and the power (n).
  2. Write the n + 1 coefficients. Take row n of Pascal's triangle, or compute C(n,0), C(n,1), …, C(n,n) directly.
  3. Write the descending powers of a. Attach aⁿ, aⁿ⁻¹, aⁿ⁻², …, a⁰ to the coefficients in order. Use the exponent calculator if the powers of a get messy.
  4. Write the ascending powers of b. Attach b⁰, b¹, b², …, bⁿ to the same terms, so each term's exponents add up to n.
  5. Multiply and combine. Simplify each term (coefficient × power of a × power of b) and write them in a single line.

Or let the binomial theorem calculator do all five steps instantly and show the working.

Worked Examples

Example 1 — Expand (x + 3)²

Here a = x, b = 3, and n = 2. Row 2 of Pascal's triangle is 1, 2, 1, so there are n + 1 = 3 terms.

Combining gives (x + 3)² = x² + 6x + 9. This is the perfect-square pattern, and it is also the first step of expanding many quadratic expressions.

Example 2 — Expand (2x − 3)⁴

Here a = 2x, b = −3, and n = 4. Row 4 of Pascal's triangle is 1, 4, 6, 4, 1. Because b is negative, the signs alternate + − + − +.

So (2x − 3)⁴ = 16x⁴ − 96x³ + 216x² − 216x + 81. Keep the entire second term, including its sign, inside the powers: it is (−3)², not −3², which would give the wrong sign.

Example 3 — Find a single term without expanding

To pull out one term without writing the whole expansion, use the general term formula for the (k + 1)th term:

T(k+1) = C(n,k) aⁿ⁻ᵏ bᵏ

Find the 3rd term of (x + 2)⁵. The 3rd term means k + 1 = 3, so k = 2, with a = x, b = 2, n = 5.

  1. Set k from the term number. The 3rd term ⇒ k + 1 = 3 ⇒ k = 2.
  2. Find the coefficient. C(5, 2) = 5! / (2! · 3!) = 10.
  3. Apply the powers. aⁿ⁻ᵏ = x⁵⁻² = x³ and bᵏ = 2² = 4.
  4. Multiply. T₃ = 10 · x³ · 4 = 40x³.

The 3rd term of (x + 2)⁵ is 40x³ — found directly, with no full expansion needed.

Pascal's Triangle and the Binomial Coefficients

Pascal's triangle is a fast way to read off the binomial coefficients. Row n of the triangle gives the coefficients C(n,0), C(n,1), …, C(n,n) — exactly the numbers in front of each term of (a + b)ⁿ. In the calculator above, this is the highlighted row shown with each expansion.

The triangle has three properties worth knowing: each entry is the sum of the two entries directly above it; every row is symmetric (it reads the same left to right as right to left, because C(n,k) = C(n, n−k)); and the entries of row n always sum to 2ⁿ. Each row is also a short numeric sequence — explore more patterns with the sequence calculator.

nRow of Pascal's triangle (coefficients)Sum (2ⁿ)
011
11  12
21  2  14
31  3  3  18
41  4  6  4  116
51  5  10  10  5  132

Binomial Theorem vs. Binomial Distribution

These two ideas are often confused because they share the binomial coefficient C(n,k), but they answer completely different questions. The binomial theorem is an algebra tool: it expands (a + b)ⁿ into a sum of terms — which is what this page does. The binomial distribution is a probability model: it gives the chance of getting exactly k successes in n independent trials.

So if you want to rewrite an expression like (2x − 3)⁴ as a polynomial, you need the theorem (this calculator). If you want the probability of, say, 3 heads in 5 coin flips, you need the distribution instead. Same coefficient, different jobs.

Common Mistakes to Avoid

Mistake 1 — Expecting n terms instead of n + 1An expansion of (a + b)ⁿ always has n + 1 terms. (a + b)⁴ has five terms, not four. Count the coefficients in row n of Pascal's triangle to check.
Mistake 2 — Sign errors when the second term is negativeWhen b is negative, keep the sign inside the power: (−3)² = 9, but −3² = −9. The signs of the terms then alternate + − + −. This is the single most common slip.
Mistake 3 — Mixing up ascending and descending powersThe power of a goes down (n → 0) while the power of b goes up (0 → n). In every term the two exponents must add to n; if they don't, a power is wrong.
Mistake 4 — Misreading the coefficient C(n,k)C(n,k) = n! / [k!(n − k)!], not n/k. For example C(5,2) = 10, not 2.5. Read the coefficient straight from row n of Pascal's triangle to avoid arithmetic errors.
Mistake 5 — Using the plain formula for fractional or negative nThe finite formula here works only for non-negative integer n. For a fractional or negative exponent you need the generalized binomial series, which is an infinite sum. This calculator handles integer n from 0 to 10.

Studying for AP Statistics? The same C(n,k) coefficient is the binomial probability formula in Unit 2.

Frequently Asked Questions

Looking for something else? Browse all of our free math calculators.