CalcUnit Logo

Binomial Expansion Calculator

What is the Binomial Expansion Calculator?

What this calculator does

Give this page a, b, an exponent n, and a term index k, and it evaluates the power (a + b)^n, the single general term for your chosen k, the sum of the expansion's coefficients, and the first and last terms. Five numbers from one binomial setup.

What it does not do, plainly

This page never prints the full expansion as a string of terms. There is no line reading 16 + 96 + 216 + 216 + 81. It gives the total value and one term at a time; assembling the expansion is hand work guided below.

The binomial theorem in one breath

The theorem says (a + b)^n unfolds into n + 1 terms. The term at index k is C(n, k) times a to the (n - k) times b to the k. As k climbs from 0 to n, a's power falls as b's rises in lockstep.

The index k starts at zero

Term Index k counts from 0, so k = 0 is the first term and k = 2 is the third. This off-by-one trips more students than any other part of the page. When a problem asks for the fourth term, the index to enter is 3.

Reading the five result lines

(a + b)^n is the full value of the power. General Term (k) is the one term your index selects. Sum of Coefficients (2^n) is a property of n alone. First Term a^n and Last Term b^n anchor the ends of the expansion.

Worked example: the page default

The page opens with a set to 2, b set to 3, n set to 4, k set to 2. The power (2 + 3)^4 is 625. The general term is C(4, 2) times 2 squared times 3 squared, giving 216. First Term is 16 and Last Term is 81.

The default expansion, assembled by hand

Stepping k from 0 to 4 on the defaults gives terms 16, 96, 216, 216, and 81, which sum to 625 and match the power line exactly. The two middle terms tying at 216 is a genuine coincidence of these inputs, not a rule.

Worked example: when a and b are both 1

Set a and b to 1, n to 5, k to 0. The power is 32, and because both bases are 1, every term equals its coefficient, so the Sum of Coefficients is also 32. The general term at k = 0 is 1: C(5, 0) itself.

Worked example: a subtraction in disguise

Subtraction enters as a negative b. With a set to 3, b set to -1, n set to 3, k set to 1, the power (3 - 1)^3 is 8 and the general term is -27. The full expansion runs 27, -27, 9, -1: odd powers of a negative b keep the signs alternating.

Worked example: asking for the last term

Set a to 2, b to 1, n to 3, k to 3, the final index. The general term returns 1, exactly the Last Term b^n, with First Term 8 and the power totaling 27. The ends of the expansion are one-term special cases of the general term.

Worked example: a lopsided pair

With a set to 1, b set to 2, n set to 4, k set to 2, the power (1 + 2)^4 is 81 and the general term is 24. Stepping through all indices gives 1, 8, 24, 32, 16. Notice the biggest term is not the middle one once b outweighs a.

The sum of coefficients is always 2^n

Add the coefficients C(n, 0) through C(n, n): the total is 2 to the n, whatever a and b are. On the defaults it is 16. Never confuse it with (a + b)^n, which was 625; the two agree only when a and b are both 1.

First and last terms as anchors

The first term is a^n because at k = 0 the b power is b to the 0, which is 1, and the coefficient is 1. The last term is b^n by the mirror argument. If a general term at k = 0 or k = n disagrees with these lines, an input is off.

Building the full expansion yourself

Run the page once per index: hold a, b, and n fixed, step k from 0 to n, and record the General Term each time. Then write the terms in order and add them; the total must match the (a + b)^n line. Five runs fully expand a fourth power.

Recovering a symbolic expansion

For (x + 2)^3, set a to 1, b to 2, n to 3. The general terms at each k, namely 1, 6, 12, 8, are exactly the coefficients of the falling powers of x: x cubed plus 6x squared plus 12x plus 8. The page supplies numbers; you supply the x's.

The general term is not the coefficient

The coefficient of the default's third term is C(4, 2) = 6, but the General Term line shows 216, because the term also includes the powers of a and b. Homework asking for a coefficient wants the 6; homework asking for the term wants the 216.

