CalcSeed

Binomial Coefficient Calculator

Compute C(n, k) = n! / (k!(n-k)!) with a method that avoids overflow.

=
Quick answer: with the default inputs (10, 3), the combinations is 120. Change any input to update the result.
Combinations
—

What this calculator does

This calculator computes the binomial coefficient C(n, k), read as n choose k: the number of distinct ways to pick k items from a set of n when order does not matter. At the defaults, C(10, 3) = 120 — there are 120 ways to choose 3 items from 10. The same numbers appear as the coefficients of the expanded binomial (a + b)n, which is where the name comes from.

How the formula works

nk=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n-k)!}

The factorial n! counts every possible ordered arrangement of all n items. Choosing k of them in order gives n × (n−1) × … × (n−k+1) arrangements, and since each unordered group of k can be internally arranged k! ways, dividing by k! removes the double counting. The leftover (n − k)! in the denominator removes the items you never chose. The calculator actually uses the multiplicative route — multiply n(n−1)…(n−k+1) while dividing by 1, 2, …, k — which produces the same integer without computing huge factorials first, avoiding overflow for large n.

Combinations versus permutations

Permutations count order-sensitive arrangements; combinations do not. For 10 items taken 3 at a time, the permutation count is P(10, 3) = 10 × 9 × 8 = 720, and each combination of 3 can be ordered in 3! = 6 ways, so 720 ÷ 6 = 120 combinations. Ask yourself one question to pick the right count: does the problem say first, second, third (permutation) or just a group (combination)?

Symmetry: choosing equals leaving out

C(n, k) = C(n, n − k): choosing 3 of 10 to keep is the same act as choosing 7 of 10 to discard, so both count 120. The calculator exploits this by computing with the smaller of k and n − k, which keeps the intermediate numbers small. The symmetry also shows in Pascal’s triangle, whose rows read the same forwards and backwards.

Worked example: C(10, 3)

Step 1 — write the falling product. C(10, 3) = (10 × 9 × 8) ÷ (1 × 2 × 3). The top has k = 3 factors starting at n; the bottom counts up to k.

Step 2 — multiply and reduce. The numerator is 720 and the denominator is 6, so 720 ÷ 6 = 120. Cancel early to keep the arithmetic small: with 2 × 3 = 6 underneath, cancelling the 9 against 3 and the 2 against 8 leaves 10 × 3 × 4 = 120.

Step 3 — verify with cross-checks. C(10, 3) should exceed C(10, 2) = 45 and equal C(10, 7), and 120 does both. A second check uses Pascal’s rule: C(10, 3) = C(9, 2) + C(9, 3) = 36 + 84 = 120. Any hand computation failing these cross-checks has an arithmetic slip in it.

Common binomial coefficients

C(n, k)ValueTypical question
C(5, 2)10Pairs from 5 people
C(10, 2)45Handshakes among 10 people
C(10, 3)120Default: 3 picks from 10
C(6, 3)203 of 6 pizza toppings
C(16, 2)120Games in a 16-team round robin
C(52, 5)2,598,9605-card poker hands

The poker row shows the scale the multiplicative method handles without breaking a sweat: 52 × 51 × 50 × 49 × 48 ÷ 120 = 2,598,960, computed with intermediate values far below 52! ≈ 8 × 1067. The round-robin row is the handshake formula in disguise — every pair of teams meets once, and C(16, 2) = 120 counts the pairs.

Properties worth knowing

  • Pascal’s rule: C(n, k) = C(n−1, k−1) + C(n−1, k); each entry is the sum of the two above it in Pascal’s triangle.
  • Boundary cases: C(n, 0) = C(n, n) = 1 — there is exactly one way to choose nothing or everything.
  • Out-of-range: k > n or k < 0 gives 0, because you cannot choose more items than exist.
  • Row sums: C(n, 0) + C(n, 1) + … + C(n, n) = 2n; for n = 10 that is 1,024 total subsets.
  • Binomial theorem: (a + b)n expands with C(n, k) an−kbk, so (a + b)² = a² + 2ab + b² uses C(2, 1) = 2.

Mistakes to avoid

