← All animations

πŸŽ‚ The Birthday Paradox

In a room of just 23 people, it's more likely than not that two of them share a birthday. By 60 people it's a near-certainty (β‰ˆ99.4%). It feels impossible β€” there are 365 days! β€” but the maths is airtight. The trick is that you're not looking for one birthday; you're looking for any coincidence among every pair of people. Scroll through and watch the coincidences light up.

1. Fill the room β€” watch for a collision

Each dot below is one person's birthday, dropped onto a 365-day wheel (Jan at the top, going clockwise). Drag the slider to set the group size. When two people land on the same day the pair lights up pink. The bar on the right is the exact probability that at least one pair matches at this group size β€” it sails past 50% at just 23.

23 people P(match) β‰ˆ 50.7%

2. The curve β€” and proving it by experiment

The smooth pink line is the formula 1 βˆ’ 365!/((365βˆ’n)!Β·365n). Press Run many rooms to fill thousands of random rooms at every group size and plot how often a match actually happened (the gold dots). The dots snap onto the theoretical curve β€” empirical reality matches the maths exactly.

at n = 23 Β· theory 50.7%

3. Why intuition fails: it counts pairs, not people

The brain quietly asks the wrong question. It pictures "does anyone share my birthday?" β€” and that really is rare. But the paradox asks "do any two people share a birthday?" Every pair of people is a fresh chance at a coincidence, and pairs multiply fast: n people make n(nβˆ’1)/2 pairs. At 23 people that's 253 separate chances β€” no wonder one of them hits.

23 people β†’ 253 pairs
50.7% P(any two share) β€” what the paradox asks. Every pair is another shot, so this climbs fast and crosses 50% at 23 people.
6.0% P(someone shares MY birthday) β€” what intuition pictures. Only your 22 direct comparisons count, so this stays small; you'd need ~253 people for this to reach 50%.