Skip to content
The Calculatorz
Algebra

Binomial Expansion Calculator (Binomial Theorem)

Expand (ax + b)ⁿ with the binomial theorem, list every coefficient from Pascal's triangle, and find any specific term.

Binomial and power

Expression

How to use this calculator

Enter a, b and the power n for (ax + b)ⁿ. The calculator writes out the full expansion, the binomial coefficients C(n, k) from Pascal's triangle and the requested term. Whole-number inputs give exact coefficients, however large.

Formula

(ax + b)ⁿ = Σ from k = 0 to n of C(n, k) (ax)ⁿ⁻ᵏ bᵏ, where C(n, k) = n! ÷ [k!(n − k)!]. Term k = C(n, k) aⁿ⁻ᵏ bᵏ xⁿ⁻ᵏ. The sum of all coefficients equals (a + b)ⁿ.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Expert reviewIfrahMSc Mathematics

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

What is the binomial theorem?

A formula for expanding a power of a sum: (x + y)ⁿ = Σ C(n, k) xⁿ⁻ᵏ yᵏ.

What is Pascal's triangle?

A triangle of numbers where each entry is the sum of the two above it. Row n gives the coefficients C(n, 0) to C(n, n).

How many terms are in the expansion?

(a + b)ⁿ has n + 1 terms when n is a non-negative whole number. For example, (a + b)⁴ expands to 5 terms: a⁴ + 4a³b + 6a²b² + 4ab³ + b⁴.

How do I find a single term without expanding?

Use term k = C(n, k) aⁿ⁻ᵏ bᵏ xⁿ⁻ᵏ, counting k from 0.

What happens with a negative b?

Terms alternate in sign, because odd powers of a negative number are negative.

Where is the binomial theorem used?

Probability (the binomial distribution), approximations such as (1 + x)ⁿ ≈ 1 + nx, and polynomial algebra.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. Abramson, J. (2021). Binomial theorem. In Precalculus 2e (Section 11.6). OpenStax. View source
  2. Marecek, L., Anthony-Smith, M., & Honeycutt Mathis, A. (2020). Binomial theorem. In Intermediate algebra 2e (Section 12.4). OpenStax. View source
  3. Graham, R. L., Knuth, D. E., & Patashnik, O. (1994). Concrete mathematics (2nd ed.). Addison-Wesley. View source
  4. OEIS Foundation. (n.d.). A007318: Pascal's triangle read by rows. The On-Line Encyclopedia of Integer Sequences. View source