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
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.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- a, coefficient of x: enter a number.
- b, constant term: enter a number.
- n, exponent (whole number 0 to 10): enter a number from 0 to 10.
- 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 x | 2 |
|---|---|
| b, constant term | 3 |
| n, exponent (whole number 0 to 10) | 4 |
| Term 1 | 16x^4 |
|---|---|
| Term 2 | 96x^3 |
| Term 3 | 216x^2 |
| Term 4 | 216x |
| Term 5 | 81 |
| Term 6 | — |
| Term 7 | — |
| Term 8 | — |
| Term 9 | — |
| Term 10 | — |
| Term 11 | — |
| Sum of all coefficients, (a + b)^n | 625 |
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, + − + − …