Skip to content

Binomial Theorem and Pascal Triangle

Mode

The number in front of x inside the brackets of (ax + b).

Use a negative number for (ax – b).

Counted from the left, starting at 1; term r uses k = r – 1.

Result
—
Value
—
Note
—

The binomial theorem says (ax + b)^n is the sum of C(n, k)·(ax)^(n−k)·b^k for k from 0 to n. For (x + 1)^4 the coefficients are 1, 4, 6, 4, 1, row 4 of Pascal's triangle, so the expansion is x^4 + 4x^3 + 6x^2 + 4x + 1, and the coefficients sum to 2^4 = 16.

About this tool

Algebra students, teachers checking homework, and anyone setting up a probability count meet the same numbers: the binomial coefficients C(n, k). This page handles four jobs with them. Single term finds the r-th term of (ax + b)^n without writing the whole thing out. Full expansion lists every term with its working, so you can see where each sign and power comes from. Pascal's triangle prints rows up to row 30, with each row's sum, which is always a power of two. Multinomial gives the coefficient of a term like x^2·y·z in (x + y + z)^n, the version of the theorem for three or four variables. The integer coefficient limits keep every number exact: a and b run from −12 to 12 and the power up to 12. The tool does not cover fractional or negative powers, which need the infinite binomial series instead.

How to use it

  1. Pick a job

    Choose Single term, Full expansion, Pascal's triangle or Multinomial at the top.

  2. Enter the brackets

    For (ax + b)^n type a and b, then set the power n with the minus and plus buttons. Write (x − 2) as a = 1, b = −2.

  3. Choose a term or row

    Single term asks for the term number counted from the left; Pascal's triangle asks for the last row to print.

  4. Read the working

    The steps show the C(n, k) value and the powers used, and the table lists every term or row.

Examples

Third term of (2x + 3)^5

Mode
Single term
Coefficient of x (a)
2
Constant term (b)
3
Power (n)
5
Term number
3

Result Result: 720x^3
Value: 720
Note: C(5, 2) = 10

  1. Term 3 uses k = 2: C(n, k) (ax)^(n-k) b^k
  2. C(5, 2) = 5! ÷ (2! × 3!) = 10
  3. 10 × 2^3 × 3^2 = 720

The third term uses k = 2, so it takes C(5, 2) = 10 copies of (2x)^3 times 3^2.

Expand (x + 1)^4

Mode
Full expansion
Coefficient of x (a)
1
Constant term (b)
1
Power (n)
4

Result Result: x^4 + 4x^3 + 6x^2 + 4x + 1
Value: 16
Note: 5 terms before zeros are dropped

  1. (1x + 1)^4 = sum of C(4, k) (1x)^(4-k) (1)^k for k = 0 to 4
  2. Set x = 1 to check: (1 + 1)^4 = 16

The coefficients are row 4 of Pascal's triangle, and they add up to 2^4 = 16.

Pascal's triangle to row 4

Mode
Pascal's triangle
Row number
4

Result Result: 1 4 6 4 1
Value: 6
Note: Row sum 2^4 = 16

  1. Each entry is the sum of the two entries above it: C(n, k) = C(n-1, k-1) + C(n-1, k).
  2. Row 4 holds C(4, 0) to C(4, 4).
  3. Its largest entry is C(4, 2) = 6.

Row 4 reads 1 4 6 4 1 and sums to 16; the rows above it build up by adding neighbors.

Coefficient of x²yz in (x + y + z)^4

Mode
Multinomial
Power of x
2
Power of y
1
Power of z
1
Power of w
0

Result Result: 12
Value: 12 x^2 y z
Note: n = 4

  1. n = 2 + 1 + 1 + 0 = 4
  2. Coefficient = 4! ÷ (2! × 1! × 1! × 0!) = 12
  3. Term in (x + y + z)^4: 12 x^2 y z

There are 4! / (2! × 1! × 1!) = 12 ways to pick x twice, y once and z once from four brackets.

How it is calculated

(ax + b)^n = Σ C(n, k)·(ax)^(n−k)·b^k, with C(n, k) = n! ÷ (k!·(n−k)!)

n
the whole-number power
k
the term index, 0 to n; term number r has k = r − 1
C(n, k)
the binomial coefficient, entry k of Pascal's row n

Each binomial coefficient is built as a running product (n−k+1)/1 × (n−k+2)/2 … so no huge factorial is ever formed. A term's coefficient is C(n, k) times a to the power n−k times b to the power k; zero terms are dropped from the written expansion. Pascal's rows come from the same C(n, k) values and obey C(n, k) = C(n−1, k−1) + C(n−1, k). The multinomial coefficient n!/(k1!·k2!·k3!·k4!) is computed as a product of binomials, C(k1+k2, k2)·C(k1+k2+k3, k3)·…, which equals it exactly. Setting x = 1 gives (a + b)^n, the sum of all the coefficients, shown as a check.

