Birthday Paradox


Let's consider there are 365 days in a year (sometime it has 366 but we will not consider that case). We want to find out how big a group needs to be such that there is a 50% chance that two people in this group have the same birthday.

You may think that well it needs about half of 365 people (which is about 183) people in the group. Well the actually is acutally much smaller than that.

To analyze this problem, let's start with a smaller group of people, for example 3 people. The probability that in the group of 3 people, at least two people has the same birthday is:

\[ 1-\frac{{}_{365} {P}_{3}}{365^3} \approx 0.008204 \]

\(\frac{{}_{365} {P}_{3}}{365^3}\) is the probability that all 3 people in the group has different birthday. 1 minus that gives the probability that at least two people in that group share the same birthday.

Using this method, we can find the probability that at least two people has the same birthday in a n people group (where \(2\leq n \leq 365\)) is:

\[ 1-\frac{{}_{365} {P}_{n}}{365^n} \]

The table below show the number of people in a group and the probability that at least two people at the corresponding group has the same birthday:

Number of People in a GroupThe Probability that at Least Two People at the Group has the Same BirthdayNumber of People in a GroupThe Probability that at Least Two People at the Group has the Same Birthday
20.00273973590.99298945
30.00820417600.99412266
40.01635591610.9950888
50.02713557620.99590957
60.04046248630.99660439
70.0562357640.99719048
80.07433529650.99768311
90.09462383660.9980957
100.11694818670.99844004
110.14114138680.99872639
120.16702479690.99896367
130.19441028700.99915958
140.22310251710.99932075
150.25290132720.99945288
160.28360401730.99956081
170.31500767740.99964864
180.34691142750.99971988
190.37911853760.99977744
200.41143838770.99982378
210.44368834780.99986095
220.47569531790.99989067
230.50729723800.99991433
240.53834426810.99993311
250.5686997820.99994795
260.59824082830.99995965
270.62685928840.99996882
280.65446147850.999976
290.68096854860.99998159
300.70631624870.99998593
310.73045463880.99998928
320.75334753890.99999186
330.77497185900.99999385
340.79531686910.99999537
350.81438324920.99999652
360.83218211930.9999974
370.84873401940.99999806
380.86406782950.99999856
390.87821966960.99999893
400.89123181970.99999922
410.90315161980.99999942
420.91403047990.99999958
430.923922861000.99999969
440.932885371010.99999978
450.94097591020.99999984
460.948252841030.99999988
470.95477441040.99999992
480.960597971050.99999994
490.965779611060.99999996
500.970373581070.99999997
510.974431991080.99999998
520.978004511090.99999998
530.981138111100.99999999
540.983876961110.99999999
550.986262291120.99999999
560.98833235113~364\( \approx 1 \)
570.990122463651
580.99166498> 3651

Disclaimer: All the programs on this website are designed for educational purposes only. They are tested however mistakes and errors may still exist. By using these programs, you acknowledge that you are aware that the results from the programs may contain mistakes and errors and you are responsible for using these results. The author is not responsible for errors and results from these programs.