Method
How the months between dates calculator works
The calculator advances complete calendar months from the earlier date without passing the later date, then counts the remaining calendar days.
Counting clock time within a day rather than calendar days? The hours calculator measures the hours and minutes between two times, the time card calculator totals a week of shifts, the add time calculator adds or subtracts durations, and the military time converter switches between 24-hour and AM/PM times. The rest are in the time calculators collection.
Example
Months between dates calculator example
15 January to 15 August is 7 complete months; additional days after 15 August form the remainder.
Rule
Exact rule used by the months between dates calculator
The start date must be on or before the end date. The calculator advances one calendar month at a time from the start without passing the end, then counts leftover calendar days from the last month it reached. A month counts as complete only once the matching day of the month has arrived.
When the start day does not exist in a later month, that month is anchored on its last day. From the 31st, the anchors fall on 28 February and 30 April, which keeps month-end dates behaving consistently rather than skipping a month.
Step by step
Worked through step by step
From 31 January 2026 to 28 February 2026 is 1 complete month and 0 days, because the February anchor is 28 February itself. From 31 January to 31 March is 2 complete months and 0 days.
The in-between case is stranger. From 31 January 2026 to 30 March 2026 the March anchor would be 31 March, which is past the end date, so only 1 month completes. The remainder runs from the 28 February anchor to 30 March, which is 30 days, so the page shows 1 month and 30 days over 58 total days.
Pitfalls
Common mistakes with the months between dates calculator
- Dividing days by 30. The 58-day span above is not 1.93 months; it is one complete month and a 30-day remainder.
- Expecting the remainder to be below 28. After a short February anchor the leftover days can reach 30, as in the example above.
- Entering the dates in reverse. The page treats a start after the end as invalid and asks for a valid range rather than showing a negative duration.
- Reading complete months as a rounded value. A span one day short of a full month shows the lower count and a large day figure.
FAQ
Months between dates calculator FAQ
Why not divide days by 30?
Calendar months vary from 28 to 31 days, so complete-month arithmetic better matches dates.
What happens on the 31st?
Month advancement clamps to the last valid day when needed.
How do I show a span of more than 12 months as years, months and days?
Use the years between dates calculator. It counts complete calendar years first, then the remaining months and days, and also reports the total number of complete months.
What happens if I enter the later date first?
The page treats the range as invalid and asks for valid dates, because it only counts forward from the start. Swap the two dates to get a result.
Why is 31 January to 28 February one full month?
February has no 31st, so the calculator uses its last day, 28 February in 2026, as the month anchor. Reaching that anchor completes the month.