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?

  1. Unordered panel: 10C3 = (10 × 9 × 8) ÷ (3 × 2 × 1) = 120
  2. Three distinct roles: 10P3 = 10 × 9 × 8 = 720
  3. 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

  1. Permutations

    When order matters: nPr = n! / (n − r)!.

  2. Combinations

    When order doesn't matter: nCr = n! / (r! (n − r)!).

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

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.

More free calculators