Skip to main content
📅 Calendar

Months Between Dates Calculator

Enter two dates to get the number of full calendar months and years between them — with the leftover days, plus the total days and weeks. End-of-month dates handled correctly.

Months & years
Total days & weeks
End-of-month safe
Auto-swaps order
100% Free
📅 Open All Date & Time Calculators 📖 Read the Guide

Months between dates — Quick answer

Count full calendar months by stepping one month forward at a time.

full months + leftover days  ·  years = months ÷ 12

Worked example: 2020-01-15 → 2023-07-20 = 42 months (3 yr 6 mo) + 5 days.

Examples

From → ToMonths
2024-02-29 → 2024-03-291 mo
2020-01-31 → 2020-03-011 mo 1 day
2024-01-01 → 2024-12-3111 mo 30 days

Counts real calendar months — not days ÷ 30.

📅 Months Between Dates Calculator

Enter the start and end dates.

Full months
Years & months
Total days
Total weeks

ℹ️ Counts whole calendar months (28–31 days each), not total days ÷ 30. Reversed dates are swapped automatically.

This calculator counts the full calendar months between two dates by stepping forward one month at a time — clamping the day to each month's length so end-of-month dates behave — then reporting the leftover days. It also breaks the total into years and months and gives the total days and weeks.

Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: forward calendar-month counting, recomputed in code.

How it counts

Full months
step +1 calendar month from start until passing end
Breakdown
years = months ÷ 12 · leftover = days past the last whole month

Calendar months vary from 28 to 31 days, so the only reliable way to count them is to advance month by month. At each step the day is clamped to the target month's length, so one month after Jan 31 lands on Feb 28 or 29. Whatever time is left after the last whole month is reported as days; the total days and weeks come straight from the day difference.

Worked examples

2020-01-15 to 2023-07-20:

Step & leftover
42 full months + 5 days = 3 yr 6 mo 5 days · 1282 days

2020-01-31 to 2020-03-01 (end-of-month):

Clamped
Jan 31 → Feb 29 (1 month) + 1 day · 30 days

2024-01-01 to 2024-12-31:

Almost a year
11 months + 30 days · 365 days

So a span of 1282 days is 42 months, the tricky Jan-31 case is 1 month and 1 day, and a near-full year reads as 11 months and 30 days — not 12 — because Dec 31 hasn't reached Jan 1.

Frequently Asked Questions

How do I count months between dates?

Step forward a month at a time, count full months, report leftover days. 2020-01-15 → 2023-07-20 = 42 mo 5 days.

Why not divide days by 30?

Months are 28–31 days. 2024-01-01 → 2024-12-31 is 11 mo 30 days, not 12, even at 365 days.

End-of-month dates?

The day is clamped per month. Jan 31 → Mar 1 = 1 mo 1 day (30 days total).

Dates entered backwards?

Swapped automatically; the result is always positive.

Same as age in months?

Yes — use birth date and today. Also for leases, loans, projects and subscriptions.

Need more time tools?

Explore date difference, weeks between dates, age, business days and more across the AI Calculator date & time suite.

📅 Open Date & Time Calculators — Free

No registration required · 350+ calculators · PDF report export