On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Statistics & Probability · Grade 6-8

Sample Space

The sample space S is the set of all possible outcomes of a random experiment.

∑all outcomesP(outcome)=1
Venn diagram of Event A and Event BA two-event view of sample space.ABA ∩ B
A: Event A
B: Event B
A two-event view of sample space.

Quick Answer

The sample space S is the set of all possible outcomes of a random experiment. List it before finding a probability, because the total in every favorable-over-total fraction comes from this list. For one coin it is {H, T}; for a coin and a die it has 2×6=12 outcomes, from H1 to T6. A good sample space includes every outcome, lists each one once, and, if you plan to count, uses outcomes that are equally likely.

Why This Matters

Many wrong probability answers come from a wrong total. With the sample space written out, the chance of two heads in two flips is plainly 1 out of 4, not 1 out of 3. Once you have it, any event's probability is a count, and you can check your list by confirming that the probabilities of all its outcomes add to 1.

Intuitive Explanation

The sample space is the full menu of what can happen. Flip one coin and the menu is {H, T}. Flip two coins and each outcome has to say what both coins did: {HH, HT, TH, TT}. That is 4 outcomes, each with probability 14.

A tree diagram builds the list so nothing goes missing. The first coin branches into H and T; each of those branches into H and T again; the four paths from start to finish are the four outcomes. For a coin and a die, 2 branches each split into 6, giving 12 outcomes. A table works too: rows for one step, columns for the other, one cell per outcome. That is how the 36 rolls of two dice are usually shown.

Not every complete list can be used for counting. Writing the two-coin results as {two heads, one head, no heads} covers everything, but those three results are not equally likely: 'one head' happens two ways, HT and TH, so it has probability 24, not 13. Merging HT and TH is the most common slip. Keep track of which coin did what, and the outcomes become equally likely again.

Think of it like this. A sample space is the list of every possible ending in a choose-your-own-adventure book, where each path through the choices is one ending. Two paths that read alike at the end, such as HT and TH, still took different routes, so they count as separate endings.

Core idea. The sample space is every single thing that could possibly happen in one trial — listed without leaving any out.


When to Use

Build the sample space when an experiment has several steps or parts (two coins, a coin and a die, a spinner and a card), or when you are unsure what the total in a probability should be. Phrases like all possible outcomes or 'draw a tree diagram' point here. When the list would be far too long to write, such as every 5-card poker hand, count its size with the counting principle or combinations instead of listing.

Tip. Ask: Have I listed every distinct outcome that could occur, with none missing or merged?

How to Recognize It

Before you list a sample space, decide what one complete trial is and what counts as a single outcome of it.

  1. Does one trial have more than one part, such as a coin and a die, or two spins?

    If yes, each outcome is a pair, like (H, 4), and a table or tree diagram keeps the list complete. With one part, such as a single spin, the sample space is just the list of sections.

  2. Does your list include the outcomes where the event does not happen?

    It should, since the sample space is every outcome. The outcomes you want, such as the even numbers on a die, form an event, a smaller set inside the sample space.

  3. Would the list run to thousands of outcomes, like every possible 4-digit code?

    If yes, do not write it out; find its size with the counting principle, 10×10×10×10=10,000 codes. If it is short, listing every outcome is the safest way to find a probability.

  4. Are all the outcomes on your list equally likely?

    If yes, a probability is the number of favorable outcomes over the size of the list. If not, as with a spinner whose red section is half the circle, give each outcome its own probability instead of counting.

Sample Space compared with Event, Probability, and Counting principle

Sample space, event, probability and the counting principle all work from the same list of outcomes. Ask whether you need the whole list, the part of it you care about, a chance found by comparing the two, or only how long the list is.

Sample Space

Meaning
Use this when you must inventory every possible outcome before computing a probability, especially in multi-step experiments.
Key test
Have I listed every distinct outcome that could occur, with none missing or merged?
Formula
∑all outcomesP(outcome)=1
Example
List the sample space for flipping a fair coin twice.

Event

Meaning
A subset of the sample space — the outcomes you care about, not all of them.
Key test
Use when you have the menu and now select the favorable outcomes.
Formula
E⊆S
Example
'Rolling even' = {2,4,6} within S={1..6}

Probability

Meaning
A number from 0 to 1 measuring likelihood, computed once S is known.
Key test
Use after listing the sample space, to measure how likely an event is.
Formula
∣E∣∣S∣
Example
P(even)=36

Counting principle

Meaning
Computes how many outcomes are in S without listing them all.
Key test
Use when S is too large to list and you only need its size.
Formula
m×n
Example
6×6=36 outcomes for two dice

Formula & Notation

∑all outcomesP(outcome)=1
S={ω1,ω2,…,ωn} where ∑i=1nP(ωi)=1 and P(ωi)≥0 for all i

How to read it: S or Ω denotes the sample space; ∣S∣ is the number of outcomes

Worked Examples

Example 1 — Two-coin sample space

Easy

List the sample space for flipping a fair coin twice.
Show the steps and the answer
  1. Branch on the first flip: H or T.

    Each flip is a separate step, so the tree starts with the first coin's 2 results.

  2. Branch each result on the second flip: H leads to HH and HT; T leads to TH and TT.

    Either result of the first flip can be followed by either result of the second.

  3. Read off the 4 paths: S={HH,HT,TH,TT}.

    HT (heads first) and TH (tails first) are different paths, so both stay in the list.

  4. Check the size: 2×2=4, and 4×14=1.

    The count matches the product of the choices, and the equal probabilities add to 1, so nothing is missing or doubled.

Answer: S={HH,HT,TH,TT}, ∣S∣=4

