Basic Counting Principles

Watch the video explainer

Learning goals

  • Explain multiplication of stage counts using a tree or grid
  • Add group sizes when one choice comes from separate, non-overlapping groups
  • Decide whether a count multiplies or adds by checking what one complete outcome contains
  • Count arrangements and codes, accounting for restricted choices and whether items may repeat

The multiplication principle

Start with the lunch, but shrink it so we can see everything. Say there are 22 sandwiches, ham and veg, and 33 drinks, tea, milk, and juice. A tree diagram lays out the choices in stages. Draw one branch for each sandwich, then from the end of every sandwich branch draw one branch for each drink. Each path from left to right makes one complete lunch, and the tips on the far right are all the lunches there are.

A tree diagram for 2 sandwiches and 3 drinksA start dot branches to Ham and Veg; each branches to Tea, Milk, Juice; the six tips are the six lunches.SandwichDrinkOutcomeHamVegTeaMilkJuiceTeaMilkJuiceHam, TeaHam, MilkHam, JuiceVeg, TeaVeg, MilkVeg, Juice
A tree for choosing one of 2 sandwiches and then one of 3 drinks. Each of the 2 sandwich branches splits into the same 3 drink branches, giving 2 groups of 3 tips. The 6 tips on the right are every possible lunch.

The 22 sandwich branches each split into 33 drink branches. The tips form 22 equal groups of 33, so 3+3=2×3=63 + 3 = 2 \times 3 = 6 lunches. This is the multiplication principle, also called the fundamental counting principle: multiply the stage counts when each stage offers the same number of choices regardless of the earlier choices. The number may differ from stage to stage, as 22 and 33 do here.

Why mm choices then nn choices give m×nm \times n outcomes#

Suppose you choose one of 33 shirts and one of 22 hats. A tree has 33 shirt branches, each ending in 22 hat branches. Every outfit appears at exactly one tip: its shirt determines the first branch and its hat the second. The 33 groups of 22 tips give 2+2+2=3×2=62 + 2 + 2 = 3 \times 2 = 6 outfits.

The same reasoning works with other numbers of shirts and hats. If the first stage has mm choices and every first choice allows nn second choices, the tree has mm groups of nn tips. Each tip is one complete outcome, and each outcome appears once. For positive whole-number counts mm and nn, adding those equal groups gives

n+n+⋯+n⏟m equal groups=m×n.\underbrace{n + n + \cdots + n}_{m\text{ equal groups}} = m \times n.

The second-stage options may differ between branches; only their number must stay the same. If either stage has no choices, there are no complete outcomes, and the product is 00.

Trees, lists, and grids

A tree also gives an organized list: read its tips from top to bottom. Keep one sandwich fixed while running through all the drinks, then move to the next sandwich. This fixed order helps you check that no lunch was skipped or counted twice.

A grid shows the same count as a rectangle. Put the sandwiches down the side and the drinks across the top, and each cell is one lunch. A rectangle with 22 rows of 33 cells holds 2×3=62 \times 3 = 6 cells. That is the multiplication principle in picture form, since the area of a rectangle is rows times columns.

A 2 by 3 grid of lunchesTwo rows, Ham and Veg, by three columns, Tea, Milk, Juice; six cells each with a dot; 2 times 3 equals 6.TeaMilkJuiceHamVeg2 × 3 = 6 outcomes
The same 6 lunches as a grid: 2 sandwich rows and 3 drink columns. Each cell is one outcome, so the count is 2 rows times 3 columns, the same multiplication as the tree.

Worked example 1 Count lunches at the full diner

The diner from the opening offers 44 sandwiches and 33 drinks, and a lunch is one sandwich and one drink. How many different lunches are possible?

First choose a sandwich, then a drink. Every sandwich can pair with every drink, so each of the 44 sandwich choices has 33 drink choices:

4×3=12.4 \times 3 = 12.

There are 1212 possible lunches. As a check, a tree would draw 44 sandwich branches, each splitting into 33 drinks. That gives 44 groups of 33 tips, which is 1212 tips in all.

Three or more stages

The tree can keep growing. If a third stage gives every existing outcome 44 new branches, there are 44 times as many tips. Multiply by that stage’s count too. The same reasoning works for any number of stages, as long as the number of choices at each stage does not depend on which earlier choices were made.

