This binomial expander, also called a binomial expansion calculator, expands an expression of the form (a·xᵖ + b·yᵠ)ⁿ and writes out every term with its binomial coefficient. Enter the coefficients a and b, the powers of x and y, and the exponent n from 0 to 20. You also get a term by term table and the matching row of Pascal's triangle. Coefficients can be negative or decimal.
(a + b)n = Σ C(n, k) · an−k · bk, for k = 0 to n
C(n, k) = n! ÷ (k! × (n − k)!) is the binomial coefficient. The expansion always has n + 1 terms, the powers of a fall from n to 0 while the powers of b rise from 0 to n, and the general term is T(k+1) = C(n, k) · an−k · bk. When a = b = 1 all the coefficients add up to 2ⁿ.
The coefficients are exactly a row of Pascal's triangle, where each number is the sum of the two above it: row 4 is 1 4 6 4 1, row 5 is 1 5 10 10 5 1 and row 6 is 1 6 15 20 15 6 1.
It is a core chapter of Class 11 algebra and of competitive exam syllabi, and it shows up in probability, since binomial probabilities use the same coefficients C(n, k). It is also handy for quick approximations such as (1 + x)ⁿ when x is small. If you are working on related topics, try the polynomial solver, the sequence and series tool, the statistics calculator or the matrix calculator.
The expansion of (a + b)ⁿ has n + 1 terms. For example (x + y)⁶ has 7 terms.
Use the general term T(k+1) = C(n, k) · a^(n−k) · b^k. Run the expander and read row k of the term table, where k starts at 0 for the first term.
This binomial expander accepts n from 0 to 20. Coefficients grow very quickly, and keeping n at 20 or below keeps every value exact.
Yes. Enter a negative b, for example b = −1. The calculator applies the sign to each term, so the signs alternate.
Row n of Pascal's triangle lists the binomial coefficients C(n, 0) to C(n, n), which are the coefficients in the expansion of (a + b)ⁿ.