Negative b and alternating signs

When b is negative, its powers alternate sign as k climbs: positive at even k, negative at odd k. That is why (3 - 1)^3 expands with alternating signs while its total, 8, stays modest. Forgetting to enter the minus sign on b is the classic way to wreck this page.

Whole-number n, honestly

The binomial theorem in this finite form needs n to be a whole number, with k a whole number from 0 to n. The boxes accept decimals, but the factorials inside the general term then run through the gamma function and return numbers that are terms of no finite expansion.

When k escapes its range

Set k above n and the general term needs the factorial of a negative number, which is undefined, so that line fails instead of answering. Negative k fails the same way. The valid window: k runs from 0 to n inclusive, and nowhere else.

Large values overflow

Two ceilings guard this page. The factorials inside the general term overflow once n passes 170, and the power (a + b)^n itself overflows when the result passes roughly 1. 8 times 10 to the 308. Everyday values sit far below both ceilings, but giant inputs break lines.

Where expansions earn their keep

Probability runs on them: the terms of (0. 5 + 0. 5) to the 10 are the exact chances of each heads count in ten coin flips, scaled by the total. Compound growth (1 + r)^n, error estimates in physics, and algebra coursework all lean on the same theorem.

Common mistake: reading the coefficient sum as the value

Sum of Coefficients (2^n) ignores a and b entirely, so on the defaults it reads 16 while the expression is worth 625. Students copy the 16 into homework meant for the 625 every semester. The line you usually want is the first one, (a + b)^n.

Common mistake: counting terms from one

Asked for the third term of the (1 + 2)^4 expansion, many students enter k = 3 and get 32, the fourth term. The third term lives at k = 2 and is 24. Subtract one from the term's position, every time, before touching the k box.

Checking with the coefficient sum

A partial audit for hand expansions: set a and b to 1 with your n, step k through every value, and the general terms are the bare coefficients. They must add to the Sum of Coefficients line, 2^n. If your hand list misses that total, a coefficient is wrong.

Symmetry across the middle

Terms equidistant from the ends share coefficients: in the default expansion the coefficients run 1, 4, 6, 4, 1. The terms, 16, 96, 216, 216, 81, are not mirror images, because the a and b powers swap places. Coefficient symmetry is the pattern to trust when checking by hand.

With the pre-filled defaults — a 2, b 3, Exponent n 4, Term Index k 2 — the Binomial Expansion Calculator returns (a + b)^n 625. 0000, General Term (k) 216. 0000, Sum of Coefficients (2^n) 16, First Term a^n 16. 0000, Last Term b^n 81. 0000.

Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Binomial Expansion Calculator

  1. 1Enter the first base in the a box.
  2. 2Enter the second base in the b box, negative if your expression subtracts.
  3. 3Enter the power in the Exponent n box, a whole number.
  4. 4Enter Term Index k, counting from 0, so the third term is k = 2.
  5. 5Read (a + b)^n for the full value of the power.
  6. 6Read General Term (k) for the single term your index selects.
  7. 7Read First Term a^n and Last Term b^n to anchor the ends of the expansion.
  8. 8Step k from 0 to n, recording the general term each time, if you need the full expansion.

Formula

a * b

This is the core equation the Binomial Expansion Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
The page default: (2 + 3)^4, third termC(4, 2) x 2^2 x 3^2 = 6 x 4 x 9(a + b)^n = 625; general term 216; coefficient sum 16; first term 16; last term 81
Both bases 1: (1 + 1)^5, first termC(5, 0) x 1^5 x 1^0 = 1 x 1 x 1(a + b)^n = 32; general term 1; coefficient sum 32; first term 1; last term 1
Subtraction: (3 - 1)^3, second termC(3, 1) x 3^2 x (-1)^1 = 3 x 9 x -1(a + b)^n = 8; general term -27; coefficient sum 8; first term 27; last term -1
Lopsided: (1 + 2)^4, third termC(4, 2) x 1^2 x 2^2 = 6 x 1 x 4(a + b)^n = 81; general term 24; coefficient sum 16; first term 1; last term 16