Worked example 2 Build a sundae in three stages

A sundae is built in three stages: choose 11 of 33 ice-cream flavors, then 11 of 22 sauces, then 11 of 44 toppings. How many different sundaes are possible?

At every stage the full set of options is still there, whatever was chosen before, so multiply the three stage counts together:

3×2×4=24.3 \times 2 \times 4 = 24.

There are 2424 sundaes. The flavor and sauce alone give 3×2=63 \times 2 = 6 combinations, and then each of those 66 splits into 44 topping choices, 6×4=246 \times 4 = 24.

Check your understanding

A smoothie shop lets you pick one of 33 sizes, one of 55 flavors, and one of 22 add-ins. How many different smoothies (one size, one flavor, and one add-in) are possible?

Answer choices

The addition principle

Sometimes you choose just one item from several separate groups. If the groups do not overlap, adding their sizes counts the available items.

Suppose a prize shelf holds 55 books and 33 board games, and you take exactly one item home. Your prize is either a book or a game, never both at once. Because no item belongs to both groups, you can slide the two groups together into one pile of 5+3=85 + 3 = 8 items. Choosing one prize is then just choosing one item from that pile. So there are 88 possible prizes. This is the addition principle. If you choose one item from groups that share no members, the number of choices is the sum of the group sizes.

The words “and” and “or” can help you remember the difference. One book and one game gives 5×3=155 \times 3 = 15 pairs, because each book can go with any game. One prize, a book or a game, gives 5+3=85 + 3 = 8 choices. Check what a complete outcome contains rather than deciding from a word alone.

Addition also handles a tree with unequal branches. Suppose the diner allows 22 drinks with ham but 33 with veg. The ham lunches and veg lunches are separate cases, so there are 2+3=52 + 3 = 5 lunches. Multiplying 2×32 \times 3 would incorrectly give ham all 33 drink choices.

Worked example 3 Add or multiply? Reading the problem

A club must send one representative to a meeting. The representative may be any of the 77 seniors or any of the 66 juniors. How many choices does the club have?

The club picks one person, and that person comes from one of two separate groups (a senior or a junior, not both). No one is counted in both groups, so this is a single choice from separate groups: add.

7+6=13.7 + 6 = 13.

There are 1313 choices. Now compare a different task: send one senior and one junior as a pair of representatives. That is a sequence of two choices, so it multiplies, 7×6=427 \times 6 = 42. Do not decide from a single word alone. Ask what one complete answer contains. One representative contains a single name from one group, so it adds. A pair contains one name from each group, so it multiplies.

Check your understanding

A lunch special lets you choose your single main course from 44 hot dishes or 33 cold salads, and you choose exactly one dish. How many choices do you have for your one dish?

Answer choices

Check your understanding

A cafe's combo is either a sandwich or a salad. A sandwich is one of 44 breads with one of 33 fillings, and a salad is one of 55 dressings with one of 22 toppings. How many different combos are possible?

Answer choices

Counting arrangements stage by stage

A special kind of counting asks in how many orders a set of items can be placed. Take 33 different books, A, B, and C, that you want to line up on a shelf. Treat each shelf position as a stage. For the first position you may use any of the 33 books. Once that book is placed it is used up, so only 22 books remain for the second position. After that, just 11 book remains for the third. The choices shrink at each stage, and by the multiplication principle you multiply them:

3×2×1=6.3 \times 2 \times 1 = 6.
Counting arrangements of 3 books by shrinking choicesThree position boxes holding 3, 2, and 1 choices, multiplied to give 6 orders.1st spot2nd spot3rd spot321××3 × 2 × 1 = 6 orders
Arranging 3 books in a row, one position at a time. The first position has 3 choices, the second has 2 (one book is now used), and the last has 1. Multiplying the shrinking choices gives 3 times 2 times 1 = 6 orders.

Written out, those six orders are ABC, ACB, BAC, BCA, CAB, and CBA: every way to line up three different books.

The multiplication principle still applies: whichever book goes first, exactly 22 remain for second place. The available books change, but their number does not. If you fill only the first few places from a larger set, multiply the counts for those places and stop.

Worked example 4 Hand out gold, silver, and bronze

