Permutation & Combination Calculator

Calculate arrangements and selections.

How it works

This calculator counts the ways of choosing r items from n different items. It gives both answers: permutations, where the order matters, and combinations, where it doesn't.

It assumes each item can be picked at most once (no repetition) and that all n items are different.

Worked example: 3 prize winners from 10 entrants

  1. If the prizes are first, second and third, order matters: there are 10 choices for first, then 9, then 8.
  2. If the three winners all get the same prize, order doesn't matter. Each group of 3 was counted 3! = 6 times, so divide by 6.

Which one do I need?

Ask whether swapping two chosen items gives a different outcome. A race finish, a PIN or a seating plan: yes, use permutations. A committee, a lottery ticket or a hand of cards: no, use combinations.

Combinations are always smaller

Each combination of r items can be arranged in r! orders, so nPr = nCr × r!. That's why the permutation count is always the bigger of the two once r is 2 or more.

Big numbers arrive quickly

There are 2,598,960 five-card poker hands from a 52-card deck, and 311,875,200 if the order of dealing counted. The calculator switches to scientific notation when results get very large.

Common questions

What are the odds of winning a 6-from-45 lottery?

There are ⁴⁵C₆ = 8,145,060 possible tickets, so one ticket has a 1 in 8,145,060 chance of matching all six numbers.

What if items can be repeated?

This calculator doesn't cover that. With repetition and order mattering, the count is simply nʳ: a 4-digit PIN has 10⁴ = 10,000 possibilities.

What is 0! ?

0! is defined as 1, so choosing 0 items, or all n items, gives exactly 1 combination.

Use it with