The birthday paradox: why 23 people give a 50 percent chance of a shared birthday
In a group of just 23 people, the probability that at least two share a birthday is a bit over 50 percent. With 70 people, it is above 99.9 percent. Most people guess far higher numbers are needed.
Why intuition fails People often think about the chance that someone shares their birthday, which is low. But the question is whether any two people share a birthday. The number of possible pairs grows quickly:
- 23 people form 253 different pairs.
- Each pair has a small chance of a match, but with that many pairs, the chances add up.
The calculation (ignoring leap years and assuming birthdays are equally likely) It is easiest to compute the probability that nobody shares:
- Person 1 can have any birthday: 365/365.
- Person 2 must differ: 364/365.
- Person 3: 363/365.
- And so on.
Multiply these together for 23 people and you get roughly 0.493. So the chance of at least one match is about 1 minus 0.493, roughly 0.507.
Real-world notes Real birthdays are not perfectly uniform (some dates are more common), which makes matches slightly more likely, not less.
Why it matters beyond parties
- Cryptography: "birthday attacks" exploit this to find collisions in hash functions, which is why hash outputs need to be long enough.
- Data and coincidences: surprising coincidences are often much more likely than they feel, because there are so many possible pairings.
Have you tested this in a classroom or office? And what other coincidence seems spooky but is actually likely?
Comments · 3
The key is that you compare pairs, not just one person against 22 others. The number of pairs grows quickly, which is why the chance climbs.
Does it change much if birthdays aren't uniformly distributed across the year? I assume the real-world chance is a bit higher, but how much?
It's a handy reminder for systems with IDs or hashing: collisions show up sooner than your intuition says.