Age Difference Calculator

Use this age difference calculator to find the exact gap between two birth dates, or any two dates, in years, months and days.

Inputs
Age difference 3 years, 5 months, 19 days apart
Age difference3 years, 5 months, 19 days
Who is older
OlderFirst person, born Monday, 14 March 1988
YoungerSecond person, born Monday, 2 September 1991
GapFirst person is 3 years, 5 months, 19 days older than Second person
The same gap in other units
Total months41 months and 19 days
Total weeks181 weeks and 0 days
Total days1,267
Total hours30,408
Years as a decimal3.47 years
How it is counted

Whole years and months are counted forward from the earlier date, then the leftover days are added.

When a month is shorter than the starting day, the month end is used, so 31 January plus one month is the last day of February.

Runs locally in your browser

About the Age Difference Calculator

The age difference between two people is the gap between their birth dates, counted in whole years, whole months and leftover days. Enter two dates, with names if you like, and the calculator says who is older and gives the gap three ways: as years, months and days; as total months, weeks, days and hours; and as a decimal number of years. It works for any two dates, not only birthdays, so it also answers how long separates two events or two milestones.

Months are not all the same length, so the counting rule matters. The earlier date is moved forward by whole months, and a day that does not exist in the target month falls back to that month's last day, so 31 January plus one month is the end of February. The days that remain after that are the day count. A 29 February birth is treated as 28 February in years without a leap day, the same rule the Age Calculator uses. The order of the two dates does not matter, because the tool always counts forward from the earlier one.

For the exact age of one person, with a countdown to the next birthday, use the Birthday Calculator. If you only want the days between two dates, with no age framing, the Date Difference Calculator accepts other date formats, and Add or Subtract Time moves a date by a set period. Dates follow the Gregorian calendar throughout and are compared as whole calendar days, so time zones never shift the answer.

How to use

  1. Pick the first and second dates with the date pickers, or type them as YYYY-MM-DD.
  2. Add names if you want the result to read as a sentence about two people.
  3. Read the headline gap, then the totals in months, weeks, days and hours.
  4. Copy the result, or download it as a text file.

Common questions

Does it matter which date I enter first?
No. The calculator sorts the two dates and always counts forward from the earlier one, then tells you which of the two is older.
How are months counted when the day does not exist in the next month?
The month end is used. Adding one month to 31 January lands on 28 or 29 February, and any days after that are counted on top.
How does it treat a 29 February birth?
In years without a leap day it is treated as 28 February when whole years and months are counted. The total days figure is exact either way.
Can I use it for dates that are not birthdays?
Yes. It measures the calendar gap between any two dates from the year 1 to the year 9999, using the Gregorian calendar throughout.
What does the decimal years figure mean?
It is the total days divided by 365.2425, the average length of a Gregorian year. It is handy for a quick comparison but is not a calendar count.