Allday Education

Permutations & Combinations

Counting problems come in two flavors. A permutation counts arrangements, where order matters: gold-silver-bronze is different from bronze-silver-gold. A combination counts selections, where order does not matter: a committee of Ana, Ben, and Cruz is the same committee no matter who was picked first.

One question decides which tool you need: if you swapped two of the chosen items, would you get a genuinely different result? Yes means permutation. No means combination. Everything after that is plugging into a formula.

The two formulas

Both formulas use factorials, where n!=n(n1)(n2)1n! = n(n-1)(n-2)\cdots 1. Arranging rr items chosen from nn: nPr=n!(nr)!_nP_r = \dfrac{n!}{(n-r)!}. Selecting rr items from nn when order doesn't matter: nCr=n!r!(nr)!_nC_r = \dfrac{n!}{r!(n-r)!}, which is also written (nr)\dbinom{n}{r}.

Notice the only difference is the extra r!r! in the combination's denominator. That r!r! divides out the repeats: every group of rr items shows up r!r! times among the ordered arrangements, once for each way to shuffle it.

How to compute them quickly

You rarely need the full factorials. For 7P3_7P_3, just multiply 33 falling numbers starting at 77: 765=2107 \cdot 6 \cdot 5 = 210. For (73)\dbinom{7}{3}, take that same product and divide by 3!=63! = 6: 2106=35\dfrac{210}{6} = 35.

For combinations, cancel before you multiply. In 765321\dfrac{7 \cdot 6 \cdot 5}{3 \cdot 2 \cdot 1}, the 66 on top cancels the 323 \cdot 2 on the bottom, leaving 75=357 \cdot 5 = 35 with no big numbers ever appearing.

Spotting which one a problem wants

Permutation words: arrange, line up, order, schedule, ranking, president-then-vice-president (distinct roles). Combination words: choose, select, committee, group, handful, toppings — anything where the chosen items end up in one unlabeled pile.

The most common error is using ordered counting for an unordered selection. Choosing 33 committee members from 1010 by computing 1098=72010 \cdot 9 \cdot 8 = 720 counts every committee 3!=63! = 6 times. The correct count is 7206=120\dfrac{720}{6} = 120.

Worked examples

Example 1: a permutation (order matters)

In how many ways can 44 people line up in a row?

A line-up is an arrangement, so order matters
All 44 people are used, so this is 4!4!4P4=4!_4P_4 = 4!
Multiply4321=244 \cdot 3 \cdot 2 \cdot 1 = 24

Answer: 2424 ways

Example 2: a combination (order doesn't matter)

How many ways can 33 items be chosen from 66 when order does not matter?

A selection with no order is a combination6C3=6!3!3!_6C_3 = \dfrac{6!}{3!\,3!}
Write it as a product over 3!3!654321\dfrac{6 \cdot 5 \cdot 4}{3 \cdot 2 \cdot 1}
Cancel and multiply1206=20\dfrac{120}{6} = 20

Answer: 2020 ways

Example 3: a partial permutation

How many ways can 22 letters be arranged from 44 different letters when order matters?

Order matters, so use a permutation4P2=4!2!_4P_2 = \dfrac{4!}{2!}
Multiply 22 falling numbers starting at 4443=124 \cdot 3 = 12

Answer: 1212 ways

Try one yourself

Common questions

How do I decide between a permutation and a combination?

Ask whether swapping two chosen items creates a different result. Different seats, ranks, or roles mean order matters — permutation. One unlabeled group means order does not matter — combination.

Why does the combination formula divide by r!r!?

Ordered counting lists every group of rr items r!r! times — once per shuffle of that group. Dividing by r!r! collapses those repeats so each group is counted exactly once.

What is 0!0!?

By definition 0!=10! = 1. That keeps the formulas working at the edges: (nn)=n!n!0!=1\dbinom{n}{n} = \dfrac{n!}{n!\,0!} = 1, which is right — there's exactly one way to choose everything.

Which is bigger, nPr_nP_r or nCr_nC_r?

The permutation, whenever r>1r > 1. Since nPr=r!nCr_nP_r = r! \cdot {_nC_r}, there are always at least as many arrangements as selections — each selection can be arranged r!r! ways.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1