Age difference calculator

Enter two birth dates. Our calculator shows the exact age difference between them. See it in years, months, and days. It also totals all days.

Enter both dates of birth.

how to use an age difference calculator

Take the older person’s date of birth. Then count to the younger person’s: complete years first, then complete months, then the remaining days. The gap is fixed for life. People born on 10 March 1985 and 25 July 1990 are 5 years, 4 months and 15 days apart.

Age difference calculator: A scientific calculator displaying numbers on its screen.
How it’s calculated
Gap = whole years, then months, then days from the earlier birth date to the later one. Total days = later date − earlier date.
Data source
Gregorian calendar
Checked by
Yasir Hafeez, founder and editor — how we test
</> Embed this calculator

Free to use on your website, blog or school page. Copy the code and paste it into your page’s HTML.

Age difference calculator

Photo: Michelle-Maria / Pixabay

How the age gap is worked out

The calculator takes the earlier birth date. It counts forward to the later one, in the same way you count an age: whole years, then whole months, then the days left over. Two people born on 10 June 1990 and 25 March 1994 are 3 years, 9 months and 15 days apart.

A laptop, a calculator, and a pen on a wooden surface.

The gap in days is exact. It is also the best way to compare twins born either side of midnight or siblings born years apart. The gap in years as a decimal divides the days by 365.2425, the average length of a Gregorian year.

Does the age gap change?

No. Two people are always the same number of days apart. What changes is how the gap looks in whole years: for part of each year (between the two birthdays) the older person is one year “further ahead” than for the rest of the year.

A mother kissing her young child on the forehead, showing affection.

Who is older, and by what percentage?

The person with the earlier date of birth is older, even if only by a day — twins born either side of midnight have different birthdays. To express the gap as a percentage, divide it by the younger person’s age: a 6-year gap is 20% of a 30-year-old’s age, but only 10% of a 60-year-old’s, which is why the same gap feels smaller as people get older. The ratio of the two ages works the same way: 40 and 30 is a ratio of 1.33, while 70 and 60 is 1.17. For the well-known dating rule of thumb, see half your age plus seven; for children, the sibling age gap calculator.

Wrinkled hands of an elderly person holding a walking stick.

Frequently asked questions

How do I calculate the age difference between two people?

Count from the older person’s birth date to the younger person’s birth date: full years, then full months, then days. The calculator does this exactly.

Can I compare a parent and child?

Yes. Enter any two birth dates, from 1900 to 2100.

Do names get saved?

No. Names and dates stay in your browser and disappear when you close the page.

Sources

Photo of Yasir Hafeez
Written and checked by Yasir Hafeez. Last reviewed October 16, 2026. Results are calculated with fixed rules and tested against an independent date library; see how we check.

More age tools

From the blog