Our free binomial coefficient calculator finds n choose k, the number of ways to choose k items from a set of n items when the order does not matter. Type in n and k, click Calculate, and the answer appears straight away. It is a handy tool for school maths, homework, probability, statistics, and anyone working with combinations, lotteries, or the binomial theorem.
These figures are estimates only for educational purposes. No personal data is collected or saved.
How to use this binomial coefficient calculator
The binomial coefficient, written as (n over k) and read as n choose k, counts how many different groups of k items can be picked from n items, where the order of the picking does not matter. A group of apples picked in a different order is still the same group. Type the total number of items n into the first box and the number chosen k into the second box, then click Calculate n Choose k. Both n and k must be whole numbers, k must be at least 0, and k must not be larger than n.
If k is larger than n, there is no way to choose that many items, so the calculator will ask you to fix the numbers. If k is 0, the answer is always 1, because there is exactly one way to choose nothing. If k equals n, the answer is also 1, because there is exactly one way to choose everything. And choosing k items is the same as choosing the n – k items to leave behind, so n choose k always equals n choose (n – k).
Binomial coefficient formula
The binomial coefficient formula is C(n, k) = n! ÷ (k! × (n – k)!), where the exclamation mark means factorial. The numerator counts all the ways to arrange k items in order from n, and dividing by k! removes the order, leaving only the distinct groups. For example, 10 choose 3 is 10! ÷ (3! × 7!) = 3,628,800 ÷ (6 × 5,040) = 3,628,800 ÷ 30,240 = 120. Our calculator uses a step-by-step multiplication that avoids huge factorials, so it stays accurate for larger values of n.
Worked example
Suppose a committee of 3 people is to be chosen from a group of 10. How many different committees are possible? The answer is 10 choose 3. Using the formula: 10 × 9 × 8 ÷ (3 × 2 × 1) = 720 ÷ 6 = 120. Try it in the calculator above with n = 10 and k = 3 and you will get exactly 120. As a second check, 5 choose 2 is 5 × 4 ÷ (2 × 1) = 20 ÷ 2 = 10, which you can list out by hand to confirm: from the items A, B, C, D, E, the pairs are AB, AC, AD, AE, BC, BD, BE, CD, CE, and DE.
The numbers grow very fast. Choosing 6 numbers from 49, as in many lotteries, gives 49 choose 6 = 13,983,816 possible tickets, which is why winning is so unlikely. Choosing 5 from 10 gives only 252, but choosing 5 from 100 gives 75,287,520. That rapid growth is why a calculator is so useful: the factorials in the formula soon become far too large to work out by hand.
Where binomial coefficients are used
Binomial coefficients are the building blocks of probability. They count the ways to get a given number of successes in a fixed number of trials, which is the heart of the binomial distribution used in quality control, medical trials, and polling. They are the numbers in Pascal’s triangle, and they are the coefficients in the expansion of (a + b) raised to a power, which is the binomial theorem. They also count hands in card games, teams in sport, and samples in surveys, anywhere a group is chosen without regard to order.
Frequently asked questions
What is 10 choose 3?
10 choose 3 is 120. It is 10! ÷ (3! × 7!) = 3,628,800 ÷ 30,240 = 120.
What is the difference between a combination and a permutation?
In a combination, the order does not matter, so AB and BA count as one group. In a permutation, the order matters, so AB and BA count as two. This calculator finds combinations, written n choose k.
What is 5 choose 2?
5 choose 2 is 10. The pairs from five items are 10 in number, and 5! ÷ (2! × 3!) = 120 ÷ 12 = 10.
Why is n choose 0 equal to 1?
Because there is exactly one way to choose nothing from a set: the empty set. The formula agrees, since 0! is defined as 1.
What happens if k is larger than n?
Then you cannot choose that many items, so there are zero ways to do it. The calculator asks you to enter a k that is no larger than n.
Try our factorial calculator to work out factorials, or find the greatest common divisor with our GCD calculator. You can also View all calculators.