How many years are there between two dates? This calculator gives the exact answer in years, months and days, plus the same span in decimal years, total months and total days. Use it for work anniversaries, years of service, how long you have lived somewhere, or any other long stretch of time.
How to use the calculator
- Pick the start date.
- Pick the end date. It is today by default.
- Press Calculate years.
How the difference is calculated
Years, months and days: the calculator counts full years from the start date, then full months, then the remaining days. If the start day does not exist in a shorter month (for example the 31st), that month ends on its last day before the remaining days are counted.
Decimal years: the total number of days divided by 365.2425, the average length of a year in the Gregorian calendar, rounded to two decimal places.
Total months and days: full months between the dates, and every calendar day between them, with leap days included.
Example
Start: September 1, 2001. End: November 7, 2026.
- 25 years, 2 months, 6 days
- 25.18 years
- 302 months
- 9,198 days
Common uses
| Use | Start date | End date |
|---|---|---|
| Years of service | First day at work | Today or last day |
| Relationship anniversary | Date you met or married | Today |
| Time in a home | Move-in date | Today or move-out date |
| Age of a building or business | Opening date | Today |
For a person’s age, the age calculator adds extras like your next birthday. For shorter spans, try the weeks between dates calculator.
Frequently asked questions
Why use 365.2425 days for a year?
It is the average length of a Gregorian calendar year once leap years are included, so decimal years stay accurate over long periods.
Does the order of the dates matter?
No. If the end date is earlier, the calculator measures the gap the other way round.
Are leap years included?
Yes. Every February 29 between the two dates is counted.
Can I use dates far in the past?
Yes, any date from 1900 to 2100.
Is my data saved?
No. The calculation happens in your browser.
