Month Calculator | Month Counter

Created by Tibor Pál, PhD candidate
Reviewed by Dominik Czernia, PhD and Jack Bowater
Last updated: Jan 06, 2023

This month calculator, or month counter, is a simple tool to compute the precise number of months between two given dates. In case if the number of months between the two dates is incomplete, the number of days is given instead.

So if you would like to know how many months are between two dates, you are in the right place!

How to use the month calculator? - how many months between two dates?

After entering the start date and the end date, the month calculator will return the number of months and any remaining days.

An essential feature of the calculator is that it takes into account the precise number of days of all of the months, including the effect of leap years.

What is a leap year?

Do you know anyone who has a birthday on the 29th February? If you do, or if by chance you are the "lucky person" in question, you must know what a leap year is.

A leap year (also known as an intercalary year or bissextile year) is a calendar year that has one extra day added to keep the calendar year harmonized with the astronomical year or seasonal year.

Since the complete orbit of the Earth around the Sun takes approximately 365 days, 5 hours, 48 minutes, 45 seconds, a calendar that has only whole days in it will drift over some time. By adding (or intercalating with a technical terminology) an extra day, the difference can be eliminated. A year that is not a leap year is a common year.

Want to find out more? Why don't you check the calendar calculator or the date to date calculator? 📅

When is a leap year?

So when is leap year? In the Gregorian calendar, most years that are divisible by four are leap years. In each leap year, the month of February has 29 days instead of 28. The extra day every four years compensates for the fact that the solar year is lightly longer than 365 days. The duration of a solar year is slightly less than 365.25 days (or, more precisely, it is 365.24219 days long).

However, we must still do some further correction. If a year is exactly divisible by four, it is a leap year, except for years that are precisely divisible by 100. The exceptions are years that are exactly divisible by 400. For instance, the years 1700, 1800, and 1900 are common years, but the years 1600 and 2000 are leap years.

Translating all of the above into an algorithm, which is applied in this calculator as well, the following conditions are required to determine if a year is a leap years:

if (year is not divisible by 4) then (it is a common year)
else if (year is not divisible by 100) then (it is a leap year)
else if (year is not divisible by 400) then (it is a common year)
else (it is a leap year)

Why don't you also check the months to years calculator?

Tibor Pál, PhD candidate
Starting date
Ending date
The number of full month(s) between the chosen dates is precisely 12 month(s).
Check out 29 similar time and date calculators ⏳
8-hour shiftAdd timeAge… 26 more
People also viewed…


Discount calculator uses a product's original price and discount percentage to find the final price and the amount you save.

Plant spacing

Planning out your garden? Try the plant spacing calculator.

Reading challenge

The reading challenge calculator is a handy tool for all book lovers. With its help, you can easily check how many books you'll be able to read in a given period of time, as well as if you'll be able to complete a certain reading challenge. Use it to plan your reading journey ahead!

Sofa size

This sofa size calculator will help you to find the correct size sofa to suit your living room.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background