Binomial Theorem Expansion Calculator
Expand (a + b)^n with exact BigInt coefficients, from Pascal's triangle, for n up to 60.
Binomial Theorem Expansion Calculator
Expand (a + b)^n with exact BigInt coefficients, from Pascal's triangle, for n up to 60.
How this page computes
The page computes each coefficient from the previous one with an exact BigInt recurrence, so no factorial is formed and nothing is rounded. The exponent is capped at 60 to keep the printed line readable.
The calculation runs entirely in this browser tab; nothing is uploaded.
The page expands a plus b raised to a whole power and prints every term with its exact coefficient. For n equal to 6 the coefficients are 1, 6, 15, 20, 15, 6 and 1.
The coefficients are built with BigInt binomials, so n equal to 60 is exact even though the middle coefficient has eighteen digits. An exponent above 60 is refused with the ceiling named.
How to use the Binomial Theorem Expansion Calculator
Enter the exponent as a whole number and press Run. The first line names the power, the second is the expanded polynomial and the third lists the coefficients as a row.
The terms run from a to the n down to b to the n, and a coefficient of one is omitted where convention allows. The coefficient row is printed separately so it can be compared with Pascal's triangle.
The rule this page applies
The binomial theorem gives each term a coefficient equal to n choose k, with the powers of a and b summing to n. Those coefficients are exactly the row of Pascal's triangle for n.
The page computes each coefficient from the previous one with an exact BigInt recurrence, so no factorial is formed and nothing is rounded. The exponent is capped at 60 to keep the printed line readable.
What to Expect
Best for
- Expanding a binomial power
- Checking a row of Pascal's triangle
- Getting exact large coefficients
Not ideal for
- Expanding with numeric a and b
- Powers above 60
- Multiplying two general polynomials, which has its own page
What this tool keeps
- The exact exponent and every coefficient
What may need cleanup
- Nothing: the expansion is exact
Common errors
- An exponent above 60 is refused with the ceiling named
- A negative or fractional exponent is refused
Example use cases
- Expand (a + b)^6
- See that (a + b)^0 is 1
Sample input
6
Sample output
(a + b)^6 a^6 + 6a^5b + 15a^4b^2 + 20a^3b^3 + 15a^2b^4 + 6ab^5 + b^6 coefficients: 1, 6, 15, 20, 15, 6, 1
Who this is for
- Algebra students
- Readers checking Pascal's triangle
Frequently asked questions
How are the coefficients computed?
From the exact recurrence n choose k equals n choose k minus 1 times n minus k plus 1 over k. Each step is a whole-number division, so the result is exact and no factorial is ever formed.
Why is a coefficient of one omitted?
The convention is to write a to the sixth rather than 1a to the sixth. The separate coefficient row still shows the 1, so the full list is available.
What is the largest exponent?
- The middle coefficient then has eighteen digits and the printed expansion still fits on a few lines. A larger exponent is refused with the ceiling stated.
Is anything uploaded?
Nothing is uploaded. The numbers are read and the arithmetic runs in this browser tab with JavaScript, and reloading the page discards both the input and the result.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.