Age Difference Calculator

Compare two dates of birth and see the age gap in years, months, and days, plus the total days between them. See at a glance who is older.

Last updated: 17 November 2026.

1

First person

VS
2

Second person

The calculator runs fully in your browser. Nothing you type is uploaded or stored.

What is an age difference calculator

An age difference calculator compares two dates of birth and tells you the gap between them in years, months, and days. Type in the two birthdays, and it shows a plain answer such as 10 years, 5 months, and 14 days, along with the total number of days between the two dates. It also says which person is older.

The question comes up more often than you might think. Parents compare the ages of two children, couples check the gap between them, and friends settle a friendly debate about who is older. In each case the answer is simple to state but awkward to work out by hand, because months have different lengths and leap years add an extra day.

This tool takes any two dates, not only birthdays. You can compare two wedding dates, two job start dates, or a birth date and today. The order does not matter, because the calculator always counts from the earlier date to the later one.

How the age gap is worked out

The calculator counts full years first, then full months, then the days that are left. Take 1 January 1990 and 15 June 2000 as an example. Counting full years from 1 January 1990 reaches 1 January 2000, which is 10 years. Counting full months from there reaches 1 June 2000, which is 5 months. The days left from 1 June to 15 June are 14 days. So the answer is 10 years, 5 months, and 14 days.

The tricky part is borrowing. If the later day of the month is smaller than the earlier one, the calculator borrows days from the month before. From 20 March to 10 May is 1 month and 20 days, not 2 months minus 10 days. The same rule applies to months: if the later month is smaller than the earlier month, the calculator borrows a year.

The total days figure is simpler. It is the number of days between the two dates, counted one by one on the real calendar, with leap days included. The gap from 1 January 1990 to 15 June 2000 is 3,818 days.

How to use this calculator

Enter the first date of birth in the left card and the second date of birth in the right card. You can type the date or pick it from the calendar that appears when you click the field. Then press Compare ages. The result appears below, with the gap in years, months, and days, the total days, and a line that says who is older and by how much.

If you entered the dates the wrong way round, press Swap dates to switch them. The answer stays the same, but the older line will name the other person. Press Clear to empty both fields and start again. The tool checks your entries first, so a missing date shows a clear message instead of a wrong answer.

To compare a birthday with today, put the birth date in one card and today's date in the other. The result is the person's exact age. If you only need one person's age and want extra detail such as the next birthday, the age calculator on this site shows that as well.

Leap years and why the total days matter

A year is not always 365 days. Every four years, February gains a 29th day, and that leap day changes day counts. A gap of 10 years that crosses three leap days is 3,653 days, while one that crosses two is 3,652 days. The difference is small, but it matters when a form or a record needs an exact count. This calculator uses the real calendar, so leap days are counted correctly.

Months are uneven too. January has 31 days, February has 28 or 29, and April has 30. That is why a gap of one month can mean 28, 29, 30, or 31 days, depending on which month it is. The years, months, and days answer follows the calendar, so a month always means a full calendar month, not a fixed 30 days.

Use the years, months, and days answer when you talk about the gap, and use the total days answer when you need an exact count. For the days left until an event, the date calculator gives the same kind of day count with an add and subtract mode as well.

Everyday uses for an age gap calculator

Families use it the most. Parents check the gap between two children to plan school years, and grandparents compare the ages of grandchildren born close together. Couples use it out of curiosity, and it often surprises them: a gap that feels like two years can turn out to be 1 year and 11 months, or 2 years and 1 month, depending on the birthdays.

It is also handy for records and forms. A school may ask for the exact age gap between twins for a class list, and a club may need it for an age group check. Pet owners use it too, comparing a pet's birth date with today to see the age in years and months.

Frequently asked questions

How is the age difference worked out?

The calculator counts full years first, then full months, then the days that are left. For example, from 1 January 1990 to 15 June 2000 is 10 full years to 1 January 2000, then 5 full months to 1 June 2000, then 14 days to 15 June 2000. The answer is 10 years, 5 months, and 14 days.

What does the total days figure mean?

Total days is the same gap counted in days only, with no years or months. The gap from 1 January 1990 to 15 June 2000 is 3,818 days. It is useful when you need an exact day count, for example for a form, a record, or a countdown.

Can I compare any two dates, not just birthdays?

Yes. The calculator works with any two dates, such as two wedding dates, two job start dates, or a birth date and today. The older date is always treated as the starting point, so the order you enter them in does not change the answer.

Does it handle leap years?

Yes. The calculation uses the real calendar, so leap years and months of different lengths are handled correctly. A gap that crosses 29 February counts that extra day, and a gap that ends in a short month borrows days from the month before it.

Is my data sent anywhere?

No. The calculator runs fully in your browser with plain JavaScript. The dates you type are never uploaded, never sent to a server, and never stored. You can close the page and nothing about your dates remains.