Months Between Dates Calculator
By Sofia Andersen · Last updated 27 October 2026
Complete calendar months plus leftover days, not days divided by 30. From Tuesday 10 March to Sunday 25 October 2026 is 7 complete months plus 15 days, which is 229 days in total. This calculator counts months the way a calendar does, so a month is a month even when the months are different lengths, and it shows the decimal figure separately, labelled as the approximation it is.
Enter your numbers
Result
How to use it
- Enter the start date and the end date.
- Read the headline answer first: complete months, then the leftover days.
- Use the rest of the table for the detail: total months as a decimal, the years months and days breakdown, total days, total weeks, and working days.
- Tick “Count the end date too” if your count should include the end date. The usual count leaves it out.
- For the other direction, switch to add months mode: pick a date and add or subtract whole months from it.
- For a quick count from today, use one of the presets: 30, 90, 180 or 365 days ahead.
Complete months, not days divided by 30
Months are not all the same length, so dividing a day count by 30 or 30.44 gives an average, not a calendar answer. 229 days divided by 30.44 is 7.52, which is close to the real answer and wrong in the way that matters: it cannot tell you that the span ends on the 25th of a month, or that a contract running to the 10th of the month has run its full term.
Complete months = 12 × (year difference) + (month difference), minus 1 when the end day is earlier than the start day. Leftover days are counted from the same day of the month the full months reach.
Work it through for the example. 10 March to 25 October 2026. Year difference is 0, month difference is October minus March, 7 months. The end day, 25, is not earlier than the start day, 10, so nothing is subtracted: 7 complete months. The full months reach 10 October, and 10 October to 25 October is 15 days. Total days: 229. Decimal months: 229 ÷ 30.436875 = 7.52 months, shown only as an approximation.
This is the same method Excel uses. DATEDIF counts complete months and rounds down, which is why this page and a spreadsheet agree. If you only need the day count, the Days Between Dates Calculator is the right tool: it counts days and weeks, while this page counts months.
Worked examples
| From | To | Complete months | Leftover days |
|---|---|---|---|
| 15 Jan 2026 | 15 Feb 2026 | 1 | 0 |
| 15 Jan 2026 | 14 Feb 2026 | 0 | 30 |
| 31 Jan 2026 | 28 Feb 2026 | 0 | 28 |
| 20 Dec 2025 | 5 Jan 2026 | 0 | 16 |
| 15 Jan 2026 | 3 Oct 2026 | 8 | 18 |
| 10 Mar 2026 | 25 Oct 2026 | 7 | 15 |
The January 31 to February 28 row is the one that trips people up. February has no 31st, so no complete month has passed, and the answer is 0 months and 28 days. That is not an error; it is the calendar working as it should.
Inclusive or exclusive: does the end date count?
The usual count is exclusive: the days between two dates, not counting the end date. 10 March to 25 October 2026 is 229 days that way. Counting both the start and end dates adds one, giving 230 days. The month figure does not change either way, since the extra day is a leftover day, not a month. The calculator defaults to the exclusive count and the toggle adds the day when you need it, for example when a booking or a notice period runs “through” the end date.
Adding and subtracting months
Add months mode moves a date forward or backward by whole calendar months. 31 January 2026 plus 1 month is Saturday, 28 February 2026, because February has no 31st and the date clamps to the end of the month. 15 March 2026 plus 3 months is Monday, 15 June 2026. Going the other way, 31 March 2026 minus 1 month is also 28 February 2026. That clamping is the same behaviour as Excel’s EDATE and the date functions in most programming languages.
Months in Excel and Google Sheets
For a spreadsheet, the complete months formula is =DATEDIF(start, end, “m”), which returns complete months and rounds down, exactly like this calculator. The leftover days are =DATEDIF(start, end, “md”), and the remaining whole months after the years are =DATEDIF(start, end, “ym”). For the decimal figure, =YEARFRAC(start, end) × 12 gives the same approximate months the calculator shows. Google Sheets supports the same DATEDIF function.
What the count is used for
Contracts and leases run in months, so a start and end date need a month count, not a day count. Subscriptions and notice periods work the same way: a 3 month notice from 10 March ends on 10 June, whatever the day count in between. Age in months, pregnancy timelines, project plans and loan terms all read more naturally in months and days than in a bare day total. Where the day count is what matters, for deadlines and countdowns, the days page is the better fit, and the two pages link to each other.
Frequently asked questions
How do I calculate months between two dates?
Count complete calendar months first, then the leftover days. From 10 March to 25 October 2026 is 7 complete months plus 15 days: March 10 to October 10 is 7 months, and October 10 to October 25 is 15 days. The calculator does the same count and also shows the total days, 229, and the decimal figure, 7.52 months.
Why does Jan 31 to Feb 28 show 0 full months?
Because February has no 31st. A complete month from 31 January would end on 31 February, which does not exist, so no full month has passed. The answer is 0 months and 28 days, which is the calendar working correctly, not an error in the calculator.
Is one month always 30 days?
No. Calendar months run 28 to 31 days. Dividing a day count by 30 gives an average month, and the calculator shows that figure only as a decimal approximation, 7.52 months for the example above. The headline answer is always complete calendar months plus leftover days.
Does the calculator count the end date?
Not by default. The usual count is exclusive, so 10 March to 25 October 2026 is 229 days. Tick “Count the end date too” and the total becomes 230 days. The month figure stays 7 months and 15 days either way.
What is the difference between total months and months in the breakdown?
Total months is the decimal figure, 7.52 for the example, which is the day count divided by 30.436875. The breakdown is the calendar answer: 7 complete months and 15 leftover days. Use the breakdown for contracts and dates, and the decimal only for rough comparisons.
How do I count months in Excel?
Use =DATEDIF(start, end, “m”) for complete months. Add =DATEDIF(start, end, “md”) for the leftover days, and =YEARFRAC(start, end) × 12 for the decimal figure. Google Sheets supports the same DATEDIF function.
Related calculators
- Days Between Dates Calculator: count the days and weeks between two dates, with weekdays and inclusive counts.
- Date Calculator: add or subtract days from a date, with the weekday on every result.
- Business Days Calculator: count working days only, skipping weekends and US holidays.
- Age Calculator: age in years, months and days from a birth date to today.
- All everyday calculators and all calculators on CalcKits.
