Binomial Expansion Calculator
The binomial theorem gives a formula for expanding any expression of the form (a + b) raised to a positive integer power n. Instead of multiplying (a + b) by itself n times, the theorem lets you write down the result directly using a set of coefficients called binomial coefficients, written C(n,k) or n-choose-k, which count the number of ways to choose k items from n. The expanded form has n+1 terms: the first is a to the power n, the last is b to the power n, and each intermediate term has a multiplying coefficient that follows the pattern of a row in Pascal's triangle. Pascal's triangle is a triangular array where each entry is the sum of the two above it; its rows are exactly the binomial coefficients. The binomial theorem appears throughout algebra (factoring and manipulating expressions), probability (the binomial distribution), calculus (Taylor series approximations), and combinatorics. This calculator expands (x + y) to the power n for any n from 0 to 10. You can substitute any terms for x and y, including negative values, which handles expressions like (a - b)^n by treating b as negative. The output shows the symbolic expansion, each term with its coefficient, and the relevant Pascal's triangle row. The default is (x+y)^4 which gives x^4 + 4x^3y + 6x^2y^2 + 4xy^3 + y^4.
Exponent labels use standard superscript notation. Substitute any symbols for a and b.
How it works
The binomial coefficient C(n,k) is computed as n! / (k! x (n-k)!). For each k from 0 to n, the term is C(n,k) times a^(n-k) times b^k. The symbolic expansion labels powers with superscript HTML entities (squared, cubed, etc.) and omits coefficient 1 and exponent 1 for readability. Pascal's triangle row n is the array of coefficients C(n,0) through C(n,n). The sum of coefficients equals 2^n, which you get by setting a=b=1.
Worked example
(x+y)^4 with n=4. Pascal's triangle row 4 is 1, 4, 6, 4, 1. The five terms are: C(4,0)x^4y^0 = x^4; C(4,1)x^3y = 4x^3y; C(4,2)x^2y^2 = 6x^2y^2; C(4,3)xy^3 = 4xy^3; C(4,4)y^4 = y^4. Full expansion: x^4 + 4x^3y + 6x^2y^2 + 4xy^3 + y^4. Sum of coefficients: 1+4+6+4+1 = 16 = 2^4. These match the defaults pre-filled above.
Related calculators
- Completing the Square: rewrite a quadratic in vertex form and find its roots.
- Change of Base Calculator: evaluate a logarithm in any base.
- Cross Multiplication: solve proportions a/b = c/d for any unknown.
- Long Multiplication: step-by-step multiplication with partial products.
- Daily Light Integral (DLI) Calculator: PPFD to DLI, NZ.
- Damping Ratio Calculator: zeta, Underdamped & Overdamped Systems.