Boneyard Tools

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.

Calendar months versus average months

A calendar month is a real span on the calendar, from a given day to the same day number in a later month. That length varies: February runs 28 or 29 days while July runs 31, so a fixed figure of 30 days per month drifts over long spans. This tool counts by matching the day of the month, which is how leases, loans and subscriptions actually measure a month. Dividing the raw day gap by 30.44 gives a decimal approximation, but it will not agree with the exact month boundaries that contracts rely on.

How the leftover days are measured

The calculator peels off whole months first, then reports what is left as days. When the ending day number is on or after the starting day number, the leftover is simply the difference between the two day numbers. When the ending day comes earlier in the month, the last month has not fully elapsed, so it is dropped and the remaining days are counted from the last completed month boundary to the end date. That is why January 15 to June 20 reads as five months and five days rather than being rounded up to six months.

The end-of-month clamp

Some start dates have no matching day in a shorter target month. Advancing January 31 by one month cannot land on February 31 because that date does not exist, so the day is clamped to the last valid day, February 28 or February 29. From there the leftover days are counted forward. This mirrors how most billing systems treat a monthly anniversary that falls on the 31st, keeping the count consistent instead of silently overflowing into the next month.

Reading total months against the split

The result offers two views of the same gap. Total months is the complete span in months, useful for anything billed monthly, while the years, months and days split makes long spans easier to read aloud. Seventy-five total months and six years three months are identical, just expressed at different granularities. Pick whichever framing matches your task, whether that is a payment schedule stated in months or a milestone announced in years.

Frequently asked questions

Should I use total months or the years breakdown for a loan?

Use total months. Loan and lease terms are almost always quoted in whole months, so the single Total months figure lines up directly with a payment schedule without you having to convert years back into months.

Why does my result differ from days divided by 30?

Because months are not all 30 days. This tool counts genuine calendar months by day of month, so it matches contract and billing conventions, whereas dividing by 30 or 30.44 produces a decimal estimate that drifts as months of different lengths pile up.