Binomial Theorem Calculator

Published on: October 31, 2026
Final Answer: Free | Full Steps: Plus

This Binomial Theorem Calculator expands a two-term expression raised to a whole-number power, and shows the working at every step. Instead of multiplying the brackets out again and again, the binomial theorem builds every term directly from a binomial coefficient, a power of the first term that counts down and a power of the second term that counts up. Each term is then simplified and the terms are written in order. Following the same pattern every time makes long expansions quick to write and easy to check.

Step-by-step method

  1. Set up the problem.
  2. Write the binomial theorem.
  3. Put the terms and the power into the formula.
  4. Work out each binomial coefficient.
  5. Work out every term.
  6. Add the terms.

Formula: Binomial Theorem

This formula expands a bracket like (a + b) raised to a whole-number power n. Each term is a number from nCr, times a power of a that counts down and a power of b that counts up.

\(\left(a + b\right)^{n} = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^{k}\)

Formula: Combinations Formula (nCr)

This formula gives the number in front of each term. Put in n and k, then work out the factorials.

\(\binom{n}{k} = {}^{n}C_{k} = \frac{n!}{k! \times (n-k)!}\)

Required knowledge

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\left(x + 2\right)^{4}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the binomial theorem.
  3. Put the terms and the power into the formula.
  4. Work out each binomial coefficient.
  5. Work out every term.
  6. Add the terms.

Formula

Formula: Binomial Theorem

This formula expands a bracket like (a + b) raised to a whole-number power n. Each term is a number from nCr, times a power of a that counts down and a power of b that counts up.

\(\left(a + b\right)^{n} = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^{k}\)

Formula: Combinations Formula (nCr)

This formula gives the number in front of each term. Put in n and k, then work out the factorials.

\(\binom{n}{k} = {}^{n}C_{k} = \frac{n!}{k! \times (n-k)!}\)

Step 1

Step 1 - Set up the problem.

In this problem: The binomial is \(\left(x + 2\right)^{4}\). In the formula, \(a\) is the first term, \(x\), \(b\) is the second term, \(2\), and the power is \(n = 4\).

\(\left(x + 2\right)^{4}\)

Step 2

Step 2 - Write the binomial theorem.

In this problem: Each term of the answer is a number from the formula, times a power of \(a\) and a power of \(b\). The power of \(a\) starts at \(n\) and goes down by \(1\) each term, and the power of \(b\) starts at \(0\) and goes up by \(1\).

\(\left(a + b\right)^{n} = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^{k}\)

Step 3

Step 3 - Put the terms and the power into the formula.

In this problem: Put \(a = x\), \(b = 2\) and \(n = 4\) into the formula.

\(\left(x + 2\right)^{4} = \binom{4}{0} x^{4} 2^{0} + \binom{4}{1} x^{3} 2^{1} + \binom{4}{2} x^{2} 2^{2} + \binom{4}{3} x^{1} 2^{3} + \binom{4}{4} x^{0} 2^{4}\)

Step 4

Step 4 - Work out each binomial coefficient.

In this problem: There are \(5\) terms, so there are \(5\) numbers to work out with this rule. \(\binom{n}{k}\) is the same as \({}^{n}C_{k}\), so each one uses the Combinations Calculator steps. \(n!\) means multiplying every whole number from \(n\) down to \(1\), for example \(4! = 4 \times 3 \times 2 \times 1 = 24\), and \(0! = 1\).

\(\binom{n}{k} = {}^{n}C_{k} = \frac{n!}{k! \times (n-k)!}\)

Step 4a

Step 4a - Work out \(\binom{4}{0}\).

In this problem: Here \(k = 0\), so \(n - k = 4 - 0 = 4\). Work out the factorials: \(4! = 4 \times 3 \times 2 \times 1 = 24\), \(0! = 1\).

\(\binom{4}{0} = \frac{4!}{0! \times 4!} = \frac{24}{1 \times 24} = 1\)

Step 4b

Step 4b - Work out \(\binom{4}{1}\).

In this problem: Here \(k = 1\), so \(n - k = 4 - 1 = 3\). Work out the factorials: \(4! = 4 \times 3 \times 2 \times 1 = 24\), \(3! = 3 \times 2 \times 1 = 6\), \(1! = 1\).

\(\binom{4}{1} = \frac{4!}{1! \times 3!} = \frac{24}{1 \times 6} = 4\)

Step 4c

Step 4c - Work out \(\binom{4}{2}\).

In this problem: Here \(k = 2\), so \(n - k = 4 - 2 = 2\). Work out the factorials: \(4! = 4 \times 3 \times 2 \times 1 = 24\), \(2! = 2 \times 1 = 2\).

