Binomial Theorem Expansion Calculator
Expand (a + b)^n for any integer exponent up to 50 using the binomial theorem — every term, its binomial coefficient, and the running coefficient sums, computed with exact big-integer arithmetic.
Input
An integer coefficient plus an optional single-letter variable, e.g. 2x, -y, or 3.
Same format as term a.
How many times (a + b) is multiplied by itself.
Output
| k | C(n,k) | Coefficient | Term |
|---|---|---|---|
| No data yet | |||
Guides
The Binomial Theorem Expansion Calculator expands (a + b)ⁿ for any whole-number exponent up to 50, listing every term of the expansion along with its binomial coefficient, its calculated numeric coefficient, and its algebraic form. Enter term a, term b, and the exponent n to get the full expansion, a term-by-term breakdown table, and two running sums.
It's built for algebra and combinatorics students verifying binomial expansions by hand, teachers preparing worked examples, and anyone who needs an exact expansion at a exponent too large to expand by repeated multiplication.
How to use it
- Enter term a — an integer coefficient plus an optional single-letter variable, e.g.
2x,-y, or3. - Enter term b in the same format.
- Set the exponent (n) with the slider, from 0 to 50.
- Read the Expression and Full Expansion, scan the Terms table for each term's binomial coefficient and value, and check the two coefficient sums.
Results update automatically as you type. For example, a = 2x, b = 3, n = 4 expands to 16x^4 + 96x^3 + 216x^2 + 216x + 81.
The binomial theorem
For a whole number n, (a + b)ⁿ expands as:
(a + b)^n = Σ (k = 0 to n) C(n,k) · a^(n−k) · b^kEach C(n,k) — read "n choose k" — is a binomial coefficient from row n of Pascal's triangle: C(n,k) = n! / (k! · (n−k)!). The calculator builds Pascal's triangle up to row n, then multiplies each coefficient by a^(n−k) · b^k to get every term's final numeric coefficient.
Why exact arithmetic matters at n = 50
A coefficient like 9 raised to the 50th power has 48 digits — far beyond what ordinary floating-point numbers can represent exactly (they lose precision past about 15–17 significant digits). Every step here — Pascal's triangle, each term's coefficient, and both running sums — is computed with arbitrary-precision integer arithmetic, so the results stay exact no matter how large the coefficients or exponent get.
The two coefficient sums
- Sum of Binomial Coefficients is C(n,0) + C(n,1) + ... + C(n,n), which always equals 2ⁿ — independent of what a and b actually are.
- Sum of All Coefficients is the sum of every term's calculated numeric coefficient (the binomial coefficient times the powers of a and b's own coefficients). Setting the variables to 1 shows why: it always equals (a + b)ⁿ evaluated with just the numeric coefficients — for
2x + 3that's(2 + 3)^4 = 625, matching16 + 96 + 216 + 216 + 81.
Combining like variables
If both terms use the same variable letter (e.g. x and x), the calculator merges their exponents into one power rather than showing them side by side — so (x + x)^2 reads as 4x^2, not 4x^1x^1. Different variable letters (e.g. x and y) stay separate, producing mixed terms like x^3y.
Privacy
This calculator runs entirely in your browser. Your terms and exponent are never uploaded, logged, or stored — the computation happens locally on your device.
Related tools
For a related two-term equation solved by a different algebraic route, see the Completing the Square Calculator.
More ways to use this tool
REST API
curl -X POST https://api.iotools.cloud/v1/tool/binomial-theorem-expansion-calculator \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"termA": "2x",
"termB": "3",
"exponent": "4"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `binomial-theorem-expansion-calculator` tool (Binomial Theorem Expansion Calculator) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.
Embed widget
<iframe
src="https://iotools.cloud/embed/binomial-theorem-expansion-calculator/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="Binomial Theorem Expansion Calculator — iotools.cloud"
sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
allow="clipboard-write"
style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>Drop this into your own page — free, no key required, just a link back.
| Cost per call | From 5 credits |
|---|