Days Between Dates Calculator
Count calendar days with inclusive counting, weeks and weekdays; use Date Calculator for date addition.
Enter valid dates.
Counts Monday to Friday separately from Saturday and Sunday. Holidays are not excluded.
What does this date difference calculator count?
Use this date to date calculator when you know the start and end dates of an interval. The date difference calculator counts the calendar days between them, with separate options for inclusive counting and weekdays.
Days between dates formula
Days between two dates
Total days = |End day serial − Start day serial|
For inclusive counting: Inclusive days = Total days + 1
A day serial represents a calendar date as a whole-day number. Using date-only values avoids daylight-saving and timezone changes that can affect local timestamps.
How to count weekdays between two dates
Within the selected interval, count each calendar day. Count Monday through Friday and skip Saturday and Sunday. Holidays are not excluded.
No rounding is used. Day totals are calculated as whole calendar days.
Start date, end date and day-count variables
Start date: The earlier calendar date in the interval.End date: The later calendar date in the interval for Days Between mode.Day serial: A whole-day number representing a calendar date, used for date-only arithmetic.Include end date: When on, adds one day so both boundary dates are counted.
How to calculate days between two dates
- Read the start date and end date as calendar dates without time-of-day values.
- Convert both dates to whole-day calendar values (day serials).
- Subtract the earlier value from the later value.
- Use the absolute difference so reversed dates still produce a positive span.
- Add one day only when Include end date is selected.
- Divide the total by 7 to show full weeks and remaining days.
- When the weekday and weekend breakdown is enabled, count Monday through Friday separately from Saturday and Sunday.
Days between January 10 and June 22, 2026
Start date: January 10, 2026. End date: June 22, 2026. End date excluded.
- Total days: 163
- Weeks: 23 weeks, 2 days (163 = 23 × 7 + 2)
- Calendar duration: 5 months, 12 days
- Weekdays: 115
- Weekend days: 48 (115 + 48 = 163)
- Start day: Saturday. End day: Monday.
Turning on Include end date changes the total to 164 days.
How to use the days between dates calculator
Choose Days Between to compare two dates.
- Enter the start and end dates.
- Use the Today shortcuts when useful.
- Use Swap dates to exchange the entered dates.
- Turn on Include end date when both boundary dates should count.
- Turn the weekday and weekend breakdown on or off as needed.
Use Copy result to copy the current result, Share to share it, and Reset to restore the calculator's default dates and options.
Common mistakes when counting days between dates
- Confusing inclusive and exclusive counting. By default the end date is excluded; turn on Include end date when both boundaries should count.
- Assuming every month has 30 days. Calendar arithmetic uses actual month lengths and leap years.
- Using local timestamp differences for date-only calculations. Local midnights change with daylight-saving; this calculator uses date-only day serials.
- Calling every Monday-to-Friday date a holiday-adjusted business day. Holidays are not excluded here.
- Confusing total days with the Y/M/D breakdown. 163 total days and 5 months, 12 days describe the fixed January-to-June interval.
How to count days between dates in Excel and Google Sheets
Subtract the start date from the end date for calendar days. Enter real date values, not text, and format the answer as a number. For the fixed example July 4 to July 26, 2026, A2 is July 4 and B2 is July 26.
| Count | Formula | Fixed example |
|---|---|---|
| Exclusive calendar days | =B2-A2 | 22 |
| Whole days, end ≥ start | =DATEDIF(A2,B2,"d") | 22 |
| Inclusive calendar days | =B2-A2+1 | 23 |
| Working days, both boundaries | =NETWORKDAYS(A2,B2) | 15 |
NETWORKDAYS includes both weekday endpoints and skips Saturdays and Sundays. Add a third argument containing holiday dates to exclude holidays. This calculator's default weekday count excludes the later boundary, so switch on Include end date to match NETWORKDAYS without a holiday list. Business days depend on the chosen workweek and holidays.
Spreadsheet references: Microsoft DATEDIF documentation and Microsoft NETWORKDAYS documentation.
Calendar days including and excluding weekends
Calendar days include Saturdays and Sundays. To exclude weekends, use the labelled weekday count rather than subtracting an assumed two days for every partial week. For July 4 to July 26, 2026, the exclusive interval contains 15 weekdays and 7 weekend days: 22 calendar days in total.
For elapsed hours or timestamps rather than whole calendar dates, use the Time Duration Calculator. To add calendar units to a date, use the Date Calculator. For forward offsets from your local date, use the Days From Today Calculator. For a live countdown to December 31, use the Days Left in the Year Calculator.
What do the days between dates results mean?
- Total days: the number of calendar days in the selected interval.
- Weeks: full 7-day weeks plus any leftover days.
- Calendar duration: the span expressed as whole calendar years, months, and remaining days.
- Weekdays (Mon–Fri): Monday through Friday dates in the selected interval.
- Weekend days: Saturday and Sunday dates in the selected interval.
- Start day and end day: the day of the week for each selected date.
- Counting method: whether the end date was excluded or included.
Inclusive vs exclusive day count
By default, the calculator includes the earlier date and excludes the later date. Turn on Include end date when both boundary dates should count. Monday to the following Monday is 7 days with the end date excluded and 8 days when the end date is included. The same date to itself is 0 days by default and 1 day when the end date is included.
How are weekdays and weekends counted between dates?
Weekdays are Monday through Friday. Weekend days are Saturday and Sunday. Holidays are not automatically excluded, so the weekday total is a simple Monday-to-Friday count.
How are calendar years, months and days between dates calculated?
Calendar duration uses actual calendar boundaries instead of fixed 30-day months or 365-day years. The calculator counts whole years first, then whole months, then remaining days. When a date does not exist in the target month, the calculation uses the last valid day of that month.
Browse the date and time calculators for related calendar and clock tasks.
Days between dates FAQs
How do I calculate days between dates in Excel?
Put the start date in A2 and the end date in B2. Use =B2-A2 or =DATEDIF(A2,B2,"d") for whole days when B2 is not earlier than A2. Format the result as a number. Use =ABS(B2-A2) for reversed dates or add 1 to count both dates.
How many working days are between two dates?
Count Monday through Friday in the selected interval. This calculator excludes the end date unless Include end date is selected, and does not exclude holidays. Excel and Google Sheets NETWORKDAYS counts both boundary dates when they are weekdays; an optional holiday list removes holidays.
How do I calculate average days between multiple dates in Excel?
Sort the dates from earliest to latest. Subtract each date from the next date in a helper column, then use AVERAGE on those gaps. That gives the mean interval, not the total span between the first and last dates. This tool compares one pair at a time.
How do I count days between a date and today in Excel?
Use =TODAY()-A2 when A2 is the earlier date, or =ABS(TODAY()-A2) for an absolute span. TODAY uses the spreadsheet's current date and changes as time passes. Here, Use today fills the visitor's local calendar date only after the page opens.
How do I calculate the number of days between two dates?
Compare the two calendar dates and count the whole days in the interval. By default, this calculator excludes the end date.
Is a day counter the same as a days between dates calculator?
For date intervals, yes. Both count the number of calendar days between a start date and an end date.
Are both the start date and end date counted?
By default, the earlier date is included and the later date is excluded. Turn on Include end date to count both boundaries. To add a calendar amount instead of counting an interval, use the Date Calculator.
What happens if the end date is before the start date?
The calculator uses the earlier date first and shows the absolute span between the two dates. A note explains when the dates were entered in reverse order.
How are weekdays and weekends counted?
Monday through Friday are counted as weekdays. Saturday and Sunday are counted as weekend days. Holidays are not excluded.
How are years, months, and days calculated?
The calculator counts whole calendar years, then whole calendar months, then the remaining days. It does not assume fixed 30-day months.
Does the calculator handle leap years?
Yes. Date-only calendar arithmetic correctly includes February 29 in leap years.
Related date and duration calculators
If this helped, the following calculators are useful for date, time, and duration questions:
- Date CalculatorAdd or subtract calendar units and find date duration.
- Time Duration CalculatorLocal clock duration between two date-times.
- Hours CalculatorHours worked between two times, minus breaks.
- Age CalculatorExact age in years, months and days.
- Chronological Age CalculatorCompare calendar and 30-day worksheet age methods.