Age Difference Calculator

Enter two dates of birth to see exactly how far apart two people are in age, and who is older.

First person’s date of birth
Second person’s date of birth

Age difference

Enter both dates of birth and select Compare ages.

How the age gap is calculated

How to use the age difference calculator

  1. Enter the first person’s date of birth: month, day and four-digit year.
  2. Enter the second person’s date of birth. The order does not matter.
  3. Select Compare ages to see the gap in years, months and days, the same gap in days, weeks and months, and both people’s ages today.

The result answers “how much older is one person than the other?”: it names the older person and gives the exact age gap between the two people.

How the age gap is calculated

The calculator starts from the earlier date of birth and counts forward to the later one: first the complete years, then the complete months, then the remaining days. It uses real calendar months, so a gap that spans February is counted with February’s actual length. When the older person was born on a day that a shorter month does not have, such as the 31st, that month is complete on its last day, the same rule used by the age calculator.

The gap in days is an exact count of calendar days between the two birth dates. It is the most precise way to state an age difference, and it is the same number you would get from the days between dates calculator.

Worked examples

Age gaps calculated with the same code as the calculator
First personSecond personAge differenceIn days
March 15, 1990November 2, 19933 years, 7 months and 18 days1,328 days
January 31, 1985February 28, 19850 years, 1 month and 0 days28 days
February 28, 1999February 29, 20001 year, 0 months and 1 day366 days
July 4, 1962July 4, 198826 years, 0 months and 0 days9,497 days

Why two people are sometimes one more year apart

The gap between two dates of birth never changes: both people age at the same rate. What changes during the year is the difference between their ages in whole years. Suppose one person was born in March 1990 and the other in November 1993, a gap of 3 years and about 7½ months. Between the older person’s birthday in March and the younger person’s birthday in November, their ages differ by 4. For the rest of the year, they differ by 3. The result shows this as “3 years for part of each year and 4 years for the rest”.

Comparing more than two people

To compare a group, take the oldest person as the reference and compare each other person with them one at a time. If you only know someone’s age and not their date of birth, the birth year calculator gives the range of dates they could have been born. To see which named generation each person belongs to, use the generation calculator.

Frequently asked questions

Does it matter which date I enter first?

No. The calculator always measures from the earlier date of birth to the later one and tells you which person is older.

Is the age difference the same every year?

Yes. The exact gap in years, months and days, and in days, is fixed. Only the difference between the two people’s ages in whole years changes, between their two birthdays each year.

What if both people were born on the same day?

Then there is no age difference. The calculator says so and shows the age they share today.

How are February 29 birthdays handled?

A February 29 date of birth is treated like any other date. If one person was born on February 29, the gap is counted on the real calendar, using February 28 as the end of February in years without a leap day.