Skip to main content
Dates & TimeFree · no sign-up

Date Difference Calculator

How many days between two dates — with the weeks, months, and working-day counts alongside.

Updated

Order doesn't matter — the gap is the same either way.

Days between

358days

11 months, 24 days

Weeks
51 weeks, 1 days
Whole months
11
Working days
256
Weekend days
102

The count runs from the start date up to — but not including — the end date, which is how contracts, notice periods, and shipping windows are normally quoted. Add one day if you need both endpoints counted.

In short

How many days are there between two dates?

Subtract the two dates as whole calendar days, counting the start date and stopping before the end date. From 1 January 2026 to 25 December 2026 is 358 days — 11 months and 24 days on the calendar, 51 weeks and 1 day, and 256 working days. Add one if your question counts both endpoints.

Contracts, notice periods, and rental nights almost always use this exclusive count, which is why a Monday-to-Tuesday booking is one night rather than two.

How to use the date difference calculator

Put a start date in the first box and an end date in the second, and the tool reports the gap between them straight away. Both fields are native date inputs, so you can type the numbers or use your device’s calendar picker, whichever is quicker. The example already loaded, 1 January to 25 December 2026, shows the tool working before you touch anything.

The order you enter them in does not matter: the calculator sorts the pair before it counts, so an end date that sits before the start date gives the same answer rather than a negative number or a zero.

That means you can paste two dates out of an email in whatever order they appeared and still get the right gap, which is worth more than it sounds when the dates arrived as "from the 3rd, until the 28th of last month".

358

Total days

1 January to 25 December 2026

11 m, 24 d

On the calendar

or 51 weeks and 1 day

256

Working days

plus 102 weekend days

The headline number is total days, and it counts the start date but not the end date — the span runs from the start date up to, but not including, the end date. That is how notice periods, rental nights, contract windows, and shipping estimates are normally quoted, and it is why a Monday-to-Tuesday booking is one night rather than two.

When you want both endpoints included — "how many days am I off, counting my first day and my last day?" — add one to the total yourself.

Underneath the total sit the same span described other ways. The calendar breakdown gives you years, months, and days, which answers a genuinely different question from the raw day count: it follows the calendar, so its months are real months of unequal length rather than blocks of thirty days. That is also why the breakdown will never divide neatly out of the day count.

Adding one month to 31 January has no correct answer, only a stated convention, and this tool clamps the anniversary to the last day that exists — 28 February, or 29 February in a leap year. Weeks and whole months are shown alongside for when a project plan, a lease, or an invoice is measured in those units instead.

Whatever you change, the address bar updates to match, so copying the URL hands someone else the exact same two dates and the exact same answer.

Do

  • Add one to the total when your question counts both the first and last day.
  • Check the endpoint convention first when another calculator disagrees by exactly one day.
  • Lean on the plain day count when a contract defines month ends differently.
  • Subtract the public holidays your own calendar observes from the working-day figure.

Don't

  • Expect the years, months, and days line to divide out of the day count.
  • Read 358 days as 11.9 months by dividing by 30.
  • Assume a zero or a negative result when the end date precedes the start.
  • Treat the working-day line as holiday-adjusted, because no holidays are deducted anywhere.

Worked spans from a fixed start date of 1 January 2026, showing the same window as a day count, as a calendar breakdown, in weeks, and split into working days and weekend days.

End dateTotal daysYears, months, daysWhole weeksWorking daysWeekend days
8 January 202670 y, 0 m, 7 d152
15 January 2026140 y, 0 m, 14 d2104
31 January 2026300 y, 0 m, 30 d4228
1 February 2026310 y, 1 m, 0 d4229
15 February 2026450 y, 1 m, 14 d63213
1 March 2026590 y, 2 m, 0 d84217
1 April 2026900 y, 3 m, 0 d126426
1 May 20261200 y, 4 m, 0 d178634
1 July 20261810 y, 6 m, 0 d2512952
1 October 20262730 y, 9 m, 0 d3919578
25 December 2026 (the default)3580 y, 11 m, 24 d51256102
1 January 20273651 y, 0 m, 0 d52261104
1 January 20287302 y, 0 m, 0 d104522208
Every row is the output of this page’s own engine, counting the start date and excluding the end date. Add one to the day count if your question includes both endpoints. Public holidays are not deducted from the working-day column — subtract the ones your own calendar observes.

What about weekends and public holidays?

The last two lines split the span by day of week. Working days counts every Monday through Friday inside the window, and weekend days counts every Saturday and Sunday; together they always add back up to the total, which makes them a useful check that you entered the dates you meant.

Public holidays are not deducted, and that is deliberate rather than an oversight: the United States has 11 federal holidays set by 5 U.S.C. 6103, England and Wales run a different list published at gov.uk, Scotland and Northern Ireland differ again, and private employers in most countries are free to observe whichever they choose.

Only the working days matter?

The working-day split here counts weekdays inside any span. The dedicated tool breaks 2026 down month by month so you can see which holidays land in your window.

Open the working days calculator

The formula, worked line by line

The total is an exact day count, not an estimate. Both dates are converted to UTC midnights before subtracting, so a daylight-saving transition in the middle of the span — an hour lost in spring, an hour gained in autumn — cannot round the answer up or down a day the way a local-time subtraction can.

