Home › Fun & Games › Birthday Paradox Calculator

Birthday Paradox Calculator

In a room of just 23 people there is a better than even chance that two share a birthday. Enter a group size to see the exact probability, the chance that someone shares your own birthday, and how many people you need to reach any target probability.

Last updated:

365 ignores 29 February; use 366 to include it, or any number for the general matching problem.

%

Shows how many people you need to reach this chance.

Enter your values to see the result.
Advertisement
Advertisement

How to use the Birthday Paradox Calculator

  1. Enter the group size, for example 23 or the size of a class.
  2. Keep 365 days or change it for leap years or other matching problems.
  3. Optionally set a target probability to see how many people are needed.
  4. Read the probability and compare it with the chance of matching your own birthday.
  5. Explore the chart and table to see how fast the probability grows.

Birthday problem formula

For n people and d equally likely birthdays (d = 365):

  • P(all different) = d! ÷ ((d − n)! × dⁿ) = ∏i=0n−1 (d − i)/d
  • P(at least one shared birthday) = 1 − P(all different)
  • P(someone shares a given birthday) = 1 − ((d − 1)/d)n−1
  • Quick approximation: P(shared) ≈ 1 − e−n(n−1)/(2d)

Shared-birthday probabilities (365 days)

PeopleAt least two shareSomeone shares yours
52.71%1.09%
1011.69%2.44%
2041.14%5.08%
2350.73%5.86%
3070.63%7.65%
4089.12%10.15%
5097.04%12.58%
5799.01%14.24%
7099.92%17.25%
10099.99997%23.78%

Frequently asked questions

What is the birthday paradox?

It is the surprising fact that in a group of only 23 people the probability that at least two share a birthday is about 50.7%. It is not a true paradox, just counter-intuitive: 23 people form 253 pairs, and each pair is a chance for a match.

How is the probability calculated?

First find the chance that all birthdays are different: 365/365 × 364/365 × … × (365 − n + 1)/365. The chance of at least one shared birthday is 1 minus that product. For 23 people this gives 1 − 0.4927 = 0.5073.

How many people do you need for a 99% chance?

With 365 equally likely birthdays you need 57 people for a 99% chance and 70 people for about 99.9%. For a 50% chance you need 23 people, and with 366 or more people a shared birthday is certain (the pigeonhole principle).

Why is the chance of someone sharing MY birthday so much lower?

Matching a specific day is a much harder target. The chance that at least one of n − 1 other people has your birthday is 1 − (364/365)^(n−1). You would need 253 other people to reach 50%.

Are birthdays really equally likely?

Not exactly: real birth rates vary by season and day of the week, and 29 February is rarer. Uneven birthdays actually make a shared birthday slightly more likely, so the standard calculation is a slight underestimate.

Where else is the birthday problem used?

The same math explains hash collisions in computer science (the birthday attack), duplicate random IDs, and coincidences in lotteries. Change the number of days to model any situation where n items are spread randomly over d equally likely slots.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Probability CalculatorFind and, or, not, conditional and at-least-once probabilities from P(A) and P(B).Dice Probability CalculatorOdds of rolling a sum (exactly, at least, at most) with any dice, plus the full distribution.Coin FlipFlip a coin online: heads or tails, multiple coins and stats.Half Birthday CalculatorFind your half birthday date, the countdown to it and your age in halves.Pi Digits CalculatorCalculate π to up to 100,000 digits, find any number or your birthday in pi, and download it.Fortune Cookie GeneratorCrack a virtual fortune cookie for an original fortune, lucky numbers and a daily pick.Never Have I Ever QuestionsClean and party never have I ever questions with a built-in point counter for players.Username GeneratorGenerate cool usernames and gamertags by style, fitted to each platform's rules.Magic 8 BallAsk a yes-or-no question, shake the ball and get one of the 20 classic answers.Fantasy Creature GeneratorInvent original fantasy creatures with a name, body, powers, habits, weakness and danger level.Age on Other PlanetsSee how old you are on Mars, Jupiter and every other planet, plus your next birthdays.Rock Paper ScissorsPlay rock paper scissors vs the computer in best-of matches, with stats and a lizard-Spock mode.Dots and BoxesPlay Dots and Boxes online vs a smart computer or a friend, on boards from 3×3 to 8×8.Life in WeeksSee your life as a grid of weeks: weeks lived, weeks left, milestones and a printable poster.Baby Eye Color CalculatorOdds of brown, green or blue eyes for your baby from parents' and grandparents' eye colors.Chinese Gender PredictorBoy or girl by the traditional Chinese chart: lunar age and lunar month worked out for you.Collatz Conjecture CalculatorSee the full 3n + 1 sequence for any number: steps, peak value and a hailstone chart.Countries Visited MapClick the countries you have been to on a world map, see your % of the world and save a PNG.Height Comparison ChartCompare heights side by side with to-scale silhouettes in ft/in or cm, then export a PNG.Speedcube TimerSpeedcubing timer with 2x2–7x7 scrambles, WCA inspection, ao5/ao12 stats and saved history.Air HockeyPlay air hockey online vs the computer or a friend on one screen. Real puck physics, first to 7.Anniversary Gift by YearTraditional and modern anniversary gifts, gemstone, flower and color for any year, with ideas.Baby Name Meaning FinderLook up what 500+ baby names mean, their origin, gender and variants, or search by meaning.Biorhythm CalculatorPhysical, emotional and intellectual biorhythm cycles for any date, with a 30-day chart.Brain TeasersLogic, lateral-thinking and math brain teasers with hints and full solutions, including a kids level.Crazy EightsPlay Crazy Eights vs 1-3 computer players: match suit or rank, 8s are wild, score to 100.CribbagePlay Cribbage vs the computer with automatic pegging, hand and crib scoring on an animated board.Darts ScoreboardScore 301, 501, 701 and Cricket for 1-4 players with checkout hints, averages and undo.Dog Breed SelectorAnswer 8 quick questions about your home and lifestyle to get ranked dog breed matches.Golf ScorecardDigital 9 or 18 hole golf scorecard for up to 6 players: putts, fairways, GIR, net and Stableford.HIIT Workout GeneratorPick time, equipment and intensity to get HIIT rounds with a built-in work/rest timer and audio cues.Letter from Santa GeneratorMake a personalized, printable letter from Santa with your child's name, good deeds and wish.Find the Odd Emoji OutSpot the one different emoji in a growing grid before the clock runs out.Online ScreensaverFull-screen screensavers in your browser: starfield, pipes, aquarium, matrix rain, bouncing logo and clock.Optical IllusionsInteractive optical illusions with a reveal switch that shows the trick and explains it.Party SoundboardPlay applause, drumroll, air horn, crickets, rimshot, ta-da and more with one tap or key.Pickleball Score KeeperKeep pickleball score with server number, side-outs, called score (4-2-1) and win by 2.Round Robin GeneratorMake a round robin schedule for any league: rounds, home/away, byes, double round, print or CSV.This or That QuestionsRapid either/or questions for kids, couples, work, food and more, with a group tally mode.Virtual FireplaceFull-screen animated fireplace with crackling fire sounds, flame colors, intensity and a sleep timer.Scavenger Hunt GeneratorMake printable scavenger hunt lists for indoors, outdoors, kids, road trips and photo hunts.
See all 37 Party & Fun Tools →