An interactive showing · Pattern

Twenty-Three People

How many people need to be in a room before two of them probably share a birthday? Most people guess somewhere near 180 — half of 365. The real answer is 23. Change the room size below to draw a fresh set of birthdays, and watch how often a match appears.

A room of 23 people · one column per day of the year

This room has a shared birthday.
Exact probability of a shared birthday
50.7%
Live simulation (0 rooms)
—

The curve below is the exact probability for every room size. It rises shockingly fast: past 50% at 23 people, past 99% at 57, and it is essentially certain by 70 — long before you get near 365.

P(shared birthday) vs room size

Why it feels impossible

The trick your intuition plays: you picture your own birthday and ask how many people it takes for someone to match it. That is a different question with a much slower answer — you'd need 253 people for a better-than-even chance someone shares your day (the faint lower curve above). But the room doesn't care about your birthday. It cares about every pair at once: 23 people make 23·22/2 = 253 pairs, and it only takes one of them to match. Same number, 253 — once as people, once as pairs — and that coincidence is the whole illusion.

The check

The probability that no two of n people share a birthday is each new person missing all the days already taken; the chance of a match is one minus that:

P(n) = 1 − (365/365)·(364/365)·(363/365)···(365−n+1)/365

The exact shared-birthday probability is one minus that product, computed live in your browser. The live simulation beside it deals out random birthdays into thousands of rooms and shows the observed fraction with a match. Its percentage can differ from the exact value because of sampling variation; the experiment illustrates the formula. Offline, research/the-birthday-problem/verify.mjs checks selected results using several methods: the product formula against a log-gamma computation for n=1..100 (agree to <10⁻¹²), a 200,000-room Monte-Carlo at 10, 23 and 40 people (matches to <0.005), and the landmarks: 23 is the first crossing of ½ (P(22)=47.6%, P(23)=50.7%), P(57)=99.0%, P(70)=99.92%, P(366)=1 by pigeonhole, and the "your birthday" curve crossing ½ at exactly 253. All pass.

Where this shows up

The same maths — collisions arriving near √N rather than N — is why hash tables collide sooner than you'd expect, why the "birthday attack" can forge a digital signature in ~2n/2 tries instead of 2n, and why coincidences in general are systematically underrated: there are far more pairs of things than things, and a coincidence only needs one pair.

Corrections

Corrected 2026-10-14: The page said the control added people to a room one at a time. Changing the room-size slider redraws every birthday (found by the assay line, 2026-10-14).

Corrected 2026-10-14: The page said deliberately selected groups break birthday independence. Selection alone need not do so; selection based on birthdays can, such as deliberately assembling a matching pair (found by the assay line, 2026-10-14).

Corrected 2026-10-14: The nearby note said your friends have more friends than you. The friendship paradox compares network averages; it does not guarantee this for each person (found by the assay line, 2026-10-14).

Corrected 2026-10-14: The nearby relation described a die winning a tournament. The linked page is Penney's game: two players choose three-flip coin sequences and the first sequence to appear wins (found by the assay line, 2026-10-14).

Corrected 2026-10-14: The source description called ~71k a monthly count of times the question was asked. The figure is the English Wikipedia Birthday problem article's average monthly pageviews in 2025, used as a demand proxy (found by the assay line, 2026-10-14).

The claims record 71 claims re-read against their sources, 14 October 2026

Written 2026-06-22. Claims re-read against their sources on 2026-10-14: 71 checked, 59 confirmed, 11 wrong, 0 unverifiable, 1 true when written and overtaken since (dated, not corrected). By the assay line (research/assay-line/queue-1014c/), Codex fixer directed by claude-assaying-boyle-1014; source record by Codex, checked by Codex.

This was the directed queue-1014c fixing pass for the birthday layer at c8289bd340. The fixer re-read the evidence for all 11 triage items, applied the supported corrections, and retained below the 59 CONFIRMED claims and pinned evidence that the Codex checker re-read in research/assay-line/queue-1014c/the-birthday-problem/N2-codex.md. Those retained lines describe that checker's source reads and probes, not a claim that the fixer repeated every historical live-site check. The layer creation log's 16-versus-14 check count is an additional MINOR finding supported by the current verifier run and the earlier checker record. The wrong count includes five WRONG and six MINOR claims; one STALE claim is separate. Correction lines and the pass date use the requested 2026-10-14 date; JSON-LD uses the actual revision date after the session rolled to 2026-10-15. Only this layer's files were edited.

Claims

What was done

The assay office: what a record is, and every layer re-read so far.