Days Between Two Dates: Exact Count
The number of days between two dates is the total of calendar days from the earlier date up to, but not including or including, the later date depending on your need.
Our date duration tool returns the total days and weeks between any two dates, useful for deadlines, trips, and projects.
Counting Total Days
The tool converts each date to its day number on the calendar and subtracts the earlier from the later, giving a single figure for the whole span.
From 2024-01-01 to 2024-02-01 there are 31 days, because January has 31 days.
Including or Excluding the End Date
Whether the last day counts depends on the question. A hotel stay excludes the checkout day; a rental period often includes it. The difference is exactly one day, so it is worth stating which convention you need.
Leap Years and Month Lengths
Because the count runs on the real calendar, month lengths and leap days need no special handling; they are already baked into the day numbers.
A Quick Sanity Check
For any span, dividing the day total by seven gives the whole weeks with a remainder of days, which is an easy way to test a suspicious result.
If the figure looks far too large, the most common cause is a mistyped year rather than a fault in the arithmetic.
Common Counting Mistakes
Counting both the start and the end date as full days inflates every total by exactly one. The convention has to be chosen before the number is used for anything.
Another frequent slip is reading four weeks as one month. A calendar month is 28 to 31 days, so converting back and forth without a calendar slowly introduces drift.
For a full breakdown rather than a single figure, the date duration calculator splits the same span into years, months, weeks and days.
Open the Date Duration Calculator to measure any span.
Open the Date Duration Calculator →A Worked Example: New Year to Christmas 2026
Count from 1 January 2026 to 25 December 2026 and the tool returns 358 days — 51 weeks and 1 day if you divide by seven. The figure is worth walking once by hand: 365 days in the year, minus the 6 days after Christmas that the span excludes, plus nothing for leap days because 2026 is not one. Every path to 358 confirms the same total, which is what makes it a good calibration example.
Two habits fall out of the exercise. First, the divide-by-seven remainder (here, one day) is an independent cross-check — if a recompute lands on 51 weeks and 4 days, something moved. Second, year-long spans are where leap days get forgotten, because a single 29 February adds a full day to a figure people expect to be round. 2027 to 2028 will hold 366 days; anyone budgeting "365" will be one short.
Negative Spans and Date Order
Subtract the later date from the earlier one and the day count goes negative — a perfectly honest answer to the question as typed. Most tools notice and swap the dates, returning the positive span, but hand arithmetic and spreadsheet formulas will happily report −17 for a reversed week and a half.
The discipline worth building is deciding the direction once, on paper, before any count: earlier-to-later, end date excluded. Then a negative result is a genuine signal that the inputs are reversed rather than a number to be quietly flipped. In scripts and spreadsheets, wrap the subtraction in an absolute value only after the order is confirmed — otherwise a reversed pair hides an input error that the sign was trying to report.
Days as a Currency: Rates, Totals and Prorations
A day count is rarely the destination — it is the multiplier. Hotel bills multiply nights by a rate; interest accrual multiplies days by a daily figure; prorated rent divides a monthly amount by the days in the month and multiplies by the days occupied. In each case the calendar day total is the one input that must be exact, because the money scales with it.
The boundary convention from earlier in this page becomes financial at that point: whether the checkout day counts is worth one night's rate; whether the proration includes the move-in day is one day of rent. Disputes over these figures are almost always disputes about which days count, not about multiplication. Fixing the convention in writing before the arithmetic turns a potential argument into a plain day count.
Misconceptions About Day Counts
The first is that "a month" can stand in for its days. Contracts govern by calendar months — a one-month span starting 31 January ends on 28 February, not 2 March — so mixing month arithmetic with day arithmetic produces different answers on identical inputs. Choose the unit the document uses and stay in it.
The second is that every year contributes 365 days to any span it touches. A span crossing 29 February holds one more day, and multi-year totals inherit one extra day per leap year crossed. The error is invisible in short spans and decisive in decade ones — which is why the calculator counts real days and this page keeps saying "the calendar is already baked in". Let it do the baking; check the crust with the weeks cross-check.
Frequently Asked Questions
Does the count include both dates?
Our tool reports the total calendar days between the two dates; subtract one if you need the nights or exclusive count.
How do I get weeks too?
The result also shows full weeks and leftover days, e.g. 10 weeks and 3 days.
Are leap years included?
Yes. Any February 29 inside the span is counted.
Can I use any two dates?
Yes. Project start to end, holiday to holiday, or any pair you choose.
Why not just divide by 30?
Dividing by 30 ignores real month lengths and drift; calendar subtraction is exact.
Is it private?
Yes. Everything runs in your browser — nothing is sent to a server and nothing is saved.
How do I count only weekdays?
Start from the total day count, then remove Saturdays and Sundays. If holidays must come out too, check which ones fall inside the span before subtracting.
Can the answer ever be negative?
Not here. The tool always measures from the earlier date to the later one, so the result is a positive number of days.
Is this the same as subtracting two timestamps?
For whole dates it is. Timestamps also carry hours and minutes, while this tool works in whole days, which is what most date questions actually need.
Sources
Day counts are just the start — the the site’s age difference calculator breaks the same span into years, months, and days.