Months Between Dates: Choose an Anniversary Convention

Compare exact elapsed days, direct anniversary month clamping, and 30-day approximations when measuring months between two dates across February and month ends.

SwiftCalcKit · Updated November 28, 2026

Short answer

Because calendar months vary from 28 to 31 days, measuring months between dates requires choosing a convention: completed calendar months (with explicit month-end clamping) vs. dividing elapsed days by 30 or 30.4375.

Scope and assumptions

Explains manual calendar-month conventions alongside exact day counts; does not govern lease proration, loan day-count conventions (30/360), or statutory deadlines.

Short answer: A calendar month is not a fixed number of days, so "months between two dates" depends on the rule you declare. Under direct anniversary clamping, January 31 to February 29, 2024 is 1 completed month (29 elapsed days), and January 31 to March 30, 2024 is 1 completed month + 30 days—because the 2-month anniversary of January 31 is March 31.

Compare three ways to measure months between dates

Using January 31, 2024 as the starting anchor, see how three common conventions report the exact same spans:

Date span (2024) Elapsed days Direct anniversary clamping Fixed 30-day division (days / 30) Mean Gregorian month (days / 30.4375)
Jan 31 → Feb 29 29 1 month, 0 days 0.9667 months 0.9528 months
Jan 31 → Mar 30 59 1 month, 30 days 1.9667 months 1.9384 months
Jan 31 → Mar 31 60 2 months, 0 days 2.0000 months 1.9713 months

Notice why the second row surprises people: under direct anchor clamping from January 31, the 1-month mark is February 29 and the 2-month mark is March 31, leaving 30 remaining days between Feb 29 and Mar 30.

Direct anchor vs. iterative step-by-step clamping

  • Direct anchor clamping: Computes every N-month mark directly from the original day-of-month (31), clamping only when the destination month is shorter (Feb 29, Apr 30, Jun 30). Therefore Jan 31 + 2 months = March 31.
  • Iterative clamping: Steps from the already-clamped February 29 by +1 month to March 29, making March 30 count as "2 months + 1 day."
  • Neither convention is universally "right" in isolation—what matters is stating which one your contract, spreadsheet, or report uses.

How to verify day counts and completed months with our tools

  • Use the Days Between Dates calculator to verify the exact elapsed day spans (29 days for Jan 31 → Feb 29, 30 days for Feb 29 → Mar 30, 59 days total).
  • Need completed years, months, and days under direct calendar clamping? Enter the earlier date as Birth Date and the later date as Reference Date in the Age calculator—it implements exact calendar-unit stepping alongside total elapsed days.

Contracts and financial day-count bases

Residential leases, bank interest (such as 30/360 vs. Actual/365), and HR tenure rules each define "one month" in their own governing document. Always confirm the contract's exact day-count basis rather than assuming calendar clamping.

Frequently asked questions

Why is January 31 to February 28/29 counted as 1 full month even though it is less than 30 days?

Under calendar-month clamping, the last day of February is treated as the 1-month anniversary of January 31 because February has no 31st day.

Should I divide total days by 30 or 30.4375 to estimate months?

Dividing by 30 matches simple 30-day billing blocks; dividing by 30.4375 (365.25 / 12) gives a better multi-year average. Neither matches exact completed calendar months on short spans.

Does inclusive mode change the number of months?

Inclusive mode adds 1 day to a day count (counting both start and end dates), which matters for day-based billing or tenancy notices—state explicitly whether endpoints are inclusive.

Sources

months-between-dates · calendar · date-math