\(\binom{4}{2} = \frac{4!}{2! \times 2!} = \frac{24}{2 \times 2} = 6\)

Step 4d

Step 4d - Work out \(\binom{4}{3}\).

In this problem: Here \(k = 3\), so \(n - k = 4 - 3 = 1\). Work out the factorials: \(4! = 4 \times 3 \times 2 \times 1 = 24\), \(3! = 3 \times 2 \times 1 = 6\), \(1! = 1\).

\(\binom{4}{3} = \frac{4!}{3! \times 1!} = \frac{24}{6 \times 1} = 4\)

Step 4e

Step 4e - Work out \(\binom{4}{4}\).

In this problem: Here \(k = 4\), so \(n - k = 4 - 4 = 0\). Work out the factorials: \(4! = 4 \times 3 \times 2 \times 1 = 24\), \(0! = 1\).

\(\binom{4}{4} = \frac{4!}{4! \times 0!} = \frac{24}{24 \times 1} = 1\)

Step 4f

Step 4f - Put the numbers into the expansion.

In this problem: Swap each \(\binom{4}{k}\) from step 3 for the number just worked out.

\(\left(x + 2\right)^{4} = \left(1 \times x^{4} \times 2^{0}\right) + \left(4 \times x^{3} \times 2^{1}\right) + \left(6 \times x^{2} \times 2^{2}\right) + \left(4 \times x^{1} \times 2^{3}\right) + \left(1 \times x^{0} \times 2^{4}\right)\)

Step 5

Step 5 - Work out every term.

In this problem: Work out each term of the expansion from step 4 one at a time.

\(\left(1 \times x^{4} \times 2^{0}\right) + \left(4 \times x^{3} \times 2^{1}\right) + \left(6 \times x^{2} \times 2^{2}\right) + \left(4 \times x^{1} \times 2^{3}\right) + \left(1 \times x^{0} \times 2^{4}\right)\)

Step 5a

Step 5a - Work out the first term.

In this problem: Work out the powers: \(2^{0} = 1\), because anything to the power \(0\) is \(1\). Then multiply: \(1 \times x^{4} \times 1 = x^{4}\).

\(1 \times x^{4} \times 2^{0} = 1 \times x^{4} \times 1 = x^{4}\)

Step 5b

Step 5b - Work out the second term.

In this problem: Work out the powers: \(2^{1} = 2\). Then multiply: \(4 \times x^{3} \times 2 = 8x^{3}\).

\(4 \times x^{3} \times 2^{1} = 4 \times x^{3} \times 2 = 8x^{3}\)

Step 5c

Step 5c - Work out the third term.

In this problem: Work out the powers: \(2^{2} = 2 \times 2 = 4\). Then multiply: \(6 \times x^{2} \times 4 = 24x^{2}\).

\(6 \times x^{2} \times 2^{2} = 6 \times x^{2} \times 4 = 24x^{2}\)

Step 5d

Step 5d - Work out the fourth term.

In this problem: Work out the powers: \(x^{1} = x\); \(2^{3} = 2 \times 2 \times 2 = 8\). Then multiply: \(4 \times x \times 8 = 32x\).

\(4 \times x^{1} \times 2^{3} = 4 \times x \times 8 = 32x\)

Step 5e

Step 5e - Work out the fifth term.

In this problem: Work out the powers: \(x^{0} = 1\), because anything to the power \(0\) is \(1\); \(2^{4} = 2 \times 2 \times 2 \times 2 = 16\). Then multiply: \(1 \times 1 \times 16 = 16\).

\(1 \times x^{0} \times 2^{4} = 1 \times 1 \times 16 = 16\)

Step 6

Step 6 - Add the terms.

In this problem: Put the worked-out terms together in order, keeping each one's sign.

\(x^{4} + 8x^{3} + 24x^{2} + 32x + 16\)

Final Answer

\(\left(x + 2\right)^{4} = x^{4} + 8x^{3} + 24x^{2} + 32x + 16\)
See Example 2 Hide Example 2

Problem

