Sample Spaces, Tree Diagrams & the Counting Principle
A sample space is the list of every outcome that could happen. Flip a coin and the sample space is heads or tails — outcomes. Flip it twice and the sample space is , , , — outcomes. Every probability you will ever compute sits on top of a sample space, because probability is favorable outcomes divided by total outcomes, and the sample space is where the total comes from.
When the outcomes come from several choices in a row — a shirt, then pants; a spin, then a roll — listing them all gets slow fast. The counting principle is the shortcut: multiply the number of options for each choice, and the product is the size of the sample space. A tree diagram is the picture that shows why the shortcut works.
Listing a sample space
For a single action, the sample space is just the list of results: rolling a number cube gives . For two actions in a row, each outcome is a pair — one result from the first action and one from the second. Flipping a coin twice gives .
Order matters in these pairs: (heads then tails) and (tails then heads) are different outcomes, and counting them as one is the most common way to get a sample space wrong. Work through the list systematically — hold the first result fixed and cycle through every second result, then move on.
Tree diagrams
A tree diagram lists every outcome as a path from left to right. Each choice gets a column of branches: with shirts and pairs of pants, the tree starts with shirt branches, and each shirt branch splits into pants branches. Follow every path from start to finish and you have walked the whole sample space — outfits.
The tree also shows the multiplication happening: branches, each splitting into , gives paths. That is the counting principle drawn out. Trees are worth drawing when the problem asks you to list the outcomes or find a specific one; when it only asks how many, skip the drawing and multiply.
The counting principle
For choices made in a row, multiply the number of options for each choice. A menu with sandwiches, sides, and drinks offers different meals. The principle works for any number of stages, which is exactly why it beats listing — nobody wants to write out meals.
The trap is adding instead of multiplying. Adding counts the items on the menu, not the ways to combine them. Each full meal uses one option from every category, so every sandwich pairs with every side, and every one of those pairs with every drink — that stacking of every-with-every is multiplication.
One refinement: if a choice cannot repeat, the number of options shrinks at each stage. A club of members picking a president and then a vice-president has options for the first job but only for the second, so there are ways.
Worked examples
Example 1: list a sample space
A coin is flipped twice. List the sample space.
Answer: — outcomes
Example 2: two choices
You have shirts and pairs of pants. How many different outfits are possible?
Answer: outfits
Example 3: three stages
You spin a spinner with equal sections, roll a number cube, and flip a coin. How many outcomes are in the sample space?
Answer: outcomes
Try one yourself
Common questions
How do I know whether to multiply or add?
Multiply when the choices happen together — one option from each category makes one outcome. Add only when the options are alternatives from a single choice, like counting how many total items sit on a menu. If the problem says "and then" or asks for combinations of choices, multiply.
Do I have to draw the tree diagram?
Only when the problem asks you to list the outcomes or find a particular one. If the question is just "how many," the counting principle gives the answer in one line. Trees with more than about paths are a sign you should be multiplying instead.
Are HT and TH really different outcomes?
Yes. The first letter is the first flip and the second letter is the second flip, so and describe different sequences of events. Merging them undercounts the sample space and throws off every probability built on it.
What if an option can't be reused?
Shrink the count at each stage. Choosing a president and then a vice-president from people gives , because the person picked first is no longer available. The counting principle still applies — you just use the number of options actually left at each step.
Want the video version?
Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.