Binomial Coefficient Calculator

Find C(n,k) — the number of ways to choose k items from a set of n, where order doesn't matter — along with the related permutation count and probability share.

Quick Facts

Formula
C(n,k) = n! / (k!(n−k)!)
Also written nCk or "n choose k" — counts size-k subsets of an n-item set, ignoring order.
Symmetry identity
C(n,k) = C(n,n−k)
Choosing which k items to include is equivalent to choosing which n−k items to leave out.

Your Results

Calculated
Binomial coefficient C(n,k)
-
Ways to choose k from n (order doesn't matter)
Permutations P(n,k)
-
Ordered arrangements of k from n
Total subsets (2^n)
-
All possible subsets of n items
Probability share
-
Share of subsets with exactly k items

Ready

Set n and k, then press Calculate.

How the Binomial Coefficient Calculator works

The binomial coefficient C(n,k), read "n choose k," counts the number of ways to select k items from a set of n items when the order of selection does not matter. It is defined as C(n,k) = n! / (k!(n−k)!), where n! (n factorial) is the product of every positive integer up to n.

Formula and method

Rather than computing full factorials — which overflow even a computer's number range for fairly small n — this calculator uses the equivalent multiplicative form C(n,k) = ∏ᵢ₌₀ᵏ⁻¹ (n−i)/(i+1), evaluating the product one step at a time so intermediate values stay small. It also reports the related permutation count P(n,k) = n!/(n−k)! (ordered arrangements of k items from n) and the total number of subsets of an n-item set, 2ⁿ, which is the sum of every binomial coefficient C(n,0) through C(n,n) — the full row of Pascal's triangle.

Reading the results

  • Binomial coefficient C(n,k): how many distinct, unordered groups of k items you can form from n.
  • Permutations P(n,k): the same count but with order mattering — always P(n,k) = C(n,k) × k!, so it's never smaller than C(n,k).
  • Total subsets (2ⁿ): every possible subset of the n items, from the empty set to the full set.
  • Probability share: C(n,k) divided by 2ⁿ, as a percentage — the chance that a uniformly random subset of the n items happens to contain exactly k of them (equivalently, the probability of exactly k heads in n fair coin flips).

Common sources of error

  • k greater than n: you cannot choose more items than exist in the set — C(n,k) is 0 in that case, and the calculator flags it.
  • Negative or non-integer inputs: n and k must be whole numbers of 0 or more; factorials aren't defined here for negative or fractional counts.
  • Confusing combinations with permutations: use C(n,k) when order doesn't matter (choosing a committee) and P(n,k) when it does (assigning distinct roles or prizes).

Applications

Binomial coefficients appear throughout probability, statistics, and combinatorics. They are the coefficients in the binomial expansion of (x+y)ⁿ, they count possible hands or subsets — such as the 2,598,960 five-card hands dealt from a standard 52-card deck — and they form the rows of Pascal's triangle. They also appear directly in the binomial probability formula P(X=k) = C(n,k) × pᵏ × (1−p)ⁿ⁻ᵏ for the chance of exactly k successes in n independent trials with success probability p.

Frequently Asked Questions

What does C(n,k) mean?
C(n,k), read "n choose k," is the binomial coefficient: the number of ways to select k items from a set of n items when the order of selection does not matter. It equals n! / (k!(n−k)!).
What is the difference between combinations and permutations?
Combinations (C(n,k)) count unordered selections, so {1,2} and {2,1} are the same choice. Permutations (P(n,k)) count ordered selections, so {1,2} and {2,1} are different. P(n,k) is always C(n,k) multiplied by k!, since each combination can be arranged in k! different orders.
Why does C(n,k) equal C(n,n−k)?
Choosing which k items to include is the same as choosing which n−k items to leave out, so the two counts must match. For example, C(10,3) = C(10,7) = 120: picking 3 people for a committee is equivalent to picking the 7 who stay off it.
What happens if k is greater than n?
If k is greater than n, C(n,k) is defined as 0, because you cannot choose more items than exist in the set. The calculator flags this case instead of returning a result.