Home · Date & Time · Date Differences · Years Between Two Dates Calculator

Years Between Two Dates Calculator

Count the whole years between two dates — anniversaries reached — with total months, total days and a full breakdown.

Your figures

Example result — edit the figures to make it yours

6 years

Whole years between the dates

Total months78
Total days2,380
Calendar breakdown6 years, 6 months, 5 days

What this calculator does

Count the whole years between two dates — anniversaries reached — with total months, total days and a full breakdown. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Whole years = anniversaries of the start date that fall on or before the end date

A whole year is counted each time the anniversary of the start date is reached; a Feb 29 start counts its anniversary on Feb 28 in common years.

Dates use the proleptic Gregorian calendar: a year is a leap year when divisible by 4, except century years not divisible by 400.

Worked example

With the example inputs this page opens with, the result is 6 years — whole years between the dates.

Quick reference

Quick reference — the worked example in full
FigureValue
Whole years between the dates6 years
Total months78
Total days2,380
Calendar breakdown6 years, 6 months, 5 days

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

Is 2020-03-10 to 2026-03-09 six whole years?

No — it is five whole years plus almost a sixth, because the sixth anniversary on 2026-03-10 has not been reached yet.

How is a Feb 29 start date treated?

In common years its anniversary is taken as Feb 28, so a whole year completes on that date rather than Mar 1.

How does the Years Between Two Dates Calculator work?

Count the whole years between two dates — anniversaries reached — with total months, total days and a full breakdown. Start date · End date → Whole years between. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Years Between Two Dates Calculator need?

Start date · End date → Whole years between. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.