Months Between Two Dates
Pick a first and second date to see exactly how many calendar months separate them. The result reports the total whole months as one figure, the same gap split into years, months and days, and any leftover days that do not complete a month. It is handy for tracking lease terms, loan schedules, subscription age, project timelines and baby milestones.
How to count months between two dates
- Click the First date field and pick the earlier date from the calendar.
- Click the Second date field and pick the later date.
- Read the Total months figure at the top of the result grid.
- Check the Years, Months and Days stat cards for the split breakdown.
- Press Copy to grab the plain-language summary such as 5 months, 5 days.
Examples
Five whole calendar months
2026-01-15 to 2026-06-15
5 months, 0 days
A long span shown as years, months and days
2020-03-10 to 2026-07-05
6 years, 3 months, 25 days
Month-end date clamped to the shorter month
2026-01-31 to 2026-03-01
1 month, 1 day
Frequently asked questions
How does the tool count a month?
It counts whole calendar months by matching the day of the month, not by dividing days by an average of 30.44. Whole months are subtracted first while the day number lines up, then any remaining days are reported separately. January 15 to June 15 is therefore exactly five months with no leftover days.
What happens when the second day is earlier in the month than the first?
The final partial month is dropped because a full month has not elapsed yet. The start date is advanced by the completed months, and the leftover days are measured from that anchor to the end date. This keeps every month a true calendar month rather than a rounded average.
How are end-of-month dates like January 31 handled?
When advancing the start by whole months lands on a day that does not exist, the day is clamped to the last day of the target month. January 31 plus one month becomes February 28 in a common year, so January 31 to March 1 reads as one month and one day.
Does the order of the two dates matter?
No. The earlier date is always treated as the start regardless of which field you fill first, so swapping the dates gives the same totals. Every result is a positive count.
Are leap years taken into account?
Yes. The calculation uses real calendar dates, so February holds 29 days in a leap year and 28 otherwise. Any leftover-day count reflects the genuine length of the months involved.
Do time zones or daylight saving time affect the result?
No. Every date is treated as a plain calendar date and all math runs in UTC, so clock changes, daylight saving and your local time zone never shift the answer.
What is the difference between Total months and the Years and Months split?
Total months is the entire gap expressed in months, such as 75. The Years and Months cards divide that same number by twelve, so 75 total months appears as 6 years and 3 months. They describe one gap two ways.
Is there a limit on how far apart the dates can be?
There is no practical limit. You can compare dates decades or centuries apart and the total months and the years breakdown scale accordingly. The date picker accepts standard calendar dates in YYYY-MM-DD form.
Is my data sent anywhere?
No. The calculation runs entirely in your browser, so the dates you enter are never uploaded or stored. You can use the tool offline once the page has loaded.
Learn more
- How to count calendar months between two dates
Why calendar months beat dividing days by 30, how end-of-month dates behave, and how to read the total months against the years breakdown.
Related tools
Date Difference Calculator
Find the number of days, weeks, business days and years, months and days between two dates. Enter a start and end date to see the full breakdown.
Weeks Between Calculator
Count the weeks between two dates. See the total days, the decimal number of weeks, and whole weeks plus leftover days. Free, private and instant.
Age Difference Calculator
Find the age gap between two birthdates in years, months and days, plus the total day count. Free, private and works for any pair of dates.
Add Business Days Calculator
Add or subtract working days from a date, skipping weekends and any holidays you list. See the result date and its day of the week instantly.
Add Days Calculator
Add or subtract calendar days from any date and see the result with its day of the week. Free, instant and works for past or future dates.
Add Time Calculator
Add or subtract hours and minutes from a time of day. See the new clock time and whether it crosses into another day. Free and private.