Dates formula

Months Between Two Dates

A month is not a fixed number of days, so "months between" is a counting convention and not a division. The usual rule counts completed months from the day number of the start date, then gives the days left over. This page explains that rule, where it runs into trouble at the ends of months, and when an average month is good enough.

Formula

whole months = 12 × (end year − start year) + (end month − start month), minus 1 if the end day number is lower than the start day number; leftover days = days from the last monthly anniversary to the end date (the start day is not counted)

start date
the earlier date; its day number (the 18 in 18 November) sets the monthly anniversary
end date
the later date
monthly anniversary
the same day number in a later month, for example the 18th of each month after a start on the 18th
whole months
the number of monthly anniversaries reached on or before the end date
leftover days
the days from the last anniversary reached to the end date
average month
30.4375 days (365.25 ÷ 12), used only when a decimal number of months is wanted

Date Difference Calculator Employment Duration Calculator

What it means

Months run from 28 to 31 days, so no single number of days equals a month. The convention is to count the way rent or a subscription is counted: from the 18th of one month to the 18th of the next is one month, whichever months they are. Whole months are the anniversaries you have passed, and the leftover days are counted from the last one. The same number of days can therefore be a different number of months depending on where it falls: 1 February to 1 March 2026 is one month in 28 days, while 1 July to 30 July is 29 days and no month at all.

The convention strains when the start date is the 29th, 30th or 31st, because some months have no such day. Adding one month to 31 January cannot give 31 February. A common rule, and the one the calculators on this site follow when they add months, is to move back to the last day of the month: 28 February, or 29 February in a leap year. Other systems roll forward into March. These are different rules and neither is an error, so a contract or policy that depends on the date should say which it uses.

Counting and adding do not always undo each other at a month end. Add one month to 31 May and the rule above gives 30 June. Count the months from 31 May to 30 June by anniversaries, though, and the answer is 0 months and 30 days, because the 31st was never reached. Some organisations treat the last day of one month to the last day of the next as a full month. If your dates sit at a month end, state the dates themselves alongside any month count.

Whether the final day is counted changes the answer here too. A job held from the 1st of one month to the last day of a later month is a round number of months only if that last day is included, which is how the Employment Duration Calculator works. For a decimal figure, divide the day count by 30.4375, the average month over a four-year cycle. That is an estimate for comparisons and totals, not a way to find a date.

Other forms

Total whole months from years and months
whole months = 12 × whole years + remaining months
Approximate decimal months
decimal months = (end date − start date) ÷ 30.4375
Rounded to the nearest month, for an approximate figure
rounded months = whole months, plus 1 if the leftover days are 15 or more
Date a number of months after a start date
end date = the same day number that many months later, or the last day of that month if it is too short

Worked example

You joined a company on Monday 18 November 2024 and your last day there was Wednesday 5 August 2026. An application form asks how many months you held the role.

  1. Whole years: 18 November 2024 to 18 November 2025 is 1 year, which is 12 months
  2. Further months: 18 November 2025 to 18 July 2026 is 8 months; a ninth would reach 18 August, which is after the end date
  3. Whole months: 12 + 8 = 20
  4. Leftover days: 18 July to 31 July is 13 days, plus 5 days in August = 18
  5. Check with the expression: 12 × (2026 − 2024) + (8 − 11) = 21, minus 1 because 5 is lower than 18, = 20
  6. Counting the last day worked as well: 18 + 1 = 19 leftover days, with the months unchanged
  7. As a decimal: 625 days ÷ 30.4375 = 20.53 months

Result: The dates are 20 months and 18 days apart (1 year, 8 months, 18 days), so you held the role for 20 complete months. That is the figure to give when a form asks for months completed, and "1 yr 8 mos" is the short form for a resume.

Where it is used

An online application form asks for "months in role" for each job. You worked in one post from Monday 4 April 2022 to Wednesday 30 September 2026, both days included. Counting monthly anniversaries gives 4 years and 5 months with 27 days left over, so the completed figure is 4 × 12 + 5 = 53 months. You are three days short of 54, and an employer who checks a reference will see the real dates, so enter 53. On the resume itself, give the start and end of each job as a month and a year, as the guide to the work experience section recommends, and the length speaks for itself.

Common mistakes

  • Dividing the number of days by 30 and calling the result months, which drifts by about five days for every year in the period.
  • Subtracting month numbers without comparing the day numbers, so that 28 March to 2 May is called two months when only one is complete.
  • Counting the calendar months a period touches: a job from late January to early March touches three months but lasts little more than one.
  • Assuming the last day of one month to the last day of the next is always a month, when anniversary counting from the 31st to the 30th gives 30 days.
  • Converting a period stated in months into weeks or days to find its end date, which lands on a different day from adding calendar months.

Questions and answers

How many days should I use for a month in a calculation?

There is no single answer. Real months have 28, 29, 30 or 31 days, and the average across the calendar is 30.4375. Use real month lengths whenever a date matters, and the average only for estimates, such as turning a total number of days into approximate months.

What is one month after 31 January?

It depends on the rule in use. The calculators on this site give the last day of February, which is the 28th, or the 29th in a leap year. Some systems move to a date in early March instead, so for anything with consequences, confirm the date with whoever set the period.

Why do two tools give different month counts for the same dates?

Usually for one of three reasons: one counts the end date and the other does not, they handle month-end dates differently, or one divides days by an average month instead of counting anniversaries. Compare their totals in days first. If those match, the difference is only a convention.

Should I round months up on a resume?

If you state a length, use completed months or a rounded figure you can defend, such as "nearly two years" for 22 months. Turning 20 months and a few days into "two years" is the kind of stretch that a reference check exposes. Showing the dates avoids the question altogether.