Skip to content
CalcTap
Time & Date

Date Difference Calculator

Find exactly how many days, weeks, months, and years lie between any two calendar dates.

Enter your values

Private — runs in your browser

Order doesn’t matter — the result is always the positive gap between the two dates.

Result

Enter your values and press Calculate — your result appears here instantly.

CalcTap AI

Get a step-by-step explanation of your result. Free accounts get 10 AI answers a day.

  • Instant results — no sign-up, no page reloads
  • Your numbers never leave your device
  • Formula, worked example & FAQs below

Editorially reviewed by DP Tech Studio

Last reviewed · We verify date, time, and timezone behaviour against common edge cases such as midnight and DST.

Sources: MDN Web Docs: JavaScript Date

Important: Month and year equivalents are estimates because calendar months have different lengths.

What This Calculator Does

Pick a start date and an end date, then click Calculate. The tool tells you the gap between those two dates in days, weeks, months, and years — all at once. It handles leap years and variable month lengths automatically, so you don't have to work out whether February had 28 or 29 days in a given year.

The result is the absolute difference, so it doesn't matter which date you put in which field — you'll get the same count either way.

Worked Example

Here's what the result looks like for a typical two-year span:

Start Date: January 1, 2024
End Date: March 4, 2026

Total Days: 793 days
Weeks: 113 weeks, 2 days
Months: ≈ 26 months
Years: 2 years, 63 days

When This Tool Comes in Handy

Calendar arithmetic comes up more often than you might expect. Here are some of the most common situations where knowing an exact day count matters:

  • Legal deadlines — Notice periods, appeal windows, and statutes of limitations are often expressed in calendar days. Getting the count right prevents missing a deadline by one day.
  • Age verification — Check whether someone has reached a minimum age (18, 21, 65) by comparing their date of birth to today's date.
  • Subscription and contract tracking — Calculate when a 30-day trial, 90-day warranty, or annual membership is due to expire.
  • Project planning — Know the exact window between a start date and a client deadline, including how many weeks are available.
  • Personal milestones — Find out how many days you've been in a new job, a relationship, or a healthy habit.

Leap Years and Why Month Counts Feel Inconsistent

Not all years are 365 days long. A leap year adds February 29, giving 366 days. Leap years happen every four years — except in century years not divisible by 400 (so 1900 was not a leap year but 2000 was). The calculator accounts for this, which is why you'll get slightly different results for date ranges that span February in a leap year versus a non-leap year.

Month counts also feel uneven because months have different lengths: 28, 29, 30, or 31 days. The displayed month figure is an approximation based on an average month length. For precise contractual calculations, always use the raw day count.

Common Mistakes to Avoid

  • Treating the "months" figure as exact — The month count is an average-based estimate, not a calendar count. For a legal or contractual deadline expressed in months, count actual calendar months from the start date instead of relying on this approximation.
  • Assuming the order of dates matters — This tool always returns a positive difference, whichever date you enter first. If your workflow needs to know which date came first, keep track of that separately.
  • Forgetting to add a day for inclusive counting — Some contracts and bookings count both the start and end date as part of the span (e.g., a 3-night hotel stay spans 4 calendar dates). This calculator gives the gap between dates, not an inclusive day count — add one if your use case needs it.
  • Mixing this up with Working Days — If weekends or public holidays shouldn't count toward the total, this is the wrong tool. Use the Working Days calculator instead, which excludes them.
  • Ignoring leap years in manual estimates — A rough "365 days per year" assumption drifts over multi-year spans. This calculator accounts for leap years automatically, so trust its day count over a hand calculation.

What this tool is not for

This tool counts days between calendar dates; it is not a payroll calendar, a court “clear days” rule, or a substitute for pro-rata clauses in your contract. Public holidays, rest days, and time zones are not modelled here unless you use a more specialised tool.

How to count days between two dates (blog guide)

Frequently Asked Questions

This calculator shows the gap between the two dates. If you need to count both the start and end date as part of a schedule, booking, or project window, add one extra day to the result.
Months are not all the same length, so a span of one month is not always 30 days. That is why date calculations should be based on actual calendar dates rather than fixed assumptions.
Use Date Difference when you need the full calendar gap. Use Working Days when weekends or holidays should be excluded from payroll, delivery, or project planning.
This calculator uses calendar dates only (year, month, day) without time components, so time zone differences do not affect the day count. If you need to account for time zones with hour-level precision, use the Time Duration calculator with full datetime inputs instead.
Not directly with this tool, which measures the gap between two known dates. To find a future date that is exactly N days away, set today as the start date, then adjust the end date until the result matches your desired number of days. Alternatively, use a spreadsheet with a simple date formula like =TODAY()+N.
Have questions about this tool? Visit our FAQ page

Keep going

Calculators people often use next.