[Home](https://learningfolio.de5.net/) / [Math](https://learningfolio.de5.net/math/) / [Math glossary](https://learningfolio.de5.net/math/glossary/) / Permutations and Combinations: When Order Matters

[Math glossary](https://learningfolio.de5.net/math/glossary/)

# Permutations and Combinations: When Order Matters

Count arrangements and selections, decide when order matters, and work through six examples with and without repeat choices.

Written by **Learningfolio Team**

We’re subject-matter experts in math, science, parent support, and education, with 100 years of combined experience. We believe in learning, experimenting, and growing, and we review one another’s work.

## On this page

* [TL;DR](https://learningfolio.de5.net/math/permutations-vs-combinations/#tldr)
* [Key Points](https://learningfolio.de5.net/math/permutations-vs-combinations/#key-points)
* [What is the difference between permutations and combinations?](https://learningfolio.de5.net/math/permutations-vs-combinations/#what-is-the-difference-between-permutations-and-combinations)
* [Which formula works when objects cannot repeat?](https://learningfolio.de5.net/math/permutations-vs-combinations/#which-formula-works-when-objects-cannot-repeat)
* [How do repeated choices and identical objects change the count?](https://learningfolio.de5.net/math/permutations-vs-combinations/#how-do-repeated-choices-and-identical-objects-change-the-count)
* [How do you choose a method for a probability question?](https://learningfolio.de5.net/math/permutations-vs-combinations/#how-do-you-choose-a-method-for-a-probability-question)
* [Worked Permutation and Combination Examples](https://learningfolio.de5.net/math/permutations-vs-combinations/#worked-permutation-and-combination-examples)
* [Mistakes That Change the Count](https://learningfolio.de5.net/math/permutations-vs-combinations/#mistakes-that-change-the-count)
* [Try It Yourself](https://learningfolio.de5.net/math/permutations-vs-combinations/#try-it-yourself)
* [Answers and Reasoning](https://learningfolio.de5.net/math/permutations-vs-combinations/#answers-and-reasoning)
* [Frequently Asked Questions](https://learningfolio.de5.net/math/permutations-vs-combinations/#frequently-asked-questions)
* [Conclusion](https://learningfolio.de5.net/math/permutations-vs-combinations/#conclusion)
* [Read More](https://learningfolio.de5.net/math/permutations-vs-combinations/#read-more)
* [Research Behind This Article](https://learningfolio.de5.net/math/permutations-vs-combinations/#research-behind-this-article)

## TL;DR

**Permutations count ordered arrangements. Combinations count selections where order does not matter.** Without reuse, choosing $r$ distinct items and arranging each choice in $r!$ ways gives the number of permutations.

## Key Points

* Ask whether swapping two selected items creates a different outcome.
* Without repetition, the permutation count is $n!/(n-r)!$.
* Dividing by $r!$ gives combinations of $r$ distinct items from $n$.
* Reusing an item and rearranging identical items are separate counting situations.
* Decide how to count outcomes before calculating a probability.

## What is the difference between permutations and combinations?

A **permutation** puts items into order or numbered positions. A **combination** chooses items without distinguishing their order. If picking a president and secretary, choosing Lee for president and Sol for secretary differs from swapping the roles. If the task is to choose two students for a committee, both orders give the same pair.

For three labels A, B, and C, the six ordered two-item choices without reuse are AB, BA, AC, CA, BC, and CB. The same choices form three unordered pairs: AB, AC, and BC. The outcome definition decides the count. [OpenStax, Counting Principles](https://openstax.org/books/algebra-and-trigonometry-2e/pages/13-5-counting-principles)

![Six ordered pairs of A, B, and C form three unordered sets of two letters](https://learningfolio.de5.net/assets/versioned/permutation-combination-three-pairs.dc2cb09f3e97.webp)


Each unordered two-item choice represents two different ordered arrangements.

## Which formula works when objects cannot repeat?

For $n$ distinct items and $r$ selected items, assume $0\le r\le n$. The notation $n!$ means the product of the positive integers up to $n$, with $0!=1$.

| Outcome | Does order matter? | Count |
| --- | --- | --- |
| Put $r$ of $n$ distinct items into roles or positions | Yes | $P(n,r)=\dfrac{n!}{(n-r)!}$ |
| Choose $r$ distinct items from $n$ | No | $\binom nr=\dfrac{n!}{r!(n-r)!}$ |
| Arrange all $n$ distinct items | Yes | $n!$ |

There are $n$ options for the first ordered position, $n-1$ for the second, and one fewer at each later position. The product ends after $r$ factors. The factorial ratio gives the same product by cancelling unused factors.

For each unordered selection, the $r$ chosen items can go into $r!$ orders. Every selection is counted that many times in the permutation total. Divide by $r!$ to recover the number of selections. This also explains why choosing all items gives a single combination. [OpenStax, Combinations](https://openstax.org/books/contemporary-mathematics/pages/7-3-combinations)

## How do repeated choices and identical objects change the count?

**Reuse allowed in ordered positions.** When each of $r$ slots can contain any of $n$ symbols, there are $n^r$ strings. If some symbols cannot go in a position, use the actual count for that position.

**Rearranging a fixed multiset.** If $n$ objects include $a_1,a_2,\ldots$ identical copies of each type, start with $n!$ labelled arrangements and divide by $a_1!a_2!\cdots$. Swapping labels on indistinguishable copies creates no new visible order.

**Reuse allowed in an unordered selection.** Distribute $r$ identical selections across $n$ distinct categories, with no upper limit per category. Split $r$ stars using $n-1$ dividers. Choosing divider positions among $r+n-1$ slots gives $\binom{r+n-1}{n-1}$. Empty groups are allowed and appear when dividers are adjacent or at an end. [MIT, Mathematics for Computer Science: Counting](https://courses.csail.mit.edu/6.042/past-devel/archive/spring03/handouts/lectures/lec20.pdf)

## How do you choose a method for a probability question?

Define one outcome first. In a five-card hand, an unordered set describes the outcome if only the cards in the hand matter. A combination gives the total number of possible hands. For a particular sequence of five draws, order matters, so count arrangements.

Use the same unit of counting in the numerator and denominator. Ordered and unordered approaches can give the same probability when each is consistent. The [card probability guide](https://learningfolio.de5.net/math/card-probability/) gives both kinds of questions.

## Worked Permutation and Combination Examples

### Example 1

Seven runners finish a race with no ties. How many ways can gold, silver, and bronze be assigned?

1. First, second, and third are distinct positions.
2. There are 7 first-place choices, 6 second-place choices, and 5 third-place choices.
3. Multiply $7\cdot6\cdot5=210$.

### Example 2

Choose three volunteers from the same seven people for identical roles.

1. The same three people count once regardless of who was named first.
2. The 210 ordered lists give $3!=6$ lists for each group.
3. Divide $210/6=35$ possible groups.

### Example 3

How many four-character locker codes use digits 0–9 if digits may repeat and leading zero is allowed?

1. Each position has ten choices.
2. Reusing earlier digits is allowed in later positions.
3. The count is $10^4=10{,}000$, including 0000.

### Example 4

How many visibly different arrangements can you write with the letters of BANANA?

1. There are six letters. A repeats three times and N repeats twice.
2. Count $6!$ arrangements as if every letter had a label.
3. Divide by $3!2!$ to remove exchanges of the matching letters. The count is $720/12=60$.

### Example 5

Choose five scoops from three flavours with no limit per flavour. Count selections by the final flavour quantities.

1. Write five stars and use two dividers to mark the three flavours.
2. The seven slots require two divider positions.
3. The count is $\binom72=21$. One outcome gives all five to the first flavour.

### Example 6

From five science activities and four maths activities, choose two of each for a workshop.

1. There are $\binom52=10$ science pairs and $\binom42=6$ maths pairs.
2. Each science pair can be combined with any maths pair.
3. By the multiplication rule, the total is $10\cdot6=60$. [Germanna Community College, Permutations and Combinations](https://germanna.edu/sites/default/files/2022-03/Permutations%20and%20Combinations.pdf)

## Mistakes That Change the Count

### Mistake 1: Dividing by a factorial when roles differ

President and secretary are different roles. Swapping people changes the outcome, so keep both arrangements.

### Mistake 2: Applying a without-reuse formula to a code with repeated digits

A previous choice removes an option only when reuse is forbidden. With reuse, the number of possible symbols can stay the same for every slot.

### Mistake 3: Treating two identical copies as different without checking

If a visible arrangement cannot distinguish two red tiles, switching them keeps the same result. Use the repeated-object rule when the outcome ignores labels.

## Try It Yourself

1. In how many ways can four different books be placed on a shelf?
2. How many pairs of books can you choose from four different books with no order?
3. How many three-digit numbers use distinct digits if the first digit cannot be zero?

## Answers and Reasoning

1. $4!=24$ because every position matters.
2. $\binom42=6$. Each unordered pair has two orders.
3. There are 9 choices first, then 9 unused choices including zero, then 8. The total is $9\cdot9\cdot8=648$.

## Frequently Asked Questions

### Is there one way to select zero objects?

Yes. The empty selection is a single outcome. That gives $\binom n0=1$.

### Why is choosing $r$ the same count as leaving $n-r$ out?

Each chosen group determines the leftover group uniquely. That gives $\binom nr=\binom n{n-r}$.

### Is a password a combination in mathematics?

A password usually depends on order. Even when everyday language calls it a combination, the counting method treats distinct orders as distinct strings.

## Conclusion

* Decide whether swapping items changes the result.
* Identify what can repeat and which items are indistinguishable.
* Count in matching units throughout a probability calculation.

## Read More

* [See how a deck supplies 52 distinct outcomes](https://learningfolio.de5.net/math/probability-and-playing-cards/)
* [Count outcomes in a binomial probability distribution](https://learningfolio.de5.net/math/probability-distribution/)

## Research Behind This Article

1. OpenStax, *Algebra and Trigonometry 2e: Counting Principles*. [OpenStax](https://openstax.org/books/algebra-and-trigonometry-2e/pages/13-5-counting-principles)
2. OpenStax, *Contemporary Mathematics: Combinations*. [OpenStax](https://openstax.org/books/contemporary-mathematics/pages/7-3-combinations)
3. Massachusetts Institute of Technology, *Mathematics for Computer Science: Counting*. [MIT](https://courses.csail.mit.edu/6.042/past-devel/archive/spring03/handouts/lectures/lec20.pdf)
4. Germanna Community College, *Permutations and Combinations*. [Germanna](https://germanna.edu/sites/default/files/2022-03/Permutations%20and%20Combinations.pdf)
