About the Months Between Dates Calculator
FreeToolr's Months Between Dates Calculator measures the time between two calendar dates. Enter a start date and an end date to see complete months, remaining days, and the total day count. It helps with tenancy periods, employment dates, project schedules, subscription terms, age checks, and contract planning. The calculator follows a clear calendar-month method. If a target month lacks the original day, it uses that month's final day. For example, January 31 moves to February 28 in a non-leap year. The tool runs in your browser, so your dates are not uploaded to FreeToolr. It gives more context than a simple month subtraction by showing the leftover days and explaining its counting rule. For legal, loan, rent, or payroll records, compare the result with the document's stated date method.
How to use it
- 1Enter the starting date.
- 2Enter the ending date.
- 3Review the complete months and remaining days.
- 4Check the total days when you need an exact elapsed-day count.
Worked example
Enter January 31, 2025 as the start date and March 3, 2025 as the end date. The result is 1 complete month and 3 remaining days, or 31 total days. February 28 is used as the February anchor because February 2025 has no January 31.
The formula
First calculate raw_months = 12 x (end year - start year) + (end month - start month)Add raw_months calendar months to the start dateIf the target month lacks that day, use its last dayIf the anchor falls after the end date, subtract one monthThe remaining days equal end date minus the adjusted anchor dateThis returns complete calendar months and leftover days, not a decimal based on an assumed 30-day monthSource: ISO 8601 date and time formatMicrosoft Excel date difference guidance. Last checked 4 November 2026.
What it is good for
- Shows complete months and leftover days.
- Handles different month lengths and leap years.
- Keeps date processing in your browser.
- A month is not a fixed number of days, so other calculators may show different decimal results.
- Contracts and financial records may use inclusive dates, 30/360 rules, or another stated convention.
Questions people ask
How many months are between two dates?
The answer depends on the method. This calculator returns complete calendar months plus remaining days, instead of treating every month as 30 days.
How do I calculate complete months between dates?
Find the calendar-month difference, then check the matching day in the ending month. If that date comes after the end date, reduce the month count by one. Count the days left after the final month anchor.
Is January 31 to February 28 one month?
Under end-of-month clamping, yes. January 31 shifts to February 28 because February has no day 31. A day-based or decimal-month method may report a different value.
Are partial months included?
Partial months appear as remaining days. For example, January 15 to March 10 gives 1 complete month and a remaining day period, rather than rounding to two months.
Is one month always 30 days?
No. Gregorian months have 28, 29, 30, or 31 days. A 30-day month is a separate convention used in some financial and contractual calculations.
Should I include the start or end date?
This calculator measures the elapsed period from the start date to the end date. Many date systems include the start boundary and exclude the end boundary, but your contract or policy may state another rule.
What Excel formula calculates complete months?
Microsoft Excel uses =DATEDIF(start_date,end_date,"m") for complete months. Microsoft also warns that DATEDIF has limitations in some cases, so check the dates and method before using it for formal records.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.