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.
- Nights, elapsed time, age in days, notice periods that start "after" a date: use the difference. A hotel stay from December 1 to December 3 is 2 nights.
- Days of an event, days of leave, days a subscription is active, days of a trip: use the inclusive count. A conference running December 1 to December 3 lasts 3 days.
- Contracts and deadlines: follow the wording. "Within 30 days of" and "30 days including the start date" can end on different dates, and the document or the rule behind it decides which applies.
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
- Counting the start date and the end date, then also adding one. Pick one convention and stay with it.
- Typing dates in a different order than you meant, such as day and month swapped. The date picker avoids this, and the calculator swaps reversed dates for you.
- Doing the math with clock times across a daylight saving change. Whole-day counting avoids the extra hour entirely, which is why this calculator works on calendar dates only.
Quick summary
- Difference = end date minus start date. December 6, 2026 to January 1, 2027 is 26 days.
- Inclusive count = difference + 1, so the same range is 27 days.
- Use the difference for nights and elapsed time, and the inclusive count for the length of an event or leave.
- 54 days is 7 weeks and 5 days; January 15 to March 10, 2027 is 1 month and 23 days.
- Between February 1 and February 12, 2027 there are 12 calendar days and 10 weekdays.
Open the Date Calculator to try these examples with your own dates. Everything runs in your browser and nothing is sent anywhere.