Omni Calculator logo

Years Between Two Dates Calculator

Created by Steven Wooding
Reviewed by Aleksandra Zając, MD
Last updated: Jan 18, 2024


The years between two dates calculator will help you find the time difference between any two dates in terms of years. Perfect for working out people's ages. And with Omni Calculator's variable unit switcher, you also have the choice of displaying the results in months, days, hours, etc.

Read on to find out about:

  • What is a year, and how is it defined?
  • How to calculate years between two dates.
  • How long is 30 months?
  • How long ago was 2013?

What is a year?

A year is the time it takes for the Earth to complete one complete circuit around the Sun. Unfortunately, the Earth doesn't finish its journey in a whole number of days – very inconvenient.

In days, a year is 365.25 days long. Since we don't have the concept of quarter days on our calendars, we add an extra day in a year, every four years. So over a period of 4 years, the math works out. Well almost. From time to time, we also add leap seconds to keep reality aligned with the calendar.

Since there are 86,400 seconds in a day, the number of seconds in an average year is 31,557,600 seconds (86,400 × 365.25).

How to use the years between two dates calculator

It is really easy to use the years between two dates calculator.

  1. Enter a start date in the calculator's "From" field.
  2. Next, enter the date you want to end on in the "To" field.
  3. You will immediately see the length of time between these two dates in years as a decimal number.
  4. Additionally, you can change the output to other time units, such as months, weeks, and days.

In the years between two dates calculator, the end date is not taken into account by default. Adding it is as simple as clicking the Advanced mode button at the bottom of the calculator and selecting "Yes" to the "Include end date?" field.

Example of calculating the number of years between two dates

To calculate the number of years between two dates in decimal form, first, find the number of days between the dates. Don't forget to include any extra days (i.e., February 29) in leap years between the dates.

Let's take the time between today's date (July 11, 2022) and January 1, 2020. Counting the days on the calendar, there are 922 days between the two dates, including one February 29. To get the number of years, divide this number by 365.25:

922 / 365.25 = 2.524 years

And that's an example of how to calculate the years between two dates.

Other time counter calculators

Other time counting calculators that may be very soon of interest to you are listed below:

FAQ

How long ago was 2013?

9 years. That's assuming the year is still 2022. But it's straightforward to calculate the number of whole years between two dates:

  1. Take the year number of the current date. That's 2022, in this example.
  2. Then take the year number of the date in the past. 2013, in this case.
  3. Subtract 2013 away from 2022.
  4. The result is 9 years.

How long is 30 months?

Two and a half years. By definition, there are 12 months in a year. So you convert a number of months to years, divide the number of months by 12. So in this case, 30/12 = 2.5 years.

Steven Wooding
From
To
Years between
yrs
Check out 32 similar time and date calculators ⏳
8-hour shiftAdd timeAge… 29 more
People also viewed…

Black Friday

How to get best deals on Black Friday? The struggle is real, let us help you with this Black Friday calculator!

Pomodoro technique

End procrastination, and start being productive with our Pomodoro Technique calculator! Learn how to organise your time to get things done!

Sunbathing

Do you always remember to put on sunscreen before going outside? Are you sure that you use enough? The Sunbathing Calculator ☀ will tell you when's the time to go back under an umbrella not to suffer from a sunburn!

Words per minute

If you're wondering how many words you can squeeze into a speech, give this words per minute calculator a try.