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
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:
2020-01-31 to 2020-03-01 (end-of-month):
2024-01-01 to 2024-12-31:
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
Step forward a month at a time, count full months, report leftover days. 2020-01-15 → 2023-07-20 = 42 mo 5 days.
Months are 28–31 days. 2024-01-01 → 2024-12-31 is 11 mo 30 days, not 12, even at 365 days.
The day is clamped per month. Jan 31 → Mar 1 = 1 mo 1 day (30 days total).
Swapped automatically; the result is always positive.
Yes — use birth date and today. Also for leases, loans, projects and subscriptions.