Every day in the subtraction is exactly 86,400,000 milliseconds long, because a civil date has no time zone attached to it in the first place.

The calendar breakdown is a separate calculation running on the same two dates, and it deliberately does not derive from the day count. Whole months are counted on the calendar first, the monthly anniversary is clamped into whatever month it lands in, and only the remainder is measured in days. Trying to reverse the process — dividing 358 days by 30 or by 365.25 — gives 11.9 months or 0.98 years, neither of which is the answer anyone means.

total days = (end at UTC midnight − start at UTC midnight) ÷ 86,400,000 ms
             counts the start date, excludes the end date
whole months = calendar months from the start date, minus 1 if that month’s anniversary has not arrived
days = day count from that clamped anniversary date to the end date
Days between two datesJan 1, 2026 to Dec 25, 2026 is 358 days, of which 256 are working days.START COUNTS, END DOES NOTfromJan 1, 2026toDec 25, 2026THE SPANcalendar breakdown0y 11m 24dfull weeks51working days256total days358
The span counts the start date and stops before the end date — 358 days, not 359.
The worked defaults, Thursday 1 January to Friday 25 December 2026
1 January to 31 December 2026
364 days (2026 is not a leap year)
25 December is 6 days earlier
364 − 6 = 358 days
Whole months
1 January to 1 December = 11
Leftover days
1 December to 25 December = 24
The span
358 days, or 11 months and 24 days

As weeks that is 51 weeks and 1 day, because 51 × 7 = 357 with one day left over. The working-day split falls out of the same 358: 51 full weeks contribute 51 × 5 = 255 weekdays and 51 × 2 = 102 weekend days, and the single leftover day is Thursday, 24 December, a weekday, so the totals are 256 working days and 102 weekend days, which add back to 358.

Leap years are handled by simply counting the days that exist, with no separate setting and no approximation. The effect is easy to see: the same 1 January to 25 December span is 358 days in 2026 but 359 days in 2028, because 29 February 2028 falls inside the window.

Run the span from 1 January 2026 to 1 January 2028 and you get exactly 730 days, which is 365 + 365, since neither 2026 nor 2027 is a leap year.

Why 31 January to 1 March is one month and one day

The anchored-anniversary method is what keeps the years, months, and days breakdown honest at awkward month ends. Counting whole months first and then measuring the remaining days from the clamped anniversary means 31 January to 1 March comes out as one month and one day, instead of the negative day count you get from borrowing February’s 28 days.

It also settles a real ambiguity rather than pretending there is not one: there is no universally correct value for "31 January plus one month", so the tool states its convention — clamp to the last day of the target month — and applies it everywhere. If a contract of yours defines month-end rollover differently, the day count is the figure to lean on, because it has no convention baked into it beyond the endpoint rule.

Questions people ask

How many days between two dates?

Enter both dates and the calculator subtracts one from the other in whole days. With the example loaded — 1 January 2026 to 25 December 2026 — the answer is 358 days, which is 11 months and 24 days on the calendar, or 51 weeks and 1 day. The count includes the start date and stops before the end date, so add one if you need both endpoints counted. The same span also breaks down into 256 working days and 102 weekend days, and those two always add back to the total, which makes them a quick check that you entered the dates you meant to.

Does the calculator count both the first and last day?

No. It counts the start date and stops before the end date, which is the convention contracts, notice periods, rental nights, and shipping windows use — checking in Monday and out Tuesday is one night, not two. If your question is inclusive of both ends, such as how many days a holiday covers when the first and last day both count, add one to the total. 1 January to 25 December 2026 is 358 days on the tool’s count and 359 days counted inclusively. Where a contract is ambiguous, the safest move is to write out both dates in full and state which convention you are using rather than quoting a bare number.

Are leap years included?

Yes, automatically. The tool counts real calendar days, so any 29 February inside the span is simply one of the days counted — there is no separate setting and no approximation. That is why the same 1 January to 25 December span is 358 days in 2026, a common year, and 359 days in 2028, a leap year: the extra day on 29 February 2028 falls inside the window. The Gregorian rule behind it is that a year is a leap year when divisible by 4, except century years, which must also be divisible by 400 — which is why 1900 had no 29 February and 2000 did.

How many working days is that?

The working-days line counts every Monday through Friday in the span, and the weekend-days line counts every Saturday and Sunday; the two always add back to the total. For 1 January to 25 December 2026 that is 256 working days and 102 weekend days out of 358. Public holidays are not deducted, because they vary by country, state, and employer: the United States has 11 federal holidays set by 5 U.S.C. 6103 and published by the Office of Personnel Management, while England and Wales follow a different list published at gov.uk, with Scotland and Northern Ireland different again. Subtract the ones on your own calendar.

Why does my other calculator give a different number?

Almost always because of the endpoints, and the difference is exactly one day. Some tools count the span between the dates, as this one does, and others count the dates themselves, which includes both ends. Check whether the other result is your number plus one before assuming either is wrong. A rarer cause is time zones: a calculator that subtracts local timestamps can drift by a day across a daylight-saving change, which this one avoids by comparing UTC midnights. A third possibility is the months line rather than the day line, since tools disagree about what one month after 31 January should mean.