The most common error is using permutations where combinations belong: lottery odds, committee picks and poker hands all ignore order, so dividing by k! is required. The second is computing huge factorials first — 170! overflows standard floating-point numbers — instead of multiplying and dividing in alternation as this calculator does. The third is mishandling the boundary: choosing 0 items gives exactly 1 way (the empty selection), not 0, and choosing k = n likewise gives 1.

A subtler slip is double-counting identical items. C(n, k) assumes n distinct items; if a deck has 4 aces and you treat aces as interchangeable, real hand counts drop below the raw coefficient. Model the distinctness before computing, not after.

Where C(n, k) shows up

  • Games and cards: C(52, 5) = 2,598,960 five-card hands, which makes the probability of a flush about 0.196% (5,108 hands, excluding straight flushes).
  • Committees and teams: choosing 3 of 10 candidates gives 120 slates, the default case on this page.
  • Quality checks: picking 3 units from a batch of 10 for inspection gives 120 possible samples, the basis of acceptance sampling.
  • Probability: coin-flip counts use binomial coefficients — exactly 3 heads in 10 flips is C(10, 3)/2¹⁰ = 120/1,024 ≈ 11.7%.
  • Paths: the number of shortest lattice paths across a grid is a binomial coefficient; a path of 3 one-way steps and 7 of another has C(10, 3) = 120 routes.

The coin-flip case shows the pipeline: count favorable outcomes with C(n, k), divide by the total 2n, and the probability falls out. Exactly 5 heads in 10 flips is C(10, 5)/1,024 = 252/1,024 ≈ 24.6% — the most likely outcome, but still under a quarter, a result most people find surprising until they see the coefficient math.

Related counting tools

The combination calculator and permutation calculator cover the unordered and ordered counts in full detail, and the factorial calculator handles the building blocks n! that the formula divides. For probability questions built on top of these counts, compute C(n, k) here, then divide by the total number of equally likely outcomes.

Frequently asked questions

How do I calculate n choose k?

Compute the product of k falling factors n(n−1)…(n−k+1) and divide by k!. For C(10, 3): (10 × 9 × 8) ÷ 6 = 120.

What does C(10, 3) equal?

120. There are 120 ways to choose 3 items from 10 when order does not matter, which is the default result on this page.

What is the difference between combination and permutation?

Permutations count order; combinations do not. P(10, 3) = 720 ordered arrangements, and each unordered group of 3 can be arranged 3! = 6 ways, so 720 ÷ 6 = 120 combinations.

What if k is larger than n?

The result is 0, because you cannot choose more items than the set contains. The calculator returns 0 for k > n and for k < 0.

Why is C(n, 0) equal to 1?

There is exactly one way to choose nothing: the empty selection. Likewise C(n, n) = 1, since choosing everything leaves no room for variation.

How many 5-card poker hands are there?

C(52, 5) = 2,598,960. Order does not matter in a hand, so the combination count applies, not the permutation count.

Why does the calculator avoid computing factorials directly?

Large factorials overflow quickly (170! exceeds floating-point limits). Multiplying and dividing in alternation keeps every intermediate value near the size of the final answer.

What is the probability of exactly 3 heads in 10 coin flips?

C(10, 3) ÷ 2¹⁰ = 120/1,024 ≈ 11.7%. The coefficient counts the favorable sequences and 1,024 counts all of them.

Why does C(10, 3) equal C(10, 7)?

Choosing 3 to keep is the same act as choosing 7 to leave out, so both count 120. The identity C(n, k) = C(n, n−k) is the symmetry of Pascal’s triangle.

How is C(n, k) used in expanding (a + b)^n?

Each term is C(n, k) an−kbk. For n = 2 the middle coefficient is C(2, 1) = 2, giving a² + 2ab + b².

Method and sources

Calculation basis

Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: November 17, 2026
Formula & data sources
  • Binomial coefficient C(n,k) = n! / (k!(n-k)!).

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 17). Binomial Coefficient Calculator. https://calcseed.com/c/math/binomial-coefficient-calculator/
MLA 9"Binomial Coefficient Calculator." CalcSeed, 17 Nov. 2026, calcseed.com/c/math/binomial-coefficient-calculator/.
ChicagoCalcSeed. "Binomial Coefficient Calculator." Last modified November 17, 2026. https://calcseed.com/c/math/binomial-coefficient-calculator/

Related calculators