Skip to content
SnapCalculations

Permutation and Combination Calculator

Enter n (total items) and r (items chosen) to count how many ways you can arrange them (permutations) or choose them (combinations).

Combinations

120

Order doesn't matter. Permutations, where order matters: 720
Permutations (nPr)
720
Combinations (nCr)
120
Digits in permutations
3
Digits in combinations
3

Run a blog, school page or business site? Add this calculator to it for free.

Step-by-step solution

Worked out with your numbers. Change any value above and the steps update.

  1. 1

    Permutations (order matters): nPr = n! ÷ (n − r)!

    10! ÷ 7!

  2. 2

    Cancel the matching factors, leaving r numbers to multiply

    10 × 9 × 8 = 720

  3. 3

    Combinations (order doesn't matter): nCr = nPr ÷ r!

    720 ÷ 3! = 6 = 120

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?

  1. Order doesn't matter, so use combinations: 49C6 = 49! ÷ (6! × 43!).
  2. = (49 × 48 × 47 × 46 × 45 × 44) ÷ 720.

Answer: 13,983,816 (a 1 in about 14 million chance)

Try this example

Gold, silver and bronze

In how many ways can 8 runners finish 1st, 2nd and 3rd?

  1. Order matters, so use permutations: 8P3.
  2. 8 × 7 × 6.

Answer: 336 ways

Try this example

Frequently 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.