Beginner

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

Age difference
15years

15 yr 2 mo 26 d — 5,566 days total

Complete years apart
15
Remaining months
2
Remaining days
26
Total days apart
5,566
1985-03-202000-06-1515 yr 2 mo 26 dAge gap: older date → younger date
Step by step
  1. 1

    Total days apart

    5,566
    ms gap ÷ 86,400,000 rounded to the nearest whole day.
  2. 2

    Raw year gap

    2000 − 1985 = 15
  3. 3

    Complete years

    15
    Reduced by 1 if the month–day of the later date has not yet passed that of the earlier.
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

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
Diff = calendarDiff(early, late) → years + remaining months + remaining days
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.

APA

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

Chicago

TG we-Calculate Editorial Team. "Age Difference Calculator — Years, Months & Days Apart." TG we-Calculate. 2026. https://we-calculate.com/calculator/age-difference-calculator.

IEEE

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

BibTeX

@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?