The birthday paradox: why 23 people is enough

Put 23 people in a room and it is more likely than not that two of them share a birthday: 50.7%. With 30 it is 70.6%, and with 70 it is 99.91%. It is easy to confuse with a different question — whether someone shares your birthday — which has a much smaller answer.

People in the room
30

Chance at least two of 30 share a birthday

70.6%

30 people make 435 different pairs, and every pair is a chance of a match. That count grows far faster than the group does, which is the whole trick.

246811141720232629323538414447505356596265687174778083868992951000%25%50%75%100%

Chance of a shared birthday by group size, 2 to 100 people. It passes one half at 23.

How it works, one person at a time

It is easier to work out the chance that nobody shares a birthday, then subtract that from one. Let people walk in one at a time. The first can have any birthday. The second must avoid the first’s: 364 of 365 days will do. The third must avoid two taken days, so 363 of 365, and so on. Every one of them has to dodge, so the chances multiply.

PersonMust avoidChance they doNobody matches yet
1nothing365/365100%
21 taken364/36599.7%
32 taken363/36599.2%
43 taken362/36598.4%
… and so on, one person at a time …
2928 taken337/36531.9%
3029 taken336/36529.4%
Show all 30 rows
PersonMust avoidChance they doNobody matches yet
1nothing365/365100%
21 taken364/36599.7%
32 taken363/36599.2%
43 taken362/36598.4%
54 taken361/36597.3%
65 taken360/36596.0%
76 taken359/36594.4%
87 taken358/36592.6%
98 taken357/36590.5%
109 taken356/36588.3%
1110 taken355/36585.9%
1211 taken354/36583.3%
1312 taken353/36580.6%
1413 taken352/36577.7%
1514 taken351/36574.7%
1615 taken350/36571.6%
1716 taken349/36568.5%
1817 taken348/36565.3%
1918 taken347/36562.1%
2019 taken346/36558.9%
2120 taken345/36555.6%
2221 taken344/36552.4%
2322 taken343/36549.3%
2423 taken342/36546.2%
2524 taken341/36543.1%
2625 taken340/36540.2%
2726 taken339/36537.3%
2827 taken338/36534.6%
2928 taken337/36531.9%
3029 taken336/36529.4%

So the chance nobody matches is 29.4%, and the chance someone does is one minus that: 70.6%. To check it on any calculator, type:

1 − (365 × 364 × … × 336) ÷ 365^30

This assumes 365 equally likely birthdays and ignores 29 February. Both assumptions are tested against real births further down.

Your birthday versus anyone’s

The chance that one of the other 29 people in a room of 30 shares your birthday is only 7.6%. You are in 29 of the 435 pairs; the other 406 don’t involve you at all, and any of them can produce the match. Each of the others misses your birthday with probability 364/365, so for an even chance of a match with you, you need 253 other people.

Three people on one day

In a group of 30 the chance that three people share a birthday is 2.9%, about 1 in 35. An even chance of three takes 88 people, four takes 187 and five takes 313.

Real birthdays are not spread evenly

The textbook answer assumes every day is equally likely. It is not. These are the 62,187,024 births in the United States from 2000–2014, as counted by the Social Security Administration, by date of the year.

Shaded by rank: the fainter the square, the fewer the births. Point at or tap a day to read it.

Most common birthdays

  1. 12 September 112%
  2. 19 September 112%
  3. 20 September 110%
  4. 19 December 110%
  5. 10 September 110%

Least common birthdays

  1. 25 December 57%
  2. 1 January 68%
  3. 24 December 71%
  4. 4 July 78%
  5. 2 January 85%

Each figure is that date’s births as a share of an average day’s.

Christmas Day is the rarest birthday in the calendar, with 57% of an average day’s births. The rest of the five rarest sit on or beside Christmas, New Year and the Fourth of July, and four of the ten rarest fall between 22 and 28 November, the week Thanksgiving always lands in. At the other end, seven of the ten most common birthdays are in September. The data shows when births happen, not why, so this page does not guess. 29 February, judged on the years it exists, sees 92% of an average day’s births.

Does it change the answer? Barely, and only upwards

With real birthdays, the chance of a match in a group of 30 is 70.7% against 70.6% on paper — 0.06 percentage points higher. A calendar this lumpy moves the answer this little, and 23 people is still where it passes one half.

It can only move upwards, and the reason fits in a paragraph. Pick any two days, one more popular than the other. Leave every other day alone and the chance that nobody matches depends on those two days through just two quantities: their combined share, which is fixed, and their shares multiplied together. The bigger that product, the likelier it is that nobody matches — and for a fixed total the product is biggest when the two shares are equal. So evening out any two days makes a match less likely. Keep doing it and you arrive at a perfectly even calendar, where a match is as unlikely as it can be. Any real calendar must beat it.

Strictly, that compares like with like: the real 366 dates, leap day included, against 366 equally likely ones, which give 70.5% for 30 people. The real figure is above it at every group size from 2 to 100, as it has to be. And a separate count by the CDC National Center for Health Statistics, covering 1994–2003, agrees with it to within 0.003 percentage points at every one of those group sizes.

Questions people ask

How many people do you need for two to share a birthday?
23. With 23 people the chance that at least two share a birthday is 50.7%, just over half; with 22 it is 47.6%.
What are the odds two people in a room of 30 share a birthday?
70.6%, assuming 365 equally likely birthdays. Using real US birth data instead it is 70.7%.
How many people do you need for someone to share your birthday?
253 other people for a better-than-even chance. Matching one particular date is a much harder target than matching any two people, which is why the two answers are so far apart.
Does the birthday paradox work with real birthdays?
Yes, slightly better. Real birthdays are not spread evenly, and an uneven spread can only raise the chance of a match. With 23 people it is 50.8% on real US birth data against 50.7% on paper.

Check it yourself

Every figure on this page is computed from scratch, and each of these is something outside this site it was checked against or built from.

  1. Birthday Problem — Wolfram MathWorld

    Prints the chance for 23 people as an exact fraction, and the group sizes for an even chance of two, three, four and five sharing a day as 23, 88, 187 and 313. All of them are reproduced here exactly, from whole-number counts rather than rounded decimals.

  2. US births by day, 2000–2014 — Social Security Administration, via FiveThirtyEight

    The 62,187,024 births behind the calendar, the lists and the real-birthday figures.

  3. US births by day, 1994–2003 — CDC National Center for Health Statistics, via FiveThirtyEight

    A second, separate count, used to cross-check the first: the two agree to within 0.003 points at every group size.

  4. A generalization of the Birthday problem and the chromatic polynomial — Sukhada Fadnavis, 2011 (arXiv:1105.0698)

    States that an uneven spread of birthdays raises the chance of a match, citing the original proofs: D. M. Bloom (1973), A. G. Munford (1977) and M. L. Clevenson and W. Watkins (1991). The argument above is the short version.

  5. This page’s dataset — Odds The Law

    Every figure on this page, as a downloadable file.

Try next

How the site works out its numbers is on the methodology page.

Odds The Law uses cookies for analytics and to show ads. Decline and neither will load. See our Privacy Policy for details.