Smart Unit ConvertersSmart Unit Converters

Birthday Paradox Calculator

Compute the probability that 2 or more people in a group share a birthday. The famous mathematical 'paradox' explained with chart.

Probability of shared birthday

50.73%

In a random group of 23 people, there's a 50.7% chance that at least two share a birthday.

Probability vs group size

Pink dot = your group (23 people). Amber dot = the famous threshold (23 people, 50.7%).

Quick reference

Step-by-step calculation

Formula

P(shared) = 1 − ∏ (365 − i) / 365 for i = 0 to n−1

  1. 1Group size: n = 23.
  2. 2Easier to compute the COMPLEMENT — probability that everyone has a unique birthday.
  3. 3Person 1 picks any of 365 days. Person 2 must avoid that one (364/365). Person 3 avoids both (363/365). And so on.
  4. 4P(all unique) = (365/365) × (364/365) × … × ((365−n+1)/365)
  5. 5P(at least one shared) = 1 − P(all unique) = 50.7297%
  6. 6The famous threshold: at n = 23, the probability crosses 50% (50.73% to be exact).
Why it's called a paradox: intuition says you need ~183 people (half of 365) for a 50% chance — but the answer is 23. The trick is that with n people there are n×(n−1)/2 PAIRS, and each pair is a chance to match. With 23 people that's 253 pairs. Used in cryptography (birthday attack on hash functions).

?What is the Birthday Paradox Calculator?

The Birthday Paradox Calculator computes the probability that at least two people in a group of N share a birthday — the famous result that surprises everyone with how few people are needed for a 50/50 chance: just 23. The 'paradox' isn't a logical contradiction; it's a misalignment between intuition and combinatorics. With 23 people there are 23×22÷2 = 253 unique pairs, and each pair has a 1/365 chance of matching — 253 chances for a match adds up faster than your gut suggests. Used in cryptography to estimate the difficulty of finding hash collisions (the 'birthday attack').

The Formula

P(at least one shared) = 1 − ∏(i=0 to n−1) (365 − i) / 365

Direct counting of shared birthdays is hard, so we compute the COMPLEMENT: probability that everyone has a unique birthday. Person 1 picks any day (365/365 = 1). Person 2 must avoid Person 1's day (364/365). Person 3 must avoid both (363/365). And so on. Multiplying these gives P(all unique); subtracting from 1 gives P(at least one match). The probability rises faster than intuition suggests because the number of pairs grows quadratically with group size — n(n-1)/2 pairs in a group of n.

Birthday Paradox — Probability of Shared Birthday by Group Size

Probability that at least two people in a group share a birthday.

Group sizeProbabilityComparison
52.71%Small dinner party
1011.69%Small office team
1525.29%Sports team starting lineup
2041.14%Average book club
2350.73%FAMOUS THRESHOLD — 50/50
3070.63%Typical school class
4089.12%Wedding party
5097.04%Conference workshop
7099.92%Large birthday party
10099.9999%Practically certain

Practical Examples

1

5 people: 2.7% chance of a shared birthday.

2

10 people: 11.7% chance.

3

20 people: 41.1% chance.

4

23 people: 50.7% chance — the famous threshold.

5

30 people (typical school class): 70.6% chance — most classrooms have at least one shared birthday.

6

50 people: 97.0% chance.

7

70 people: 99.92% chance — practically guaranteed.

8

Cryptographic 'birthday attack' on a 256-bit hash needs only ~2^128 operations, not 2^256, to find a collision.

Frequently Asked Questions

Because the answer (23 people for 50%) is so counterintuitive — most people guess 100+. It's a 'veridical paradox' — surprising but true, not a logical contradiction. Distinguish from 'falsidical paradoxes' which seem true but are actually false.

Popular Conversions

Jump to a ready-made conversion — useful for quick reference and sharing: