How it works
- Permutations count arrangements where order matters: nPr = n! ÷ (n − r)!.
- Combinations count selections where order doesn't matter: nCr = n! ÷ (r! × (n − r)!).
- With repetition allowed, permutations are nr and combinations are (n + r − 1)C r.
- Answers are calculated exactly, even when they run to hundreds of digits.
Worked examples
Lottery odds: 6 from 49
How many different tickets are possible when 6 numbers are drawn from 49?
- Order doesn't matter, so use combinations: 49C6 = 49! ÷ (6! × 43!).
- = (49 × 48 × 47 × 46 × 45 × 44) ÷ 720.
Answer: 13,983,816 (a 1 in about 14 million chance)
Try this exampleGold, silver and bronze
In how many ways can 8 runners finish 1st, 2nd and 3rd?
- Order matters, so use permutations: 8P3.
- 8 × 7 × 6.
Answer: 336 ways
Try this exampleFrequently asked questions
How do I know whether order matters?
If swapping two chosen items gives a different result (a PIN code, a race podium), use permutations. If it doesn't (a lottery draw, a pizza's toppings), use combinations.
How many 5-card poker hands are there?
52C5 = 2,598,960. Enter n = 52 and r = 5 to see the working.
Results are estimates for general information and are not financial, medical or professional advice.