Skip to content
FiftyCalc Free calculators for all 50 states

Binomial Expansion Calculator

Test cases replayed : 3 of 3 match · Methodology · No outside source listed

Enter a, b and the exponent n to expand (ax + b)^n. Each term is listed with its coefficient and power of x, from the highest power down.

Result

Sample figures

Term 1—

Term 2 —

  • Term 3—
  • Term 4—
  • Term 5—
  • Term 6—
  • Term 7—
  • Term 8—
  • Term 9—
  • Term 10—
  • Term 11—
  • Sum of all coefficients, (a + b)^n—

Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.

Binomial Expansion Calculator

a, coefficient of x: enter a number. Prefilled example: 2.

b, constant term: enter a number. Prefilled example: 3.

n, exponent (whole number 0 to 10): enter a number from 0 to 10. Prefilled example: 4.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. a, coefficient of x: enter a number.
  2. b, constant term: enter a number.
  3. n, exponent (whole number 0 to 10): enter a number from 0 to 10.
  4. Read the result: Term 1; the panel also shows Term 2, Term 3, Term 4, Term 5, Term 6, Term 7, Term 8, Term 9, Term 10, Term 11 and Sum of all coefficients, (a + b)^n.

How this calculator works

Binomial theorem: (ax + b)^n = Σ C(n, k) · a^(n−k) · b^k · x^(n−k), for k = 0 to n, where C(n, k) = n! ÷ (k! (n − k)!) is the binomial coefficient, the entries of Pascal's triangle.

The expansion has n + 1 terms. Term k + 1 has the coefficient C(n, k) · a^(n−k) · b^k and the power x^(n−k). Setting x = 1 shows that the coefficients add up to (a + b)^n.

For (x − 2)^3, enter a = 1 and b = −2: the signs alternate because b^k is negative for odd k. Terms beyond n are shown as a dash.

Worked example

a, coefficient of x2
b, constant term3
n, exponent (whole number 0 to 10)4
Term 116x^4
Term 296x^3
Term 3216x^2
Term 4216x
Term 581
Term 6—
Term 7—
Term 8—
Term 9—
Term 10—
Term 11—
Sum of all coefficients, (a + b)^n625

Frequently asked questions

What is the expansion of (2x + 3)^4?

16x^4 + 96x^3 + 216x^2 + 216x + 81. For example the third term is C(4, 2) · 2^2 · 3^2 = 6 · 4 · 9 = 216.

How many terms does (a + b)^n have?

n + 1 terms.

How do I expand (x − y)^n?

Treat it as (x + (−y))^n: the coefficients are C(n, k) with alternating signs, + − + − …

Related calculators