Vera Logo
Math

Just 23 people make a shared birthday more likely than not

Put 23 random people in a room, and there's a better-than-even chance two of them share a birthday — same month, same day. Not the year, just the date. That's barely half a classroom, or one baseball team's roster, and most people's gut instinct says the number should be in the hundreds.

The mistake is thinking about your birthday matching someone else's. With 23 people, the odds that any particular pair matches really are low, about 1 in 365. But the question isn't about one pair — it's about all of the pairs.

With 23 people, every person can be paired with every other person, which works out to 253 different pairs (23 × 22 ÷ 2). Each of those 253 pairs gets its own small shot at a match. Enough small shots, added up, make something likely.

The actual calculation flips the question around. Instead of calculating the chance of a match directly, mathematicians calculate the chance of no match at all, which is easier: the second person just needs to avoid the first person's birthday (364 out of 365 days are safe), the third needs to avoid two taken days (363 out of 365), and so on, shrinking with each new person. Multiply all those shrinking odds together for 23 people, and the chance of a totally clash-free room drops to about 49.3%. Flip that, and there's a 50.7% chance at least two people share a birthday.

Keep adding people and the odds climb fast: 50 people pushes it to 97%, and by 70 people it's a virtual certainty at 99.9%. With 366 people, it's guaranteed, since there are only 365 (or 366, in a leap year) possible dates to go around.

This isn't just a party trick. The same logic — how quickly matches appear once you're comparing every pair, not just one — shows up in cryptography, where it's used to estimate how easily two different pieces of data can accidentally produce the same digital fingerprint, a risk engineers call a "collision." The birthday problem is the reason those fingerprints have to be so long.

Next time you're in a group of 20-plus people, ask around. You're more likely than not to find a match — and now you know exactly why.

Sources

#math#probability#birthday paradox#statistics

Comments

No comments yet. Start the conversation.