A classroom surprise
Story: You walk into a classroom and wonder, “Could two kids here have the same birthday?”
You walk into a classroom with 23 students. What is the chance that two people in the room share the same birthday?
Many people guess a tiny number like 5% or 10%. But the real answer is 50.7%, which is already more than half.
With 30 students, the chance grows to 70.6%.
Try building the class
Add one person at a time and watch the probability climb. Notice how it crosses 50% when you hit 23 people.
Big idea: there are lots of possible pairs
The trick is this:
It does not have to be your birthday. It can be any pair of people.
That gives the room lots of chances to make a match.
Only checking your birthday: not many chances.
Checking every pair in the room: many, many chances.
A gentle way to think about the math
Instead of asking “What is the chance of a match?”, ask:
“What is the chance that nobody matches at all?”
With 2 people in a room:
- Person 1 has some birthday.
- Person 2 must avoid Person 1’s birthday: 364 out of 365 choices are safe.
- Chance of no match: 364/365 ≈ 99.7%
With 3 people:
- Person 3 must avoid both previous birthdays: 363/365 safe options.
- Chance of no match with 3 people: (365/365) × (364/365) × (363/365)
As more people enter, the “no match” chance keeps shrinking. By the time you reach 23 people, it has dropped below 50%.
Probability of at least one match = 1 − (probability of no match at all)
Surprising milestones
| People in room | Chance of a shared birthday |
|---|---|
| 22 | 47.6% — just under 50% |
| 23 | 50.7% — just over 50% |
| 30 | 70.6% |
| 50 | 97.0% |
| 70 | 99.9% |
Quiz time
How many people do you need in a room before there is a better-than-50% chance that two share a birthday?
Just 23 people! The chance crosses 50% much earlier than most people expect because there are many different pairs of people — not just comparing to one specific birthday.
In a class of 30 students, what is the probability that at least two students share a birthday?
In a class of 30 students, the probability is 70.6%. It's not 100% (there are 365 birthdays, so 30 people can still all have different ones), but it's very likely!
Why does the birthday problem surprise people so much?
People often imagine only one comparison. But a whole class creates lots of pair comparisons.
What is the minimum number of people in a room needed for the chance of a shared birthday to first exceed 50%?
The answer is 23. At 22 people the probability is 47.6% (under 50%), and at 23 it hits 50.7% (over 50%).