Frequently Asked Questions
Why is the answer called a paradox when the maths is straightforward?
It is not a logical contradiction, only a result that clashes with intuition. Most people think about their own birthday being matched, which takes a large group. The tool measures any match among all pairs, and 23 people already make 253 pairs. Once you think in pairs, the 50.73% stops looking strange.
How many people do I need for a 90% or 99% chance of a match?
Running the tool shows 41 people gives 90.32% and 57 people gives 99.01%, both with 365 days. Below those, 40 and 56 fall just short. These are good numbers for a classroom demonstration: a typical class of 30 has about a 70% chance, and a lecture of 60 is almost certain. The tool shows 89.12% for 40 people and 98.83% for 56.
Does the calculator count three people on the same day as a match?
Yes. The headline is the chance that at least two people share a birthday, so triples, quadruples and multiple separate pairs all count. It does not tell you the chance of exactly one pair, or of three people sharing. Those need different formulas and come out much smaller for a group of 23. For most purposes, including party bets, the at-least-two figure is the one people mean.
Why does the probability of no match drop so fast?
Each new person multiplies the no-match chance by a factor a little below 1, and each factor is smaller than the last. The early factors barely matter, but by the 20th person each one removes about 5% of what is left. Combined, those shrinking factors push the product under one half at 23 people. At 22 people the product is still 52.4%, which is why 22 falls just short.
How can I demonstrate this in a classroom without any risk of failure?
You cannot remove the risk entirely, but a larger group helps. With 30 students the tool gives 70.63%, so roughly three classes in ten will show no match. With 40 it is about 89%. Collecting birthdays from two classes together, or including teachers and staff, makes a match very likely. Asking people to call out birthdays in calendar order makes a match easy to spot quickly.
Is 23 the answer even in a leap year?
Yes. Adding the leap day to the days field drops the chance for 23 people from 50.73% to 50.63%, still above half, and 22 people remain below half either way. Because 29 February is rarer than other days in real data, the effect on real groups is even smaller than the tool suggests.
What does the pairs number add if I only care about the probability?
It explains the probability. Each pair is one chance of a match at about 1 in 365, so 253 pairs means roughly 253 chances. The quick estimate one minus e to the minus pairs over days gives close to the exact answer, and the pairs count makes the fast climb of the curve easy to see.
Can I use this for lottery numbers or random passwords?
For collisions among random values, yes, as long as every value is equally likely. Set days to the number of possible values, up to a million, and group size to the number of draws. Beyond a million values, use the pairs estimate, one minus e to the minus pairs over days. Real lottery draws also remove numbers without replacement within a single ticket, which this model does not describe.
Why does the chance for 14 people come out at 22.3%?
Fourteen people make 91 pairs. Multiplying the 14 no-match factors from 1 down to 1 minus 13/365 gives 0.7769, so the chance of at least one match is 22.31%. The pairs estimate, one minus e to the minus 91/365, gives 22.1%, very close. Below about 20 people the estimate and the exact answer agree to within a few tenths of a point.
Is the result exact or a simulation?
It is exact for the model, not a simulation. The engine multiplies the actual factors for every person, so there is no random error and the same inputs always give the same answer. The 50% threshold line is exact as well: it is the first group size whose product drops below one half, which is 23 for 365 days and 13 for 100.
Twenty-three people and a 50.7% chance
The calculator opens on the classic case: 23 people and 365 equally likely birthdays. It reports a 50.7% chance that at least two of them share a birthday, a 49.3% chance that all 23 birthdays are different, 253 unique pairs of people, and a 50% threshold group size of 23.
Most people guess far lower. The intuitive picture is one person looking for a match with their own birthday, and that is a much rarer event. What the tool counts is any match between anyone, and 23 people make a lot of pairs. The sentence under the result gives the probability to two places: 50.73%.
The other scenario rows show how quickly the chance moves. With 14 people it is 22.3%, with 91 pairs. With 35 people it reaches 81.4%, with 595 pairs. Adding twelve people to the default pushes the chance up by about thirty points.
The group size field is the only input most people need to touch. The days field exists for variations on the problem, covered further down. Both fields take whole numbers only: a group of 23.6 people, or a group of 1, gives an error asking for a whole group of 2 or more.
Working the 50.73% by hand
The trick is to compute the chance that nobody matches, then subtract it from 1. Line people up one at a time. The first person can have any birthday, so their factor is 1.
The second person must avoid one taken day, so their chance of a fresh birthday is 1 minus 1/365, about 0.99726. The third must avoid two taken days, giving 1 minus 2/365, and the fourth must avoid three, giving 1 minus 3/365; after four people the running product is 0.98364, so there is already a 1.6% chance of a match.
Keep going to the 23rd person, whose factor is 1 minus 22/365, and multiply all 23 factors together. The product is 0.4927, which is the 49.3% no-match line. One minus that is 0.5073, the 50.73% headline. This is exactly the loop the engine runs, so the hand result and the screen agree.
A spreadsheet makes this easy to check. Put 0 to 22 in one column, compute 1 minus each value over 365 in the next, and multiply down the column. Changing the last row number gives you any other group size. If the spreadsheet and the tool disagree, check that the first row starts at 0, not 1; starting at 1 skips the free first person and gives the answer for a group one larger.
Why 253 pairs is the number to watch
The pairs line uses n times (n minus 1) over 2. With 23 people that is 23 times 22 over 2, or 253 pairs. Every one of those pairs is a separate chance of a match.
Each pair shares a birthday with probability 1/365, so if the pairs were independent, the chance of no match would be roughly 1 minus 1/365 raised to the power 253, and that works out close to e to the power minus 253/365, which is almost exactly 0.5000. So the quick estimate gives a 50.0% match chance for 23 people, against the exact 50.73%.
The estimate stays useful for larger groups too. For 35 people it gives about 80.4% against the exact 81.44%, and for 14 people 22.1% against 22.31%. It runs slightly low because the pairs are not truly independent.
The pairs count also explains the speed of the curve. Pairs grow with the square of the group size, so doubling the group roughly quadruples the pairs. That is why 14 people give 91 pairs but 35 people give 595, more than six times as many.
Sharing your own birthday is a different question
A common mix-up is to read the 50.73% as "someone in a room of 23 has my birthday". That is a different event, and much less likely.
For you to be matched, each of the other 22 people must land on your one day. The chance none of them does is 1 minus 1/365, raised to the 22nd power. The chance at least one does is about 5.9%.
To get that up to even odds you would need about 253 other people in the room. That number is not a coincidence with the pairs count above: in both cases roughly 253 independent chances at a 1/365 event add up to about a 50% chance of at least one hit.
The tool only answers the any-pair question. If you want the my-birthday version, compute 1 minus (1 minus 1/365) to the power of the number of other people. It is a simple single power, not a product of changing factors.
Group sizes from 10 to 70
Running a few more sizes gives the familiar shape. With 10 people the chance is 11.69%. With 22 it is 47.57%, just short of even. With 30 it is 70.63% and with 41 it passes 90% at 90.32%.
By 50 people the chance is 97.04%, and at 57 it reaches 99.01%. At 70 the tool shows 99.92%, and the no-match line reads 0.1%. Any classroom or office team of 60 or more is very likely to contain a shared birthday.
Certainty only arrives when the group is larger than the number of possible days. Once there are more people than days, two of them must share by the pigeonhole principle, and the tool shows 100%. Below that, the chance is never quite 100%, though the display rounds it there long before.
The small end is as surprising as the large end. Two people have a 0.27% chance of matching and five people have 2.71%. The probability starts slowly, then climbs steeply in the 15 to 40 range, then flattens out near the top.
Changing the days field for leap years, months and hashes
The days field sets how many equally likely outcomes there are. Adding the leap day to the default and keeping 23 people lowers the chance only a little, to 50.63%. Leap days have so little effect that the classic answer of 23 holds either way.
With 12 outcomes the problem becomes "do two people share a birth month?". Five people give 61.81%, and four give 42.71%. The threshold line reads 5 people, which matches those two results.
The same mathematics applies to random IDs or hash values. With d equally likely values, collisions become likely once the number of items is around the square root of d, which is far smaller than d itself. That is the reason short checksums collide much sooner than people expect, and why the attack on hash functions based on this idea is called a birthday attack.
The days field accepts any whole number from 2 up to a million, so short cycles work too. Entering 7 asks about days of the week, and four people already give a match chance of 65.01%, since the no-match product is 1 times 6/7 times 5/7 times 4/7. The threshold line for a week reads 4 people.
How the exact 50% threshold line is found
The threshold line, labelled Exact, is the smallest group whose match chance reaches 50% for the days you entered. It comes from the same product as the headline, not from a shortcut formula, so you can trust it for any day count.
A well-known shortcut is the square root of (2 times days times the natural log of 2), rounded up. For 365 days that is roughly 22.5, which rounds up to 23 and agrees with the exact line. For other day counts the shortcut can be one person short. With 100 outcomes it suggests 12, but running the tool with 12 people and 100 days gives 49.68%, still under half, and the exact threshold line reads 13.
For a month-of-birth problem with 12 outcomes the line reads 5, and for a week it reads 4. Those small cases are where the shortcut is least reliable, so the exact line is worth having.
The threshold line ignores the group size you entered. It describes the days setting alone, which is why it stays at 23 in every 365-day scenario on this page.
Real birthdays are not perfectly uniform
The formula assumes every day is equally likely and every person's birthday is independent of everyone else's. Real birth data has seasonal peaks and dips, fewer births on some public holidays, and in many countries fewer births on weekends because of scheduled deliveries.
Any unevenness makes shared birthdays more likely, not less. When some days are more popular, people crowd onto them. So the tool's 50.73% for 23 people is slightly below the true figure for a real group, though the difference is small.
Independence fails in obvious cases. A group with twins or triplets has a guaranteed match, and a team selected by age bracket might cluster in certain months. Take those into account before trusting the number. A family gathering, where siblings and cousins are often born in similar seasons, is another case where the simple model may understate the chance.
The fields have sensible limits rather than hidden ones. Group size must be a whole number of 2 or more, and days a whole number from 2 up to a million. Within those limits the tool computes the exact product, so it handles large hash-style problems too: with a million possible values and a thousand items, it reports a 39.33% collision chance.