Date Difference Calculator

Find out exactly how many days, weeks, months, or years are between two dates.

0
total days
Weeks
0
Months (approx.)
0
Years, Months, Days
-
Ad placeholder - below-the-fold, in-content unit

Why calculating exact date differences is harder than it seems

Counting the days between two dates sounds simple, but manual counting quickly runs into complications: months have different numbers of days, leap years add an extra day to February every four years, and it's easy to make off-by-one errors when counting inclusively versus exclusively. This tool avoids all of that by calculating the exact difference programmatically, accounting for actual calendar lengths and leap years automatically.

Beyond the simple day count, this tool also breaks the difference down into weeks, an approximate month count, and a precise years/months/days format โ€” useful because "142 days" is much harder to intuitively grasp than "4 months and 20 days."

Common uses for date difference calculations

People use this kind of calculation for a wide range of purposes: figuring out how many days remain until a deadline, calculating someone's exact age in years, months, and days for legal or medical purposes, determining the length of an employment period or lease, planning how many days are left until a trip or event, or working out contract terms that specify a number of days rather than a calendar date.

Why the years/months/days breakdown isn't a simple division

You might expect that dividing total days by 30 gives you an accurate month count, but because months vary between 28 and 31 days, this approach drifts increasingly inaccurate the larger the date range gets. This tool instead calculates the years, months, and days breakdown by working through actual calendar months one at a time, which is why it correctly handles edge cases like date ranges crossing February in a leap year.

Does this include both the start and end date?

The day count reflects the number of days that pass between the two dates, not an inclusive count of both endpoints โ€” for example, from January 1 to January 2 is counted as 1 day, not 2.

Does this account for leap years?

Yes, the calculation is based on actual calendar dates, so any leap year February 29th falling within your date range is automatically included in the day count.

Why does the month count look approximate?

The "months (approx.)" figure divides total days by an average month length (30.44 days), which is useful for a quick estimate. The more precise years/months/days breakdown below it accounts for actual calendar month lengths instead.

Can I calculate a date in the past from today?

Yes โ€” enter today's date as one of the two fields and any past or future date as the other; the tool works the same regardless of which date comes first chronologically.