Years Between Dates Calculator

Count complete years between two dates by anniversary, with the decimal equivalent alongside.

Years
Adjust the inputs

Your result updates live as you type.

A year between two dates means one of two things, and mixing them up is where anniversary arithmetic goes wrong. The complete-years figure counts how many anniversaries of the first date have actually passed, which is what service length, warranty cover and qualifying periods use. The decimal figure divides the real day count by the average year length so the span can be plotted or compared.

Between 30 September 1999 and 9 August 2026 exactly 26 anniversaries have passed, with 10 months and 10 days left over. The same span as a decimal is 26.86 years, and the two numbers will never agree except on an exact anniversary. Neither is wrong; they answer different questions.

Anniversaries are found by stepping through the calendar rather than dividing, so a 29 February start date clamps to 28 February in common years instead of drifting into March. That keeps long service dates and policy renewals on the day they were written.

The formula

Complete years = number of anniversaries of A that fall on or before B
A
The earlier date
B
The later date
Y
Complete years — anniversaries passed
ΔD
Total elapsed days across the span

How it works, step by step

  1. Enter the earlier date.
  2. Enter the later date.
  3. The gauge shows the span as decimal years.
  4. The breakdown gives complete years, the next anniversary and the totals.

Worked examples

30 September 1999 to 9 August 2026

26 anniversaries have passed, so the complete-years answer is 26. The decimal figure is 26.86 years because a further 10 months and 10 days have elapsed. The next anniversary falls on Wednesday 30 September 2026.

A leap-day start date

From 29 February 2016 to 28 February 2026 is 10 complete years, because the anniversary clamps back to 28 February in common years. The real day count is 3,652 days.

How to read your score

0–1Under a yearNo anniversary has passed yet.
1–5One to five yearsShort-to-medium term; one leap day is likely.
5–25Five to twenty-five yearsLong enough for the decimal and anniversary counts to diverge.
25–—Over twenty-five yearsA generational span.

Frequently asked questions

Why does the decimal not match the whole-year count?

Because the decimal includes the part-year you are partway through. It divides real elapsed days by 365.2425, the average Gregorian year, so it only lines up with the whole count on an exact anniversary.

Which figure should a contract use?

Almost always the complete-years count. Service length, guarantees and qualifying periods are written against anniversaries of a start date, not against a number of days.

How are anniversaries found?

By adding twelve months at a time through the real calendar and clamping to the end of a short month. No division by 365 or 365.25 is involved, so the answer cannot drift.

Is 365.2425 the right average?

It is the mean Gregorian year: 400 years contain 97 leap days, so the average is 365.2425 days. Over four centuries that is 146,097 days in total.

Years between reference

Span from 30 September 1999 to a range of later dates
Later dateComplete yearsDecimal yearsTotal days
30 September 20045y 0m 0d5.001,827
29 September 20099y 11m 30d10.003,652
1 October 201415y 0m 1d15.005,480
30 September 201920y 0m 0d20.007,305
29 February 202424y 5m 0d24.428,918
9 August 202626y 10m 10d26.869,810

The 2009 and 2014 rows sit a day either side of the anniversary, which changes the whole-year count.

Related calculators