Takeaway: Build the list one step at a time with a tree; order matters, so HT and TH are separate outcomes.

Example 2 — Asked for likelihood, not the list

Standard

Someone asks 'what is the chance of at least one head in two flips?'
Show the steps and the answer
  1. Start from the full sample space {HH,HT,TH,TT}.

    This question asks for a probability, so the list is only the first step.

  2. Mark the outcomes with at least one head: HH, HT, TH.

    'At least one' includes the case of two heads.

  3. Divide: 34.

    3 favorable outcomes out of 4 equally likely ones.

  4. Check with the opposite event: only TT has no heads, so 1−14=34.

    Counting the one outcome you do not want is often faster than counting those you do.

Answer: 34

Takeaway: The sample space is the inventory; a probability is the fraction of that inventory where the event happens.

Example 3 — Find the mistake: merged outcomes

Application

A family has 3 children, and each child is equally likely to be a boy (B) or a girl (G). Sam writes: "The sample space is {BBB, BBG, BGG, GGG}, so P(exactly 2 girls)=14." Find the mistake and correct it.
Show the steps and the answer
  1. Check the count: 3 children with 2 possibilities each give 2×2×2=8 outcomes, but Sam lists 4.

    A list shorter than the product of the choices means outcomes were merged or forgotten.

  2. List by birth order: BBB, BBG, BGB, BGG, GBB, GBG, GGB, GGG.

    Sam's single 'BGG' stands for three different families: the boy can be the oldest, middle or youngest child.

  3. Count exactly 2 girls: BGG, GBG, GGB, so 3 outcomes.

    Each of the 8 birth orders is equally likely, so counting them is fair.

  4. Divide: P=38.

    Sam's 14 treated one merged item as if it were as likely as BBB, which happens only one way.

Answer: P(exactly 2 girls)=38

Takeaway: If your list is shorter than the product of the choices, you have merged outcomes; list by order so every outcome is equally likely.

Where You'll See It

  • Guessing a 4-digit phone PIN

    A 4-digit PIN has a sample space of 10×10×10×10=10,000 codes, from 0000 to 9999. A random guess has a 110,000 chance, which is why phones lock after a handful of wrong tries instead of allowing thousands.

  • Ties in rock-paper-scissors

    Two players each pick rock, paper or scissors, so the sample space has 3×3=9 pairs. Three of them are ties (rock-rock, paper-paper, scissors-scissors), so if both choose at random a tie has probability 39=13.

Common Mistakes

  1. The slip: Merging distinct outcomes

    Instead: HT and TH are different; treating them as one shrinks the sample space.

  2. The slip: Forgetting an outcome

    Instead: every probability divides by ∣S∣, so a missing outcome corrupts the answer.

  3. The slip: Listing outcomes that are not equally likely without saying so

    Instead: the favorable-over-total shortcut assumes equal likelihood.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

  1. You spin a spinner with sections A, B and C, then flip a coin. List the sample space. How many outcomes are there?

    Hint: Pair each spinner letter with each coin side.

  2. Two fair four-sided dice (numbered 1 to 4) are rolled. How many outcomes are in the sample space, and how many give a sum of 5?

    Hint: Treat the dice as a first die and a second die, so (1,4) and (4,1) are different.

  3. A family has 3 children, each equally likely to be a boy (B) or a girl (G). List the sample space and find the probability of exactly two girls.

    Hint: Write out all orders, such as BBG and BGB, as separate outcomes.

  4. Two dice are rolled and the sum is recorded. The possible sums are 2 to 12. Are these 11 sums equally likely?

    Hint: Count how many dice pairs make a sum of 2, and how many make 7.

  5. For one roll of a die, a student writes S={2,4,6} for "roll an even number." Is that the sample space or an event?

    Hint: The sample space must include every result the die could show.

  6. For a family with two children, Ben lists three outcomes (2 boys; 1 boy and 1 girl; 2 girls) and says P(2 girls)=13. Correct him.

    Hint: Is "1 boy and 1 girl" one outcome or two?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Can the same experiment have two different correct sample spaces?

Yes. For two dice you can list the 36 ordered pairs, (1, 1) through (6, 6), or just the 11 possible sums, 2 through 12. Both lists contain every result. The difference is that the 36 pairs are equally likely and the sums are not: a sum of 7 comes from six pairs, but a sum of 2 from only one. Choose the list with equally likely outcomes when you plan to count.

What is the sample space if I keep flipping a coin until I get heads?

It never ends: H, TH, TTH, TTTH and so on, because any number of tails could come first. These outcomes are not equally likely; their probabilities are 12,14,18\frac{1}{2}, \frac{1}{4}, \frac{1}{8} and so on, each half the one before. Even with infinitely many outcomes, the probabilities still add to 1, because each new term fills half of the gap that is left.

What is the sample space for how long I wait for a bus?

If a bus comes every 10 minutes and you arrive at a random time, your wait can be any amount from 0 to 10 minutes, including 3.5 or 7.25 minutes. That sample space is a whole interval of numbers, too many to list or count. Probabilities then come from lengths instead of counts: waiting less than 2 minutes has probability 210=0.2\frac{2}{10} = 0.2, because 2 minutes is a fifth of the interval.

Learning Path

← Before

Probability
Sample Space

You are here

Next →

Nothing after this yet
You need Probability, the favorable-over-total idea, because the sample space supplies the total. This concept adds the habit of listing every outcome with trees or tables so that total is right. With it you can handle two-step probability problems, check answers by making the probabilities sum to 1, and move on to independent events, conditional probability and counting methods for spaces too large to list.

See Also