Hootsgo
Published on Hootsgo (https://hootsgo.org)


Happy Birthday

the_reward_thumb.jpgIn this puzzle we are asking how you would find out how many people in a room might share the same birthday. 

There are many people who have the same birthday as you. With only 366 birthdays to go around, and over 6,000,000,000 people in the world, there has to be quite a bit of sharing. But what if you are in a room with a few people? How likely is it that there is at least one shared birthday? How many students are in your class? Are there any shared birthdays? Can you find out this information for other classes in your school?

If you’re in a room with a group of people, check to see if there are any shared birthdays. Go around the room asking the people to say their birthdays and see if there’s a match.

How many people would have to be in a room in order to have a better-than-even chance that at least two people share a birthday? In other words, how many people do you need for the probability of a shared birthday to be greater than 50%? How many people do you need for the probability to be greater than 90%?


This content has been re-published with permission from SEED. Copyright © 2025 Schlumberger Excellence in Education Development (SEED), Inc.

Course: 

  • Math [1]
  • Probability [2]
Result/Solution(s)

Solution: Happy Birthday Math Puzzle

Here are our answers.

One way to solve this is to turn the problem around and think about how likely it is for there to be NO matches in a group of a given size. If there is only one person in a room, there can be no shared birthdays, since there is no one to share with. The probability of not having a match in this case is 1. Events that are certain are said to have a probability of 1. At the other extreme, with 367 people in the room, it is certain that there will be at least one shared birthday, since there aren’t enough birthdays to go around for that many people.

Now imagine that a second person walks into the room. The probability of that person not having the same birthday as the first occupant of the room is 365 / 366, or 0.997. There are 366 possible birthdays, and only one of them is a match.

Now if the first two people in the room have different birthdays and a third person walks in, there are two days used up, so the probability of the third person not sharing a birthday with either roommate is 364 / 366 and the probability of no sharing among the three of them is 1 x 365 / 366 x 364 / 366 = 0.992, which is still over 99%. So with two or three people in the room, there is less than a 1% chance of a shared birthday.

You can continue to calculate the chances of not having a shared birthday for any number of people:

1 x 365 / 366 x 364 / 366 x 363 / 366 x 362 / 366 . . .

Things change quickly as the number of people increases. With 10 people in the room, there is a better than 10% chance of a match. When there are 23 people in a room, the chance of a shared birthday is slightly greater than 50%, and it rises above 90% with 41 people.

Going Further

  1. Can you come up with a different strategy for solving the problem?
  2. Our calculations are based on 366 possible birthdays. One of these, February 29, is special. Would this affect the calculations?
  • Probability puzzle [3]
  • Math Puzzle [4]
Copyright © 2018 Hootsgo. All Rights Reserved. Hootsgo is a registered 501 (c) (3) non-profit organization.
Donated by Dev2Source I.T. Services Ltd.

Source URL: https://hootsgo.org/?q=happy-birthday&qt-quicktabs=0

Links
[1] https://hootsgo.org/?q=taxonomy/term/50
[2] https://hootsgo.org/?q=course/probability
[3] https://hootsgo.org/?q=tags/probability-puzzle
[4] https://hootsgo.org/?q=tags/math-puzzle