Birthday Paradox Calculator

Find the probability that at least two people in a group share a birthday — the famous, counterintuitive birthday problem.

Inputs

How many people are in the room (1–365).

Usually 365; use 366 to include leap day.

Result

Loading calculator…

How to use this calculator

  • Enter the number of people in the group.
  • Leave days at 365 (or set 366 to include leap day).
  • Read the probability that at least two people share a birthday.
  • Try 23 for the classic ~50% result, or 70 for near-certainty.

About this calculator

The birthday paradox is the surprising fact that in a group of just 23 people, there is about a 50% chance that two of them share a birthday — and with 70 people it rises above 99.9%. It feels wrong because we instinctively think about how many people share our specific birthday, but the question is whether any two people match, and the number of possible pairs grows quadratically with group size. The calculation works by finding the probability that everyone's birthday is different — multiplying 365/365 × 364/365 × 363/365 and so on — and subtracting from one. This calculator computes that probability for any group size, assuming birthdays are spread uniformly across the year.

How it works — the formula

P(no match) = ∏_{i=0}^{k−1} (d − i) / d P(at least one match) = 1 − P(no match)

The chance every birthday is distinct is the product of each successive person avoiding all earlier birthdays; one minus that is the chance of at least one collision.

Worked examples

Example 1
23 people
Inputs:
people=23, days=365
Output:
50.73% chance of a shared birthday
Example 2
50 people
Inputs:
people=50, days=365
Output:
97.04%
Example 3
70 people
Inputs:
people=70, days=365
Output:
99.92%

Limitations

  • Assumes uniform, independent birthdays across the year.
  • Ignores leap days and real seasonal birth patterns.
  • Limited to a single shared-birthday question, not triples or specific dates.

Idealized model; real-world probabilities are marginally higher due to birth clustering.

Frequently asked

Why is it called a paradox?+
Because the answer defies intuition: most people guess you would need around 180 people for a 50% chance, but only 23 suffice. It is not a true logical paradox — just a counterintuitive result driven by the large number of possible pairings.
How many people for a 50% chance?+
Twenty-three. With 23 people the probability that at least two share a birthday is about 50.7%. At 30 people it is about 70%, and at 50 people about 97%.
Why is the probability so high with so few people?+
Because what matters is the number of pairs, not the number of people. A group of 23 has 253 possible pairs, and each pair has a small chance of matching; across all those pairs the combined chance of some match becomes large.
How is the probability calculated?+
By computing the chance that all birthdays are different — 365/365 × 364/365 × … × (365−k+1)/365 for k people — and subtracting that from 1. This counts the complement, which is far easier than summing all the ways a match could happen.
Does this account for leap years or birth seasonality?+
No. It assumes 365 equally likely, independent birthdays. Real birth dates cluster somewhat by season and include February 29, which makes coincident birthdays marginally more likely than the idealized model.
What happens with more than 365 people?+
A shared birthday becomes certain (100%). By the pigeonhole principle, if there are more people than days in the year, at least two must share a birthday.

Related calculators

More tools you might like

Hand-picked tools that pair well with this one — same audience, same intent.