Six runners finish a race, and the top three earn gold, silver, and bronze medals. In how many ways can the three medals be awarded?

Award the medals as a sequence of three stages, watching the choices shrink. Any of the 66 runners can win gold. Once gold is decided, 55 runners remain for silver, and then 44 remain for bronze:

6×5×4=120.6 \times 5 \times 4 = 120.

There are 120120 ways. The choices drop from 66 to 55 to 44 because a runner who already has a medal cannot receive another. With no other restrictions, the choices drop by one at each stage whenever an item cannot be reused. Notice we stopped after three stages, since only three medals are given out.

Check your understanding

In how many different orders can 44 different books be arranged in a row on a shelf?

Answer choices

Repeated choices and exponents

When the same number of choices repeats at every stage, the product becomes a power, which connects counting straight back to exponents. Flip a coin and there are 22 outcomes, heads or tails. Flip it again and each of those splits into 22, giving 2×2=42 \times 2 = 4. Flip it a third time and you reach 2×2×2=82 \times 2 \times 2 = 8. For nn flips you multiply nn twos:

2×2×⋯×2⏟n flips=2n.\underbrace{2 \times 2 \times \cdots \times 2}_{n \text{ flips}} = 2^n.

The exponent counts how many stages there are, and the base counts the choices at each stage. The same shape appears whenever choices repeat. A 44-digit code, where each digit can be any of the 1010 digits 00 through 99 and a digit may repeat, has

10×10×10×10=104=10,00010 \times 10 \times 10 \times 10 = 10^4 = 10{,}000

possible values, including codes that start with 00. Keep the base and the exponent the right way around: 25=322^5 = 32 counts five coin flips, while 52=255^2 = 25 counts two choices with five options each.

Worked example 5 Count two-digit numbers with a restricted first digit

A number’s first digit has a restriction that a code may not have. To count two-digit numbers using digits 00 through 99, fill the tens place first: it has 99 choices because 00 is not allowed. If repetition is allowed, the ones place has all 1010 choices:

9×10=90.9 \times 10 = 90.

If the two digits must be different, the tens place still has 99 choices. The ones place has 99 remaining choices, including 00, giving

9×9=81.9 \times 9 = 81.

The two factors are both 99 for different reasons: first we exclude 00, then we exclude the digit already used. Filling the restricted place first keeps the later count the same. If we filled the ones place first, the tens place would have 99 choices after a 00, but only 88 after any other digit. Those unequal branches would need separate counts.

Check your understanding

How many two-digit numbers can you make from 0,3,7,80, 3, 7, 8 if a digit cannot repeat?

Answer choices

Worked example 6 How many 3-symbol flags?

A signal flag shows 33 colored bands, stacked top to bottom. Each band can be colored with any of 55 available colors, and a color may repeat, so two or three bands can match. How many different flags are possible?

Each band is a stage with 55 choices, and the same 55 colors are available at every band no matter what the earlier bands used. Multiply three fives, which is a power of five:

5×5×5=53=125.5 \times 5 \times 5 = 5^3 = 125.

There are 125125 possible flags. A color may repeat, so every band keeps all 55 choices; the counts do not shrink as they did for books.

Check your understanding

A padlock has 33 dials, each set to one of 66 symbols, and a symbol may repeat across dials. How many dial settings are possible?

Answer choices

Counting the equally likely possibilities

You can use these rules for more than menus and medals. Without listing every result, they tell you how many results an experiment, such as rolling dice or drawing cards, can have. When those results are all equally likely, the next lesson uses that total to find probabilities.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

An ancient Chinese reader seeking guidance might turn to the I Ching, or Book of Changes. Its figures, called hexagrams, each contain six stacked lines. A line is either solid or broken in the middle. Readers used the figures and their accompanying words to think about questions and decisions in their lives.

Two kinds of line are enough to make many different figures. Each of the six positions has two possibilities, so there are 26=642^6 = 64 different figures. The book contains all sixty-four. Its traditions reach back more than two thousand years, and later readers studied it as philosophy as well as a guide to fortune telling.

The figures stayed the same while generations of readers found new meanings in them. For centuries, readers used these few solid and broken lines as a starting point for discussing change.

The Stanford Encyclopedia of Philosophy describes the book and its history.

Your progress

See all your progress →