Calculator

The birthday match

How many people do you need in a room before two of them probably share a birthday? Move the slider.

People in the room
23
Chance of a shared birthday
50.7%

Better than a coin flip — with just 23 people.

Pairs of people
253
Every pair is another chance to match.
For a 99% chance you need
57 people
For 99.9%, you need 70.

The whole curve

Chance that at least two people share a birthday, by group size. Hover to read any point.

Why so few people?

Most people answer around 183, which is half of 365. That would be the right answer to a different question: how many people you need before someone shares your birthday.

The real question doesn't single anyone out. Any two people in the room can match, so what matters is the number of pairs, not the number of people. Ten people make 45 pairs. Twenty-three people make 253 pairs — and 253 chances for a match is plenty.

The maths

It's easier to work out the chance that nobody matches, then subtract from 1. The second person must avoid 1 birthday, the third must avoid 2, and so on:

P(no match) = 365/365 × 364/365 × 363/365 × … × (365 − n + 1)/365
P(at least one match) = 1 − P(no match)

With n = 23 that gives 49.3% for no match, so the chance of at least one shared birthday is 50.7%.

PeopleChance two share a birthday
1011.7%
2350.7%
3070.6%
5097.0%
5799.0%
7099.9%

Assumes 365 equally likely birthdays and ignores 29 February. Real birthdays cluster slightly by season, which makes matches marginally more likely.

Try it yourself. Next time you're in a room with 25 or more people — an office, a class, a wedding table — ask everyone their birthday. Half the time you'll find a match.

More to play with

Three doors gameSwitch or stay? Play it, then simulate 1,000 rounds. Lottery odds calculatorSee what your ticket is really worth.