Age difference calculator

Type two dates of birth to find out who is older and by how much. The gap is shown in years, months and days, and also as total months, weeks and days, for couples, siblings, friends or colleagues.

Type dates as YYYY-MM-DD, for example 1990-05-15.
Older personPerson A
Age difference3 years, 3 months, 5 days
Total months (whole)
39
Total weeks (whole)
170
Total days
1,193

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Type the first date of birth as YYYY-MM-DD.
  2. Type the second date of birth.
  3. Read who is older and the gap in years, months and days.

How it works

The calculator takes the earlier date and adds whole months until adding another would pass the later date. Those months give the years and months of the gap; the days between that point and the later date are the days. A month-end birth date is clamped to the last day of a shorter month, so 31 January plus one month is 28 February (29 in a leap year). Total days are the plain difference between the two dates, and total weeks are those days divided by 7, rounded down.

Worked example

Person A was born on 15 May 1990, person B on 20 August 1993. Counting from 15 May 1990, 3 years and 3 months reach 15 August 1993, and 5 days more reach 20 August. The gap is 3 years, 3 months and 5 days. In days: 1,096 days to 15 May 1993 (1992 was a leap year) plus 92 to 15 August plus 5, which is 1,193 days, or 170 whole weeks.

Good to know

  • Only calendar dates are used, so time zones do not change the answer.
  • Two people born on the same day have a gap of zero.
  • For the exact age of one person on a given day, use the age calculator.

Frequently asked questions

How is the age difference calculated?

The earlier birth date is counted forward to the later one in whole months, which become years and months, and the days left over. It is the same rule as in the age calculator.

Does it matter which person I enter first?

No. The calculator orders the two dates itself and tells you whether person A or person B is older.

Why are the total months and the years and months consistent?

Total months are the whole months in the gap, so 3 years and 3 months is 39 months. The extra days are shown separately and are not rounded into a month.

Can I use it for pets or historical figures?

Yes, it works with any two real calendar dates in the same system. It does not convert between human and animal years.

More in Date & time

All tools in this category: Date & time ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.