Birthday Paradox Probability Calculator
Returns the probability that at least two people in a group of n share a birthday, under the 365-day model with uniform dates and no leap years.
P(colisΓ£o)
β
The birthday paradox
Take a group of n people. The chance that at least two of them share a birthday works out to P(n) = 1 β 365! / ((365βn)! Β· 365^n). At n = 23 you already cross 50%: P β 50.7%, so a match is slightly more likely than not. Push it to n = 70 and P β 99.9%. Most people find this hard to believe because they picture a number somewhere near 365. The trick is that you're counting pairs rather than individuals, and a group of 23 holds C(23,2) = 253 of them. That's why the probability climbs quadratically with n.
Applications
In cryptography, the birthday attack locates collisions in a k-bit hash function after roughly 2^(k/2) trials rather than 2^k. SHA-256 sits at a 2^128 birthday bound and remains unbreakable, while MD5 (2^64) and SHA-1 (2^80) are both considered broken. The same math shows up elsewhere: spotting duplicates in a dataset, reasoning about whether GUIDs/UUIDs will stay unique, balls-and-bins problems, sizing a hash table, and statistical sampling.
FAQ
Why does P(23) β 50% surprise people? Our gut latches onto "my birthday" and the 1-in-365 odds attached to it. But the question being asked is about any two people in the room, and the count of pairs scales with nΒ², not n.
Does it consider leap years? No. The standard formula treats all 365 days as equally likely. Add a 366th day and the curve nudges a little. Actual birth distributions aren't uniform either, but at n=23 the difference barely registers.
What's a birthday attack? It's a collision attack on hashes. Rather than brute-forcing one specific preimage, you hunt for any two inputs that hash to the same output. That search succeeds in about 2^(k/2) tries, which effectively cuts the security in half.
Related Tools
Kids Birthday Gift Budget
Suggests kids birthday gift budget based on child age and relationship.
Kids Birthday Party Budget
Estimates total kids birthday party budget based on guest count.
Auditory and Visual Response Time Calculator (ms)
Compares auditory and visual response time in milliseconds from typical means in psychology research.
Molar Mass from Gas Density
Enter density in g/L, temperature in K and pressure in atm: M = ΟΒ·RΒ·T/P with R = 0.08206. A gas at 1.96 g/L, 273 K and 1 atm gives 43.9 g/mol.
Finite Population Sample Size Calculator
Computes sample size for a finite population N applying finite population correction with proportion p and confidence z score.
Projectile Time of Flight
Compute projectile total time of flight including initial height.
The results provided by this tool are for general informational and educational purposes only and do not constitute professional, financial, medical, legal, tax or accounting advice. Always confirm important decisions with a qualified professional and official sources.