Skip to main content
Viralrang
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 Are Loan Payments Calculated? Amortization, Explained

One level payment, front-loaded interest — the formula worked by hand, the two levers you control, and why the smaller payment is often the costlier loan.

July 23, 2026 · 13 min read

How Does Inflation Work? The Math That Shrinks Money

One growth factor, two answers — what today's money will buy later, and how many future dollars it takes to keep up.

July 23, 2026 · 13 min read

How Is Sales Tax Calculated? Rates, Rules, and the Reverse Math

The combined-rate reality, the one-multiplication forward formula, and the division that pulls the tax back out of any total.

July 23, 2026 · 13 min read