Birthday paradox: what are the odds of a shared birthday?

Compare shared-birthday odds for any group size with a birthday paradox calculator. See how the classic model compares with historical U.S. birth records.

Reviewed

Birthday paradox calculator

Choose a group size to find the chance that any two people share a month and day.

Whole numbers from 2 to 1,000.

Try:

For 23 people

At least one shared birthday
Classic calendar 50.73%
Historical U.S. births 50.78%

For 23 people: classic 50.73%; historical U.S. births 50.78%.

What the two estimates mean. Classic assumes 365 equally likely dates and excludes February 29. Historical uses 85,712,738 U.S. births from 1994 to 2014 across 366 dates, including leap day. Both use independent modeled draws. The group includes everyone, and birth year does not matter. Percentages are rounded estimates, not guarantees.

Why do 23 people make a shared birthday likely?

In the classic model, 23 people have a 50.73% chance that at least two share a birthday. A match means the same month and day, regardless of birth year. This calculation treats birthdays as independent and gives each of 365 dates the same chance; February 29 is left out.

A room of 23 people has 253 possible pairs: 23 × 22 ÷ 2. Any one of those pairs can share a date. The pair does not have to include you.

The pairs overlap because each person appears in many of them. Multiplying 253 separate no-match chances would therefore give the wrong result. Instead, calculate the chance that all 23 birthdays are different, then subtract it from 1.

How the birthday paradox calculation works

The first person can have any birthday. For everyone to have different dates, the second has 364 possible dates out of 365. The third has 363 because two dates are already taken. The available choices shrink with each person.

For 23 people:

P(no shared birthday) = (365/365) × (364/365) × (363/365) × … × (343/365)

P(at least one shared birthday) = 1 − P(no shared birthday)

The Harvard birthday-problem solution works through this calculation and the 23-person threshold. You can repeat it for any group size. With 366 people and only 365 possible dates, at least two must match.

Does using real birth records change the answer?

The historical U.S. distribution gives a 50.78% match chance for 23 people. The classic model gives 50.73%. They differ by about 0.05 percentage points, and both first pass 50% at 23 people.

Modeled chance that at least two people share a birthday. Classic: 365 equally likely dates. Historical: 366 dates weighted by U.S. births from 1994 through 2014. Both assume independent birthdays.
People in groupClassic modelHistorical U.S. model
1011.69%11.71%
2350.73%50.78%
3070.63%70.68%
5097.04%97.05%
100>99.99%>99.99%

For the historical model, we use each date's share of 85,712,738 recorded U.S. births from 1994 through 2014. Dates such as September 9 get their observed weight. February 29 is included at its much smaller observed share.

The comparison changes two things at once: the date weights and whether February 29 is possible. It cannot tell us how much of the difference comes from either change. In both versions, 23 remains the first group size above even odds.

These probabilities assume independent draws from each model's birthday distribution. They are calculations, not observations of actual rooms. A family or a group of people born in the same period could have different odds.

What if I want someone to share my birthday?

If you are one of the 23 people, only the other 22 can match your birthday. A match between two other people answers a different question.

In the classic model, at least one of those 22 people matches your date with probability 5.86%. A match anywhere among the 23 has probability 50.73%.

P(someone matches your birthday) = 1 − (364/365)^22

For a date with share p, the formula becomes 1 − (1 − p)^22. September 9's historical share gives 6.45%. This is the chance under the historical model, rather than a count of living people who share that birthday.

Look up your birthday's share or see why September 9 leads the ranking. For February 29, only the historical formula applies: the classic model has no leap-day category. The leap-day guide explains its small observed share.

Sources, assumptions, and downloadable results

The classic calculation follows the Harvard birthday-problem derivation. Historical date weights come from FiveThirtyEight's pinned birth files: CDC/NCHS for 1994 through 1999, then SSA for 2000 through 2014. We exclude the overlapping CDC years.

The historical calculation adds up the ways everyone could have different dates, then subtracts that probability from 1. It draws each birthday independently from the same 366-date distribution. Each weight comes from a date's share of all recorded births, not its births per calendar occurrence.

CDC/NCHS and SSA have different administrative coverage, so these historical weights do not describe everyone alive today or birthdays worldwide. Displayed results are rounded. Even 99.99% is short of certainty; a match becomes guaranteed at 366 people in the 365-date model or 367 in the 366-date model.

Download the calculation results, or read the methodology for source coverage and the birth-share definition.