\(\left(2x - 3\right)^{5}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the binomial theorem.
  3. Put the terms and the power into the formula.
  4. Work out each binomial coefficient.
  5. Work out every term.
  6. Add the terms.

Formula

Formula: Binomial Theorem

This formula expands a bracket like (a + b) raised to a whole-number power n. Each term is a number from nCr, times a power of a that counts down and a power of b that counts up.

\(\left(a + b\right)^{n} = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^{k}\)

Formula: Combinations Formula (nCr)

This formula gives the number in front of each term. Put in n and k, then work out the factorials.

\(\binom{n}{k} = {}^{n}C_{k} = \frac{n!}{k! \times (n-k)!}\)

Step 1

Step 1 - Set up the problem.

In this problem: The binomial is \(\left(2x - 3\right)^{5}\). In the formula, \(a\) is the first term, \(2x\), \(b\) is the second term, \(-3\), and the power is \(n = 5\).

\(\left(2x - 3\right)^{5}\)

Step 2

Step 2 - Write the binomial theorem.

In this problem: Each term of the answer is a number from the formula, times a power of \(a\) and a power of \(b\). The power of \(a\) starts at \(n\) and goes down by \(1\) each term, and the power of \(b\) starts at \(0\) and goes up by \(1\).

\(\left(a + b\right)^{n} = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^{k}\)

Step 3

Step 3 - Put the terms and the power into the formula.

In this problem: Put \(a = 2x\), \(b = -3\) and \(n = 5\) into the formula.

\(\begin{aligned} &\left(2x - 3\right)^{5} = \binom{5}{0} \left(2x\right)^{5} \left(-3\right)^{0} + \binom{5}{1} \left(2x\right)^{4} \left(-3\right)^{1} + \binom{5}{2} \left(2x\right)^{3} \left(-3\right)^{2} + \binom{5}{3} \left(2x\right)^{2} \left(-3\right)^{3} \\ &+ \binom{5}{4} \left(2x\right)^{1} \left(-3\right)^{4} + \binom{5}{5} \left(2x\right)^{0} \left(-3\right)^{5} \end{aligned}\)

Step 4

Step 4 - Work out each binomial coefficient.

In this problem: There are \(6\) terms, so there are \(6\) numbers to work out with this rule. \(\binom{n}{k}\) is the same as \({}^{n}C_{k}\), so each one uses the Combinations Calculator steps. \(n!\) means multiplying every whole number from \(n\) down to \(1\), for example \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\), and \(0! = 1\).

\(\binom{n}{k} = {}^{n}C_{k} = \frac{n!}{k! \times (n-k)!}\)

Step 4a

Step 4a - Work out \(\binom{5}{0}\).

In this problem: Here \(k = 0\), so \(n - k = 5 - 0 = 5\). Work out the factorials: \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\), \(0! = 1\).

\(\binom{5}{0} = \frac{5!}{0! \times 5!} = \frac{120}{1 \times 120} = 1\)

Step 4b

Step 4b - Work out \(\binom{5}{1}\).

In this problem: Here \(k = 1\), so \(n - k = 5 - 1 = 4\). Work out the factorials: \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\), \(4! = 4 \times 3 \times 2 \times 1 = 24\), \(1! = 1\).

\(\binom{5}{1} = \frac{5!}{1! \times 4!} = \frac{120}{1 \times 24} = 5\)

Step 4c

Step 4c - Work out \(\binom{5}{2}\).

In this problem: Here \(k = 2\), so \(n - k = 5 - 2 = 3\). Work out the factorials: \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\), \(3! = 3 \times 2 \times 1 = 6\), \(2! = 2 \times 1 = 2\).

\(\binom{5}{2} = \frac{5!}{2! \times 3!} = \frac{120}{2 \times 6} = 10\)

Step 4d

Step 4d - Work out \(\binom{5}{3}\).

In this problem: Here \(k = 3\), so \(n - k = 5 - 3 = 2\). Work out the factorials: \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\), \(3! = 3 \times 2 \times 1 = 6\), \(2! = 2 \times 1 = 2\).

\(\binom{5}{3} = \frac{5!}{3! \times 2!} = \frac{120}{6 \times 2} = 10\)

Step 4e

Step 4e - Work out \(\binom{5}{4}\).

In this problem: Here \(k = 4\), so \(n - k = 5 - 4 = 1\). Work out the factorials: \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\), \(4! = 4 \times 3 \times 2 \times 1 = 24\), \(1! = 1\).

\(\binom{5}{4} = \frac{5!}{4! \times 1!} = \frac{120}{24 \times 1} = 5\)

Step 4f

Step 4f - Work out \(\binom{5}{5}\).

In this problem: Here \(k = 5\), so \(n - k = 5 - 5 = 0\). Work out the factorials: \(5! = 5 \times 4 \times 3 \times 2 \times 1 = 120\), \(0! = 1\).

\(\binom{5}{5} = \frac{5!}{5! \times 0!} = \frac{120}{120 \times 1} = 1\)

Step 4g

Step 4g - Put the numbers into the expansion.

In this problem: Swap each \(\binom{5}{k}\) from step 3 for the number just worked out.

