Why 23 People Are Enough for a Shared Birthday
A room of 23 people contains 253 possible pairs. See why that makes a shared birthday surprisingly likely, and try the calculation yourself.
The question is not about your birthday
Imagine a party with 23 guests. Without counting the host separately, what is the chance that two guests have the same birthday? More than half: approximately 50.7%, if we assume birthdays are independent, equally distributed across 365 dates, and ignore February 29.
That sounds strange because most of us instinctively pick one person as a reference. If you are at that party, the chance that at least one of the other 22 guests shares your birthday is only around 5.9%. But the original question doesn't care whose birthdays match. Two strangers at the far end of the table count just as much as a match involving you. That subtle change creates a surprisingly different mathematical problem.
Count the connections, not just the people
Draw 23 dots on a sheet of paper. Give each dot a number, then draw a line between every possible pair. The first dot connects to 22 others; the second contributes 21 new lines, and so on down to one. The total is 23 × 22 ÷ 2 = 253 pairs.
That is where our intuition breaks. The number of guests grows one at a time, while the number of available pairs grows much faster. Adding one guest to a room of 22 introduces 22 new possible matches. Adding another introduces 23. Neither person changes the number of days in a year.
There is a trap here, though: the 253 match events are not jointly independent. Under the uniform model, a match between A and B is independent of a match between A and C when considered as just two events. But if A matches B and B matches C, A must also match C. Treating the entire collection as independent would give the wrong answer. We need a different method.
The easier calculation runs backward
Instead of calculating a match directly, ask for the chance that every birthday is different. Person one can have any date, with probability 1. Person two has 364 acceptable dates out of 365. If those two birthdays differ, person three has 363 acceptable dates. Each additional guest faces one fewer available date under the same assumptions.
Multiply those fractions until the 23rd guest, who must avoid 22 occupied dates: 1 × (364/365) × (363/365) × … × (343/365). The result is about 0.4927, or 49.27%. This is the probability of no shared birthday. The opposite event, at least one match, therefore has probability 1 − 0.4927 = 0.5073.
This complement method works because the room has either at least one matching pair or no matching pairs at all. There is no third possibility. Notice that we never had to enumerate all possible birthday arrangements containing a collision.
A quick reference for different room sizes
Using the same model, a room with 10 people has 45 pairs and roughly an 11.7% chance of at least one match. A room with 23 contains 253 pairs and reaches 50.7%. With 30 people there are 435 pairs and the chance is about 70.6%. At 50 people, the 1,225 pairs produce a probability of approximately 97.0%.
These probabilities are not a promise about a particular classroom or office. Actual birth dates are unevenly distributed, and related people or other selection effects can violate the independence assumption. Calendar days, not birth years, are what the model compares.
Try a small experiment
Write the numbers 1–365 on slips, use a random number generator, or ask 23 volunteers for their month and day without collecting names. Each round, record whether any number is repeated. If you draw slips, put the slip back and remix before each draw; if you use a generator, allow repeat numbers. Both methods sample with replacement. Without it, a match is impossible by construction. One trial could go either way, even though the model says a match is slightly more likely.
The bigger lesson is that counting opportunities changes our sense of what's surprising. If you're curious about other patterns that emerge even when individual events are unpredictable, continue exploring with Chance Has Patterns. The book offers a broader way into the ideas behind overlooked coincidences and everyday probability.