Binomial Coefficient in LaTeX: \binom{n}{k}

One command with three sizing forms, the factorial underneath it, and why a choose symbol collapses in a running sentence.

A binomial coefficient is a fraction with the bar removed and the parentheses left in place — which is exactly why it has a command of its own instead of being assembled from \frac. Its three sizing forms mirror the fraction family (Fractions), the factorial definition really is a fraction, and the entries inside are ordinary subscripts (Sub & Sup).

Which one to use

Situation Write this Because
Choose notation
\binom{n}{k}
Sizes itself to the context.
Inline and must stay tall
\dbinom{n}{k}
May raise the line height.
Inline and must stay small
\tbinom{n}{k}
Locks text style.
The factorial definition
\frac{n!}{k!(n-k)!}
A real fraction, twice the height.
A multinomial
\binom{n}{k_1,k_2}
Several entries in the lower group.
Different delimiters
\left(\binom{}{}\right)
Override the pair with \left \right.

The commands

What Type this Renders as
Standard form Both arguments braced; the pair is chosen from context, not from a numerator slot.
\binom{n}{k}
\binom{n}{k}
Numeric example Read as "five choose two", the number of pairs from five objects.
\binom{5}{2} = 10
\binom{5}{2} = 10
Factorial definition Note the braces around n-k in the third factor; without them the subtraction escapes.
\binom{n}{k} = \frac{n!}{k!(n-k)!}
\binom{n}{k} = \frac{n!}{k!(n-k)!}
Display size Forces full height, which matters when the symbol sits in a paragraph.
\dbinom{n}{r}
\dbinom{n}{r}
Text size Forces the compressed inline form, at the cost of legibility with deep subscripts.
\tbinom{n}{k}
\tbinom{n}{k}
Legacy form Still parses everywhere, but the delimiters are fixed-size, so tall entries overflow.
{n \choose k}
{n \choose k}
Symmetry Choosing k to include is choosing n−k to exclude.
\binom{n}{k} = \binom{n}{n-k}
\binom{n}{k} = \binom{n}{n-k}
Pascals rule Three stacked symbols on one line — this is where sizing starts to matter.
\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}
\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}
Edge values The identities used to start a triangle or an induction.
\binom{n}{0} = \binom{n}{n} = 1
\binom{n}{0} = \binom{n}{n} = 1
Generalised top The top entry need not be an integer, which is what makes the binomial series work.
\binom{\alpha}{k} = \frac{\alpha(\alpha-1)\cdots(\alpha-k+1)}{k!}
\binom{\alpha}{k} = \frac{\alpha(\alpha-1)\cdots(\alpha-k+1)}{k!}

Worked examples

Binomial theorem

(x+y)^n = \sum_{k=0}^{n} \binom{n}{k} x^{n-k} y^k
(x+y)^n = \sum_{k=0}^{n} \binom{n}{k} x^{n-k} y^k

The summand carries a coefficient plus two powered terms, so display maths is close to mandatory here.

Counting worked

\binom{10}{3} = \frac{10!}{3!\,7!} = 120
\binom{10}{3} = \frac{10!}{3!\,7!} = 120

Thin spaces between the factorial factors keep the denominator from reading as one long token.

Coefficient of a term

\text{coefficient of } x^3y^2 \text{ in } (x+y)^5 = \binom{5}{2}
\text{coefficient of } x^3y^2 \text{ in } (x+y)^5 = \binom{5}{2}

Mixing prose and maths needs \text{} on the words; otherwise "coefficient" becomes a product of thirteen variables.

Hypergeometric probability

P(X=k) = \frac{\binom{K}{k}\binom{N-K}{n-k}}{\binom{N}{n}}
P(X=k) = \frac{\binom{K}{k}\binom{N-K}{n-k}}{\binom{N}{n}}

Three stacked symbols in one fraction: the outer fraction shrinks the inner ones, so \dfrac on the outside is often the fix.

Common mistakes

  • Unbraced multi-token entries: \binom n+1 k attaches only n to the command and leaves +1 outside the parentheses.
  • Writing \frac{n!}{k!(n-k)!} as n!/k!(n-k)! in prose. That is legal text but ambiguous maths once the factors get longer.
  • Assuming \binom is a fraction and trying to differentiate or cancel it as one. It is a counting symbol; the factorial form is what you manipulate.
  • Nesting \binom inside \binom. The inner pair shrinks to illegibility, and the standard escape is to give the whole thing a named symbol.

Questions about this notation

Is \binom the same as \frac?
No. \frac puts a horizontal rule between its arguments; \binom puts them in oversized parentheses with no rule. They take the same two braced arguments, which is why people expect them to behave alike.
How do I write nCr in LaTeX?
As \binom{n}{r}, which is the mathematical notation for combinations. If your course literally prints nCr, write \mathrm{nCr} or {}^nC_r so the letters stay upright rather than italic.
Why does my binomial coefficient look squashed?
Inline maths compresses stacked constructions so they cannot stretch the line. Move it to a displayed equation, or use \dbinom to force full height inside the sentence.
How do I write a multinomial coefficient, or change the delimiters around n choose k?
For anything beyond the default round brackets, use the amsmath engine behind them: \genfrac{(}{[}{0pt}{}{n}{k}} gives a bracket on one side and no rule between the two entries. The 0pt is the thickness of the fraction bar and {} the math style. A multinomial is normally written \binom{n}{n_1, n_2, n_3}, which readers accept even though only the two-entry form is defined.

Keep reading

Three ways into the same idea: the notation itself, the lesson that teaches it, and an article that applies it.

Notation