The Birthday Paradox Calculator computes the probability that at least two people in a group share the same birthday. The counterintuitive result that reveals systematic flaws in human probability intuition — in just 23 people, there is already greater than 50% chance of a shared birthday.
0.500002
0.499998
50
%
0.6932
0
0.500002
0.499998
50
%
0.6932
0
Most people guess that you would need far more than 23 people for a 50% chance of a shared birthday — estimates typically land around 183 (half of 365). This consistent underestimation reveals a deep flaw in human intuition about probability: we naturally estimate the probability that someone shares your specific birthday, rather than the probability that any two people share any birthday. The birthday paradox calculator computes the exact probability for any group size and explains the mathematics behind the surprising result.
The elegant approach is to compute the probability of no shared birthday (the complement) and subtract from 1:
P(at least one shared birthday) = 1 − P(no shared birthdays)
P(no shared birthdays in a group of n people) = (365/365) × (364/365) × (363/365) × ... × ((365−n+1)/365)
= 365! / [(365−n)! × 365^n]
Key values:
Use this online calculator for any group size up to 365. The probability calculator and binomial probability calculator provide complementary probability tools.
The intuitive error is thinking about one person's birthday vs. everyone else's. The actual question is whether any pair among all possible pairs shares a birthday. For a group of n people, the number of possible pairs is C(n,2) = n(n−1)/2. For n=23: C(23,2) = 253 pairs. Each pair has a 1/365 ≈ 0.27% chance of sharing a birthday. With 253 independent pairs (a rough approximation), the probability that at least one pair matches: approximately 1 − (364/365)^253 ≈ 50.1%. The exact calculation using the complementary product formula gives 50.7%. Our brains naturally think about 1 comparison (one person vs. 365 days), not 253 comparisons — this mismatch produces the systematic underestimation.
The birthday paradox principle applies beyond birthdays to any "collision" problem:
The bingo probability calculator and probability calculators cover related coincidence probability problems.
The classic calculation assumes uniform birthday distribution (each of 365 days equally likely). In reality, birthdays are not uniformly distributed: September is the most common birth month in the US (9 months after the winter holiday season); February has the fewest birthdays. This non-uniformity actually increases the probability of a shared birthday compared to the uniform case — concentrating births in certain periods increases the chance of collision. Additionally, the calculation ignores February 29 (leap day) births, which represent roughly 1/1461 of all birthdays. Including them slightly decreases the collision probability (more days available). For most practical purposes, the 365-day uniform approximation is excellent.
Key thresholds: at 23 people, P ≈ 50.7%. At 50 people, P ≈ 97%. At 70 people, P ≈ 99.9%. The rapid growth surprises most people because we intuitively compare ourselves to others (n-1 comparisons) rather than considering all pairwise comparisons (n(n-1)/2 pairs).
In cryptography, the birthday paradox implies that a hash function with n-bit output can expect collisions after approximately 2^(n/2) random inputs, not 2^n. This is why secure hash functions use large output sizes (256+ bits).
Inputs
Results
With 23 people, there are C(23,2) = 253 unique pairs. The probability that at least two share a birthday is approximately 50.7% — just over a coin flip. This is the classic result that gives the birthday problem its paradoxical reputation.
Inputs
Results
In a typical classroom of 30 students, the probability of a shared birthday is about 70.6%. There are C(30,2) = 435 pairs, making a match quite likely. Teachers often use this as a demonstration — in most classrooms, a shared birthday will be found.
How helpful was this calculator?
Be the first to rate!