Binomial Coefficient Calculator

Calculate binomial coefficients (also called combinations or "n choose k") instantly. Find how many ways there are to choose k items from n items, view the factorial formula, see the step-by-step calculation, and explore the result in Pascal's triangle.

Try: C(5,2) · C(10,3) · C(52,5) · C(20,10)


About binomial coefficients

What is a binomial coefficient?

The binomial coefficient C(n, k), also written \(\binom{n}{k}\) and read "n choose k", counts the number of ways to choose k items from a set of n distinct items without regard to order. For example C(5, 2) = 10, because there are exactly 10 ways to pick 2 cards from 5 distinct cards.

The formula

The standard definition uses factorials: \[\binom{n}{k}=\frac{n!}{k!\,(n-k)!}\] A key symmetry property follows immediately: \(\binom{n}{k}=\binom{n}{n-k}\). Choosing which k items to include is equivalent to choosing which n − k items to leave out.

Pascal's rule

Every interior entry in Pascal's triangle satisfies the recurrence \[\binom{n}{k}=\binom{n-1}{k-1}+\binom{n-1}{k}\] with boundary conditions \(\binom{n}{0}=\binom{n}{n}=1\). This makes it easy to build the triangle row by row without computing factorials.

The binomial theorem

Binomial coefficients appear naturally as the coefficients in the expansion of a binomial power: \[(a+b)^n=\sum_{k=0}^{n}\binom{n}{k}a^{n-k}b^k\] For example \((a+b)^3=a^3+3a^2b+3ab^2+b^3\); the coefficients 1, 3, 3, 1 are exactly row 3 of Pascal's triangle.


Frequently asked questions

n! (read "n factorial") is the product of all positive integers from 1 to n. For example, 5! = 5 × 4 × 3 × 2 × 1 = 120. By convention, 0! = 1. Factorials are at the heart of the binomial coefficient formula C(n, k) = n! / (k! × (n−k)!). You can compute any factorial from 0! to 170! — with exact value, digit count, and scientific notation — using the Factorial Calculator.
C(n, k) — read "n choose k" — is the number of ways to select k items from n distinct items when order does not matter. It equals n! / (k! × (n−k)!). For example, C(6, 2) = 15 means there are 15 ways to pick 2 items from 6.
Combinations count selections where order does not matter: {A, B} and {B, A} are the same. Permutations count arrangements where order matters: AB ≠ BA. The number of ordered arrangements is P(n,k) = n!/(n−k)! = C(n,k) × k!.
There is exactly one way to choose 0 items from any set: choose nothing. Similarly, C(n, n) = 1 because there is only one way to select all n items.
Pascal's triangle is an infinite triangular array in which each number equals the sum of the two numbers directly above it. Row n contains C(n,0), C(n,1), …, C(n,n). It gives a visual representation of all binomial coefficients and their recurrence.
In the standard combinatorial definition, both n and k must be non-negative integers with k ≤ n. Generalisations to real or complex numbers exist (using the gamma function), but this calculator uses the combinatorial definition.


Send your feedback