Months Between Dates
Count full months and remaining days between any two dates.
Written by Golam Rabbani, Founder & Lead Engineer
How to use this months between dates
- Pick a start date.
- Pick an end date (it can be before or after).
- Press "Calculate months".
- Read full months + remaining days, decimal months, and total days.
- Use Reset to clear or Copy to share the result.
About this months between dates
Counting "months" between two dates is more subtle than it looks because months are not the same length. This tool computes a calendar-aware count: full months from start-of-month to start-of-month, plus the remaining days, and a decimal-months figure for spreadsheet-style work.
For the full-month count, it subtracts year and month components, then checks the day component. If the end day is earlier than the start day, it borrows days from the previous month to keep the answer correct — so 2026-01-31 to 2026-02-28 reports 0 months and 28 days, not 1 month. The decimal value divides the remainder by the number of days in the relevant month so it always sums correctly.
Worked example: enter start 2026-01-15 and end 2026-08-10. The tool reports 6 months and 26 days, with a decimal of 6.84 months and 207 total days. Direction is "forward" because the end is after the start; flip the dates and you get the same magnitudes with direction "backward".
Useful for contract periods, baby age in months, lease windows, subscription billing, and anywhere "X months" matters more than raw days.
FAQ
- Why isn’t every month treated as 30 days?
- Because they aren’t. A 30-day approximation works for quick estimates but breaks for legal, billing, or medical work. This tool uses real month lengths, including leap-year Februarys.
- Does direction matter?
- The magnitudes are the same either way. The "direction" field tells you whether the end is after (forward), before (backward), or equal to (same) the start.
- What does the decimal months number mean?
- It is full months plus (remainder days ÷ days in the end month). It is most useful for proportional calculations, like prorating a monthly bill.
- How is this different from "weeks between dates" or "years between dates"?
- It uses the calendar-month boundary as its unit. Weeks-between uses 7-day chunks; years-between adds a years bucket on top of months. Pick the one that matches the unit you actually need.