Full expansion of (2x - 3)^4, (x + 1/x)^6 or (a + b)^n with each term's coefficient, a lookup for any power of x, exact C(n, k) up to n = 1000 and Pascal's triangle.
What are the numbers in row 12 of Pascal's triangle?
Full expansion of (2x - 3)^4, (x + 1/x)^6 or (a + b)^n with each term's coefficient, a lookup for any power of x, exact C(n, k) up to n = 1000 and Pascal's triangle.
The calculator below is set to draw Pascal's triangle down to row 12, counting the single 1 at the top as row 0, the usual convention, so row 12 holds the coefficients of (a + b)12. Press Calculate to see every entry of the row, its sum 212, the largest entry and all the rows above it. Switch the mode to expand a binomial or to get a single C(n, k).
Parameters
Enter data for calculations
💡 Fill in all required fields to unlock the calculate button
The binomial theorem, expanded term by term
(2x - 3)4 comes out as 16x4 - 96x3 + 216x2 - 216x + 81, and this binomial expansion calculator shows every one of those five terms with the coefficient, the two powers and the product that built it. Type the two terms as you would write them, 2x, -3, x^2 or 1/x, pick the power n, and optionally name a power of x to get its coefficient on its own. The same tool gives the binomial coefficient C(n, k) exactly up to n = 1000 and draws Pascal's triangle up to row 30. Nothing is rounded: fractions stay fractions, and a 30-digit coefficient keeps all 30 digits.
Typing a binomial the calculator can read
- What do you want to calculate - an expansion, a single binomial coefficient C(n, k), or a block of Pascal's triangle.
- First term and second term - one number and at most one letter each, with an optional power: 2x, -3, x^2, 3/2y, 0.5x. For a letter below the line write 1/x or 2/x^3. A minus sign belongs to the term, so (x - 2)5 is x and -2.
- Power n - a whole number from 0 to 60 for an expansion, up to 1000 for C(n, k), up to 30 for the triangle.
- Power of x to look up - optional. Type 4 to get the coefficient of x4, or 0 for the constant term. It works when the binomial has one letter.
- k - for C(n, k) only, from 0 to n.
- Read the result: the expanded polynomial, the tiles (your coefficient, the sum of all coefficients, the constant term, the middle term) and the table with one row per term.
What the theorem says, and why its numbers are counts
Multiply (a + b) by itself n times and every term of the result comes from choosing, in each of the n brackets, either a or b. A term with k b's and n - k a's can be picked in as many ways as there are to choose which k brackets supply the b. That count is the binomial coefficient C(n, k), read "n choose k", so (a + b)n = Σ C(n, k) an-k bk for k from 0 to n.
The general term, written Tk+1 = C(n, k) an-k bk, is what exam questions usually target. Finding the coefficient of x4 in (3x + 2)7 means finding the k where the power of x is 4, here k = 3, and multiplying C(7, 3) = 35 by 34 and 23. The answer is 22,680, and the calculator returns it in the lookup tile without writing out the other seven terms by hand.
When a term carries a negative power, as in (x + 1/x)6, the powers of x run 6, 4, 2, 0, -2, -4, -6. The term with x0 is the constant term, a favorite of textbook exercises, and here it is C(6, 3) = 20.
Pascal's triangle, rows 0 to 10
Each entry is the sum of the two above it. Row n holds the coefficients of (a + b)n, and the last column shows that each row adds up to twice the one before.
| Row n | Coefficients of (a + b)n | Row sum, 2n |
|---|---|---|
| 0 | 1 | 1 |
| 1 | 1, 1 | 2 |
| 2 | 1, 2, 1 | 4 |
| 3 | 1, 3, 3, 1 | 8 |
| 4 | 1, 4, 6, 4, 1 | 16 |
| 5 | 1, 5, 10, 10, 5, 1 | 32 |
| 6 | 1, 6, 15, 20, 15, 6, 1 | 64 |
| 7 | 1, 7, 21, 35, 35, 21, 7, 1 | 128 |
| 8 | 1, 8, 28, 56, 70, 56, 28, 8, 1 | 256 |
| 9 | 1, 9, 36, 84, 126, 126, 84, 36, 9, 1 | 512 |
| 10 | 1, 10, 45, 120, 210, 252, 210, 120, 45, 10, 1 | 1,024 |
Expansions and coefficients that come up in exercises
Each row was produced by the calculator and checked against the polynomial multiplied out bracket by bracket.
| Binomial | What is asked | Answer | Interpretation |
|---|---|---|---|
| (x + 2)5 | full expansion | x5 + 10x4 + 40x3 + 80x2 + 80x + 32 | row 5 times powers of 2 |
| (2x - 3)4 | full expansion | 16x4 - 96x3 + 216x2 - 216x + 81 | signs alternate because the second term is negative |
| (3x + 2)7 | coefficient of x4 | 22,680 | 35 × 81 × 8 |
| (x + 1/x)6 | constant term | 20 | the middle term, x3 · x-3 |
| (x2 + 1/x)9 | coefficient of x3, constant term | 126 and 84 | the powers step by 3: 18, 15, ..., 0, -3, ... |
| (a + b)3 | two letters | a3 + 3a2b + 3ab2 + b3 | no constant term |
| (x + 1)4 at x = 10 | the value | 14,641 = 114 | row 4 read as digits, 1 4 6 4 1 |
Patterns hidden in the coefficients
How to read the result
The headline is the whole polynomial, with fractions in brackets before a letter so that (3/2)x cannot be misread as 3/(2x). The table keeps the terms in the order k = 0, 1, 2, ..., which is the order of the general term Tk+1, so the fourth row is T4. If both terms use the same letter, terms with the same power are added and the headline says so. In C(n, k) mode the number is exact at any size: C(10, 3) = 120, the count of 5-card poker hands C(52, 5) = 2,598,960, and C(60, 30) = 118,264,581,564,861,424, eighteen digits that a spreadsheet would round in its last places. The coin-flip tile translates C(n, k) into the chance of exactly k heads in n fair flips, C(n, k) / 2n.
Binomial expansion questions, short answers
Related tools
Modulo Calculator
Remainders of large powers and binomial coefficients, such as C(n, k) mod a prime - See calculator
Conditional Probability Calculator
Two-way tables, Bayes' theorem and test accuracy in exact fractions - See calculator
Combinations & Permutations Calculator
C(n, r) and P(n, r) for counting problems - See calculator
Factorial Calculator
n! for the numbers inside the binomial coefficient formula - See calculator
Probability Calculator
Repeated trials, where binomial coefficients turn into probabilities - See calculator
Fibonacci Sequence Calculator
The sequence that the shallow diagonals of Pascal's triangle add up to - See calculator
Powers & Roots Calculator
Single powers such as 34 and 210 used in each term - See calculator
See also
Calculator verified by the LiczGrupa.pl team
Content, formulas and results have been reviewed for accuracy and relevance by our team of specialists.

Reviewed by: Natalia Skrzek