In short
The multinomial theorem expands (x_1 + x_2 + \cdots + x_k)^n as a sum of terms \frac{n!}{n_1!\,n_2!\,\cdots\,n_k!}\,x_1^{n_1}x_2^{n_2}\cdots x_k^{n_k}, where the sum runs over all non-negative integer tuples (n_1, n_2, \ldots, n_k) with n_1 + n_2 + \cdots + n_k = n. Each coefficient \binom{n}{n_1, n_2, \ldots, n_k} counts the number of ways to assign n factors to k variable slots with the given sizes.
A sweet shop in your town sells three flavours of barfi — kaju, pista, and badam. You place an order for 4 pieces, and for each piece you independently pick one of the three flavours. If you wanted to count how many orders have exactly 2 kaju, 1 pista, and 1 badam, you could list them by hand. But what if the order had 10 pieces and 5 flavours? The multinomial theorem gives you a single formula that handles every such count at once, by connecting it to the expansion of (x_1 + x_2 + \cdots + x_k)^n.
From the binomial to the multinomial
You already know the binomial theorem: expanding (a + b)^n gives
Each term corresponds to choosing r of the n factors to contribute b (and the remaining n - r contribute a). The coefficient \binom{n}{r} = \frac{n!}{r!(n-r)!} counts those choices.
Now replace two variables with three: expand (x + y + z)^n. Each of the n factors is (x + y + z), and from each factor you pick exactly one of x, y, or z. A typical term looks like x^a y^b z^c where a + b + c = n — you picked x from a factors, y from b factors, and z from c factors. How many ways can that happen? You are distributing n labelled factors into three groups of sizes a, b, and c. That count is the multinomial coefficient:
The pattern extends to any number of variables. Expanding (x_1 + x_2 + \cdots + x_k)^n, each of the n factors contributes one of the k variables, and the coefficient of x_1^{n_1}x_2^{n_2}\cdots x_k^{n_k} counts the number of ways to assign the n factors so that exactly n_i of them contribute x_i.
The multinomial theorem — formal statement
Multinomial Theorem
For any positive integer n and variables x_1, x_2, \ldots, x_k:
The coefficient \frac{n!}{n_1!\,n_2!\,\cdots\,n_k!} is called the multinomial coefficient, written \binom{n}{n_1, n_2, \ldots, n_k}.
Why the formula is true. Multiplying out (x_1 + x_2 + \cdots + x_k)^n means choosing one term from each of the n copies of (x_1 + x_2 + \cdots + x_k) and multiplying the choices together. A generic product has the form x_1^{n_1}x_2^{n_2}\cdots x_k^{n_k} where n_1 + n_2 + \cdots + n_k = n. The number of ways to get this particular product is the number of ways to designate which n_1 factors contribute x_1, which n_2 contribute x_2, and so on. That is the multinomial coefficient — the number of ways to divide n labelled objects into k groups of sizes n_1, n_2, \ldots, n_k.
Checking against the binomial theorem. With k = 2, write x_1 = a and x_2 = b. The multinomial coefficient becomes \frac{n!}{r!(n-r)!} = \binom{n}{r}, and the sum runs over r = 0, 1, \ldots, n. The expansion reproduces (a+b)^n = \sum_{r=0}^n \binom{n}{r}a^{n-r}b^r exactly. The multinomial theorem is the natural generalisation.
Number of terms in the expansion
Each term corresponds to a non-negative integer solution of n_1 + n_2 + \cdots + n_k = n. By the stars and bars formula, the number of such solutions is:
For (x + y + z)^4 (where n = 4, k = 3): \binom{4 + 3 - 1}{3 - 1} = \binom{6}{2} = 15 distinct terms. For (a + b)^4 (where k = 2): \binom{5}{1} = 5 terms, matching the familiar binomial expansion a^4 + 4a^3b + 6a^2b^2 + 4ab^3 + b^4.
The sum of all multinomial coefficients
Setting x_1 = x_2 = \cdots = x_k = 1 in the expansion gives:
The sum of all multinomial coefficients in the expansion of (x_1 + x_2 + \cdots + x_k)^n equals k^n. For the binomial case (k = 2), this gives the familiar identity \sum_{r=0}^n \binom{n}{r} = 2^n.
This identity has a direct combinatorial reading: k^n is the number of ways to assign each of n labelled factors to one of k variables. Every such assignment contributes to exactly one multinomial coefficient, and the total over all coefficients is k^n.
Applications
The multinomial theorem is not just an algebraic expansion — it counts things.
Finding a specific coefficient. To find the coefficient of x^2y^3z in (x + y + z)^6, identify the exponents: n_1 = 2, n_2 = 3, n_3 = 1, with n = 6. The coefficient is:
Counting rearrangements of letters. The number of distinct ways to rearrange the letters of the word MISSISSIPPI (11 letters: 1 M, 4 I, 4 S, 2 P) is the multinomial coefficient:
This is not a coincidence. Rearranging n objects where there are n_1 copies of type 1, n_2 copies of type 2, and so on, is exactly the same as distributing n positions among k types — and that count is the multinomial coefficient.
Two worked examples
Example 1: Find the coefficient of $x^2 y^2 z$ in the expansion of $(x + y + z)^5$.
Step 1. Identify the exponents.
The term x^2 y^2 z has exponents n_1 = 2, n_2 = 2, n_3 = 1. Check: 2 + 2 + 1 = 5 = n. The exponents sum to the power, so this term does appear in the expansion.
Why: a term x_1^{n_1}\cdots x_k^{n_k} appears in (x_1 + \cdots + x_k)^n only when n_1 + \cdots + n_k = n. If the exponents do not sum to n, the term is absent.
Step 2. Apply the multinomial coefficient formula.
Why: this counts the number of ways to choose which 2 of the 5 factors contribute x, which 2 contribute y, and which 1 contributes z.
Step 3. Verify by breaking into binomial steps.
Think of the 5 factors. Choose 2 for x: \binom{5}{2} = 10 ways. From the remaining 3, choose 2 for y: \binom{3}{2} = 3 ways. The last factor must contribute z: \binom{1}{1} = 1 way. Total: 10 \times 3 \times 1 = 30.
Why: this sequential selection method matches the multinomial coefficient. The product \binom{5}{2}\binom{3}{2}\binom{1}{1} telescopes to \frac{5!}{2!\,2!\,1!} after cancellation.
Step 4. Sanity check: sum of all coefficients.
The total of all coefficients in (x+y+z)^5 is 3^5 = 243. The coefficient 30 is roughly 30/243 \approx 12\% of the total, which is reasonable for one of the \binom{7}{2} = 21 terms.
Result: The coefficient of x^2 y^2 z in (x + y + z)^5 is \mathbf{30}.
The diagram makes the logic visible: the 30 different assignments of factors to variables produce 30 copies of the term x^2y^2z in the expanded product.
Example 2: Find the coefficient of $a^3 b$ in the expansion of $(2a - b)^4$.
Step 1. Rewrite to match the multinomial form.
Write (2a - b)^4 = (2a + (-b))^4. This is a binomial expansion (a special case of the multinomial with k = 2), where x_1 = 2a and x_2 = -b.
Why: the multinomial theorem applies to sums. The negative sign is absorbed into the variable: -b is just another term being added.
Step 2. Identify the exponents and apply the formula.
The term a^3 b requires x_1^3 x_2^1 = (2a)^3(-b)^1, so n_1 = 3 and n_2 = 1. The multinomial (here, binomial) coefficient is:
Why: with n = 4, n_1 = 3, n_2 = 1, the coefficient counts the ways to choose which 3 of the 4 factors contribute 2a and which 1 contributes -b.
Step 3. Include the constants from x_1 = 2a and x_2 = -b.
The full term is: 4 \times (-8a^3b) = -32a^3b.
Why: the multinomial coefficient (4) counts the assignments, and the actual term value includes the constants (2^3 = 8) and the sign ((-1)^1 = -1) from the original expression.
Step 4. Verify using direct expansion.
(2a - b)^4 = (2a)^4 - 4(2a)^3(b) + 6(2a)^2(b)^2 - 4(2a)(b)^3 + b^4 = 16a^4 - 32a^3b + 24a^2b^2 - 8ab^3 + b^4
The coefficient of a^3b is -32. This matches.
Result: The coefficient of a^3b in (2a - b)^4 is \mathbf{-32}.
The sign matters. When the original expression contains subtraction, the multinomial coefficient is always positive, but the term itself can be positive or negative depending on the power of the negative part: (-b)^{n_2} contributes (-1)^{n_2}.
Common confusions
-
"The multinomial coefficient can be negative." The multinomial coefficient \frac{n!}{n_1!\cdots n_k!} is always a positive integer. Negative terms in an expansion arise from negative variables (like -b), not from the coefficient itself.
-
"The number of terms in (x_1 + \cdots + x_k)^n is k^n." That is the number of products obtained when you fully expand (before collecting like terms). The number of distinct terms (after combining) is \binom{n+k-1}{k-1}, which is much smaller. For (x+y+z)^4: 3^4 = 81 products collapse into \binom{6}{2} = 15 distinct terms.
-
"To find a specific coefficient, expand the whole expression." You do not need to expand everything. The multinomial coefficient formula gives the coefficient of any single term directly: just read off the exponents and compute \frac{n!}{n_1!\cdots n_k!}, adjusting for any numerical coefficients in the variables.
-
"The multinomial theorem only works for positive integer powers." The version stated here requires n to be a positive integer. Generalisations to non-integer and negative powers exist but use infinite series and are outside the scope of this article.
-
"Rearrangements of letters with repeated letters is a different formula from the multinomial coefficient." It is the same formula. The number of distinct rearrangements of n objects with n_1 of type 1, n_2 of type 2, ..., n_k of type k is exactly \frac{n!}{n_1!\,n_2!\,\cdots\,n_k!}.
Going deeper
If you can identify exponents, compute the multinomial coefficient, handle numerical coefficients and signs, and count the number of terms, you have what you need for exam-level problems. The rest of this section connects the multinomial theorem to broader ideas in algebra and counting.
The multinomial as a product of binomials
The multinomial coefficient satisfies a telescoping product:
Each factor in the product is a standard binomial coefficient. This identity reflects the sequential process: first choose n_1 positions for x_1, then n_2 from the remainder for x_2, and so on. The last factor is always \binom{n_k}{n_k} = 1.
The general term of (a_1 x_1 + a_2 x_2 + \cdots + a_k x_k)^n
When the variables carry numerical coefficients a_1, a_2, \ldots, a_k, the general term becomes:
The multinomial coefficient is unchanged; the extra a_i^{n_i} factors come from raising each a_i x_i to the power n_i. This is exactly what happened in Example 2 with (2a - b)^4, where a_1 = 2 and a_2 = -1.
Connection to the number of surjections
The multinomial theorem can be used to count the number of surjections (onto functions) from a set of n elements to a set of k elements. By inclusion-exclusion, the number of surjections is:
The factor (k-j)^n is itself a sum of multinomial coefficients (via (x_1 + \cdots + x_{k-j})^n evaluated at x_i = 1). This connection to the inclusion-exclusion principle runs deep: multinomial expansions and inclusion-exclusion are two sides of the same combinatorial coin.
Where this leads next
- Binomial Theorem for Positive Integer — the k = 2 special case: how (a+b)^n expands.
- Division and Distribution — distributing objects into groups, the setting where multinomial coefficients arise naturally.
- Combinations — Basics — the \binom{n}{r} formula that is the building block for multinomial coefficients.
- Properties of Combinations — identities that simplify coefficient calculations.
- Permutations — Special Cases — permutations of objects with repetitions, counted by the same multinomial formula.