Boneyard Tools

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

  1. Click the First date field and pick the earlier date from the calendar.
  2. Click the Second date field and pick the later date.
  3. Read the Total months figure at the top of the result grid.
  4. Check the Years, Months and Days stat cards for the split breakdown.
  5. 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

Related tools