How to Use This Date Difference Calculator
Choose Days between dates to measure the gap between two calendar dates. Enter a start date and an end date, decide whether the end date should be counted, and click Calculate. You get the total number of days, the same span as weeks and days, as months and days, and as years, months, and days, plus a count of business days (Monday to Friday) with or without U.S. federal holidays. If the end date comes before the start date, the calculator still works and simply tells you the dates were in reverse order.
Choose Add or subtract days to go the other way: start from a date, add or subtract a number of calendar days, weeks, or business days, and the calculator returns the resulting date and its day of the week. Everything runs in your browser; the dates you enter are not sent anywhere.
Inclusive vs. Exclusive Counting
The most common source of "off by one" disagreements is whether both ends of the range count. By default this calculator uses exclusive counting, which is ordinary date subtraction: it counts the days after the start date, up to and including the end date. That is the answer to "how many days from now until…" and the way most countdowns work. Switch on Include the end date for inclusive counting, which counts the start date as well. Inclusive counting fits questions like "how many days did the trip last?" when you were away on both the first and last day.
Exclusive days = End date − Start date · Inclusive days = (End date − Start date) + 1
Worked example. From Monday, November 2, 2026 to Thursday, December 31, 2026 is 59 days exclusive, which the calculator shows as 8 weeks and 3 days, or 1 month and 29 days. With the end date included it is 60 days, or 1 month and 30 days. Counting business days over the same exclusive span gives 43 weekdays; skipping the three federal holidays that fall inside it (Veterans Day on November 11, Thanksgiving on November 26, and Christmas on December 25) leaves 40 business days. Inclusive counting adds Monday, November 2, for 41.
Years, Months, and Days: How Month Lengths Are Handled
Total days are unambiguous, but "months" are not, because months run from 28 to 31 days. The calculator counts a month as complete when the same day number comes around again: March 15 to April 15 is one month, whatever the number of days in between. When the start day does not exist in a later month, such as the 31st in a 30-day month or February 29 in a common year, the month is treated as complete on the 1st of the following month. So January 31 to March 1, 2026 is exactly 1 month (29 days), and January 31 to February 28, 2026 is 0 months and 28 days.
This is the same rule the Age Calculator uses for birthdays, so the two tools always agree: someone born on February 29 turns a year older on March 1 in common years. Other tools and spreadsheet functions sometimes count from the last day of the shorter month instead, which can shift the months-and-days answer by a day near month ends. The total-days figure is the same either way. Leap years follow the Gregorian rule: a year divisible by 4 is a leap year, except century years, which must be divisible by 400 (2000 was a leap year; 2100 will not be).
Business Days and U.S. Federal Holidays
Business days are the weekdays, Monday through Friday, inside the range. With the holiday option on, the calculator also skips the 11 legal public holidays listed in 5 U.S.C. 6103(a): New Year's Day, the Birthday of Martin Luther King, Jr., Washington's Birthday, Memorial Day, Juneteenth National Independence Day, Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving Day, and Christmas Day. Juneteenth is counted from 2021, the year it became a federal holiday, and Dr. King's Birthday from 1986, its first observance.
When a holiday falls on a weekend, most federal employees get a weekday off instead. According to the Office of Personnel Management, a Saturday holiday is observed on the preceding Friday and a Sunday holiday on the following Monday. In 2026, Independence Day falls on a Saturday, so it is observed on Friday, July 3. The rule can even cross a year boundary: January 1, 2022 was a Saturday, so New Year's Day was observed on Friday, December 31, 2021. The calculator applies these observed dates automatically.
Not everyone closes on the same days. The Federal Reserve Banks stay open on the Friday before a Saturday holiday, many private employers give fewer holidays, and states add their own. Inauguration Day, a holiday only for federal workers in the Washington, D.C. area, is not included. If your organization's calendar differs, use the totals as a starting point and adjust for its specific closures.
Adding and Subtracting Days
Adding calendar days is straightforward date arithmetic: 30 days after Saturday, October 31, 2026 is Monday, November 30, 2026, and 90 days after it is Friday, January 29, 2027. Adding business days steps forward one weekday at a time and skips weekends and, if selected, observed federal holidays. Thirty business days after October 31, 2026 is Tuesday, December 15, 2026, because Veterans Day and Thanksgiving are skipped along the way. Subtracting works the same way in reverse. Adding zero business days returns the start date unchanged, even if it falls on a weekend.
The two modes are consistent with each other: if you add N business days to a date and then measure the business days between the two dates with exclusive counting, you get N back.
Why Time Zones and Daylight Saving Time Don't Change the Answer
A common programming mistake is to subtract two local "midnight" timestamps and divide by 24 hours. On the days clocks change for daylight saving time, a calendar day is 23 or 25 hours long, so that shortcut can produce 58.96 days and round down to the wrong answer. This calculator never uses clock times. It converts each date to a whole-day number on the UTC calendar and subtracts those numbers, so the result is identical in every time zone and on every date, including the March and November clock changes.
Time zones still matter for deadlines described in hours, or when an event happens "at midnight" in another place. A filing due "by 11:59 p.m. Eastern" can fall on a different calendar date for someone in Hawaii. For those cases, convert the deadline to your local time first, then count days.
Deadlines, Contracts, and "Within N Days"
Legal and contractual deadlines often have their own counting rules. Under Rule 6(a) of the Federal Rules of Civil Procedure, for example, you exclude the day of the triggering event, count every day including weekends and holidays, and include the last day, but if the last day lands on a weekend or legal holiday, the period runs to the next day that is not. That matches this calculator's exclusive mode for the count itself, with an extra rollover step for the final day. Other statutes, courts, agencies, and contracts define "days," "business days," or "within" differently. This is general information, not legal advice; check the rule that governs your deadline.
For more on counting conventions, month-length pitfalls, and worked examples, read our guide on how to count days between dates.
Sources: 5 U.S.C. 6103 — Holidays; OPM — Federal Holidays (observed dates and the Saturday/Sunday rule); Federal Reserve Financial Services — Holiday Schedules; Fed. R. Civ. P. 6(a).
For general planning only. Holiday calendars vary by employer, bank, court, and state, and legal or contractual deadlines may use their own counting rules. This is not legal advice.