Skip to main content
← Back to Blog
ProbabilityStage 5Students

The Birthday Paradox: Why 23 People Mean a 50% Chance

MMathyard Team·22 May 2026·2 min read

Ever found yourself at a party where someone jokes that with enough people, two of them must share a birthday? Counterintuitively, you only need 23 people for better than a 50% chance. This quirky result, known as the Birthday Paradox, shows how our gut feelings about randomness can steer us wildly off course. In this post, we’ll dive into why that magic number is so low and how this puzzle reveals deeper truths about probability.

A brief history

The Birthday Paradox first appeared in the 1930s when Austrian mathematician Richard von Mises described the core idea. It stayed under the radar until Martin Gardner popularised it in his 1963 Scientific American column, sparking debates about how badly human intuition can misjudge randomness. To this day, many students guess you’d need well over 100 people to hit a 50% chance—so it still surprises newcomers.

Where you'll see this in real life

• Cryptography and birthday attacks: Encryption systems often use hash functions to turn data into short digital fingerprints. Thanks to the Birthday Paradox, attackers need only around 2^(n/2) tries to find two inputs hashing to the same value—a method called a birthday attack. • Computer networking: Peer-to-peer systems assign random IDs to nodes. Collisions in those IDs happen sooner than you’d expect, causing routing quirks and forcing network engineers to plan for them. • Secret Santa and raffles: When you shuffle names or tickets, duplicates can sneak in with fewer entries than you think. The Birthday Paradox helps you estimate how big your pool can get before repeats become likely. • Data deduplication: Cleaning up contact lists, photo libraries or database records relies on matching fields. The chance of accidental duplicates follows the same maths, guiding tools that spot and merge collisions.

A common misconception

Most people misinterpret the paradox as the chance of someone matching your birthday in a room of 23—but that probability is only about 6.3%. The real paradox measures the chance that any two people share a birthday, not you in particular. It’s a subtle but crucial distinction that shows why wording matters when you talk about probability.


Ready to practise?

Turn this idea into a short Mathyard worksheet with instant questions and worked solutions.

Generate a worksheet on this topic

Share this article

FacebookShare
M

Mathyard Team

The Mathyard team builds tools to help students and teachers get more out of maths practice.