Days Between Dates

This “Days Between Dates” calculator helps you measure the day gap between two calendar dates with a clean, shareable breakdown. It’s handy for planning timelines, counting down to milestones, or checking how long something lasted.

You can choose inclusive counting (including the end date), switch to business days (Mon–Fri), and optionally exclude custom holiday dates you paste in. For more tools like this, visit All Calculators or learn more about I Love Calcu.

Outputs include total days, weeks + days, an approximate months breakdown, weekday names, and (in business mode) weekday vs weekend totals with an optional holiday subtraction.

Local date math (no time drift) Inclusive / exclusive toggle Business days + weekends Copy-ready summaries

Calculator

Pick a start and end date, then choose whether to include the end date and how you want to count days. Results appear directly below with a short premium reveal.

Choose the first date (the range begins here).
Choose the last date (the range ends here).
Include end date? ON counts the end day as part of the range (inclusive). OFF returns the exclusive difference.
Business days exclude weekends; optional holiday exclusion is available below.
Exclude holidays OFF by default. This only applies if you enable it and paste custom holiday dates below (YYYY-MM-DD, one per line).
Used only when “Exclude holidays” is ON. Invalid lines are ignored safely.
Results
Ready when you are. Enter two dates and press Calculate to see total days, weeks, an approximate months breakdown, and (if chosen) business-day details.
Calculating…

Headline result

0 days
Mode: Actual/Actual • Inclusive
Weeks + days0 weeks 0 days
Approx. months + days~0 months 0 days
Start weekday
End weekday

Range visual

Total span Business share

Business-day details (when selected)

Business days
Weekend days
Holidays excluded
How the math is shown: after calculation, you’ll see the exact formula used (inclusive vs exclusive) and—if you select business days—the weekday/weekend logic and holiday matches (when enabled).

How it works

Variables: Start Date is the first calendar day, End Date is the last day, Include end date controls inclusive vs exclusive counting, and Convention picks calendar days or business days.

Calendar days formula: we compute the day distance using safe date construction (new Date(y, m, d)) and UTC day math to avoid DST drift. Exclusive mode uses TotalDaysExclusive = End - Start. Inclusive mode uses TotalDaysInclusive = TotalDaysExclusive + 1.

Business days explanation: when you choose business days, the calculator counts only weekdays (Mon–Fri) across the range (respecting inclusive/exclusive). It also reports weekend days, and—if holiday exclusion is enabled—subtracts any pasted holiday that lands on a weekday within the selected range. If anything looks off, you can always reach us via Contact.

Use cases

  • Project planning: estimate how many days (or business days) remain until a delivery date.
  • HR leave tracking: count vacation spans as calendar days or workdays for policy alignment.
  • Shipping and turnaround estimates: compare business-day timelines vs calendar-day expectations.
  • Medical scheduling (general): track intervals between appointments or milestones without giving medical advice.
  • Study and exam prep: map a realistic schedule by weeks + remaining days for consistent pacing.

Examples

Example 1 (same month): Start: 2026-02-04, End: 2026-02-18, Settings: Inclusive ON, Actual/Actual. Output: total calendar days includes Feb 18; weeks + days breaks it into full weeks plus remainder; months is shown as an honest approximation.

Example 2 (across months): Start: 2026-03-10, End: 2026-04-05, Settings: Inclusive OFF, Actual/Actual. Output: exclusive difference counts the gap between dates, not including the end date; helpful for “days until” style countdowns.

Example 3 (year boundary + business days): Start: 2026-12-20, End: 2027-01-10, Settings: Inclusive ON, Business days, Holidays ON with 2026-12-25 and 2027-01-01. Output: business days, weekend days, and “holidays excluded” appear with a step-by-step explanation of what was subtracted.

Common Mistakes

  • Swapping start and end dates (end earlier than start triggers an error).
  • Forgetting the inclusive toggle (inclusive adds 1 day to the exclusive difference).
  • Confusing business days with calendar days (Mon–Fri vs all days).
  • Mixing timezones mentally (this tool uses local calendar dates, not time-of-day timestamps).
  • Entering holiday lines in the wrong format (use YYYY-MM-DD, one per line).

