Binomial Expansion Calculator
- The binomial theorem expands (x + 2)^3 into 4 terms: each term takes a coefficient from row 3 of Pascal's triangle (the binomial coefficients), a falling power of x and a rising power of the constant 2.
- Term by term, the coefficients work out to 1, 6, 12, 8, giving the expansion: x^3 + 6x^2 + 12x + 8.
- A built-in check: set x = 1 and the expansion must equal (1 + 2)^3 = 27 — and indeed the coefficients sum to 27.
- The same pattern prices options, expands probability distributions and approximates (1 + x)^n for small x — anywhere a power of a sum needs to become a sum of powers.
The Binomial Expansion Calculator expands an expression of the form (x + c)^n into its full polynomial form. The binomial theorem produces n + 1 terms, with coefficients taken from row n of Pascal's triangle and scaled by rising powers of c. The calculator applies that pattern and returns the complete expansion, so you can check a homework answer or confirm a step in a longer derivation without multiplying out every bracket by hand. For example, it gives (x + 2)^3 = x^3 + 6x^2 + 12x + 8, and (x - 3)^4 = x^4 - 12x^3 + 54x^2 - 108x + 81, where the negative constant makes the signs alternate.
This method is the accepted standard for binomial expansion because it follows directly from the binomial theorem rather than from shortcuts or pattern-matching. It also carries its own check: setting x = 1 turns any expansion into a self-check, since the coefficients must sum to (1 + c)^n. In the first example the coefficients sum to 27, which is (1 + 2)^3, as it must be. The same pattern underlies binomial probability distributions and the approximation (1 + x)^n ≈ 1 + nx for small x. This page shows the formula, step-by-step workings, worked examples and sources, so you can follow each stage of the calculation and verify the result yourself.
Worked examples
Primary result: x^3 + 6x^2 + 12x + 8
Primary result: x^3 + 6x^2 + 12x + 8 — The textbook cube. (2 · 3)
| Expansion | x^3 + 6x^2 + 12x + 8 |
| Number of terms | 4 |
| Sum of coefficients | 27 |
| Constant term | 8 |
| Coefficient of x^2 | 6 |
Primary result: x^4 - 12x^3 + 54x^2 - 108x + 81
Primary result: x^4 - 12x^3 + 54x^2 - 108x + 81 — A negative constant makes the signs alternate. (-3 · 4)
| Expansion | x^4 - 12x^3 + 54x^2 - 108x + 81 |
| Number of terms | 5 |
| Sum of coefficients | 16 |
| Constant term | 81 |
| Coefficient of x^3 | -12 |
Primary result: x^2 + 10x + 25
Primary result: x^2 + 10x + 25 — The familiar square. (5 · 2)
| Expansion | x^2 + 10x + 25 |
| Number of terms | 3 |
| Sum of coefficients | 36 |
| Constant term | 25 |
| Coefficient of x^1 | 10 |
What the binomial theorem says
The binomial theorem is the rule that turns a power of a sum into a sum of powers. Instead of multiplying (x + c) by itself n times, the theorem hands you the finished answer: (x + c)^n expands into n + 1 terms. The count is easy to remember — a power of n produces one term for each power of x from n down to 0, and that is n + 1 terms in all. So a square gives three terms, a cube gives four, and a fourth power gives five.
The coefficients come from row n of Pascal's triangle, the familiar stack of numbers where each entry is the sum of the two above it. Row 0 is just 1, row 1 is 1 1, row 2 is 1 2 1, and so on. In the expansion, those entries are scaled by rising powers of the constant c: the first term carries c to the power 0, the next c to the power 1, and so on up to c to the power n. That is the whole machine. A binomial expansion calculator simply runs this pattern for the x, c and n you give it, which is why it can produce long expansions without error.
Two worked checks show the pattern in action. For (x + 2)^3, row 3 of Pascal's triangle is 1 3 3 1, and scaling by powers of 2 gives x^3 + 6x^2 + 12x + 8. Add the coefficients — 1 + 6 + 12 + 8 — and you get 27, which is exactly (1 + 2)^3. That is no coincidence. Setting x = 1 turns any expansion into a self-check: the coefficients must sum to (1 + c)^n. For (x - 3)^4, the expansion is x^4 - 12x^3 + 54x^2 - 108x + 81. Here the negative constant makes the signs alternate, and the coefficients still add to (1 - 3)^4, which is 16.
The same pattern reaches beyond algebra. Binomial coefficients sit underneath binomial probability distributions, where they count the ways a given number of successes can occur in a fixed number of trials. The theorem also explains a shortcut you will meet often: for small x, (1 + x)^n is approximately 1 + nx, because the higher-power terms shrink quickly and can be dropped. Keeping the term count and the Pascal's triangle row in mind makes both ideas easier to place.
When you use a binomial expansion calculator, check the output against the term count and the x = 1 sum. If the expansion has n + 1 terms and its coefficients add to (1 + c)^n, the pattern has been applied correctly.
- Term count: (x + c)^n expands to n + 1 terms.
- Coefficients: row n of Pascal's triangle, scaled by rising powers of c.
- Check: set x = 1 and the coefficients must sum to (1 + c)^n.
- Signs: a negative constant makes the signs alternate, as in (x - 3)^4 = x^4 - 12x^3 + 54x^2 - 108x + 81.
- Beyond algebra: the same pattern underlies binomial probability distributions and the approximation (1 + x)^n ≈ 1 + nx for small x.
How to expand a binomial step by step
A binomial expansion calculator works from a pattern you can follow by hand. The binomial theorem expands (x + c)^n into n + 1 terms. Each term combines three moving parts: a coefficient taken from row n of Pascal's triangle (scaled by rising powers of c), a power of x that falls by one each term, and a power of the constant c that rises by one each term. The first term carries x^n with c to the zero power, and the last term carries x to the zero power with c^n.
Take (x + 2)^3. Row 3 of Pascal's triangle is 1, 3, 3, 1, and c = 2. The falling x powers run x^3, x^2, x, and 1. The rising powers of 2 run 1, 2, 4, and 8. Multiply each pair of coefficients and attach the x power: 1·1·x^3 gives x^3; 3·2·x^2 gives 6x^2; 3·4·x gives 12x; and 1·8·1 gives 8. So (x + 2)^3 = x^3 + 6x^2 + 12x + 8. Add the coefficients: 1 + 6 + 12 + 8 = 27, which is exactly (1 + 2)^3. The expansion checks out.
A negative constant changes only the signs. For (x - 3)^4, row 4 of Pascal's triangle is 1, 4, 6, 4, 1 and c = -3. The powers of -3 alternate in sign: 1, -3, 9, -27, 81. Multiplying gives x^4 - 12x^3 + 54x^2 - 108x + 81. Here the signs alternate from term to term, which is what a negative constant produces — the odd powers of c are negative and the even powers are positive.
Setting x = 1 turns any expansion into a self-check: the coefficients must sum to (1 + c)^n. For (x - 3)^4 the coefficients sum to 1 - 12 + 54 - 108 + 81 = 16, and (1 - 3)^4 = 16. If your sum misses that value, a coefficient or sign is wrong. Running the same steps through a binomial expansion calculator is a fast way to confirm the result on longer expansions, where the arithmetic grows quickly.
The same pattern underlies binomial probability distributions and the approximation (1 + x)^n ≈ 1 + nx for small x. Once you can build the terms by hand, the calculator becomes a check rather than a black box.
- Write row n of Pascal's triangle — it supplies the leading coefficients.
- Attach falling powers of x: x^n, x^(n-1), down to x^0.
- Attach rising powers of c: c^0, c^1, up to c^n, and multiply the two together.
- Add the coefficients and compare the total with (1 + c)^n as a self-check.
Negative constants and alternating signs
A negative constant does not change the structure of a binomial expansion — it only changes the signs. The binomial theorem still expands (x + c)^n into n + 1 terms, with coefficients taken from row n of Pascal's triangle and scaled by rising powers of c. When c is negative, those rising powers of c flip between positive and negative, so the terms of the expansion alternate in sign. This is why a binomial expansion calculator that handles signed constants correctly is worth having: the arithmetic is simple, but the sign on every term is easy to lose by hand.
Take (x - 3)^4. Here c = -3, and the expansion works out to x^4 - 12x^3 + 54x^2 - 108x + 81. Look at where each sign comes from. The first term, x^4, carries no power of c and stays positive. The second term pairs a Pascal coefficient of 4 with c^1 = -3, giving -12x^3. The third pairs 6 with c^2 = 9, giving +54x^2. The fourth pairs 4 with c^3 = -27, giving -108x. The last term is c^4 = 81, which is positive because an even power of a negative number is positive. The signs alternate because each successive term gains one more factor of the negative constant.
The final term deserves special attention. In (x + c)^n, the constant term is always c^n, with no x attached. For (x - 3)^4 that constant term is (-3)^4 = 81. For an odd n, the same reasoning gives a negative constant term: in (x - 3)^3 the last term is (-3)^3 = -27. Tracking the sign of each term therefore comes down to two questions — is the power of c even or odd, and what is the sign of c itself — applied term by term rather than guessed at the end.
There is a built-in way to check any expansion you produce with a binomial expansion calculator. Set x = 1, and every expansion collapses to a sum of its coefficients, which must equal (1 + c)^n. For (x + 2)^3 = x^3 + 6x^2 + 12x + 8, the coefficients sum to 1 + 6 + 12 + 8 = 27, and (1 + 2)^3 = 27 as it must. Run the same test on (x - 3)^4: 1 - 12 + 54 - 108 + 81 = 16, and (1 - 3)^4 = (-2)^4 = 16. If your coefficient sum misses this target, a sign has slipped somewhere.
The same sign pattern shows up beyond polynomial algebra. It underlies binomial probability distributions, where terms alternate in form depending on how the complement probability is written, and it appears in the small-x approximation (1 + x)^n ≈ 1 + nx, which holds when x is small whether x is positive or negative.
- Constant term of (x + c)^n is c^n: (-3)^4 = 81, but (-3)^3 = -27.
- Even powers of a negative constant are positive; odd powers are negative.
- Check with x = 1: coefficients must sum to (1 + c)^n.
Checking and using an expansion
An expansion is only useful if it is right, and the quickest way to confirm that is to set x = 1. Doing so turns any expansion into a self-check: the coefficients must sum to (1 + c)^n. Take the worked check (x + 2)^3 = x^3 + 6x^2 + 12x + 8. Add the coefficients — 1 + 6 + 12 + 8 — and you get 27, which is (1 + 2)^3, exactly as it must be. A binomial expansion calculator will produce the terms for you, but this one-line test lets you verify the output yourself without trusting the tool blindly.
The check is especially handy when signs get involved. Expand (x - 3)^4 and you get x^4 - 12x^3 + 54x^2 - 108x + 81 — a negative constant makes the signs alternate. Sum those coefficients: 1 - 12 + 54 - 108 + 81 = 16, and (1 - 3)^4 = (-2)^4 = 16. The alternating signs can look like errors at a glance, so the x = 1 check is the fastest way to confirm the pattern is correct rather than a mistake. The same logic applies to any (x + c)^n: the binomial theorem expands it into n + 1 terms, with coefficients from row n of Pascal's triangle scaled by rising powers of c, and the coefficient sum always collapses back to (1 + c)^n.
Beyond checking your own work, the same pattern underlies binomial probability distributions. A probability of the form C(n, k) p^k (1 - p)^(n - k) is a single term of an expansion, and the fact that the probabilities across all k sum to 1 is the x = 1 check in disguise. The pattern also gives the approximation (1 + x)^n ≈ 1 + nx for small x, which is useful for quick estimates when x is tiny and n is modest.
So when should you reach for a calculator instead of working by hand? Hand expansion is fine for small n, but the number of terms grows with n and the coefficients grow quickly, which makes arithmetic slips more likely. A binomial expansion calculator handles the row of Pascal's triangle, the rising powers of c, and the signs in one pass, and you can then apply the x = 1 coefficient-sum check to confirm the result. Use the tool for the heavy lifting and the check for confidence.
FAQs
How many terms does (x + c)^n have?
The expansion of (x + c)^n has n + 1 terms. There is one term for each power of x, running from x^n down to x^0. So if n is 3, you get 4 terms; if n is 10, you get 11. Counting terms before you expand is a quick way to check that no term was dropped.
What is (x + 2)^3 expanded?
(x + 2)^3 expands to x^3 + 6x^2 + 12x + 8. The powers of x fall from 3 to 0, and the coefficients 1, 3, 3, 1 come from row 3 of Pascal's triangle, each multiplied by the matching power of 2: 2^0 = 1, 2^1 = 2, 2^2 = 4, 2^3 = 8.
Where do the coefficients come from?
The coefficients come from row n of Pascal's triangle — the binomial coefficients — and each is then multiplied by the matching power of the constant. For (x + c)^n, the first coefficient pairs with c^0, the next with c^1, and so on. That is why the numbers in front of the powers of x are not just the triangle entries when c is not 1.
Why do the signs alternate in (x - 3)^4?
The constant is negative, so its odd powers are negative and its even powers positive, alternating the term signs. In (x - 3)^4, the constant is -3: (-3)^0 is positive, (-3)^1 negative, (-3)^2 positive, and so on. That produces the alternating plus and minus pattern across the expanded terms.
How can I check a binomial expansion?
Set x = 1: the coefficients must add up to (1 + c)^n. For (x + 2)^3 that is 27, and indeed 1 + 6 + 12 + 8 = 27. This quick check catches arithmetic slips in the coefficients without redoing the whole expansion. It works for any constant c and any power n.
What is the constant term of (x + 5)^2?
The constant term is 25 — the constant raised to the power n, here 5^2. In any expansion of (x + c)^n, the term with no x is simply c^n, because the x part drops to x^0 = 1. So for (x + 5)^2, the full expansion ends in 25.