How to count the days between two dates

The same pair of dates can honestly give two different answers: 26 days or 27. This guide shows when each is right and how to avoid being off by one.

The basic rule: subtract the day numbers

The simplest way to count is to subtract. From December 6, 2026 to January 1, 2027 is 26 days. That number answers "how much time passes between these two moments?" It does not count the day you start on, only the days you move forward to reach the end.

This is the "exclusive" count, and it matches how most people think about a countdown. If today is December 6 and an event is on January 1, you wake up on 26 more mornings before it arrives.

The inclusive count adds one

Sometimes you need to count every calendar day that touches the range, including the first and the last. Then December 1 to December 3 is three days: the 1st, the 2nd and the 3rd. Subtracting gives only 2.

The inclusive count is always the difference plus one. For December 6 to January 1 it is 27 days. For March 1 to March 31, 2027 the difference is 30 days and the inclusive count is 31, which is simply the number of days in March.

Which one should you use?

Ask what you are really counting.

Weeks and days

Divide the difference by 7 to get whole weeks, and keep the remainder. January 15 to March 10, 2027 is 54 days apart. Eight weeks would be 56, so 54 is 7 weeks and 5 days. Writing it that way is often easier to plan around than a big number of days.

Years, months and days

Months are not all the same length, so a "months and days" answer has to follow a rule. A common one is to add as many whole months to the start date as still fit before the end date, then count the leftover days. From January 15 to March 10, 2027, adding one month reaches February 15, and adding two would pass March 10. So the answer is 1 month and 23 days. The calculator uses this rule and labels it as calendar-based, because other rules can differ by a day or two near month ends.

Weekdays and weekend days

To count only weekdays, walk through the range and skip Saturdays and Sundays. From Monday, February 1, 2027 to Friday, February 12, 2027 there are 12 calendar days when both ends are counted. Two of them are a weekend, so 10 are weekdays. A full Monday-to-Friday span always contains the same number of weekdays per week, five, which makes quick mental checks easy.

Notice that weekday counts include both end dates. If the start or end falls on a weekend, it simply isn't counted as a weekday.

Common mistakes

Quick summary

Open the Date Calculator to try these examples with your own dates. Everything runs in your browser and nothing is sent anywhere.