Date Difference Calculator

Difference = end date − start date

How Date Differences Are Calculated

The date difference between two calendar dates is the span of time separating them. The simplest measure is total days: subtract the earlier date from the later date, accounting for leap years in the intervening years. A result of 365 days means one common year; 366 days spans a leap year. Weeks are total days divided by 7 — 365 days equals 52 weeks and 1 day.

Worked example: from January 1, 2024 to December 31, 2024. January 1 is day 1 of the year; December 31 is day 366 in 2024 (a leap year). The difference is 365 days (not 366) when counting exclusively — the start date is not counted. Inclusively (both endpoints counted), the span is 366 days. Always clarify which convention you need: project timelines often use exclusive counting; legal contracts sometimes use inclusive.

Months and years between dates require calendar-aware arithmetic, not fixed 30-day months. From March 15, 2023 to June 11, 2026: 3 full years (to March 15, 2026), plus 2 months and 27 days (to June 11). That is also 1,184 days exclusive. Approximate months = days ÷ 30.44 (average month length) ≈ 38.9 months, but calendar months (3 years, 2 months, 27 days) are more meaningful for human contexts.

Business applications include contract durations, warranty periods, rental agreements, and employment tenure. Personal uses span relationship anniversaries, time since an event, and gestational age in pregnancy (days from last menstrual period). Pair this calculator with the working-days version when weekends and holidays should be excluded.

Enter a start date and end date to see the difference in days, weeks, approximate months, and calendar years/months/days. Toggle inclusive counting when you need both boundary dates included in the total — essential for matching legal or project-management conventions.

Examples

ExampleResult
Jan 1, 2024 → Dec 31, 2024 (exclusive)365 days, 52 weeks 1 day
Mar 15, 2023 → Jun 11, 20261,184 days; 3y 2m 27d
Jul 4, 1776 → Jul 4, 2026250 years, 0 days
Feb 1, 2024 → Feb 29, 202428 days (leap year February)
Jan 15, 2025 → Mar 15, 202559 days, ~2 months
Sep 1, 2025 → Dec 25, 2025115 days, 16 weeks 3 days
Jun 1, 2020 → Jun 1, 20251,826 days, 5 years
Nov 10, 2024 → Nov 10, 2025365 days, 1 year

Frequently asked questions

Exclusive counting measures the gap between dates without including either endpoint. Inclusive counting includes both the start and end dates in the total — adding one day to the exclusive result.

Common years have 365 days; leap years have 366. The calculator automatically accounts for leap years in the date range.

Yes. Calendar months respect varying month lengths. The result shows full years, remaining months, and leftover days — not fixed 30-day approximations.

Related calculators

Related conversions