Birthday Paradox Calculator

This birthday paradox calculator shows that with just 23 people the chance that two share a birthday is already 50.7 %. It works for any group size and in reverse.

Source: Wikipedia – Geburtstagsparadoxon. Updated: .

365 days; 366 with 29 February
My ToolboxYour inputs are saved in this browser only.

Result

Result
With 23 people: 50.73 % probability of at least two shared birthdays
Calculation values
ItemValue
People23
At least two shared birthdays50.73 %
All birthdays different49.27 %
One particular person shares a birthday with someone in the group5.86 %
Possible pairs253
Expected number of matching pairs0.69
Probability by group size
PeopleAt least two shared birthdays
52.71 %
1011.69 %
1525.29 %
2041.14 %
2350.73 %
3070.63 %
4089.12 %
5097.04 %
6099.412 %
7099.91596 %
10099.99997 %
The model assumes that all 365 days are equally likely and birthdays are independent. In reality birthdays are spread slightly unevenly, which raises the probability a little.

How it is calculated

The birthday paradox is not a true contradiction but a surprising result: in a group of just 23 people it is more likely than not that two share a birthday. It feels impossible because we instinctively think of our own birthday.

How it is calculated

The opposite is easier: all birthdays different. The second person has 364 of 365 free days, the third 363, and so on. The probability that all are different is the product 365/365 · 364/365 · 363/365 · …, and the probability we want is 1 minus that product. For 23 people it gives 50.7 %, for 30 it is 70.6 %, for 50 already 97.0 % and for 70 people 99.9 %.

Why it is not really paradoxical

What counts is not one particular person but all pairs: 23 people form 253 pairs, each with a chance of 1/365. The probability that someone shares your birthday grows much more slowly: with 22 other people it is only 5.9 %. The effect underlies collisions in hash values (the birthday attack).

Frequently asked questions

How many people do you need for 50 % in the birthday paradox?

23 people. That is the first group size where the probability of at least two shared birthdays, 50.7 %, exceeds one half.

How do you calculate the birthday paradox?

Multiply the probabilities that each further person has a still free day: 365/365 · 364/365 · …, and subtract the result from 1.

Why is the probability so high?

Because not one single birthday is compared but all pairs. 23 people make 253 pairs, 50 people already 1,225.

Sources and legal basis

As of: · Editorial policy

Related tools