Beginner

Month Counter — Count Months Between Two Dates

Count the number of complete calendar months between any two dates. Also get the total broken down into years and months, plus the equivalent in weeks and days.

Start month

End month

Total months
6

6 complete calendar months

Years and months
0y 6m
Total days
193 days
Total weeks
27.6 weeks
Jan 2026Jul 20266 monthsDuration between the two dates
Step by step
  1. 1

    Year difference in months

    (2026 − 2026) × 12 = 0
  2. 2

    Add month difference

    0 + (7 − 1) = 6
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Months between two dates = (end year − start year) × 12 + (end month − start month), minus 1 if the end day is earlier than the start day. The calculator counts only complete calendar months, reflects actual month lengths, and handles leap years correctly.

Formula
Total months = (End year − Start year) × 12 + (End month − Start month) − 1 if end day < start day
How this is calculated

The calculator counts whole calendar months between two dates. It first computes the raw difference in months as (end year − start year) × 12 + (end month − start month), then subtracts one if the end day is earlier in the month than the start day — meaning the final month is incomplete. This mirrors how banks, employers and legal contracts typically count elapsed months.

For example, from 15 January to 14 March is 1 complete month (January 15 to February 15) plus a partial month — so the result is 1, not 2. From 15 January to 15 March is exactly 2 complete months.

The total days figure counts actual calendar days between the two dates (not 30-day approximations), so it correctly handles leap years and months of different lengths. The "years and months" breakdown is simply the total months divided by 12 with the remainder shown separately — useful for contract terms, subscription lengths, loan tenures and age calculations.

Frequently asked questions

Only complete calendar months are counted. If the end day is before the start day, the last month is considered incomplete and is not counted. For example, 5 Jan to 4 Mar = 1 complete month; 5 Jan to 5 Mar = 2 complete months.

Calendar months follow the actual month boundaries (Jan=31 days, Feb=28/29, etc.), so month intervals are not fixed-length. A 30-day-month approximation treats all months as 30 days and will give a different answer for many date pairs.

Yes. If you enter an end date earlier than the start date, the calculator automatically swaps them and counts the interval in the positive direction, so you always get a non-negative result.

Also known as

how many months between two dates
months between dates calculator
count months elapsed
months difference calculator
date month counter
months from date to date
calendar months between dates

APA

TG we-Calculate Editorial Team. (2026). Month Counter — Count Months Between Two Dates [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/month-counter

Chicago

TG we-Calculate Editorial Team. "Month Counter — Count Months Between Two Dates." TG we-Calculate. 2026. https://we-calculate.com/calculator/month-counter.

IEEE

TG we-Calculate Editorial Team, "Month Counter — Count Months Between Two Dates," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/month-counter

BibTeX

@misc{wecalculate_month_counter, title = {Month Counter — Count Months Between Two Dates}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/month-counter}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?