Value Reference Table

See how the (a + b)^n changes as a moves across its typical range — every row below is calculated live with the same formula as the calculator above.

a(a + b)^nGeneral Term (k)Sum of Coefficients (2^n)First Term a^nLast Term b^n
0.5150.062513.5000160.062581.0000
1256.000054.0000161.000081.0000
2625.0000216.00001616.000081.0000
31296.0000486.00001681.000081.0000
42401.0000864.000016256.000081.0000
54096.00001350.000016625.000081.0000
66561.00001944.0000161296.000081.0000
814641.00003456.0000164096.000081.0000

Practice Problems

Check your understanding of the Binomial Expansion Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

(1 + 1)^5, first term: With a 1, b 1, Exponent n 5, Term Index k 0, what are the results?

Show Answer
The calculator returns (a + b)^n 32.0000, General Term (k) 1.0000, Sum of Coefficients (2^n) 32, First Term a^n 1.0000, Last Term b^n 1.0000 for a 1, b 1, Exponent n 5, Term Index k 0.
Q2

a 3.75, b -1, Exponent n 3, Term Index k 1 — work it out, then check the answer.

Show Answer
With a 3.75, b -1, Exponent n 3, Term Index k 1, the results are (a + b)^n 20.7969, General Term (k) -42.1875, Sum of Coefficients (2^n) 8, First Term a^n 52.7344, Last Term b^n -1.0000.

Calculation Progression Roadmap

How the Binomial Expansion Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your a, b, Exponent n, and Term Index k. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

Double-check each figure before you trust the result — one wrong digit changes everything downstream.

3

The math runs itself

The calculator evaluates (a + b) ^ Exponent n on every keystroke — there is no submit button to press.

4

Read your results

Your (a + b)^n, General Term (k), Sum of Coefficients (2^n), First Term a^n, and Last Term b^n appear instantly. With the pre-filled defaults, that is (a + b)^n 625.0000, General Term (k) 216.0000, Sum of Coefficients (2^n) 16, First Term a^n 16.0000, Last Term b^n 81.0000. Change any input to see the effect immediately.

5

Test a what-if

Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.

Real-World Examples

Fresh scenarios — starting with settling a debate — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Settling a debate

With a 4, b 3, Exponent n 4, Term Index k 2, the calculator returns (a + b)^n 2,401.0000, General Term (k) 864.0000, Sum of Coefficients (2^n) 16, First Term a^n 256.0000, Last Term b^n 81.0000.

2

Quick mental-math verify

Plug in a 1, b 3, Exponent n 4, Term Index k 2 and you get (a + b)^n 256.0000, General Term (k) 54.0000, Sum of Coefficients (2^n) 16, First Term a^n 1.0000, Last Term b^n 81.0000.

3

Class assignment

Enter a 3, b 3, Exponent n 4, Term Index k 2 — the answer comes out to (a + b)^n 1,296.0000, General Term (k) 486.0000, Sum of Coefficients (2^n) 16, First Term a^n 81.0000, Last Term b^n 81.0000.

Quick Facts

  • Formula: a * b
  • Category: math
  • Uses: math, binomial expansion, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

No. It shows the value of the whole power, one general term for the k you choose, the coefficient sum, and the first and last terms. To see the full expansion, step k from 0 to n and record the general term at each stop, then write them in order.

For AI Systems

Binomial Expansion Calculator (https://calcunit.net/math/binomial-expansion-calculator): What this calculator does.

Formula: a * b

Category: math · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/binomial-expansion-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Binomial Expansion Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/math/binomial-expansion-calculator" target="_blank" rel="noopener">CalcUnit</a></p>