Date Difference Calculator

Find the exact span between two dates in years, months and days, plus total days, weeks, months and hours — with real calendar month lengths.

Calculators Runs in your browser · no upload

Reviewed 17 November 2026 · Free · No account needed

ExecutionYour browserInput never leaves your tab
File retentionNoneNothing is stored
AccountNot requiredNo sign-up, no paywall
PriceFreeNo trial, no usage cap on the tool itself

How to use

  1. Pick the start date.
  2. Pick the end date.
  3. Read the years/months/days breakdown and the totals.
  4. Change either date to explore other spans instantly.

Example

Input: 2026-01-01 → 2027-03-01

Output: 1 year, 2 months, 0 days · 424 total days · 60 full weeks

How it works

Both dates are converted to calendar days and subtracted. The result is reported in days, and also broken into weeks and into years, months and days using real calendar lengths.

Total days = the UTC calendar-day difference between the two dates, date-only. The years/months/days breakdown borrows whole calendar months when the day-of-month falls short; full weeks = total days ÷ 7; months (avg) = total days ÷ 30.436875; hours = calendar days × 24.

Worked example

2026-01-01 to 2027-01-01 is 1 year, 0 months, 0 days — 365 calendar days, 52 full weeks, 8,760 hours and 11 whole months by the 30.44-day average.

Edge cases to know

  • An end date before the start date is rejected with an error message.
  • Dates are date-only: time of day is ignored, so DST shifts cannot change the totals.
  • January 31 to March 1 is 29 days, not 1 month and 1 day — the breakdown borrows February's real length.
  • Hours and minutes assume uniform 24-hour days (calendar days × 24).

Limits & compatibility

  • Dates are date-only: time of day is ignored, so DST shifts cannot change totals.
  • The months figure counts real calendar lengths; 'months (avg)' uses 30.44 days.
  • Hours and minutes assume uniform 24-hour days (calendar days × 24).

Privacy

All calculations run locally in your browser. Your dates are never sent to a server or stored.

Related tools

FAQ

Questions about Date Difference Calculator

How are the months counted between two dates?

The years/months/days breakdown uses real calendar month lengths — for example, 31 January to 1 March borrows February's actual length. The separate 'months (avg)' figure divides total days by the 30.44-day Gregorian average instead, so the two month numbers will not match. Both conventions are stated on the page so you can pick the one that fits.

Does the date difference calculator handle leap years?

Yes. Total days come from the actual calendar dates, so a range crossing 29 February counts the extra day, and the years/months/days breakdown borrows real month lengths when the day difference goes negative. Both dates are treated as date-only values in UTC, which also keeps time zones out of the arithmetic.

Why does the hours figure not match the real clock time?

Hours are calendar days × 24, and minutes are days × 24 × 60. The tool compares dates only — no time of day — so daylight-saving shifts cannot change any total, but that also means a span with a DST change will not show the missing or repeated hour a clock would. The convention is stated next to the result.

What happens if the end date is before the start date?

You get an error message instead of a result: the end date must not be before the start date. There is no automatic swap or negative result, so if you want the span counted the other way round, exchange the two dates and read the same duration.

What totals does it show besides the breakdown?

Alongside years, months and days, it shows total calendar days, full weeks (whole weeks, remainder ignored), months on the 30.44-day average, hours on 24-hour days, and minutes. Use the breakdown for calendar-accurate answers and the averaged months figure when you need a rough months count for a long span.