Birthday Paradox Calculator
- Work with the opposite event: the second person avoids the first's birthday with probability 364/365, the third avoids both with 363/365, and so on.
- Multiplying those 22 factors for 23 people gives a no-match probability of 49.27%.
- So the chance of at least one match is 100% − 49.27% = 50.73%.
- The engine of the paradox is the pair count: 23 people make 253 pairs, each an independent-ish chance to collide.
Our birthday paradox calculator tells you the exact probability that at least two people in a group of n share a birthday. The probability that at least two people in a group of n share a birthday is 1 − (365/365 × 364/365 × ... × (365−n+1)/365), assuming birthdays are equally likely on all 365 days. The famous result is that a match becomes more likely than not at just 23 people: with 23 people the chance of a shared birthday is 50.73% (and 49.27% that all birthdays differ). The probability climbs fast from there. With 50 people the chance is 97.04%, while with 10 people it is only 11.69%. A 99% chance is reached at 57 people, and with 70 people the chance is about 99.9% — long before the 366 people who would force a match by the pigeonhole principle.
The engine of the paradox is the pair count: 23 people form 253 pairs and 50 people form 1,225 pairs, and every pair is a fresh chance to collide. The classic calculation ignores leap days and assumes a uniform spread; real birthdays cluster slightly by season, which makes matches marginally more likely, not less. This is the accepted standard method for birthday probability because it captures the combinatorial growth in possible pairings that drives the result. This page shows the formula, step-by-step workings, worked examples and sources.
Worked examples
The famous twenty-three
Primary result: 50.73% — 253 pairs are enough to make a shared birthday more likely than not. (23)
| Chance of a shared birthday | 50.73% |
| Chance of no shared birthday | 49.27% |
| Pairs of people | 253 |
| People needed for a 99% chance | 57 |
A classroom of fifty
Primary result: 97.04% — with 1,225 pairs a match is close to certain. (50)
| Chance of a shared birthday | 97.04% |
| Chance of no shared birthday | 2.96% |
| Pairs of people | 1,225 |
| People needed for a 99% chance | 57 |
A small dinner party
Primary result: 11.69% — only 45 pairs, so a match is a genuine surprise. (10)
| Chance of a shared birthday | 11.69% |
| Chance of no shared birthday | 88.31% |
| Pairs of people | 45 |
| People needed for a 99% chance | 57 |
The paradox in one number
With just 23 people in a room, the probability that at least two of them share a birthday is 50.73%. That is the famous result: a match becomes more likely than not at only 23 people, a number far smaller than most people guess. A birthday paradox calculator makes this easy to verify, but the reason it shocks so many of us comes down to how we count.
The formula behind the result is 1 − (365/365 × 364/365 × ... × (365−n+1)/365), assuming birthdays are equally likely on all 365 days. The probability that all birthdays differ is 49.27% for 23 people, so the probability of at least one shared birthday is the complement, 50.73%. The chance climbs quickly from there: with 10 people it is only 11.69%, but with 50 people it reaches 97.04%. A 99% chance is reached at 57 people, and with 70 people the chance is about 99.9%.
The engine of the paradox is the pair count. Intuition tends to count comparisons with oneself: you compare your birthday to each of the other 22 people and think the odds of a match are low. But the real question is whether any two people in the group collide, not just whether someone matches you. Those 23 people form 253 pairs, and 50 people form 1,225 pairs. Every pair is a fresh chance to collide, so the number of comparisons grows far faster than the number of people.
All of this happens long before the 366 people who would force a match by the pigeonhole principle. The classic calculation ignores leap days and assumes a uniform spread across the calendar. Real birthdays cluster slightly by season, which makes matches marginally more likely, not less, so the 50.73% figure is, if anything, a conservative estimate.
How the probability is calculated
The birthday paradox calculator relies on a straightforward formula. Assuming birthdays are equally likely on all 365 days, the probability that at least two people in a group of n share a birthday is 1 − (365/365 × 364/365 × ... × (365−n+1)/365). The logic works by first calculating the opposite outcome — the chance that every person has a unique birthday — and subtracting that result from 1. The first person can have any birthday (365/365), the second must differ from the first (364/365), the third must differ from both prior (363/365), and so on down the line.
Walk through the famous 23-person case to see the math in action. Multiply the fractions from 365/365 down to 343/365 and you get approximately 0.4927, meaning there is a 49.27% chance that all 23 birthdays differ. Subtract that from 1 and the probability of at least one shared birthday becomes 50.73% — the result that surprises most people, because a match becomes more likely than not at just 23 people. A birthday paradox calculator performs this exact chain of multiplication and subtraction behind the scenes.
The engine of the paradox is the pair count. Twenty-three people form 253 pairs, and 50 people form 1,225 pairs, and every pair is a fresh chance to collide. Because the number of potential pairings grows much faster than the number of people, the probability climbs sharply. With 10 people it is only 11.69%, but with 50 people the chance reaches 97.04%. A 99% chance is reached at 57 people, and with 70 people the chance is about 99.9% — long before the 366 people who would force a match by the pigeonhole principle.
The classic calculation ignores leap days and assumes a uniform spread; real birthdays cluster slightly by season, which makes matches marginally more likely, not less. So the standard formula slightly understates the true probability.
Worked examples
The birthday paradox calculator above lets you test any group size, but a few verified examples show why the result surprises people. The probability that at least two people in a group of n share a birthday is 1 − (365/365 × 364/365 × ... × (365−n+1)/365), assuming birthdays are equally likely on all 365 days. Plug in different values of n and the probability climbs far faster than most people guess.
The engine of the paradox is the pair count. With 10 people the chance of a shared birthday is only 11.69%, which feels low and matches intuition. But 10 people form just 45 pairs, so there are only 45 fresh chances to collide. Jump to 23 people and the pair count leaps to 253 — each one a fresh chance for two birthdays to line up. That is why a match becomes more likely than not at just 23 people, with a verified probability of 50.73% and a 49.27% chance that all birthdays differ. This is the famous tipping point that gives the paradox its name.
At 50 people the chance reaches 97.04%, and the pair count swells to 1,225. Every additional person adds a large batch of new pairs, which is why the curve bends upward so sharply. A 99% chance is reached at 57 people, and with 70 people the chance is about 99.9% — long before the 366 people who would force a match by the pigeonhole principle.
The classic calculation ignores leap days and assumes a uniform spread across all 365 days. Real birthdays cluster slightly by season, which makes matches marginally more likely, not less. The verified figures in the table below all rely on the standard 365-day model.
| Group size (people) | Pair count | Probability of a shared birthday |
|---|---|---|
| 10 | 45 | 11.69% |
| 23 | 253 | 50.73% |
| 50 | 1,225 | 97.04% |
Pairs do the multiplying
The reason the birthday paradox catches people off guard is that we tend to think about the number of people in the room, not the number of potential connections between them. People add up one at a time, but pairs multiply much faster. For n people, the number of possible pairs is n(n−1)/2. That formula is the quiet engine behind every birthday paradox calculator, and it explains why a match becomes more likely than not at just 23 people.
Work through the pair count and the paradox loses its surprise. With 23 people, the group forms 253 pairs, and every pair is a fresh chance to collide. You are not waiting for one specific person to match someone else; you are running 253 separate comparisons at once. Double the room to 50 people and the pair count explodes to 1,225. The people have only a little more than doubled, but the pairs have nearly quintupled. That is quadratic growth in action, and it is why the probability of a shared birthday jumps from 50.73% at 23 people to 97.04% at 50 people.
The standard formula makes the same point from the other direction. The probability that at least two people in a group of n share a birthday is 1 − (365/365 × 364/365 × … × (365−n+1)/365), assuming birthdays are equally likely on all 365 days. Each new person who enters the room must avoid every birthday already taken, so the chance of no match shrinks a little faster each time. With 10 people, the chance of a shared birthday is only 11.69%, which feels negligible. By 23 people, the no-match probability has fallen to 49.27%, meaning a match has crossed the 50% line. From there the curve rises steeply: a 99% chance is reached at 57 people, and with 70 people the chance is about 99.9%.
All of this happens long before the 366 people who would force a match by the pigeonhole principle. The pair count is what pulls the threshold so far down. The classic calculation ignores leap days and assumes a uniform spread; real birthdays cluster slightly by season, which makes matches marginally more likely, not less. So the 253-pair figure for 23 people is, if anything, a conservative estimate of how many collisions you are actually testing for.
Milestones: 99% and certainty
Once a group grows past the 50% tipping point, the probability of a shared birthday climbs quickly. A birthday paradox calculator shows that at 57 people the chance reaches 99%, and with about 70 people it hits roughly 99.9%. These are the milestones most people care about: near-certainty, then practical certainty, both reached with surprisingly small groups.
The reason the numbers rise so fast is the pair count. With 23 people there are 253 pairs, and with 50 people there are 1,225 pairs, and every pair is a fresh chance to collide. Each additional person adds a large batch of new pairs, so the probability of at least one match accelerates. By the time you reach 57 people, the number of pairs is so large that a shared birthday becomes overwhelmingly likely, even though each individual pair only has a 1-in-365 chance of matching.
True certainty, however, requires 366 people. The pigeonhole principle guarantees that among 366 people, at least two must share a birthday, because there are only 365 possible birthdays. This is the only point where a match is forced rather than merely probable. Everything below 366 is a matter of odds, and those odds grow steeply as the group size increases.
The classic calculation assumes birthdays are equally likely on all 365 days and ignores leap days. Real birthdays cluster slightly by season, which makes matches marginally more likely, not less. So the 57-person and 70-person milestones are conservative estimates — in practice, you may hit 99% or 99.9% with slightly fewer people.
- 57 people → 99% chance of a shared birthday
- About 70 people → 99.9% chance of a shared birthday
- 366 people → 100% guarantee by the pigeonhole principle
Assumptions and real birthdays
The standard birthday paradox calculator relies on a clean mathematical premise: that birthdays are equally likely on all 365 days of the year. Under that assumption, the probability that at least two people in a group of n share a birthday is 1 − (365/365 × 364/365 × ... × (365−n+1)/365). This uniform-birthday model is what produces the famous result that, with 23 people, the chance of a shared birthday is 50.73% — and the complementary 49.27% probability that all birthdays differ. Scale up to 50 people and the chance reaches 97.04%; scale down to 10 and it drops to only 11.69%. A 99% chance is reached at 57 people, and with 70 people the chance is about 99.9% — all long before the 366 people who would force a match by the pigeonhole principle.
The engine of the paradox is the pair count. 23 people form 253 pairs and 50 people form 1,225 pairs, and every pair is a fresh chance to collide. The uniform-birthday assumption makes each of those pairs equally likely to match, which keeps the arithmetic tractable and the results intuitive. It is also why the numbers above are exact under the model rather than rough estimates.
Real birthdays, however, do not spread themselves perfectly evenly. The classic calculation ignores leap days, leaving February 29 out of the 365-day count entirely. More significantly, real birthdays cluster slightly by season — more children are born in late summer and early autumn, for example, than in the depths of winter. Twins and higher-order multiples add another wrinkle, since two or more people sharing a birth date is guaranteed for them by definition rather than a statistical coincidence. None of these real-world factors weaken the paradox; they nudge the actual probability of a match marginally higher than the model predicts, not lower.
The same combinatorial logic extends well beyond birthdays. In computer science, the birthday paradox underpins the analysis of birthday attacks in hashing, where the question becomes how many random inputs a hash function must receive before two are likely to produce the same output. The parallel is exact: each pair of inputs is a fresh chance to collide, and the number of pairs grows quadratically with the number of inputs, just as it does with people in a room. The uniform-birthday assumption maps onto the ideal of a hash function with uniformly distributed outputs, and the same pair-counting math governs both settings.
FAQs
How many people are needed for a 50% chance of a shared birthday?
Just 23 people give a 50.73% chance — more likely than not. The reason is that those 23 people form 253 pairs, and each pair is a separate opportunity for two birthdays to match. With that many pairs working together, the odds tip past 50% even though 23 seems like a small number.
Why is the answer so much smaller than people expect?
Most people compare birthdays against their own, which gives only 22 comparisons. But the group actually contains 253 pairs, each a chance to match. The math counts every possible pairing, not just comparisons to one person, which is why the probability rises far faster than intuition suggests.
What is the chance in a group of 50?
97.04%. With 1,225 pairs, a shared birthday in a group of 50 is close to certain. The large number of pairings means the probability climbs sharply as the group grows, making a match overwhelmingly likely well before the group reaches anywhere near 365 people.
What about a small group of 10?
Only 11.69%. A group of 10 has 45 pairs, which is not yet enough for the pair multiplication to bite. The probability stays low because the number of possible pairings is still small, so the chances of any two people sharing a birthday remain unlikely at this size.
How many people guarantee a shared birthday?
By the pigeonhole principle, 366 people (365 days plus one) guarantee it. However, probability alone reaches 99.9% around 70 people, making a match practically certain long before the group size hits the absolute guarantee of 366.
Does the calculation assume everyone is equally likely to be born on any day?
No. It assumes 365 equally likely birthdays and no leap day. In reality, seasonal clustering in real births nudges the true chance slightly upward, because more babies are born in certain months, making matches somewhat more likely than the idealized calculation predicts.