Probability Someone Shares Your Birthday Calculator

Probability Someone Shares Your Birthday Calculator

Popular AI Skill PRO

Enter Calculation

Number of people in the group, counting you. Each of the other people may share your exact birthday.

Formula

P=(1−(364365)Group Size−1)×100%P = \left(1 - \left(\frac{364}{365}\right)^{\text{Group Size} - 1}\right) \times 100\%
Usage stats

Advertisement

Results

Probability someone shares your birthday
50.05%
at least one of the other people matches your exact birthday
Other people (n - 1) 253
Probability nobody matches 49.95%
Formula 1 - (364/365)^(n-1)

Report an error on this page

What this calculator does

This tool answers a specific question: in a group of n people that includes you, what is the probability that at least one of the other people has the same birthday as you? This is the "matches my birthday" version of the birthday problem. It is deliberately different from the famous birthday paradox, which asks whether any two people in a room share a birthday. That classic version reaches 50% at just 23 people, but matching one specific (your) birthday is much harder and needs about 254 people to cross 50%.

How to use it

Enter the group size including yourself. The calculator counts the other n − 1 people, treats the year as 365 equally likely days (leap-year Feb 29 is ignored), and computes the chance that at least one of them lands on your exact birthday.

Rising curve showing probability increasing toward 1 as group size n grows
The probability that someone shares your exact birthday rises gradually as the group gets larger.

The formula explained

Each other person has a \(\frac{364}{365}\) chance of not sharing your birthday. Assuming independence, the chance that none of the n − 1 others matches is \(\left(\frac{364}{365}\right)^{n-1}\). Therefore the chance that at least one matches is:

$$p(n) = 1 - \left(\frac{364}{365}\right)^{n-1}$$ expressed as a percentage by multiplying by 100. The exponent is n − 1 because you never compare yourself with yourself — only the other people can match your fixed date.

Advertisement

Worked example

For a group of 30 people, there are 29 others. \(\left(\frac{364}{365}\right)^{29} = 0.92352\), so $$p = 1 - 0.92352 = 0.07648 = \text{about } 7.65\%$$ So in a room of 30 (including you), there is roughly a 7.65% chance that someone else shares your exact birthday.

Diagram showing one highlighted person compared against a row of other people, each either matching or not matching a fixed calendar date
Each of the other n-1 people independently has a 1/365 chance of matching your specific birthday.

Probability by Group Size: Matches Your Birthday vs. Any Shared Birthday

The table compares two different questions. Matches mine asks whether at least one of the other people in the group has your birthday: \(p = 1 - (364/365)^{n-1}\). Any shared birthday is the classic birthday paradox, which asks whether any two people in the group share a birthday. Here n is the total group size, including you.

Group size (n) Someone matches YOUR birthday Any two people share a birthday (classic)
10 2.44% 11.69%
23 5.86% 50.73%
30 7.65% 70.63%
50 12.58% 97.04%
100 23.78% 99.99997%
200 42.07% ≈100%
253 49.91% ≈100%
254 50.05% ≈100%
365 63.16% ≈100%
500 74.56% ≈100%
1000 93.55% ≈100%

Key takeaway: a group of 23 gives about a 50.7% chance that some pair shares a birthday, but only about a 5.9% chance that someone shares yours. To reach 50% for a match with your own birthday you need 254 people in total (you plus 253 others), which gives about 50.05%. With 253 people the figure is about 49.91%.

All values assume 365 equally likely birthdays (ignoring February 29 and seasonal variation in real birth rates) and that people's birthdays are independent of each other (no twins, for example). Results are rounded.

Advertisement

How to Calculate It by Hand

  1. Count the other people. Subtract 1 from the group size: \(n - 1\). You are not compared with yourself.
  2. Find the chance one person misses your birthday. \(364/365 \approx 0.99726\).
  3. Raise it to the power \(n-1\). This is the chance that all the others miss your birthday. With logarithms, \((364/365)^{n-1} = e^{(n-1)\ln(364/365)}\), where \(\ln(364/365) \approx -0.0027435\).
  4. Subtract from 1 to get the chance of at least one match: \(p = 1 - (364/365)^{n-1}\).
  5. Multiply by 100 to express it as a percentage.

Worked example (n = 50):

$$n - 1 = 49,\qquad 49 \times (-0.0027435) \approx -0.13443$$

$$e^{-0.13443} \approx 0.8742,\qquad p = 1 - 0.8742 = 0.1258$$

So a group of 50 has about a 12.58% chance that at least one other person shares your birthday.

Inverse: how many people do you need? To reach a target probability \(p\) (as a decimal), solve for n:

$$n = 1 + \frac{ \ln(1 - p) }{ \ln(364/365) }$$

For \(p = 0.5\): \(\ln(0.5) \approx -0.693147\), so \(n = 1 + \dfrac{ -0.693147 }{ -0.0027435 } \approx 1 + 252.65 = 253.7\). Round up to 254 people in total.

FAQ

Why isn't this 50% at 23 people? Because 23 is the answer to a different question — whether any pair matches. Matching your specific date is far rarer; you need roughly 254 people to reach 50%.

Can it ever reach 100%? Not exactly — the probability approaches 100% asymptotically. You would need around 42,220 people for the displayed value to round to 100%.

What about leap years? Feb 29 is ignored; the model uses exactly 365 equally likely days for simplicity.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators