keisoku

Birthday Paradox Calculator

Calculate the probability that two people in a group of n share a birthday. Explore the surprising birthday paradox with a probability curve.

Input

Enter the number of people to find the probability that at least two of them share a birthday.

people
days

Days in a year. The default is 365.

Result

Probability of a shared birthday among 23 people

50.73percent

0255075100Number of people

Probability all are different

49.27 percent

People needed to pass 50 percent

23 people


Calculation steps

1

Treat the year as 365 days, then multiply the chance that each person avoids the earlier birthdays.

2

For 365 days, the probability that all 23 people differ is 49.27 percent.

3

Subtracting the all-distinct probability from 1 gives a match probability of 50.73 percent.

How it works

  • The probability that everyone has a different birthday is the running product 365/365 times 364/365 and so on. Written as a formula it is 365! divided by ((365 minus n)! times 365 to the power n).
  • The probability that at least two people share a birthday is 1 minus the all-distinct probability.
  • With 23 people the matching probability is about 50.7 percent, just over half. A shared birthday becomes likely with a surprisingly small group, which is why this is called the birthday paradox.
  • The number of days defaults to 365 (ignoring leap years) but you can change it. Changing the days also changes the group size needed to pass 50 percent.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. Birthday Paradox Calculator