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:


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
Years between
Check out 32 similar time and date calculators ⏳
8-hour shiftAdd timeAge… 29 more
People also viewed…

Christmas tree

Welcome to the Christmas tree calculator, where you will find out how to decorate your Christmas tree in the best way. Take a look at the perfect Christmas tree formula prepared by math professors and improved by physicists. Plan in advance how many lights and decorations you'll need!

EU to US shoe size converter

This EU to US shoe size calculator is designed to help you to figure out your correct US shoe size 👞.

Hair growth

How does hair grow? How long will it take my hair to grow 2 inches? Find out using this hair growth calculator!

Plastic footprint

Find out how much plastic you use throughout the year with this plastic footprint calculator. Rethink your habits, reduce your plastic waste, and make your life a little greener.