Discover the surprising probability of shared birthdays in any group. Interactive, fast, and educational.
Classic birthday problem: With 23 people, the probability of a shared birthday exceeds 50%. With 70 people, it's over 99.9%.
The birthday paradox refers to the counter‑intuitive fact that in a group of just 23 people, the probability of two sharing a birthday exceeds 50%. With 70 people, it's over 99.9%.
General formula (for d days):
P(match) = 1 - (d/d) × ((d-1)/d) × ... × ((d-n+1)/d)
where n ≤ d. If n > d, probability = 1 (by pigeonhole principle).
It's easier to compute the probability no two people share a birthday. For n people:
Thus P(no match) = ∏_{i=0}^{n-1} (d-i)/d. Then P(match) = 1 - that product.
When d is large (like 365), the product can be approximated using the exponential function:
P(no match) ≈ e^{-n(n-1)/(2d)}
This approximation comes from the Taylor expansion ln(1-x) ≈ -x. For d=365, solving e^{-n²/(2d)} = 0.5 gives n ≈ √(2d ln2) ≈ √(2·365·0.693) ≈ 22.5, explaining why 23 is the threshold.
| People (n) | P(match) |
|---|---|
| 10 | 11.7% |
| 23 | 50.7% |
| 30 | 70.6% |
| 40 | 89.1% |
| 50 | 97.0% |
| 57 | 99.0% |
| 70 | 99.9% |
Most people mistakenly think about the chance that someone shares their own birthday. For 23 people, that probability is only about 6.1%. But the correct question considers any pair — and there are C(23,2) = 253 possible pairs, making a match much more likely.
Calculator features: This tool uses exact arithmetic for probabilities, visualizes the probability curve, and lets you change the number of days to explore variations like leap years or other planets.
*Values based on 365 days.