PPolySim OS

Birthday Paradox

How many people until two share a birthday? Astonishingly, just 23 for even odds. The classic result that breaks everyone's intuition.

Birthday ParadoxLive

Controls

Presets

How many people until two share a birthday? Intuition says hundreds, but it takes just 23 for better-than-even odds, and 70 makes it near-certain. The trick is that the number of pairs grows quadratically — 23 people form 253 pairs, each a chance to match. It is why hash collisions and cryptographic birthday attacks happen far sooner than expected.

▶ Run in Python

Data Inspector

Group size23
P(shared birthday)50.7%
Pairs253

Governing equation

Reading this result: Past the tipping point: 23 people form 253 pairs, and a match is now more likely than not (50.7%) — far fewer people than the 365 intuition expects.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

The surprise dissolves once you count pairs, not people: 23 people form 253 pairs, each a chance to match. The probability of at least one shared birthday climbs steeply, passing 50% at 23 and 99% by 70. The same quadratic effect drives hash collisions and the birthday attack in cryptography, where security scales with the square root of the key space.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Probability simulations

Frequently asked questions

Is this birthday paradox tool really free?
Yes. Birthday Paradox runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.