About this calculator
Answers are exact even when they run to many digits.
How to use it
- Enter n and r.
- Choose whether repetition is allowed.
- Read the number of selections.
The formula
- n
- items available
- r
- items chosen
Worked example
A 5-card hand from a 52-card deck
- 52C5 = 52! ÷ (5! × 47!) = 25,98,960.
What the result means
nCr = nC(n − r): choosing 3 of 10 to include is the same as choosing 7 to leave out.
nCr values people often ask for
| Situation | nCr | Number of selections |
|---|---|---|
| Pairs from 5 people | 5C2 | 10 |
| Committee of 3 from 6 | 6C3 | 20 |
| Choose 4 from 8 | 8C4 | 70 |
| Handshakes in a group of 20 | 20C2 | 190 |
| Two-card hands from a deck | 52C2 | 1,326 |
| 5 from 30 | 30C5 | 1,42,506 |
| 3 from 100 | 100C3 | 1,61,700 |
| 11 players from 22 (no role rules) | 22C11 | 7,05,432 |
| A 6-from-49 lottery ticket | 49C6 | 1,39,83,816 |
| A 13-card bridge hand | 52C13 | 6,35,01,35,59,600 |
Example: selections with conditions
A committee needs 3 men from 6 and 2 women from 5. Work out each part separately, 6C3 = 20 and 5C2 = 10, then multiply: 20 × 10 = 200 committees. Multiply when both choices must happen; add only for separate alternatives.
In a 6-from-49 lottery there are 1,39,83,816 possible tickets, so one ticket has a 1 in 1,39,83,816 chance of matching all six.
When repetition is allowed
Set Repetition to Allowed when the same item can be chosen more than once, such as picking 3 scoops from 5 ice-cream flavours where two scoops can be the same. The answer is 7C3 = 35, compared with 5C3 = 10 if every scoop must differ.
- Check the question for words such as “different” or “distinct”; they mean repetition is not allowed.
- For “at least one” questions, it is often easier to count all selections and subtract those with none.
Assumptions
- Items are distinct.
Limitations
- n up to 1,00,000 and r up to 20,000.
Frequently asked questions
What is the difference between permutation and combination?
Permutations count arrangements, where order matters. Combinations count selections, where order does not. ABC and CBA are two permutations but one combination.
What is 0!?
1, by definition. So nP0 = nC0 = 1.
How many ways can I choose 11 players from 15?
15C11 = 1,365.
What are the odds of winning a 6 from 49 lottery?
1 in 1,39,83,816, because 49C6 = 1,39,83,816 and only one combination wins the top prize.
How many handshakes happen if 20 people each shake hands once?
190. Each handshake is a pair of people, so the answer is 20C2.
How many 11-player fantasy cricket teams can be made from 22 players?
22C11 = 7,05,432 if you ignore role and credit rules. Those rules reduce the real number, so treat it as an upper limit.
Last reviewed on 6 October 2026. How we calculate and check. Found a mistake? Tell us.

