Statistics Blog > Same Birthday Odds

It stands to reason that same birthday odds for one person meeting another are 1/365 (365 days in the year and your birthday is on one of them).

But consider this: If you get a group of 30 people together, two of them will almost definitely have the same birthday. This blew my mind when I was a student.

There were 30 students in my undergrad statistics class and the professor said the odds of two of us having the same birthday were very high. In fact, two people in the class *did* have the same birthday. This didn’t seem to make sense to me, as there are 365 days in a year.

### My Initial (Incorrect) Reasoning

The odds are 1/365 that I will meet another person with the same birthday. But we’re not talking about *just* me in a class. We’re talking about every student having those odds. It’s like if I had a 1/10 chance of winning the lottery and I meet another person who also has a 1/10 chance of winning the lottery, then combined we have a 2/10 chance of winning the lottery. The odds of a “coincidence” increases with each person:

Me meeting a person with the same birthday: 1/365

Me and one other friend meeting someone with the same birthday: 1/(365/2) = 183

Three of us meeting someone with the same birthday: 1/(365/3) = 1/122

…

Twenty nine of us meeting someone with the same birthday: 1/12.

Those are pretty good odds, but not high enough to account for all those coincidences. That left me with a peculiar puzzle. The odds are actually **much **higher (over 100 percent for a class of 30).

The reason takes into account all of the possible **combinations**.

### Why the Odds are Actually Much Higher!

One person has a 1/365 chance of meeting someone with the same birthday.

Two people have a 1/183 chance of meeting someone with the same birthday. But! Those two people might also have the same birthday, right, so you have to add odds of 1/365 for that. The odds become 1/365 + 1/182.5 = 0.008, or .8 percent.

Four people (lets call them ABCD) have a 1/91 chance, but there are 6 possible combinations (AB AC AD BD BC CD) so the probability becomes 1/91 + 6/365…and so on.

You can see how it isn’t quite as easy as just x/365!

### An Easier Way to Calculate Same Birthday Odds!

If there are 30 students in a class, there are 435 ways two students can be paired. The odds of a “match” become 1/12 + 435/365…which is much greater than 100 percent.

Seeing as the odds are 1/365 that any two students will match birthdays and there are 3 possible matches, it’s no surprise that two of those students share the same birthday.

(Use the combinations calculator to figure the combinations out. It will also list all the possible name combinations if you really want to!).

## Should I Perform This Experiment in Class?

I’ll be the first to admit I haven’t used this in class for the main reason that with 25 students in a class, the odds are a bit over 50/50 that this experiment will work. A second reason is that **the above math is over simplified to be somewhat understandable**. Even third or fourth year math majors will struggle a bit with the “true” probabilities behind why this works. Figuring out same birthday odds is very complex for many reasons including:

- More people are born weekdays than weekends; mostly due to C-sections and induced births happening during the week, when doctors prefer to work.
- Seasonal trends mean that more people are born in the summer than the winter.

Figuring out the true probabilities involves Bayesian logic; hop over to this Stanford University page for a more detailed explanation on Bayesian logic and same birthday odds.

------------------------------------------------------------------------------If you prefer an online interactive environment to learn R and statistics, this *free R Tutorial by Datacamp* is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try *this Statistics with R track*.

*Facebook page*and I'll do my best to help!

Brilliant article. What i don´t understand is, how can the odds be “over 100 percent for a class of 30”? I thought it is impossible to get odds over 100 percent. At least this is what my teachers told me but they might be wrong.

I’m 1000 percent certain your teacher was wrong ;)

Just kidding. Your teacher is actually *technically* right. In statistics, the maximum probability IS 100 percent. But in “real life” we can be more than 100 percent certain about something, right? That’s one of the reasons the math behind this is mind boggling!

What a brother and sister born the same day two years apart

The odds of two people being born on the same day are 1/365. Let’s say brother is born on Jan 1st. Sister can come along on that day…or one of 364 others.

A friend of mine and I share the same birthday to the year and then we had our boys on the exact date! What are the odds of that?

I also had my son on my birthday ;)

The question you are really asking is what are the odds of four people sharing the same birthday, or 1*1/365^3. That’s = .00000002 Or, “pretty small.” :)

Just curious about the odds of someone sharing a birthday with thier maternal Grandmother AND paternal Grandfather. Any thoughts on that?

Wouldn’t it be just the same as three people sharing the same birthday? After all, the births of each person are independent.

I met someone at school who shares the same first name as I do as well as the same birthday, October 3rd. Was just curious what the odds are of that.

You would have to know the ratio of how many Andrews there are in the U.S., out of all other names. If you can find that out, you can figure out the odds.

There is one major flaw in your equation. The odds of meeting someone with the same birthday as you is not 1/365 because far more people are born in specific times of the year than other times. So the chances vary greatly depending on your exact birthday.

Oops my bad, I did not read the last part that addresses that very thing.