Combination Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter the total number of items and how many you choose, to count the possible groups when order does not matter.
Result
Combinations C(n, r)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Total number of items (n): enter 0 or more.
- Number of items chosen (r): enter 0 or more.
- Read the result: Combinations C(n, r).
How this calculator works
C(n, r) = n! ÷ (r! × (n − r)!), read "n choose r": the number of groups of r items taken from n distinct items, without repetition and without regard to order.
Results above about 10¹⁵ are shown rounded, since they exceed exact double-precision integers.
The formula
| Symbol | Meaning |
|---|---|
| Total number of items | |
| Number of items chosen | |
| Combinations C(n, r) | |
ncr(n, k) | the number of ways to choose k items from n, order ignored. |
Worked example
| Total number of items (n) | 10 |
|---|---|
| Number of items chosen (r) | 3 |
Combinations C(n, r) 120
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
How many 5-card poker hands are there?
C(52, 5) = 2,598,960.
What is the difference between a combination and a permutation?
A combination ignores order (ABC = CBA); a permutation counts each order separately, so there are r! times more permutations than combinations.