Skip to main content
CCalculateWise

How to Count the Days Between Two Dates

Inclusive versus exclusive counting, and why the answer can differ by one.

3 min read

Step by step

  1. Count whole calendar days from the earlier date to the later date.
  2. That result excludes the start date and includes the end date.
  3. Add one if you need both endpoints counted (an inclusive count).
  4. Example: 2026-01-01 to 2026-03-01 is 59 days.

Key takeaway: Decide up front whether both endpoints count.

Inclusive versus exclusive counting

The number of days between January 1 and January 2 is one — but if you are counting nights of a hotel stay, both dates are involved and people often expect two. Decide whether you want the elapsed difference (exclusive of the start) or a count that includes both endpoints.

The calculator reports the elapsed difference. Add one to it whenever your use case counts both the first and last day, such as rental periods billed per calendar day.

How the count is actually computed

Dates are converted to a serial day count and subtracted, which automatically handles month lengths and leap years. That is why 2026-01-01 to 2026-03-01 is exactly 59 days: 31 days of January plus 28 of February.

Time zones and daylight saving do not affect the result because the calculation uses calendar dates at noon, not midnight-to-midnight timestamps.

Practical uses

Contract deadlines, warranty windows, return policies and visa stays are all day counts. A '90-day return window' starting March 1 ends May 30 — count it once with the tool rather than miscounting months as 30 days each.

For project planning, pair the calendar-day count with the business-day count to see how much of the window is actually workable.

Do it automatically

Add or subtract dates, count days between, or count business days.

Open the Date Calculator