Age Difference Calculator — Years, Months & Days Apart
Enter any two dates of birth to find the exact age difference in years, months, days, and total days. Works for people, events, or any two dates.
First date of birth
Second date of birth
15 yr 2 mo 26 d — 5,566 days total
- 1
Total days apart
5,566ms gap ÷ 86,400,000 rounded to the nearest whole day. - 2
Raw year gap
2000 − 1985 = 15 - 3
Complete years
15Reduced by 1 if the month–day of the later date has not yet passed that of the earlier.
How does this calculator work?
Subtract the earlier date from the later one in calendar units: whole years, then remaining months (borrowing a month if needed), then remaining days. A person born 20 March 1985 and one born 15 June 2000 are 15 years, 2 months, and 26 days apart, totalling about 5,565 days.
Formula
How this is calculated
The calculator finds the earlier of the two dates and counts whole calendar units between it and the later date. First, it subtracts the birth years and birth months. If the later day-of-month has not yet reached the earlier day-of-month within the month, it borrows one month and adds the days in the previous month to the day count. If months go negative after that, it borrows one year and adds 12 months. This mirrors the way ages are counted in everyday life: a person born on 20 March 1985 turns 15 on 20 March 2000, not one day earlier.
Total days is calculated from the raw millisecond difference divided by 86,400,000, rounded to the nearest whole day. This is an exact count of calendar days and is not affected by leap years or DST transitions because both dates are parsed as local midnight.
Both dates are treated symmetrically — the calculator automatically detects which is earlier. Dates that fall on the same day return a difference of zero. The timeline bar shows the span from the older date to the younger date visually.
Frequently asked questions
Yes. Because it uses actual calendar dates (not a fixed 365-day year), the day and month breakdown is always accurate. Leap days count normally: someone born on 29 February 1988 and someone born on 1 March 1988 are one day apart, not zero.
Dividing days by 365 or 365.25 gives an average, not the exact calendar age gap. Two people born 366 days apart are exactly 1 year apart in calendar terms regardless of whether a leap year falls in that span. This calculator uses true calendar subtraction so the result always matches a birthday comparison.
Absolutely — enter any two dates to find the gap between them. It works for anniversaries, events, deadlines, or any two calendar dates.
TG we-Calculate Editorial Team. (2026). Age Difference Calculator — Years, Months & Days Apart [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/age-difference-calculator
TG we-Calculate Editorial Team. "Age Difference Calculator — Years, Months & Days Apart." TG we-Calculate. 2026. https://we-calculate.com/calculator/age-difference-calculator.
TG we-Calculate Editorial Team, "Age Difference Calculator — Years, Months & Days Apart," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/age-difference-calculator
@misc{wecalculate_age_difference_calculator, title = {Age Difference Calculator — Years, Months & Days Apart}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/age-difference-calculator}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
