Birthday paradox calculator — see the probability of shared birthdays in a group of N people, visualized step by step.
- Runs locally
- Category Calculator
- Best for Getting a realistic range before a purchase, plan, workout, or schedule decision.
| People | P (shared) | P (all unique) |
|---|---|---|
| 5 | 2.71% | 97.3% |
| 10 | 11.7% | 88.3% |
| 23★ | 50.7% | 49.3% |
| 30 | 70.6% | 29.4% |
| 50 | 97.0% | 2.96% |
| 70 | 99.9% | 0.08% |
| 100 | >99.99% | <0.01% |
- Step 1Easier to compute the opposite: P(all N birthdays are different).
- Step 2Person 1: 365/365. Person 2: 364/365. Person 3: 363/365. … Person N: (365-N+1)/365.
- Step 3Multiply them all: P(unique) = 365! / ((365-N)! × 365^N).
- Step 4Answer: P(at least one shared) = 1 - P(all unique).
What this tool does
Free online birthday paradox calculator. Enter a group size N (1–365) and instantly see the probability that at least two people share a birthday, the complementary probability that everyone is unique, and the classic 50% threshold (N = 23 — yes, really). The interactive SVG curve plots probability for every group size from 1 to 100, marks the 50% line, and highlights your own N. A classic-cases table compares 5 / 10 / 23 / 30 / 50 / 70 / 100 people side by side, and a four-step derivation walks through the formula P(shared) = 1 − 365! / ((365−N)! × 365^N) — built up from "it's easier to count pairs than to count collisions". Includes the pair-count N(N−1)/2 so you can see why the odds shoot up so fast. 100% client-side: nothing leaves the browser.
Tool details
- Input
- Numbers
- The page exposes text boxes, numeric controls, file pickers, or structured inputs depending on the tool.
- Output
- Live result + Copy + Preview
- The result area focuses on usable output, with copy, download, or preview actions when supported.
- Privacy
- Browser-side processing
- The main tool logic does not call an external API, so inputs normally stay in the current tab.
- Save / share
- Shareable URL state
- Key settings are encoded in the URL so another person can reopen the same setup.
- Performance budget
- Initial JS <= 12 KB
- No WASM budget is declared, keeping the tool quick to open on mobile.
- Best fit
- Calculator · Student
- Category and role tags drive related tools, internal links, and quick fit checks.
How to use
-
1. Input
Paste or drop your content into the tool panel.
-
2. Process
Click the button. All processing is local in your browser.
-
3. Copy / Download
Copy the result or download to disk in one click.
How Birthday Paradox Calculator fits into your work
Use it for fast estimates, comparisons, and planning numbers before you make the final call.
Calculation jobs
- Getting a realistic range before a purchase, plan, workout, or schedule decision.
- Comparing scenarios by changing one input at a time.
- Turning rough assumptions into a number you can discuss.
Calculation checks
- Double-check units, dates, rates, and rounding assumptions.
- Treat health, finance, tax, and legal outputs as planning aids, not professional advice.
- Save the inputs that produced an important result so you can reproduce it later.
Good next steps
These links move the current task into a more complete workflow.
- 1 Running Pace Calculator Running pace calculator — convert between pace / time / distance, predict 5K/10K/half/full marathon from one race. Open
- 2 Scientific Calculator Scientific calculator — sin / cos / log / sqrt / power, with full keyboard input + history, deg/rad mode. Open
- 3 Percentage Calculator 5 common percentage calculations — "x% of y", "x is what% of y", percentage change, increase/decrease — instant, browser-only Open
Real-world use cases
Settle the "no way it's 23" classroom bet before the lesson
You're teaching probability and want the hook. Before class, set N to 23 and screenshot the 50.7% result, then set N to 30 (70.6%) and N to 50 (97.0%). Walk in, ask 25 students to guess how many people you need for a coin-flip chance, watch them say "180" or "183", then reveal 23. The classic-cases table gives you all the numbers on one screen so you never fumble a figure mid-demo.
Size a hash table before keys start colliding
You have ~1000 keys and a 1,000,000-slot table and wonder if collisions are a real risk. The √ rule says 50% collision odds hit at N ≈ 1.177·√1000000 ≈ 1177 keys, so at 1000 you're already near a coin flip. Plug the day-count analogy in your head, confirm against the curve's quadratic climb, and decide to grow the table to 4M slots so collisions stay rare.
Explain a "birthday attack" to a teammate in five minutes
A junior dev asks why a 64-bit hash isn't enough for collision resistance. Open the tool, show that 50% odds scale as 1.177·√days, then map "days" to 2^64 outputs: collisions become likely around 2^32 ≈ 4.3 billion samples, not 2^64. The same curve that explains 23 people explains why you need 256-bit hashes. The visual click lands faster than a whiteboard derivation.
Check the odds for your own 28-person team standup
Someone on your 28-person team claims two people share a birthday and you want to know if that's surprising. Set N to 28 and read 65.4% — so it's actually more likely than not. The complementary "everyone unique" number (34.6%) tells you a no-collision team is the rarer case. You stop being surprised and start expecting the overlap in any group past 23.
Common pitfalls
Asking "does anyone share MY birthday" instead of "do any two collide" — the first needs ~253 people for 50%, the second only 23. The tool answers the second; don't expect it to match the first.
Assuming Feb 29 and clumped real birthdays break the result. They shift 23-person odds by only 1–2 points, and clumping makes collisions more likely, not less, so the paradox holds.
Thinking the curve is linear and eyeballing "double the people, double the odds". Pairs grow as N(N−1)/2, so 10→20 people quadruples collision chances (45→190 pairs); read the actual curve, don't extrapolate.
Privacy
This calculator runs entirely in your browser. The only input is the group size N, a plain number you type in — no names, no actual birthdays, nothing personal. N is reflected in the URL so you can share a link that reproduces your result (e.g. ?n=23), but that single number is all the link carries. Nothing is uploaded, logged, or sent to any server.
FAQ
Tool combos
Folks in your role tend to reach for these alongside this tool.
- Chinese Acupoint Locator 200+ meridian acupoints / WHO 2008 standard locations / with contraindications, manipulation, and combinations.
- Add Days to Date Calculator Add or subtract days, weeks, months, and years from any date — plus a business-day mode that skips weekends. Runs entirely in your browser.
- Affine Cipher Encoder & Decoder Encrypt and decrypt the ax+b affine cipher with live modular-inverse check, browser-only
- Age Calculator Calculate your exact age — years, months, days, hours. Compare two dates or count to a future date.