Skip to content
MasterMath

Months Between Dates

The number of whole months between two dates, counted by stepping month by month rather than dividing days by 30. The difference is real: the two methods disagree by days.

Whole months

—

Whole months—
Which is—
Total days—
In approximate months—

How this was worked out

    How it is worked out

    months = month boundaries crossed, then the days left over

    Why it is done this way

    Months are the awkward calendar unit, because they are not all the same length. Counting them properly means stepping from the start date to the same day of each following month until you overshoot; the number of steps is the months and what remains is the days.

    Step by step

    1. Step forward one month at a time from the start date
    2. Stop when the next step would pass the end date
    3. The number of steps is the whole months
    4. The days between there and the end date are the remainder

    What is worth knowing

    The step-by-step method is what makes 31 January plus one month land on 28 February rather than 3 March, which is the convention almost every legal and financial system uses. Dividing total days by 30.44 gives an approximate figure that is fine for a rough sense of scale and wrong for anything that turns on a date. The gap matters most over short periods: two dates 60 days apart can be one month and 29 days or two months exactly, depending entirely on which months they cross.

    From one month to another, how many months

    Counting the month boundaries crossed within the same year. If you need to include both end months, add one.

    From the month of…To AugustTo DecemberTo the same month next year
    January7 months11 months12 months
    February6 months10 months12 months
    March5 months9 months12 months
    April4 months8 months12 months
    May3 months7 months12 months
    June2 months6 months12 months
    July1 month5 months12 months
    August—4 months12 months
    September11 months3 months12 months
    October10 months2 months12 months
    November9 months1 month12 months
    December8 months—12 months

    Frequently asked questions

    Why not just divide the days by 30?

    Because months are 28 to 31 days. Dividing gives an approximation that drifts, and it cannot tell you the days left over.

    What is one month after 31 January?

    28 February, or 29 in a leap year. When the target month has no matching day, the convention is to use its last day.

    Why does the decimal figure differ?

    It divides by the average month length of 30.44 days. It is a useful approximation and not the same calculation.

    Which method do contracts use?

    The step-by-step one, almost universally. A month means to the same date next month, not thirty days.