Permutations and combinations are two ways of counting how many outcomes a selection can produce. The single question that separates them is simple: does the order of the chosen items matter? If swapping two items gives a genuinely different result, you are counting permutations. If a swap leaves you with the same group, you are counting combinations.
Both are built on the factorial, where and by convention.
The two formulas
For choosing items from distinct items:
The permutation count treats two arrangements with the same members but different order as distinct. The combination count treats them as the same. The only difference between the formulas is the extra in the denominator of — and that single factor carries the entire "order matters / order doesn't" distinction.
When to use which
Use this decision rule before reaching for either formula:
| Situation | Order matters? | Use |
|---|---|---|
| Ranking finishers 1st/2nd/3rd in a race | Yes | |
| Assigning distinct roles (president, treasurer) | Yes | |
| Forming a PIN or password from distinct digits | Yes | |
| Choosing a committee with equal members | No | |
| Dealing a hand of cards | No | |
| Picking lottery numbers | No |
A quick test: rename the chosen items as "Group A." If a different seating, ranking, or labeling of the same people changes the answer, order matters → permutation. If only who is in Group A matters, order does not → combination.
Why the combination formula has that extra — a derivation
Start from permutations. To arrange items chosen from , fill slots in turn: the first slot has choices, the next , down to choices for the last slot. Multiplying gives
Now notice that every combination of items can itself be arranged internally in different orders, and each of those orders is a separate permutation. So the permutations are exactly the combinations counted times over:
Dividing both sides by isolates the combination count:
That is the whole story: a combination is a permutation with the internal orderings collapsed, and dividing by does the collapsing.
Worked example 1 (permutation): a race podium
Eight runners compete. How many distinct ways can the gold, silver, and bronze medals be awarded?
Order matters — gold for runner A and silver for runner B is different from the reverse. So use :
There are 336 possible podiums. The slot-filling logic confirms it directly: choices for gold, for silver, for bronze.
Worked example 2 (combination): a committee
From the same people, how many ways can a committee of (all equal members) be formed?
Order does not matter — a committee of {A, B, C} is identical to {C, B, A}. Use :
There are 56 committees. Notice the answer is exactly the permutation result divided by , which is the factor in action: each committee was over-counted times by the permutation, once for each ordering of its three members.
Practice
Try these before checking the answers below.
- A password uses different digits from –, and order matters. How many are possible?
- A pizza shop has toppings; you pick different ones. How many topping sets?
- In how many ways can distinct books be arranged on a shelf?
Answers: (1) . (2) . (3) .
Calculation traps to avoid
- Choosing the wrong formula. The most common error is using when order matters (or vice versa). Always run the "does a swap change the answer?" test first.
- Forgetting . When , the denominator includes , not . Setting breaks the formula.
- Mixing up and . The total pool is ; the number chosen is , with . is not the same as (the latter is undefined).
- Cancelling factorials carelessly. is , not . Expand only down to where the smaller factorial cancels.
- Ignoring repeated items. When some items are identical (like the three A's in "BANANA"), divide the total permutations by the factorial of each repeat group, or you will over-count distinct arrangements.
The fastest way to stop confusing these two is to internalize the relationship — every combination question is just a permutation question with the ordering divided back out.
Frequently Asked Questions
- What is the difference between a permutation and a combination?
- A permutation counts arrangements where order matters, so swapping two items gives a different outcome. A combination counts selections where order does not matter. The formulas differ only by an extra factor of r! in the denominator of the combination.
- When should I use nPr instead of nCr?
- Use nPr when order matters, such as ranking finishers, assigning distinct roles, or building a PIN from distinct digits. Use nCr when only the group membership matters, such as choosing a committee, dealing a hand, or picking lottery numbers.
- How are nPr and nCr related?
- They satisfy nPr = nCr times r!. Every combination can be internally arranged in r! orders, and each order is a separate permutation, so dividing the permutation count by r! gives the combination count.
- Why is 0! equal to 1?
- Defining 0! = 1 keeps the formulas consistent. For example, when r = n the denominator contains (n - r)! = 0!, and only 0! = 1 makes nCn equal to 1, which is the correct count of choosing all items in exactly one way.
- How do I count arrangements when some items are identical?
- Take the total factorial of all items and divide by the factorial of each repeated group. For the word BANANA with three A and two N, the count is 6! / (3! 2!) = 60 distinct arrangements.
Need help with a problem?
Upload your question and get a verified, step-by-step solution in seconds.
Open GPAI Solver →