Months Between Dates Calculator

This months between dates calculator gives the years, months and days between two dates, plus the total days and a decimal month count. From March 15 to October 21, 2026 it shows 7 months and 6 days, which is 220 days. A second tab adds or subtracts months from a date, so you can see where a 6-month lease or a 24-month warranty ends. It also shows what Excel’s DATEDIF would return, because the two can differ by a month near the end of a month.

Calculated in your browser. Your dates are not sent anywhere.
Months between dates calculator input and result: Mar 15 to Oct 21, 2026 is 7 months 6 days
Months between dates example: Mar 15 to Oct 21, 2026 shows 7 months 6 days, 220 days and 7.19 decimal months

How to use the months between dates calculator

  1. Pick the two dates. Tap Today to fill a field with the current date, or use a quick pick such as 12-month lease. The order does not matter: if the end date is earlier, the tool swaps them and tells you.
  2. Decide whether the end date counts. Leave the box empty for the usual rule, where the end date is the day the period stops. Tick it when both the first and the last day are full days, as in a lease that runs through January 31.
  3. Read the headline. It shows years, months and days. The cards under it give the total days, weeks and days, full months, decimal months and two average-based figures for comparison.
  4. Switch to Add or subtract months to find the date a number of months after (or before) a start date. Use a negative number to go back.

How the months are counted

A month here means a calendar month, not 30 days. The tool adds whole months to the start date, one at a time, and stops before the next one would pass the end date. The days left after that are shown as days. From March 15, 2026 to October 21, 2026, adding 7 months gives October 15. Adding 8 would give November 15, which is too far, so the answer is 7 months and 6 days (October 15 to October 21).

How the months between two dates are counted: add whole months, then count leftover days
Counting months between dates: add months to the start date until the next one passes the end date, then count the days left

Short months need a rule. January 31 plus 1 month has no February 31, so the tool uses the last day of the month, February 28 in 2026. It always adds months to the original start date. January 31 plus 2 months is March 31, not March 28, which is what you would get by chaining two steps. Twelve months make a year, so 14 months shows as 1 year 2 months.

Month-end dates and why Excel can disagree

Excel and Google Sheets have a hidden function, DATEDIF, that counts complete months by comparing day numbers. If the end day is smaller than the start day, it drops a month. That is a defensible rule, but it gives different answers from the month-end rule above. The cases below were worked out by hand and match the calculator.

StartEndThis calculatorDATEDIF “m”Total days
Jan 31, 2026Feb 28, 20261 month028
Jan 31, 2026Mar 1, 20261 month 1 day129
Feb 29, 2020Feb 28, 20211 year11365
Mar 15, 2026Oct 21, 20267 months 6 days7220

When the two disagree, the calculator prints a short note under the result. Which one is right depends on what you are measuring. For a lease or a notice period, read the wording of the contract. Where it is silent, last-day-of-month is the usual reading of a monthly term that starts on the 31st.

광고

Counting the end date or not

Most calculators leave the end date out, so a period runs from the start date up to, but not including, the end date. People often count the other way: a lease that begins February 1, 2026 and ends on January 31, 2027 is thought of as 12 months, because both days are in use. Without the end date the tool shows 11 months 30 days. With the box ticked it shows 1 year, which is the 12 months people mean. Ticking the box is the same as ending the period on the next day.

StartEndEnd date not countedEnd date counted
Feb 1, 2026Jan 31, 202711 months 30 days1 year (12 months)
Jan 1, 2026Jan 1, 20260 days1 day
Mar 15, 2026Oct 21, 20267 months 6 days7 months 7 days

Turning days into months

Dividing the day count by 30 is the shortcut people reach for, and it drifts: a year of 365 days becomes 12.17 months. The tool shows two average-based figures next to the real calendar answer so you can see the gap. 30.4375 is 365.25 divided by 12, the average length of a month over a four-year cycle, and it is the better choice for averages and rates. For anything that has a start and an end on the calendar, use whole months and days.