Sources

Use from code or an AI agent Free API · MCP

The same calculation is a free JSON API. No key needed. The answer is in result.stats.primary.

curl -X POST https://api.tools-directory.workers.dev/v1/tools/binomial-theorem-and-pascal-triangle \
  -H 'Content-Type: application/json' \
  -d '{"inputs":{"mode":"term","a":2,"b":3,"n":5,"term":3}}'

When not to use it

  • Fractional or negative powers such as (1 + x)^(-1) need the infinite binomial series, not this finite expansion.
  • Brackets with symbolic coefficients like (2a + 3b) are outside its scope; it takes whole numbers for a and b.
  • Powers above 12 with large a or b would pass exact integer range, so they are blocked.

Common mistakes

  • Counting terms from k = 1: the first term has k = 0, so the third term uses C(n, 2).
  • Dropping the sign of b: in (x − 2)^3 the terms alternate, giving x^3 − 6x^2 + 12x − 8.
  • Forgetting to raise a as well: in (2x + 3)^5 each term carries 2^(n−k), not just x^(n−k).
  • Numbering Pascal's triangle from row 1: the single 1 at the top is row 0.

Frequently asked questions

What is the multinomial theorem formula?

(x1 + x2 + … + xm)^n equals the sum, over all exponent sets k1 + k2 + … + km = n, of n!/(k1!·k2!·…·km!) times x1^k1·x2^k2·…·xm^km. The fraction is the multinomial coefficient. With two variables it reduces to the binomial theorem, since n!/(k!(n−k)!) is C(n, k).

Can you show multinomial theorem examples?

In (x + y + z)^4 the coefficient of x^2·y·z is 4!/(2!·1!·1!) = 24/2 = 12. In (x + y + z)^3 the term xyz has 3!/(1!·1!·1!) = 6, while x^3 has 3!/3! = 1. Enter the three powers in Multinomial mode and the page returns the coefficient and the working.

What is the multinomial theorem used for in counting problems?

The coefficient counts arrangements with repeats. The word MISSISSIPPI has 11 letters: 1 M, 4 I, 4 S and 2 P, so it has 11!/(1!·4!·4!·2!) = 34,650 distinct orderings. It also counts ways to split n people into labeled groups of given sizes.

How do I get a binomial expansion with steps?

Choose Full expansion, enter a, b and n, and the table lists each k from 0 to n with C(n, k), the power of a and the power of b, followed by the finished term. For (x + 1)^4 the five rows give 1, 4, 6, 4 and 1.

Does binomial expansion work with negative or fractional powers?

Yes, but the result is an infinite series, valid only when |x| is less than 1: (1 + x)^p = 1 + px + p(p−1)x^2/2! + … For example (1 + x)^(−1) = 1 − x + x^2 − x^3 + … This page covers whole powers 0 to 12, where the series stops after n + 1 terms.

How do I find binomial coefficients on a TI-84?

Type n, press MATH, move to PRB, choose 3:nCr, then type k and press ENTER: 5 nCr 2 gives 10. Casio models have nCr under OPTN or SHIFT ÷. Single term mode here gives the same C(n, k) and also multiplies in the powers of a and b.

How is the binomial theorem used in probability?

The binomial distribution's chance of exactly k successes in n trials is C(n, k)·p^k·(1 − p)^(n−k), which is one term of (p + (1 − p))^n. With 5 fair coin flips, exactly 2 heads has probability C(5, 2)/32 = 10/32 = 0.3125.

Cite this tool

Using this tool in an assignment, article or report? Copy a citation, or a link for your website.

APA

Tools Directory Editorial Team. (2026, December 3). Binomial Theorem and Pascal Triangle. Tools Directory. Retrieved December 4, 2026, from https://directory.milunir.com/math-calculators/number-tools/binomial-theorem-and-pascal-triangle/

MLA

Tools Directory Editorial Team. “Binomial Theorem and Pascal Triangle.” Tools Directory, 3 Dec. 2026, https://directory.milunir.com/math-calculators/number-tools/binomial-theorem-and-pascal-triangle/. Accessed 4 Dec. 2026.

Chicago

Tools Directory Editorial Team. “Binomial Theorem and Pascal Triangle.” Tools Directory. Last modified December 3, 2026. Accessed December 4, 2026. https://directory.milunir.com/math-calculators/number-tools/binomial-theorem-and-pascal-triangle/.

Link<a href="https://directory.milunir.com/math-calculators/number-tools/binomial-theorem-and-pascal-triangle/">Binomial Theorem and Pascal Triangle – Tools Directory</a>