Birthday Paradox Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter the number of people in the group to find the chance that two or more of them share a birthday.
Result
Probability at least two share a birthday
Probability all birthdays are different
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Number of people: enter 1 or more.
- Number of possible birthdays (days in the year): enter 1 or more.
- Read the result: Probability at least two share a birthday; the panel also shows Probability all birthdays are different.
How this calculator works
P(all different) = d! ÷ ((d − n)! × dⁿ) for n people and d equally likely birthdays; P(at least one shared) = 1 − P(all different). The factorials are computed with the log-gamma function.
The model ignores February 29 and assumes birthdays are spread evenly over the year; real birthdays are slightly uneven, which makes a match a little more likely.
Worked example
| Number of people | 23 |
|---|---|
| Number of possible birthdays (days in the year) | 365 |
| Probability at least two share a birthday | 50.73% |
|---|---|
| Probability all birthdays are different | 49.27% |
Frequently asked questions
How many people for a 50% chance of a shared birthday?
23 people: the probability is 50.73%. With 50 people it reaches 97.04%.
Why is it called a paradox?
Because people compare themselves with others, but the count is of pairs: 23 people form 253 pairs.