Months between dates calculator: how many months are between two dates?
Enter two dates to see how many whole months lie between them and how many days are left over, plus the months as a decimal. Every month is listed, so you can see exactly where each one ends.
Months between dates calculator
I want to calculate the number of months from January 1, 2026 to December 5, 2026, not counting the end date.
Answer
11 months and 4 days
There are 11 months and 4 days (about 11.13 months, 338 days) from Thursday, January 1, 2026 to Saturday, December 5, 2026.
- 11.13 monthsAs a decimal (rounded)
- 11 months, 4 daysIn years, months, days
- 338 daysDays
- 48 weeks, 2 daysIn weeks
How we counted
Each segment is one whole month from the start date, from the earlier date on the left to the later date on the right.
- Start on Thursday, January 1, 2026. A month is complete each time the calendar reaches the 1st again.
- Count the whole months: 11 months, the last one ending on Monday, November 30, 2026.
- Count the days left: December 1, 2026 to December 4, 2026 is 4 days.
- As a decimal: 11 + 4 ÷ 31 (the days in that month) = 11.13 months, rounded.
- Answer: 11 months and 4 days.
Read the table from top to bottom: each row is one whole month, counted from the day of the month of the earlier date. The last row shows the days left over, and the running total ends at the number of days.
| Month | From | To | Days | Running total |
|---|---|---|---|---|
| Month 1Jan 1–31 | Jan 1 | Jan 31 | 31 | 31 |
| Month 2Feb 1–28 | Feb 1 | Feb 28 | 28 | 59 |
| Month 3Mar 1–31 | Mar 1 | Mar 31 | 31 | 90 |
| Month 4Apr 1–30 | Apr 1 | Apr 30 | 30 | 120 |
| Month 5May 1–31 | May 1 | May 31 | 31 | 151 |
| Month 6Jun 1–30 | Jun 1 | Jun 30 | 30 | 181 |
| Month 7Jul 1–31 | Jul 1 | Jul 31 | 31 | 212 |
| Month 8Aug 1–31 | Aug 1 | Aug 31 | 31 | 243 |
| Month 9Sep 1–30 | Sep 1 | Sep 30 | 30 | 273 |
| Month 10Oct 1–31 | Oct 1 | Oct 31 | 31 | 304 |
| Month 11Nov 1–30 | Nov 1 | Nov 30 | 30 | 334 |
| +4 daysDec 1–4 | Dec 1 | Dec 4 | 4 | 338 |
How to use the months between dates calculator
- Date format: choose how dates are written, at the top of the calculator. Both date fields, the answer and the table follow it, and your choice is remembered.
- Start date: January 1 of this year is filled in. Type the date your period starts, or use the calendar button.
- End date: today is filled in. Type any other date; it may also be before the start date, and the calculator then counts the other way round.
- Quick picks: set the end date to the next New Year’s Day, the next Christmas or the same date a year later, or swap the two dates.
- Include the end date: turn this on when the last day belongs to the period, for example a contract that runs from January 1 through June 30: that is 6 months, not 5 months and 29 days.
When to count the months between dates
Months are how many periods are measured: how long you have worked somewhere, how old a baby is, how many months are left on a lease or a loan, how long a subscription or a warranty ran, or how many months of rent or service to charge. Counting them on a calendar is easy until a month is shorter than the day you started on.
Use the decimal when something is billed or paid per month and the period does not end on a whole month, such as 3.5 months of rent. For days, use the days between dates calculator; for a person’s age in years, months and days, the age calculator.
Months between dates at a glance
What it does
Counts the whole months between two dates the way Excel’s DATEDIF does, then the days left over, and gives the months as a decimal.
Who it's for
Anyone measuring time in months: job tenure, baby ages, leases, loans, subscriptions, warranties, rent and service periods.
Watch out for
Months have 28 to 31 days, so the 29th to 31st need care: January 31 to February 28 is 28 days, not a whole month.
How counting the months between dates works
The rule: a month is complete when the calendar reaches the same day of the month again. From March 15, one month is complete on April 15, two on May 15, and so on. What is left after the last whole month is counted in days. This is how ages, leases and service periods are measured, and it is what Excel and Google Sheets do with DATEDIF(A2,B2,"m").
With your dates: from January 1, 2026 to December 5, 2026 is 11 whole months and 4 days, about 11.13 months, or 338 days in all.
Month ends need care. When the start day does not exist in a shorter month, that month counts as complete on its last day, but only when the end date is past it: January 31 to February 28 is 28 days, and to March 1 it is 1 month and 1 day. Each month is counted from the start date, so two months after January 31 is March 31, not March 28.
The decimal divides the days left by the length of the month they fall in, so exactly 6 months is 6.00 and half of a 30-day month adds 0.5. For the plain number of days use the days between dates calculator, for weeks weeks between dates, and to find the date a number of months away months from today.
Months between dates: worked examples
How many months are between January 1 and November 30, 2026?
November 30 is before December 1, so 10 whole months are complete (to November 1) and 29 days are left: 10 months and 29 days, about 10.97 months.
Common mistake: subtracting the month numbers (11 − 1 = 10) and stopping there, or rounding up to 11 months. The 11th month is not complete until December 1.
How many months is it from January 31 to March 1, 2026?
February has no 31st, so the first month is complete on its last day, February 28. One more day reaches March 1: 1 month and 1 day.
Common mistake: dividing 29 days by 30 and calling it less than a month. Counted by the calendar, a month has passed.
A lease runs from March 15 to September 15, 2026. How many months is that?
The 15th comes round six times: 6 months exactly, which is 184 days.
Common mistake: counting 6 × 30 = 180 days. Months from March to September include four 31-day months, so 6 months is 184 days here.
How many months old is a baby born on February 29, 2024, on February 28, 2025?
The 29th has not come round in February 2025, so the 12th month is not yet complete: 11 months and 30 days. It is 12 months on March 1, 2025.
Common mistake: saying 1 year because it is the end of February. Leap-day birthdays reach a whole month or year one day later in non-leap years.
Months between dates in Excel and Google Sheets
Put the start date in A2 and the end date in B2. DATEDIF works in Excel and Google Sheets, but Excel does not list it in its function help, so type it in full. The start date must be the earlier date.
Read the table row by row: each row is one cell of your sheet, what to put in it and an example.
| Cell | What goes in it | Example |
|---|---|---|
| A2 | Start date | 1/1/2026 |
| B2 | End date | =TODAY() |
| C2 | Whole months (matches your choice above) | =DATEDIF(A2,B2,"m") |
| D2 | Months and days as text | =DATEDIF(A2,B2,"m")&" months, "&(B2-EDATE(A2,DATEDIF(A2,B2,"m")))&" days" |
Whole months between two dates
=DATEDIF(A2,B2,"m") Days left after the whole months
=B2-EDATE(A2,DATEDIF(A2,B2,"m")) Years and months
=DATEDIF(A2,B2,"y")&" years, "&DATEDIF(A2,B2,"ym")&" months" Months as a decimal (approximate)
=YEARFRAC(A2,B2,1)*12 Calendar months touched, ignoring days
=(YEAR(B2)-YEAR(A2))*12+MONTH(B2)-MONTH(A2) Add 1 to B2 to include the end date. DATEDIF returns an error when the start date is after the end date. The days formula uses EDATE instead of DATEDIF "md", which Microsoft warns can give wrong results at month ends. YEARFRAC×12 is close to the decimal shown here but not identical.
Months between dates: frequently asked questions
How many months are left in the year?
From today, December 5, 2026, through December 31 is 27 days, counting both days (27 days).
How do you count the months between two dates?
Move forward from the start date one month at a time, keeping the day of the month: from March 15 to April 15 is one month. Count how many times that fits before the end date, then count the days left over.
Is January 31 to February 28 a month?
Not by the usual rule: the 31st has not come round, so it is 28 days. On March 1 it becomes 1 month and 1 day. Excel’s DATEDIF and most date calculators count it this way.
How many months is 90 days?
About 3 months, but it depends on the months. In 2026, 90 days from January 1 is exactly 3 months (to April 1), from February 1 it is 3 months and 1 day (to May 2), and from June 1 only 2 months and 29 days (to August 30). Use the calculator with your own dates for the exact answer.
Why does the decimal not match days ÷ 30?
Because months are not 30 days. The decimal here is the whole months plus the days left divided by the length of the month they fall in, so exactly 6 months is always 6.00. Days ÷ 30.44, the average month, gives slightly different numbers.
Why does another calculator give a different answer?
For most dates, results match. Differences come from counting the end date or not (one day), from start dates on the 29th to 31st, where a few sites roll into the next month, and from decimals worked out with an average month length.
Other date and time calculators
- Age calculator
- Birthday countdown
- Business days calculator
- Date calculator
- Day of the week calculator
- Day of the year calculator
- Days ago calculator
- Days between dates
- Days from today
- Days until a date
- Hours between two times
- Hours from now
- Hours worked calculator
- Military time converter
- Minutes to hours converter
- Months from today
- Overtime calculator
- Time calculator
- Time card calculator
- Week number calculator
- Weeks between dates
- Weeks from today
Report a problem with this calculator · Sponsor this calculator