Skip to content
TNToolsNexus

Date difference calculator

Count the days between two dates — total days, weeks plus days, and a calendar breakdown, with an option to include the end day.

Calculations run in your browser — nothing you enter is sent or stored.

Maintained by ToolsNexus

Pick two dates and get the gap between them three ways at once: total days, weeks plus days, and a calendar-accurate years, months, and days breakdown. A checkbox switches to inclusive counting when the end day itself should count. It’s free, instant, and the dates you enter stay in your browser.

How to use

  1. Pick a start date and an end date — typing or using the date picker both work.
  2. Tick include the end day if both endpoints should count (see below for when).
  3. Read the three results; they update as soon as both dates are set.
  4. If you enter the dates backwards, the tool swaps them and tells you so.

The three views answer different questions on purpose. Total days is the unambiguous figure — use it for anything contractual. Weeks-plus-days maps a span onto your calendar’s rhythm. The years/months/days breakdown reads naturally in conversation and matches how tenure, warranties, and subscriptions are usually phrased.

Deadlines, notice periods, and bookings

Most everyday date questions are really day-counting questions. A “30-day notice” on a lease: give notice today and count 30 days forward to find your last effective day. A visa that allows “90 days from entry”, a return window of 14 days from delivery, a project milestone 6 weeks out, or the number of nights between check-in and check-out — all of them are start-to-end counts, and most are exclusive of the start day, which is exactly the default here. The weeks-plus-days view answers scheduling questions directly (184 days is 26 weeks and 2 days — so a deadline that far out lands on a different weekday two days later), while the years/months/days breakdown is what HR systems and rental agreements usually want. To turn a date gap into an age instead, use the age calculator, which applies the same calendar rules to a date of birth.

Inclusive or exclusive? The off-by-one that costs money

The single biggest source of date-math disputes is whether the last day counts. Hotel stays are priced per night (exclusive: check in Monday, out Friday, pay for 4). Car rentals, insurance cover, and per-diem allowances usually count days (inclusive: Monday through Friday is 5). Legal deadlines vary by jurisdiction but commonly exclude the trigger day and include the final day. The include the end day checkbox exists precisely for this: run the count both ways and you’ll see the one-day difference before it becomes a billing surprise. If you then need the gap as a share of something — say, 45 elapsed days out of a 90-day window — our percentage calculator finishes the job (that’s 50%, exactly).

Limits

  • Whole calendar days only — times of day, hours, and minutes are ignored, and time zones don’t affect the count because both dates are treated as plain calendar dates.
  • Business or working days aren’t counted separately (yet) — the totals include weekends and holidays.
  • The years/months/days breakdown uses the month-clamping convention described in the FAQ; other tools may split the same span slightly differently, though the total-days figure will always agree.
  • The Gregorian calendar is applied to all dates, including historical ones before its adoption.

Everything is computed locally in your browser — nothing you enter is sent or stored. See the full set of calculators for more like this, or our file tools for PDFs and images with the same privacy guarantee.

Last updated:

Frequently asked questions

Does the calculator count both the start and end dates?
By default it counts the nights-between convention: start date excluded, end date reached — so Monday to Friday is 4 days. Tick "include the end day" to count both endpoints (Monday to Friday becomes 5), which is how rentals, per-diems, and inclusive deadlines are usually counted.
How many days are between January 1 and July 4, 2026?
184 days — 30 remaining in January, then 28 + 31 + 30 + 31 + 30 for February through June, plus 4 days of July. That is exactly 26 weeks and 2 days.
How are leap years handled?
February 29 is counted like any other real day: February 28 to March 1 is 2 days in 2024 but 1 day in 2026. The calculator applies the full Gregorian rules, including the century exceptions (1900 was not a leap year; 2000 was).
What happens if my end date is before my start date?
The dates are swapped automatically and a note appears telling you so. The difference is always shown as a positive number — useful when you're counting backwards from a deadline.
Why is the months breakdown different from total days divided by 30?
Because real months have 28 to 31 days, the years/months/days breakdown walks the actual calendar: it advances whole months from your start date, clamping month-end starts (Jan 31 to Feb 28 counts as one month), then counts the leftover days. Total days is the precise figure; the breakdown is the human-readable one.

Related tools

Age Calculator

Turn a date of birth into an exact age in years, months, and days — plus total days lived and a countdown to the next birthday.

Percentage Calculator

Solve all three percentage questions in one place — X% of Y, X as a percent of Y, and percent change — instantly, with the sentence spelled out.

BMI Calculator

Check your body mass index in metric or imperial units and see your WHO weight category instantly — with the exact formula and sources shown.