Skip to content

Permutations vs combinations: how to tell which one to use

5 min read

Short answer

Ask one question: does order matter? If yes, count permutations: P(n,k)=n!(n−k)!P(n,k)=\dfrac{n!}{(n-k)!}. If no, count combinations: (nk)=n!k! (n−k)!\binom nk=\dfrac{n!}{k!\,(n-k)!}. Every combination of kk items corresponds to k!k! permutations, which is why (nk)=P(n,k)/k!\binom nk=P(n,k)/k!.

Six orderings of three letters are six permutations but one combinationABCACBBACBCACABCBA6 permutations{A, B, C}1 combination6 = 3! orderings per group
The six orderings of A, B and C are six different permutations but a single combination: the group {A, B, C}.

The order test

Imagine swapping two chosen items. If the result is a different outcome (president and treasurer swapped, a different PIN), order matters: permutation. If it is the same outcome (a committee, a hand of cards, toppings on a pizza), order does not matter: combination.

Why divide by k!

Counting ordered selections treats {A,B,C}\{A,B,C\} and {C,B,A}\{C,B,A\} as different. Each group of kk items appears in k!k! orders, so dividing the ordered count by k!k! leaves one count per group.

Worked example

From 8 club members, (a) choose a president, a vice-president and a treasurer; (b) choose a committee of 3.

(a) Roles are different, so order matters: 8⋅7⋅6=3368\cdot7\cdot6=336 ways.

(b) A committee has no roles, so order does not matter: (83)=8⋅7⋅63!=3366=56\dbinom83=\dfrac{8\cdot7\cdot6}{3!}=\dfrac{336}{6}=56 ways.

The ratio is exactly 3!=63!=6: each committee can be assigned to the three jobs in 6 ways.

Try it yourself

(a) How many 4-digit PINs have no repeated digit? (b) In how many ways can you choose 4 toppings from 10?

Show the answer

(a) Order matters: 10⋅9⋅8⋅7=504010\cdot9\cdot8\cdot7=5040. (b) Order does not matter: (104)=10⋅9⋅8⋅74!=210\binom{10}4=\dfrac{10\cdot9\cdot8\cdot7}{4!}=210.

Keep going with practice

Counting is the first unit of probability in Vidi's Linear Algebra & Probability course, with an interactive counting explorer.