SpanDaysCalendar monthsDays / 30Days / 30.4375
Feb 1 to Mar 1, 20262810.930.92
Jul 1 to Aug 1, 20263111.031.02
Jan 1 to Jul 1, 202618166.035.95
Jan 1, 2026 to Jan 1, 20273651212.1711.99
Months between dates compared: calendar months, decimal months, days divided by 30.4375, days divided by 30 and Excel DATEDIF
One 220-day span gives 7 months 6 days, 7.19, 7.23, 7.33 or 7 depending on the method

The decimal months card is a third idea: whole months plus the leftover days as a fraction of the month they fall in. 6 leftover days in a 31-day October add 0.19, so March 15 to October 21 is 7.19. It suits prorating a monthly fee by the calendar. Rent and subscriptions often use a different convention, so check the terms before you split a bill.

Months between dates in Excel and Google Sheets

Put the start date in A1 and the end date in B1. These formulas work in both programs, and the results below use March 15 and October 21, 2026.

GoalFormulaResult
Full months=DATEDIF(A1,B1,"m")7
Days left after the full months=DATEDIF(A1,B1,"md")6
Date 7 months after A1=EDATE(A1,7)Oct 15, 2026
Months on a 30/360 basis=YEARFRAC(A1,B1)*127.2
Average months=(B1-A1)/30.43757.23
Calendar month difference, ignoring days=(YEAR(B1)-YEAR(A1))*12+MONTH(B1)-MONTH(A1)7
Excel and Google Sheets months between dates formulas: DATEDIF, EDATE and YEARFRAC
Months formulas for Excel and Google Sheets with the start date in A1 and the end date in B1

Handle DATEDIF with care. It is not listed in the function wizard, it returns #NUM! when the start date is after the end date, and Microsoft warns that the “md” unit can give wrong results. Check it on a few dates you can count by hand, such as the cases in the table above.

Add or subtract months from a date

The second tab does the reverse of the first: give it a date and a number of months and it returns the date. It follows the same month-end rule as Excel’s EDATE, so the two agree. Use it for warranty ends, trial periods, probation, contract renewals and payment schedules.

Start dateMonthsResultWhy
Aug 31, 2026+6Feb 28, 2027No February 31, so the last day is used
Jan 31, 2024+1Feb 29, 20242024 is a leap year
Mar 31, 2026-1Feb 28, 2026Going back also uses the last day
Jan 15, 2026+24Jan 15, 2028Same day number, two years later
Checklist before trusting a months between dates result
Month count checklist: end date, month-end rule, original date, calendar vs average months, contract wording

Tip: for a repeating schedule such as monthly billing on the 31st, add the months to the first date each time (31st plus 1, plus 2, plus 3). Adding 1 month to each previous result lets a short month pull every later date back to the 28th.

Not legal or financial advice. Leases, loans, visas and notice periods often define how a month is counted. This tool is for planning and checking arithmetic, and the written terms of your agreement come first.

Frequently asked questions

How many months are there between two dates?

Count whole calendar months from the start date, then count the days left over. March 15 to October 21, 2026 is 7 months and 6 days, or 220 days in total.

Is a month 30 days?

No. Months run from 28 to 31 days. Averaged over years a month is 30.4375 days, so dividing a year by 30 gives 12.17 months instead of 12.

Does the calculator include the end date?

Not by default. Tick the box if both the first and the last day count. February 1, 2026 to January 31, 2027 is 11 months 30 days without it and 1 year with it.

Why does Excel show a different number of months?

DATEDIF compares day numbers, so January 31 to February 28 is 0 months in Excel. This calculator moves to the last day of the short month and shows 1 month. It prints a note whenever the two differ.

How do I find the date 6 months from now?

Open the Add or subtract months tab, enter the start date and 6. In Excel or Google Sheets use =EDATE(A1,6). If the day does not exist in the target month, the last day of that month is returned.

Does the calculator save or send my dates?

No. The calculation runs in your browser tab and nothing is sent to our server.

Sources: Last checked November 2026. Microsoft Support, DATEDIF function and EDATE function. The tables were calculated by hand for the dates shown. This page is general information, not legal advice.

광고

#MonthsBetweenDates  #MonthsBetweenDatesCalculator  #MonthCalculator  #MonthCounter  #HowManyMonths  #DATEDIF  #EDATE  #DateCalculator  #ExcelFormulas  #FreeTools  #MetaTrend

Found this useful? Share it.