What is a combinations calculator?
A combinations calculator works out how many different ways you can choose a group of items from a larger set when the order of selection does not matter. This quantity is called the number of combinations, written as , “n choose r”, or with the binomial coefficient . Here is the total number of available items and is how many of them you pick.
Combinations appear whenever you care only about which items end up together, not the sequence in which they were chosen. Picking 2 toppings out of 5 gives the same pizza no matter which topping you name first, so it is a combination problem. If the order mattered, you would be counting permutations instead.
How does it work?
Enter the total number of items and the number you want to choose , and the calculator returns instantly. Both values must be whole numbers, and cannot be larger than — you cannot choose more items than you have. If , or either field is left empty, the result stays blank.
Formula
The number of combinations is given by the binomial coefficient:
Here (n factorial) is the product of all positive integers up to , so . By convention , which is why choosing zero items, or choosing all of them, always gives exactly one combination.
A few useful identities follow directly from the formula:
- — there is one way to choose nothing.
- — there is one way to choose everything.
- — choosing to keep is the same as choosing to leave out.
Worked examples
- Example 1: Choose 2 items from 5. .
- Example 2: Choose 3 items from 10. .
- Example 3: Choose all 5 from 5. .
- Example 4: Choose 0 from 5. .
Practical notes
- Combinations count unordered selections. If the arrangement matters — for example seating people in a row — use permutations, where .
- The values grow quickly because of the factorials, so even modest inputs can yield very large counts.
- Combinations underpin probability, the binomial distribution, lottery odds, card-hand counting, and combinatorial design problems.
Frequently asked questions
What is the difference between combinations and permutations?
In combinations the order of the chosen items does not matter, so and count as one selection. In permutations order matters, so they count as two. As a result there are always at least as many permutations as combinations for the same and .
Why is choosing 0 items equal to 1?
Because , the formula gives . Intuitively, there is exactly one way to select nothing at all — the empty selection.
Can r be larger than n?
No. You cannot choose more items than exist in the set, so is only defined for . This calculator returns a blank result when .