Birthday Paradox Calculator
Find the probability that at least two people in a group share the same birthday — or generalize to any number of equally likely categories.
- Probability at least two share a category
- 50.7297%
- Probability everyone is different
- 49.2703%
How it works
The 'birthday paradox' is the surprising fact that it only takes 23 people for there to be better-than-even odds that two of them share a birthday, even though there are 365 days to spread across. It's easiest to compute the complement first: the probability that everyone lands in a different category is (1) × (1 − 1/d) × (1 − 2/d) × ... × (1 − (n−1)/d), for a group of n people and d equally likely categories — the first person's category is free, and each person after that must avoid every category already claimed. The probability of at least one shared category is just 1 minus that product.
That product is computed in log-space (summing log(1 − i/d) terms and exponentiating at the end) so it stays numerically accurate for a large group instead of multiplying many factors that are each individually close to 1.
The 'number of possible categories' field defaults to 365 for the classic birthday version, but the underlying math applies to any set of equally likely categories — the same calculation answers 'what's the chance two people in a group share a favorite of N options' or 'how many random items until two probably collide into the same one of N buckets.' Once the group size exceeds the category count, a shared category is guaranteed outright by the pigeonhole principle, reported directly rather than computed from the product.
FAQ
Why is 50% reached with only 23 people, when there are 365 days?
Because the question isn't 'does someone share my birthday' (which would need a much bigger group) — it's 'do any two people in the room share a birthday with each other.' With 23 people there are 23×22/2 = 253 distinct pairs, and each pair has a small but real chance of matching; summed across that many pairs, the odds cross 50% much sooner than intuition suggests.
What happens if the group is bigger than the number of categories?
A shared category becomes mathematically certain — with 366 people and only 365 possible birthdays, at least two people must share one no matter how they're assigned, by the pigeonhole principle. This calculator reports that case as an exact 100%, not an approximation.
Related calculators
- Percentage Calculator
- Quadratic Equation Solver
- GCD & LCM Calculator
- Circle Area & Circumference Calculator
- Right Triangle Calculator (Pythagorean Theorem)
- Ratio Simplifier
- Exponent & Root Calculator
- Oblique Triangle Solver (Law of Cosines)
- Distance, Midpoint & Slope Calculator
- Permutations & Combinations Calculator (nPr, nCr)
- Arithmetic & Geometric Sequence Calculator
- Regular Polygon Calculator
- Z-Score & Percentile Calculator
- Cubic Equation Solver
- Prime Factorization Calculator
- System of Linear Equations Solver (2 Equations)
- Half-Life Decay Calculator
- Vector Calculator (Dot Product, Cross Product, Angle)
- Ohm's Law Calculator
- Projectile Motion Calculator
- Matrix Determinant & Inverse Calculator (2x2 / 3x3)
- Ideal Gas Law Calculator (PV = nRT)
- Snell's Law Calculator (Refraction Angle)
- Wire Resistance Calculator
- Clock Angle Calculator
- Pythagorean Means Calculator (AM, GM, HM)
- Number Base Converter (Decimal to Binary, Octal, Hex)
- Dice Probability Calculator
- Pythagorean Triple Generator
- Binomial Probability Calculator
- Torque Calculator
- Law of Sines Triangle Solver
- Modular Exponentiation Calculator
- Simple Pendulum Period Calculator
- Kinetic Energy Calculator
- Complex Number Calculator
- Circular Sector & Arc Length Calculator
- System of 3 Linear Equations Solver
- Reynolds Number Calculator
- Coulomb's Law Calculator
- Speed of Sound in Air Calculator
- Thin Lens Equation Calculator
- Centripetal Force Calculator
- Resistors in Series and Parallel Calculator
- RC Circuit Time Constant Calculator
- Escape Velocity Calculator
- Doppler Effect Calculator
- Ellipse Area, Circumference & Eccentricity Calculator
- Hyperbola Calculator
- Hooke's Law Spring Calculator
- Molarity (Molar Concentration) Calculator
- Momentum & Impulse Calculator
- Kepler's Third Law Orbital Period Calculator
- Triangle Area from Coordinates Calculator
- Beer-Lambert Law Absorbance Calculator
- LC Circuit Resonant Frequency Calculator