Months Between Dates Calculator

Months are the unit people think in for leases, subscriptions, and long projects, but they are awkward to count because no two months have the same length. This months between dates calculator solves that. Enter a start date and an end date, and it tells you how many whole calendar months separate them, plus the leftover days and the total day count.

Knowing how many months between two dates matters more than it first appears. A 12 month lease, a 6 month probation period, and a warranty that runs 24 months all depend on counting calendar months correctly, not on dividing days by 30. This tool counts real calendar months, so a span from January 15 to July 15 reads as exactly 6 months, the way people naturally describe it.

How to use the months between dates calculator

The tool at the top of this page needs two dates. Follow these steps to find the number of months between two dates:

  • Step 1. Enter the start date, such as the day a lease or subscription begins.
  • Step 2. Enter the end date, such as the renewal date or the day something expires.
  • Step 3. Read the result. The calculator shows whole months and remaining days, and it also shows the total days so you can compare the two views.

The order of the dates does not matter. If the end date comes first, the span is still reported as a positive count.

How the calculation works

Counting months is not the same as counting days and dividing by 30, because months run from 28 to 31 days. Instead, the calculator counts whole calendar months by moving from the start date to the same day of the month in later months. January 15 to February 15 is one month, to March 15 is two months, and so on. Once the last whole month is reached, any extra days are counted separately.

End-of-month dates need care. If the start date is January 31, then one month later is February 28 in 2026, because February has no 31st day. The calculator caps the target day at the last day of the shorter month, which is the standard convention. For example, August 31, 2026 to February 28, 2027 is exactly 6 months by this method, and 181 days in total. A flat 30 day month estimate would give a different and less useful answer, which is why this tool counts on the real calendar.

Worked examples

These examples show whole months, leftover days, and the total day count side by side.

Start dateEnd dateMonths between datesTotal days
January 15, 2026July 15, 20266 months exactly181
March 10, 2026November 25, 20268 months, 15 days260
August 31, 2026February 28, 20276 months exactly181
January 1, 2026December 31, 202611 months, 30 days364
February 29, 2024February 28, 202512 months exactly365

The last row shows the leap year effect. February 29, 2024 plus 12 calendar months lands on February 28, 2025, because 2025 has no February 29. The span is still exactly 12 months, even though the day of the month changed.

How long is a month, really?

A month is not a fixed number of days. That single fact explains most surprises in month counting. This table shows the real ranges.

SpanLength in days
1 month28 to 31 days
3 months89 to 92 days
6 months181 to 184 days
Average monthAbout 30.44 days

The average comes from the average year length, 365.25 days, divided by 12. It is useful for rough planning only. The warning to remember is that 90 days is not always 3 months. Three calendar months can be 89, 90, 91 or 92 days depending on the months included. When a contract says 3 months, count calendar months. When it says 90 days, count days with the add days to date calculator. Mixing the two is how deadlines land several days early or late.

Why the months breakdown can look surprising

The breakdown counts whole calendar months first, then leftover days. Because months have different lengths, the same month count can cover different day totals. January 15 to February 15, 2026 is exactly 1 month and 31 days. February 15 to March 15, 2026 is also exactly 1 month, but only 28 days. Both answers are correct. The month count describes the calendar distance, and the day total describes the elapsed time. Month end start dates add one more twist. A span starting on January 31 has no February 31 to land on, so counters cap at the last day of February or roll into March, and tools differ on this point. The date calculator page explains the month end rule and how spreadsheets handle it. When a result looks odd, check the total days figure next to it. The two views together always tell the full story.

Practical tips for counting months

  • For leases and subscriptions, count calendar months, not 30 day blocks. A 6 month term starting August 31, 2026 ends February 28, 2027, which is 181 days, not 180.
  • Watch end-of-month start dates. Anything starting on the 29th, 30th, or 31st will land on the last day of shorter months. If a payment is due on the 31st, plan for February separately.
  • Use the total days figure for money math. Interest, prorated rent, and per-day rates need the exact day count, while the months figure is better for describing the term to people.
  • For ages in months, such as a baby's age, count whole months from the birth date to today, then add the leftover days. That is exactly what this calculator returns.
  • When a contract says 3 months from a date, add calendar months to that date rather than adding 90 days. The two methods can differ by several days.
  • For school and course planning, count the months between the first and last class dates to check whether a term fits inside a single semester or billing cycle.

Frequently asked questions

How many months are between two dates?

Count whole calendar months from the start date to the same day of the month in the end month, then add any leftover days. January 15, 2026 to July 15, 2026 is exactly 6 months. March 10, 2026 to November 25, 2026 is 8 months and 15 days. This calculator returns both parts for you.

How do I calculate this in Excel?

Use the DATEDIF function: =DATEDIF(start_date, end_date, "M") returns whole months between the two dates. Add =DATEDIF(start_date, end_date, "MD") for the leftover days. DATEDIF is a hidden function in Excel, so it will not appear in the formula autocomplete, but it works when typed in full.

Is 6 months the same as 180 days?

Not exactly. Six calendar months can run from 181 to 184 days depending on which months are included. January 15 to July 15, 2026 is 181 days. Contracts written in months should be counted in calendar months, while contracts written in days should be counted in days.

How does the calculator handle January 31 plus one month?

February has no 31st day, so the result is capped at the last day of February, which is February 28 in 2026 and February 29 in a leap year. This is the standard convention used by banks and billing systems for monthly cycles that start at month end.

Can I count spans in different years?

Yes. The calculator counts across year boundaries and includes leap years automatically. February 29, 2024 to February 28, 2025 is exactly 12 months and 365 days, and longer spans return years, months, and days together.

Why can one month be 31 days and another be 28 days?

Because the breakdown counts calendar months, not fixed blocks of days. January 15 to February 15 crosses a 31 day month. February 15 to March 15 crosses February, which has 28 days in 2026. Both spans are exactly 1 month. The total days figure in the result shows the difference, which is why this calculator always shows both views.

How we calculate and sources

Months are counted on the Gregorian calendar by moving to the same day of the month, then counting leftover days. This matches the spreadsheet DATEDIF method for whole months, and month adding comparisons follow the EDATE function convention from Microsoft. Leap years follow the full Gregorian rule, including the century exception. For leases and contracts, confirm whether the term is written in calendar months or in days, because the two methods can differ by several days.

Last reviewed: November 27, 2026

From lease terms to subscription renewals, this months between dates calculator counts real calendar months the way people actually use them. For week based planning, the weeks between dates calculator shows the same span in weeks and leftover days. Enter your two dates above and get the month count, the leftover days, and the total days in one result.

Related Calculators