Months Between Dates Calculator

Count the months between two dates, in whole, decimal and calendar months.

Last updated 2026-11-28 · How we calculate this

Enter the Dates

Pick any date from January 1, 1900 to December 31, 2200.
Leave as today, or pick a date on or after the start date.

Months Between the Dates

Enter a start date and an end date.

Dates use the Gregorian calendar from 1900 to 2200, in whole days. A month is counted from a date to the same date in the next month; when that date does not exist, as with January 31, the count stops at the last day of the shorter month. Decimal months divide the days by an average month of 30.436875 days, so they can differ slightly from a lender or landlord who uses 30-day months. Check the method in your contract when money depends on it.

Quick Answer

Count whole months from the start date to the same day of each later month, then add the days left over. August 15, 2025 to November 28, 2026 is 15 months and 13 days, about 15.44 months as a decimal, and it touches 16 calendar months.

How to Use This Calculator

Enter a start date and an end date to get the gap in months, kept in months even when it runs past a year, with the days left over. The calculator also gives the same gap as a decimal, the number of calendar months the dates touch, which is how rent, subscriptions and some leases are billed, and the familiar years, months and days. Use it for lease terms, loan or payment plans, a baby's age in months or how long you have been in a job.

  1. Enter the start date.
  2. Leave the end date as today, or pick another date.
  3. Read the months and leftover days.
  4. Check the decimal and calendar-month counts if a form or bill asks for one of those.

The Formula

Months = whole months from the start date to the end date, then the days left over. Decimal months = days ÷ 30.436875. Calendar months touched = end month − start month + 1.

Months are counted on the calendar, not as blocks of days: from the 15th of one month to the 15th of the next is always one month, whether that month has 28 or 31 days. The days left after the last whole month are shown separately. The decimal divides all the days by 365.2425 ÷ 12 = 30.436875, the length of an average Gregorian month. Calendar months touched counts every month the span reaches, from the start month to the end month.

Worked Example

August 15, 2025 to November 28, 2026 is 15 months and 13 days, or 1 year, 3 months and 13 days. That is 470 days, 15.44 months as a decimal, and it touches 16 calendar months, from August 2025 to November 2026.

January 15 to March 3, 2026 is only 1 month and 16 days, but it touches 3 calendar months: January, February and March. A service billed per calendar month would charge for all three.

January 31 to February 28, 2027 counts as 1 whole month and 0 days, because February has no 31st and the month ends on its last day. That is 28 days, or 0.92 months as a decimal.

Frequently Asked Questions

How long is a month in this count?

A whole month runs from a date to the same date in the next month, so it can be 28, 29, 30 or 31 days long. That is how people usually count lease terms or months of service. Only the decimal line uses a fixed length, the average Gregorian month of 30.436875 days.

What happens when I start on January 31?

The next month has no 31st, so one month after January 31 is the last day of February: February 28, 2027, or February 29, 2028. From January 31 to February 28, 2027 is therefore 1 month and 0 days. Some systems would say 28 days instead, which is why contracts often name a billing day.

Whole months or calendar months: which do I need for rent or billing?

If you pay from a start date, such as the 15th of each month, count whole months. If you pay for each calendar month you use any part of, count calendar months touched. January 15 to March 3, 2026 is 1 month and 16 days in whole months, but 3 calendar months.

How is the decimal worked out?

The total days are divided by 30.436875, the average length of a month over the 400-year Gregorian cycle (365.2425 days ÷ 12). For August 15, 2025 to November 28, 2026 that is 470 ÷ 30.436875 = 15.44 months. A 30-day month would give 15.67, so check which one a form expects.

How do I count months between dates in Excel or Google Sheets?

Use =DATEDIF(start, end, "m") for whole months and =DATEDIF(start, end, "md") for the days left over. Microsoft warns that the "md" option can give wrong answers in some cases, so check it against this calculator when the start date is near the end of a month.

Does the end date count?

No. The calculator counts from the start date up to the end date, as most date tools do, so June 1 to July 1 is exactly 1 month. If the last day is part of the period, such as a stay that runs through June 30, set the end date to the day after.

Sources: Microsoft Support, DATEDIF function; U.S. Naval Observatory, Leap Years