Months Between Dates Calculator
Pick two dates to count the months between them, or add and subtract months from a date. Everything is worked out on your device.
Dates
Pick two dates to count the months between them.
The end date is before the start date, so the dates were counted the other way round.
Add or subtract months
How to use the months between dates calculator
Enter a start date and an end date. The main answer is the number of whole calendar months plus leftover days, followed by two decimal versions, the same span in years, months and days, and the total day count. Tick Include the end date if the last day should count as a full day (1 January to 31 January then becomes exactly 1 month).
Switch to N months from a date to find the date a number of months (and optionally days) after or before a date, such as a contract end 18 months from signing or a date 3 months ago.
How months are counted (the month-end rule)
Months have 28 to 31 days, so a month is counted on the calendar, not as a fixed number of days. One month after a date is the same day of the month in the next month. When that day does not exist, it is clamped to the last day of the shorter month: one month after 31 January is 28 February (29 in a leap year), and one month after 31 March is 30 April. Every month is measured from the start date itself, so two months after 31 January is 31 March, not 28 March.
The whole months are the most months you can add without passing the end date, and the leftover days run from there to the end date. Two decimal figures are shown:
- Calendar: whole months + leftover days ÷ the length of the month in progress. Exact on whole months.
- Average: total days ÷ 30.436875, the average Gregorian month (146,097 days in 400 years ÷ 4,800 months). Useful when every month should weigh the same, as in interest or rate calculations.
For other units, the CalculatorFly days between dates calculator counts calendar and business days, and the weeks between dates calculator gives weeks and days.
Worked example
From 31 January 2026 to 15 May 2026: adding months to 31 January gives 28 February (clamped), 31 March and 30 April (clamped). A fourth month would be 31 May, past the end date, so there are 3 whole months, and 30 April to 15 May adds 15 days. The month in progress, 30 April to 31 May, has 31 days, so the calendar decimal is 3 + 15 ÷ 31 ≈ 3.48 months. The span is 104 days in total, and 104 ÷ 30.436875 ≈ 3.42 average months. Likewise, 3 months after 31 January 2026 is 30 April 2026.
FAQ
Why is 31 January to 28 February a whole month?
February has no 31st, so the month-end rule moves the one-month mark to its last day. This is how most people, payroll systems and spreadsheet functions such as EDATE treat month ends. The next mark is still 31 March, because every month is counted from the start date's own day of the month.
Which decimal months figure should I use?
Use the calendar figure when you think in calendar months, for example "about three and a half months". Use the average figure when months need equal length, such as pro-rating a fee by time; it does not depend on which months the span covers.
Does including the end date change the months?
It adds one day before counting. 1 January to 31 January is 30 days (0 months, 30 days) without it, and exactly 1 month with it, because the whole of January is covered.
Is anything I enter sent anywhere?
No. The dates are processed in your browser with WebAssembly and never uploaded or stored.