Quick Tips

  • Use Business days for work schedules, contracts, and turnaround times.
  • Use Inclusive when you mean “including the start day and the end day.”
  • Copy the full summary to paste into emails, quotes, or project notes.
  • Keep your holiday list clean: one YYYY-MM-DD per line, no extra text.
  • For long ranges, lean on weeks + days for a quick sanity check across leap years.

FAQ

What’s the difference between inclusive and exclusive counting?
Inclusive counting treats the end date as part of the range. That means a one-day range where start and end are the same date returns 1 day. Exclusive counting measures only the gap between the two dates and does not include the end date, so the same-date case returns 0. People usually prefer inclusive for “from X through Y” schedules and exclusive for “days until Y.” This calculator labels the mode clearly and shows the exact formula used so you can confirm the interpretation.
Does this calculator handle leap years correctly?
Yes. Leap years are handled naturally because the calculation is based on real calendar dates, not a fixed 365-day assumption. When your range crosses February in a leap year, the extra day is automatically included in the calendar-day difference. The weeks + days breakdown also remains correct because it’s derived from the final day count. If you choose business days, weekdays and weekends are counted across the actual calendar sequence, so leap-year dates behave the same way as any other date.
How are business days counted (Mon–Fri)?
In business days mode, each day in the selected range is evaluated as a weekday (Monday through Friday) or a weekend day (Saturday/Sunday). The calculator totals weekday days as “business days,” totals Saturdays and Sundays as “weekend days,” and then applies your inclusive/exclusive rule consistently. This is a practical convention for office schedules and service-level timelines. The results panel also explains the logic in plain language and shows which steps were used so you can audit the calculation quickly.
How does the holiday input work?
Holiday exclusion is optional and OFF by default. If you toggle it ON, you can paste custom dates in the textarea using the format YYYY-MM-DD, one per line. The calculator validates each line; invalid entries are ignored safely rather than breaking your results. When business days mode is active, holidays that land on weekdays inside the chosen range are subtracted from the business-day count. Holidays that fall on weekends are not subtracted twice. The results will show “Holidays excluded: N” so you can confirm what changed.
Why is the months + days breakdown “approximate”?
Months are not a fixed length, so any single “months between” number can be misleading without a definition. This calculator presents an approximate months breakdown as “~ months + days,” using a clear, consistent method: it divides total days by 30.4375 (the average days per month) and then reports a remainder in days. That makes the value useful for rough planning while staying honest about variability. For strict month boundaries (like billing cycles), rely on your specific policy rather than an averaged month estimate.
What happens if the end date is earlier than the start date?
If the end date is earlier than the start date, the calculator shows an inline error message and does not render results. This prevents confusing negative outputs and makes it clear that the range is invalid. If you intended to measure backward in time, simply swap the inputs and calculate again. The tool is designed for readable, “start → end” timelines where the date order matters. Once you correct the dates, the results will animate in below the inputs as usual.
Is my data private, or is anything sent to a server?
Your inputs are processed locally in your browser. The calculator does not require accounts, and it doesn’t send your dates or holiday lists to an external server as part of the computation. Copy buttons generate plain-text summaries on your device using your browser’s clipboard features. As with any website, general analytics or hosting logs may exist outside the calculator logic, but the date math itself runs privately on the page. If privacy matters, you can also clear the fields and use Reset when you’re done.
What rounding or accuracy rules does this tool follow?
Day counts are always whole integers because the calculator works with calendar dates rather than times of day. Weeks are shown as full weeks plus remaining days using simple division and remainder. The months breakdown is marked as approximate and uses an average month length, so it is rounded to the nearest whole month count in the display while still showing leftover days. In business-day mode, each calendar day is classified as weekday or weekend, and holidays are subtracted only when they are valid weekday dates inside the chosen range.

Trust & Accuracy

Accuracy note: the calculation runs locally in your browser using calendar-safe date construction and UTC day math to reduce DST-related drift.

Rounding / precision policy: total days are integers. Weeks are shown as floor(totalDays / 7) plus remainder. Months are shown as an honest approximation using an average month length (30.4375 days), labeled with a “~”.
Privacy-first statement: your dates and any holiday list stay on your device for the computation; nothing is required to be sent for the results to appear.

Last Updated: February 4, 2026

Sources & References: standard calendar arithmetic, weekday conventions (Mon–Sun), and common “business days” practice (Mon–Fri).
Copied!
🚧
Coming Soon

This calculator is being built.

×