Permutation & Combination Calculator
Enter how many items there are (n) and how many you choose (r).
Need the full working for a harder problem? Try the statistics step-by-step solver.
The formula
nPr = n! ÷ (n − r)! when order matters. nCr = n! ÷ (r! (n − r)!) when it does not.
Worked example
A team of 10 needs a panel of 3. How many panels are possible, and how many if the three roles are chair, secretary and treasurer?
- Unordered panel: 10C3 = (10 × 9 × 8) ÷ (3 × 2 × 1) = 120
- Three distinct roles: 10P3 = 10 × 9 × 8 = 720
- Each panel of 3 can fill the roles in 3! = 6 ways, and 120 × 6 = 720
120 possible panels, or 720 ways to fill three named roles.
How it works
Permutations
When order matters: nPr = n! / (n − r)!.
Combinations
When order doesn't matter: nCr = n! / (r! (n − r)!).
With repetition
If items can be picked more than once, ordered choices number nʳ, and unordered ones number C(n + r − 1, r).
Good to know
- Ask whether swapping two chosen items changes the outcome. If it does, use permutations.
- Choosing r items is the same as choosing which n − r to leave out, so nCr = nC(n − r).
- If r is larger than n, there is no way to choose without repetition and both results are 0.
Common questions
How do I know which one to use?
Ask whether swapping two chosen items gives a different outcome. A podium finish is a permutation; a committee is a combination.
Why is nCr never larger than nPr?
Each combination can be arranged in r! orders, so nPr is nCr multiplied by r!.
What are the odds of matching 6 numbers from 49?
There are 49C6 = 13,983,816 combinations, so one ticket has a 1 in 13,983,816 chance.
How many 4-digit PINs are there?
Digits can repeat and order matters, so it is 10⁴ = 10,000. With no repeated digits it is 10P4 = 5,040.
How do I count arrangements when some items are identical?
Divide n! by the factorial of each group of identical items. The letters of LEVEL can be arranged in 5! ÷ (2! × 2!) = 30 ways.