Counting principles: permutations & combinations
How to count arrangements and selections without listing them: the product and sum rules, permutations, combinations, repeated objects and, most importantly, how to handle restrictions.
1What you need to know
Tick these off as you go. By the end of the page you should be able to do all of them without notes.
- Use the product rule ("and") and the sum rule ("or") to count outcomesAHL 1.10
- Decide whether order matters, and choose permutations or combinationsAHL 1.10
- Count arrangements with restrictions: together, apart, fixed positionsAHL 1.10
- Count arrangements of objects that are not all differentAHL 1.10
- Count selections with conditions, including "at least", by cases or the complementAHL 1.10
- Use counting to find probabilitiesAHL 1.10, SL 4.5
2Notes & worked examples
Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.
Counting questions ask "how many ways?" without listing every possibility. Almost every question is built from two decisions: does order matter? (an arrangement or a selection) and are there restrictions? (some people together, some apart, at least one of something). Get those two decisions right and the calculation is usually short.
2.1 The product rule and the sum rule
Suppose a café offers 3 starters and 4 main courses. A meal is a starter and a main course. For each of the 3 starters there are 4 mains, so there are meals. This is the product rule: if one choice can be made in ways and, for each of these, a second choice can be made in ways, the two choices together can be made in ways.
If instead you choose a starter or a main course (but not both), there are options. This is the sum rule: when the options cannot happen together, add them.
And (one choice after another) multiply. Or (separate, non-overlapping cases) add.
Drawing "slots" helps: draw one box per position, write the number of choices in each box, then multiply. Fill the most restricted box first.
2.2 Permutations: when order matters
The number of ways to arrange different objects in a row is : there are choices for the first place, for the second, and so on. If only of the objects are placed in order, you stop after factors.
2.3 Combinations: when order does not matter
Choosing a committee of 3 people from 8 is different: the committee {Ana, Ben, Cai} is the same however you list it. Each committee of 3 has been counted times among the ordered lists, so there are committees.
To make an ordered list of objects from , you can first choose which objects ( ways) and then arrange them ( ways). By the product rule, , which rearranges to the formula. This is also why : choosing the people who are in the committee is the same as choosing the who are left out.
Imagine swapping two of the chosen items. If that gives a different outcome (different seats, different prizes, a different code), order matters: use permutations. If it gives the same outcome (the same team, the same hand of cards, the same set of toppings), order does not matter: use combinations.
2.4 Restrictions: together, apart and fixed positions
This is where questions become varied. There are three standard techniques, and the golden rule is to deal with the restriction first.
- Fixed positions (someone must sit at the end, a code must start with a vowel): fill the restricted slots first, then arrange everyone else.
- Must be together: glue the group into one "block". Arrange the block with the other objects, then multiply by the number of ways to arrange the objects inside the block.
- Must not be together: count all arrangements and subtract those where they are together (the complement). For several objects that must all be separated, use the gaps method instead: arrange the others first, then place the separated objects in the gaps.
"Total minus together" only works neatly when there is one pair to keep apart. With three girls, "not together" could mean no two adjacent, or not all three in a block, and subtracting gets complicated. The gaps method builds the separation in from the start, so it never double counts.
2.5 Objects that are not all different
If some objects are identical, swapping them does not create a new arrangement. The letters of BOOK can be arranged in ways if the two Os are labelled , but each real arrangement is counted twice ( and ), so there are .
2.6 Selections with conditions
For selections, conditions such as "at least 2 women" are handled in one of two ways. Either split into separate cases and add (the sum rule), or count everything and subtract the cases you do not want (the complement). Use whichever has fewer cases.
A tempting shortcut for "at least one woman" is: choose one woman (4 ways), then choose the other 4 members from the remaining 9 people. That gives , which is too big. A committee with two women, say Ana and Bea, is counted twice: once with Ana as "the chosen woman" and once with Bea. Whenever a method picks out "a special one" that is not really special, check for double counting.
2.7 Counting and probability
When all outcomes are equally likely, a probability is a count divided by a count: . Use the same method (ordered or unordered) for the top and the bottom.
- Does order matter? (arrangement or selection)
- Are any objects identical? (divide by the repeats)
- Is there a fixed position? (fill it first)
- Must some objects be together? (block, then arrange inside)
- Must some be apart? (complement for one pair, gaps for several)
- Is it "at least" or "at most"? (cases, or the complement)
- Are groups unlabelled? (divide by the number of ways to order the groups)
On a Calculator page: menu → 5: Probability → 1: Factorial, 2: Permutations (nPr(8,3) gives 336) and 3: Combinations (nCr(10,4) gives 210). For a question split into cases, type the whole sum in one line, e.g. nCr(4,2)*nCr(6,3)+nCr(4,3)*nCr(6,2)+nCr(6,1).
3Explore it
The bars show for every (a row of Pascal’s triangle). Change and to compare permutations and combinations.
4Common mistakes & exam tips
Common mistakes
- Using combinations when order matters (prizes, seats, codes), or permutations when it does not (teams, hands of cards).
- Adding when the choices happen together ("and"), or multiplying separate cases ("or").
- Forgetting to arrange the objects inside a block when some must be together.
- Double counting in "at least one" questions by choosing "a special one" first.
- Forgetting to divide by repeats (identical letters) or by the order of unlabelled groups.
Exam tips
- Always decide "does order matter?" first, and write it down.
- Fill restricted positions first; draw slots and write the number of choices in each.
- For "not together", use total − together for one pair, and the gaps method for several objects.
- Check a counting answer with a second method, or with a small case you can list by hand.
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
6Exam-style questions
Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.
The letters of the word EXAMINE are to be arranged in a row.
- (a)Find the number of different arrangements.[2]
- (b)Find the number of arrangements in which the two Es are next to each other.[2]
- (c)Find the number of arrangements in which the two Es are not next to each other.[2]
| (a) | |
| M1 | |
| A1 | |
| (b) | |
| treat EE as one block: | M1 |
| A1 | |
| No : the Es are identical. | |
| (c) | |
| M1 | |
| A1 | |
A club has 7 boys and 5 girls. A committee of 6 members is to be chosen.
- (a)Find the number of possible committees.[1]
- (b)Find the number of committees with exactly 2 girls.[2]
- (c)Find the number of committees with at least one girl.[2]
- (d)The committee is chosen at random. Find the probability that it contains exactly 2 girls.[2]
| (a) | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| (c) | |
| M1 | |
| A1 | |
| (d) | |
| M1 | |
| (0.379) | A1 |
Eight people, including Alex, Bea and Chen, sit in a row of 8 seats.
- (a)Find the number of possible seating arrangements.[1]
- (b)Find the number of arrangements in which Alex and Bea sit next to each other.[2]
- (c)Find the number of arrangements in which Chen sits in one of the end seats and Alex and Bea do not sit next to each other.[4]
| (a) | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| (c) | |
| Chen at an end: 2 ways | A1 |
| remaining 7 seats: | M1 |
| A1 | |
| A1 | |
Twelve students are to be divided into groups for a project.
- (a)Find the number of ways to divide them into a group of 5 and a group of 7.[2]
- (b)Find the number of ways to divide them into three groups of 4.[4]
| (a) | |
| M1 | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| divide by as the groups are unlabelled | M1 |
| A1 | |
7Check yourself
Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.
8Past-paper practice
Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2021 · TZ1 · Paper 1 | Q9 | Arrangements in a grid with restrictions | ★★★ |
| May 2022 · TZ1 · Paper 2 | Q9 | Seating in a row with conditions | ★★☆ |
| May 2024 · TZ1 · Paper 2 | Q9 | Choosing groups with siblings kept apart or together | ★★★ |
| May 2024 · TZ2 · Paper 1 | Q9 | Assigning students to groups | ★★★ |
| May 2025 · TZ2 · Paper 2 | Q11 | Dividing a class into equal teams | ★★★ |
