Alex Rivera
Health & Science WriterΒ·April 5, 2026
How many people do you need in a room before there's a 50% chance that two of them share a birthday? Most people guess somewhere around 180 β roughly half of 365. The actual answer is just 23. This is the birthday paradox, and it's one of the most striking examples of how human intuition fails at probability.
When we think about the birthday problem, we naturally frame it as: "What are the chances that someone in this room shares MY birthday?" That probability is indeed low β about 1 in 365 for each person.
But the question isn't about your birthday. It's about any two people sharing any birthday. With 23 people, there are 253 possible pairs (23 Γ 22 Γ· 2). Each pair has a roughly 1/365 chance of sharing a birthday. When you have 253 chances, the probability adds up fast.
The cleanest way to calculate this is through the complement β the probability that NO two people share a birthday.
For n people, the probability that all birthdays are different is:
P(no match) = (365/365) Γ (364/365) Γ (363/365) Γ ... Γ ((365-n+1)/365)
The probability of at least one match is then:
P(at least one match) = 1 - P(no match)
Let's trace through a few values:
Run your own figures in any of our free calculators. No sign-up needed.
Related Posts
The curve rises steeply. By 57 people, you're at 99% probability.
The birthday paradox is related to the pigeonhole principle: if you have more pigeons than pigeonholes, at least two pigeons must share a hole. With 366 people, you're guaranteed a shared birthday (ignoring leap years). The paradox is that you don't need anywhere near 366 people to make a shared birthday likely.
The birthday paradox isn't just a party trick. It has serious implications in cryptography and computer science.
Hash collisions: Cryptographic hash functions map data to fixed-length outputs. If a hash produces 128-bit outputs, you might think you need 2^128 inputs before a collision. But due to birthday paradox mathematics, collisions become likely after only about 2^64 inputs β a much smaller number.
Password security: If a system stores hashed passwords, an attacker using birthday attack techniques can find collisions much faster than brute force.
DNA databases: Forensic scientists must account for birthday paradox effects when assessing the probability of coincidental DNA matches in large databases.
The standard birthday paradox assumes:
In reality, birthdays aren't perfectly uniform β more people are born in certain months, and there are seasonal patterns. This slightly changes the exact numbers but doesn't fundamentally alter the paradox.
Our birthday paradox calculator lets you input any group size and instantly see the probability of a shared birthday. You can also work backwards β enter a target probability and find the minimum group size needed.
The next time you're in a meeting with 30 colleagues, there's a 70% chance two of them share a birthday. The math is counterintuitive, but it's unambiguous.
Calculate the probability that at least two people in a group share the same birthday. Explore the surprising mathematics of the birthday problem.
Use Calculator