Statistics & Probability

Permutations vs Combinations: When Order Matters

By math_person · · 2 min read

On this page
  1. The key question: does order matter?
  2. Factorials
  3. Permutations
  4. Combinations
  5. Worked example: the lottery
  6. Combinations in probability
  7. Repetition allowed
  8. Common mistakes
  9. Practice questions
  10. Frequently asked questions
  11. Try these calculators

A permutation counts arrangements where order matters, like first, second and third place. A combination counts selections where order does not matter, like choosing a team. Choosing 3 from 10 gives $720$ permutations but only $120$ combinations, because each group of 3 can be arranged in $3! = 6$ ways.

The key question: does order matter?

Situation Order matters? Use
Gold, silver, bronze from 10 runners Yes Permutation
A committee of 3 from 10 people No Combination
A 4-digit PIN Yes (and digits can repeat) $10^4$
Lottery numbers No Combination

Factorials

$n!$ means $n \times (n-1) \times \cdots \times 1$. For example, $5! = 120$, and by definition $0! = 1$.

Permutations

$${}^{n}P_{r} = \frac{n!}{(n - r)!}$$

Example: medals for 10 runners.

$${}^{10}P_{3} = 10 \times 9 \times 8 = 720$$

There are 10 choices for gold, then 9 left for silver, then 8 for bronze.

Combinations

$$\binom{n}{r} = \frac{n!}{r!\,(n - r)!}$$

Example: a committee of 3 from 10.

$$\binom{10}{3} = \frac{720}{3!} = \frac{720}{6} = 120$$

Worked example: the lottery

Choosing 6 numbers from 49, where order does not matter:

$$\binom{49}{6} = 13\,983\,816$$

So one ticket has a 1 in about 14 million chance of matching all six.

Combinations in probability

Combinations appear in the binomial formula. The probability of exactly 6 heads in 10 fair coin flips is

$$\binom{10}{6}\left(\tfrac{1}{2}\right)^{10} = \frac{210}{1024} \approx 0.2051$$

Repetition allowed

  • Order matters, repetition allowed: $n^r$ (a 4-digit PIN has $10^4 = 10\,000$ options).
  • Order doesn't matter, repetition allowed: $\binom{n + r - 1}{r}$.

Common mistakes

  • Using permutations for a team or a hand of cards.
  • Forgetting that $\binom{n}{r} = \binom{n}{n - r}$, which can save work.
  • Writing $\frac{n!}{r!}$ and forgetting the $(n - r)!$.

Practice questions

  1. How many ways can 5 books be arranged on a shelf?
  2. How many 5-card hands come from a 52-card deck?
  3. How many ways to pick a president and a secretary from 8 people?

Answers: 1) $120$ 2) $2\,598\,960$ 3) $56$

The permutation and combination calculator gives exact answers even for huge numbers. For "exactly k successes" questions, use the binomial distribution calculator.

Frequently asked questions

Why is 0! equal to 1?

There is exactly one way to arrange nothing, and defining 0! = 1 makes the formulas work for r = 0 and r = n.

Is nCr always smaller than nPr?

It is never bigger. They are equal only when r is 0 or 1.

How do I know which formula to use?

Ask whether swapping two chosen items gives a different outcome. If yes, use permutations; if no, use combinations.

Open the calculator →

#combinations#counting#probability