Months Between Dates Calculator
Find how many months there are between two dates, as complete months, months and days, or a decimal figure. You can choose how the end of the month is counted. It runs in your browser.
Dates
How to use the months between dates calculator
- Pick a start date and an end date, or press Today to use the current date.
- Choose whether the last day of a shorter month completes a month, and whether the end date counts as a day.
- Read the complete months, the months and days, and the decimal months.
- Check the "how it was counted" line to see the rule that was used.
How months are counted
Starting at the first date, the calculator steps forward one calendar month at a time and keeps going while the next step does not pass the end date. Each step lands on the same day number, so January 15 steps to February 15. The days between the last step and the end date are the leftover days. Decimal months = complete months + leftover days ÷ the length of the month those days fall in.
The end-of-month rule
A step from January 31 has no matching day in February. With the rule on, the step lands on the last day of February, so January 31 to February 28 is 1 month. With it off, the month is not complete until the end day reaches 31, so the same dates give 0 months and 28 days. January 31 to March 1 then gives 1 month, because the short month is only passed on March 1.
| Dates | Complete months | Leftover days |
|---|---|---|
| January 15 to April 15, 2027 | 3 | 0 |
| January 15 to April 20, 2027 | 3 | 5 |
| January 31 to February 28, 2027 | 1 | 0 |
| March 10, 2024 to August 10, 2027 | 41 | 0 |
Related tools
For the gap in days, use the days between dates calculator. For tenure, try the length of service calculator, and for a birthday, the age calculator. To find a date a set number of days away, use the add days to date calculator.
See also
- Need the gap in days instead? Use the days between dates calculator.
- Measuring tenure at work? Try the length of service calculator.
- Working out someone's age? Use the age calculator.
- Need a date a number of days away? Try the add days to date calculator.
Frequently Asked Questions (FAQ)
Count the whole calendar months from the start date until the same day number comes round again. From January 15 to April 15 is 3 complete months. Any days after that are shown as leftover days, so January 15 to April 20 is 3 months and 5 days.
A complete month is reached when the end date has the same day number as the start date, or a later one. January 15 to February 14 is 0 complete months and 30 days, and February 15 makes it 1 complete month.
Some months are shorter than others, so the start day may not exist in the end month. With the rule on, the last day of the end month completes the month: January 31 to February 28 counts as 1 month. With it off, the end day must reach the start day number, so the same dates give 0 months and 28 days.
The decimal figure is the complete months plus the leftover days divided by the length of the month they fall in. February 1 to February 15 is 14 days of a 28-day month, which gives 0.5 months. The average-month figure instead divides total days by 30.44, so the two can differ slightly.
Leave it off for elapsed time, such as months since a start date. Turn it on when both the first and last day count, such as a lease from January 1 to January 31, which then counts as 1 complete month.
Those tools show a years, months and days result for a birthday or a job. This one focuses on the total number of months, including totals above 12, plus a decimal figure and an explanation of how the count was made.
The dates are swapped for the count and the page tells you it did so, so the answer is always a positive number of months.
Use it as a quick estimate. Leases, loans, leave and notice periods often follow their own month-counting rules, for example whether the first day counts or how a partial month is charged. Check your contract or local rules before relying on a figure.