Connect via MCP →

Enter Calculation

Use 365 (default) or 366 to include the leap day.

Formula

Advertisement

Results

Chance of at least one shared birthday (n = 50)
97.04%
probability = 0.9704

The probability first reaches or exceeds 50% at a group of 23 people (days in year = 365).

Group size n No match p̅(n) No match % At least one match p(n) Match %
2 0.99726 99.73% 0.00274 0.27%
3 0.991796 99.18% 0.008204 0.82%
4 0.983644 98.36% 0.016356 1.64%
5 0.972864 97.29% 0.027136 2.71%
6 0.959538 95.95% 0.040462 4.05%
7 0.943764 94.38% 0.056236 5.62%
8 0.925665 92.57% 0.074335 7.43%
9 0.905376 90.54% 0.094624 9.46%
10 0.883052 88.31% 0.116948 11.69%
11 0.858859 85.89% 0.141141 14.11%
12 0.832975 83.3% 0.167025 16.7%
13 0.80559 80.56% 0.19441 19.44%
14 0.776897 77.69% 0.223103 22.31%
15 0.747099 74.71% 0.252901 25.29%
16 0.716396 71.64% 0.283604 28.36%
17 0.684992 68.5% 0.315008 31.5%
18 0.653089 65.31% 0.346911 34.69%
19 0.620881 62.09% 0.379119 37.91%
20 0.588562 58.86% 0.411438 41.14%
21 0.556312 55.63% 0.443688 44.37%
22 0.524305 52.43% 0.475695 47.57%
23 0.492703 49.27% 0.507297 50.73%
24 0.461656 46.17% 0.538344 53.83%
25 0.4313 43.13% 0.5687 56.87%
26 0.401759 40.18% 0.598241 59.82%
27 0.373141 37.31% 0.626859 62.69%
28 0.345539 34.55% 0.654461 65.45%
29 0.319031 31.9% 0.680969 68.1%
30 0.293684 29.37% 0.706316 70.63%
31 0.269545 26.95% 0.730455 73.05%
32 0.246652 24.67% 0.753348 75.33%
33 0.225028 22.5% 0.774972 77.5%
34 0.204683 20.47% 0.795317 79.53%
35 0.185617 18.56% 0.814383 81.44%
36 0.167818 16.78% 0.832182 83.22%
37 0.151266 15.13% 0.848734 84.87%
38 0.135932 13.59% 0.864068 86.41%
39 0.12178 12.18% 0.87822 87.82%
40 0.108768 10.88% 0.891232 89.12%
41 0.096848 9.68% 0.903152 90.32%
42 0.08597 8.6% 0.91403 91.4%
43 0.076077 7.61% 0.923923 92.39%
44 0.067115 6.71% 0.932885 93.29%
45 0.059024 5.9% 0.940976 94.1%
46 0.051747 5.17% 0.948253 94.83%
47 0.045226 4.52% 0.954774 95.48%
48 0.039402 3.94% 0.960598 96.06%
49 0.03422 3.42% 0.96578 96.58%
50 0.029626 2.96% 0.970374 97.04%

What is the birthday paradox?

The birthday paradox is the surprising fact that in a group of just 23 people there is a better-than-even chance that two of them share a birthday. It feels wrong because people imagine matching their own birthday, but the calculation counts any matching pair, and the number of possible pairs grows quickly with group size. This is pure probability and applies everywhere.

Rising S-shaped curve crossing the 50% probability line near group size 23
The probability of a shared birthday rises steeply and passes 50% at about 23 people.

How to use this calculator

Enter the smallest group size ("Group size from"), the largest ("Group size to"), and optionally change the days in a year (365 by default, or 366 to include February 29). The tool builds a table with one row per group size and reports two probabilities for each: the chance that no two birthdays match, and the chance that at least one pair does. It also tells you the first group size where the match probability reaches 50%.

The formula

Let D be the number of days in a year. The probability that all n people have different birthdays is the product of the shrinking pool of free days: $$\bar p(n) = \frac{D}{D} \times \frac{D-1}{D} \times \cdots \times \frac{D-n+1}{D}$$. The chance that at least one pair matches is simply \(p(n) = 1 - \bar p(n)\). We multiply iteratively to avoid huge factorials, and once n exceeds D the no-match probability is forced to 0 by the pigeonhole principle.

Advertisement
People assigned to calendar days with each person having one fewer available day
Counting all-different birthdays: each added person has one fewer free day, giving the product \((D-k)/D\).

Worked example

With D = 365 and n = 23, multiplying (365/365)(364/365)...(343/365) gives \(\bar p(23) \approx 0.492703\), so $$p(23) \approx 0.507297$$ about a 50.73% chance. For n = 2 the chance is only 0.27%, and by n = 50 it rises to about 97.04%.

Advertisement

Common Thresholds: How Many People for a Given Probability?

The classic birthday paradox surprises people because the probability of a shared birthday grows much faster than intuition suggests. The table below shows the smallest group size \(n\) at which the probability \(P(n)\) of at least one shared birthday first reaches each common threshold, assuming \(D = 365\) days and uniformly distributed birthdays (ignoring leap years and seasonal birth patterns).

Target probability Group size \(n\) Actual \(P(n)\) at that size
10% 9 11.6%
50% 23 50.7%
90% 41 90.3%
95% 47 95.0%
99% 57 99.0%
99.9% 70 99.92%

The most famous milestone is just 23 people, which is enough to make a shared birthday more likely than not. Note that the probability climbs steeply through the middle range — going from a 50% chance at 23 people to a near-certain 99% at only 57 — and then flattens as it approaches 100%, since each additional person adds fewer new pairing opportunities relative to those already present.

FAQ

Why does it cross 50% so early? Because 23 people form 253 distinct pairs, and any of those pairs can match.

Does it account for leap years or birthday clustering? No. It assumes 365 (or 366) equally likely birthdays; real clustering only raises the match probability.

What happens above 365 people? A match is guaranteed, so \(p(n) = 1\).

Last updated: