Months Between Dates Calculator

Find how many months there are between two dates, as complete months, months and days, or a decimal figure. You can choose how the end of the month is counted. It runs in your browser.

Dates

How to use the months between dates calculator

  1. Pick a start date and an end date, or press Today to use the current date.
  2. Choose whether the last day of a shorter month completes a month, and whether the end date counts as a day.
  3. Read the complete months, the months and days, and the decimal months.
  4. Check the "how it was counted" line to see the rule that was used.

How months are counted

Starting at the first date, the calculator steps forward one calendar month at a time and keeps going while the next step does not pass the end date. Each step lands on the same day number, so January 15 steps to February 15. The days between the last step and the end date are the leftover days. Decimal months = complete months + leftover days ÷ the length of the month those days fall in.

The end-of-month rule

A step from January 31 has no matching day in February. With the rule on, the step lands on the last day of February, so January 31 to February 28 is 1 month. With it off, the month is not complete until the end day reaches 31, so the same dates give 0 months and 28 days. January 31 to March 1 then gives 1 month, because the short month is only passed on March 1.

Worked examples of months between dates, with the end-of-month rule on
DatesComplete monthsLeftover days
January 15 to April 15, 202730
January 15 to April 20, 202735
January 31 to February 28, 202710
March 10, 2024 to August 10, 2027410

Related tools

For the gap in days, use the days between dates calculator. For tenure, try the length of service calculator, and for a birthday, the age calculator. To find a date a set number of days away, use the add days to date calculator.

See also

Frequently Asked Questions (FAQ)

How many months are there between two dates?

Count the whole calendar months from the start date until the same day number comes round again. From January 15 to April 15 is 3 complete months. Any days after that are shown as leftover days, so January 15 to April 20 is 3 months and 5 days.

What is a complete month?

A complete month is reached when the end date has the same day number as the start date, or a later one. January 15 to February 14 is 0 complete months and 30 days, and February 15 makes it 1 complete month.

How does the end-of-month rule work?

Some months are shorter than others, so the start day may not exist in the end month. With the rule on, the last day of the end month completes the month: January 31 to February 28 counts as 1 month. With it off, the end day must reach the start day number, so the same dates give 0 months and 28 days.

How are decimal months worked out?

The decimal figure is the complete months plus the leftover days divided by the length of the month they fall in. February 1 to February 15 is 14 days of a 28-day month, which gives 0.5 months. The average-month figure instead divides total days by 30.44, so the two can differ slightly.

Should I include the end date?

Leave it off for elapsed time, such as months since a start date. Turn it on when both the first and last day count, such as a lease from January 1 to January 31, which then counts as 1 complete month.

How is this different from the age or length of service calculator?

Those tools show a years, months and days result for a birthday or a job. This one focuses on the total number of months, including totals above 12, plus a decimal figure and an explanation of how the count was made.

What if the end date is before the start date?

The dates are swapped for the count and the page tells you it did so, so the answer is always a positive number of months.

Can I use it for a lease, loan or notice period?

Use it as a quick estimate. Leases, loans, leave and notice periods often follow their own month-counting rules, for example whether the first day counts or how a partial month is charged. Check your contract or local rules before relying on a figure.