\(\begin{aligned} &\left(2x - 3\right)^{5} = \left(1 \times \left(2x\right)^{5} \times \left(-3\right)^{0}\right) + \left(5 \times \left(2x\right)^{4} \times \left(-3\right)^{1}\right) + \left(10 \times \left(2x\right)^{3} \times \left(-3\right)^{2}\right) \\ &+ \left(10 \times \left(2x\right)^{2} \times \left(-3\right)^{3}\right) + \left(5 \times \left(2x\right)^{1} \times \left(-3\right)^{4}\right) + \left(1 \times \left(2x\right)^{0} \times \left(-3\right)^{5}\right) \end{aligned}\)

Step 5

Step 5 - Work out every term.

In this problem: Work out each term of the expansion from step 4 one at a time.

\(\begin{aligned} &\left(1 \times \left(2x\right)^{5} \times \left(-3\right)^{0}\right) + \left(5 \times \left(2x\right)^{4} \times \left(-3\right)^{1}\right) + \left(10 \times \left(2x\right)^{3} \times \left(-3\right)^{2}\right) \\ &+ \left(10 \times \left(2x\right)^{2} \times \left(-3\right)^{3}\right) + \left(5 \times \left(2x\right)^{1} \times \left(-3\right)^{4}\right) + \left(1 \times \left(2x\right)^{0} \times \left(-3\right)^{5}\right) \end{aligned}\)

Step 5a

Step 5a - Work out the first term.

In this problem: Work out the powers: \(\left(2x\right)^{5} = 32x^{5}\) (its steps are below); \(\left(-3\right)^{0} = 1\), because anything to the power \(0\) is \(1\). Then multiply: \(1 \times 32x^{5} \times 1 = 32x^{5}\).

\(1 \times \left(2x\right)^{5} \times \left(-3\right)^{0} = 1 \times 32x^{5} \times 1 = 32x^{5}\)

Step 5b

Step 5b - Work out the second term.

In this problem: Work out the powers: \(\left(2x\right)^{4} = 16x^{4}\) (its steps are below); \(\left(-3\right)^{1} = -3\). Then multiply: \(5 \times 16x^{4} \times \left(-3\right) = -240x^{4}\).

\(5 \times \left(2x\right)^{4} \times \left(-3\right)^{1} = 5 \times 16x^{4} \times \left(-3\right) = -240x^{4}\)

Step 5c

Step 5c - Work out the third term.

In this problem: Work out the powers: \(\left(2x\right)^{3} = 8x^{3}\) (its steps are below); \(\left(-3\right)^{2} = \left(-3\right) \times \left(-3\right) = 9\). Then multiply: \(10 \times 8x^{3} \times 9 = 720x^{3}\).

\(10 \times \left(2x\right)^{3} \times \left(-3\right)^{2} = 10 \times 8x^{3} \times 9 = 720x^{3}\)

Step 5d

Step 5d - Work out the fourth term.

In this problem: Work out the powers: \(\left(2x\right)^{2} = 4x^{2}\) (its steps are below); \(\left(-3\right)^{3} = \left(-3\right) \times \left(-3\right) \times \left(-3\right) = -27\). Then multiply: \(10 \times 4x^{2} \times \left(-27\right) = -1080x^{2}\).

\(10 \times \left(2x\right)^{2} \times \left(-3\right)^{3} = 10 \times 4x^{2} \times \left(-27\right) = -1080x^{2}\)

Step 5e

Step 5e - Work out the fifth term.

In this problem: Work out the powers: \(\left(2x\right)^{1} = 2x\); \(\left(-3\right)^{4} = \left(-3\right) \times \left(-3\right) \times \left(-3\right) \times \left(-3\right) = 81\). Then multiply: \(5 \times 2x \times 81 = 810x\).

\(5 \times \left(2x\right)^{1} \times \left(-3\right)^{4} = 5 \times 2x \times 81 = 810x\)

Step 5f

Step 5f - Work out the sixth term.

In this problem: Work out the powers: \(\left(2x\right)^{0} = 1\), because anything to the power \(0\) is \(1\); \(\left(-3\right)^{5} = \left(-3\right) \times \left(-3\right) \times \left(-3\right) \times \left(-3\right) \times \left(-3\right) = -243\). Then multiply: \(1 \times 1 \times \left(-243\right) = -243\).

\(1 \times \left(2x\right)^{0} \times \left(-3\right)^{5} = 1 \times 1 \times \left(-243\right) = -243\)

Step 6

Step 6 - Add the terms.

In this problem: Put the worked-out terms together in order, keeping each one's sign.

\(32x^{5} - 240x^{4} + 720x^{3} - 1080x^{2} + 810x - 243\)

Final Answer

\(\left(2x - 3\right)^{5} = 32x^{5} - 240x^{4} + 720x^{3} - 1080x^{2} + 810x - 243\)

Example Problems

Click one to load it into the box and solve it.