Home · Date & Time · Date Differences · Months Between Two Dates Calculator
Months Between Two Dates Calculator
Find how many whole calendar months fit between two dates, with the leftover days and the total day count alongside.
What this calculator does
Find how many whole calendar months fit between two dates, with the leftover days and the total day count alongside. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.
The formula and method
Months are counted by stepping from the start date one calendar month at a time; month arithmetic clamps to the month end, so Jan 31 plus one month lands on Feb 28 or 29.
Dates use the proleptic Gregorian calendar: a year is a leap year when divisible by 4, except century years not divisible by 400.
Worked example
With the example inputs this page opens with, the result is 6 months — whole months between the dates.
Quick reference
| Figure | Value |
|---|---|
| Whole months between the dates | 6 months |
| Months and days | 6 months, 5 days after the last whole month |
| Total days | 186 |
| Calendar breakdown | 0 years, 6 months, 5 days |
Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.
Common questions
Why is the answer not simply total days divided by 30?
Calendar months have 28 to 31 days, so this tool counts real month steps from the start date instead of using an average month length.
What happens with a start date of Jan 31?
The next whole month lands on the last day of February, because month arithmetic clamps the day to the end of a shorter month.
How does the Months Between Two Dates Calculator work?
Find how many whole calendar months fit between two dates, with the leftover days and the total day count alongside. Start date · End date → Whole months between. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.
What inputs does the Months Between Two Dates Calculator need?
Start date · End date → Whole months between. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.