Days Between Two Dates

Calculate days between dates or add and subtract days from any date

Quick answer

Enter two dates in the Date Difference tab to instantly see the gap in total days, workdays (Mon-Fri), weeks, and a years-months-days breakdown. Switch to Add / Subtract to find the date that is a given number of days before or after any starting date. Both modes update instantly as you type - no button press needed.

How to use this calculator

Date Difference mode

Enter a start date and end date - the calculator accepts them in either order and always returns a positive result. Use the Today buttons to quickly anchor either date to the current date. The Swap button exchanges both dates without re-entering them. Results show six values simultaneously: total days, weeks (with remaining days), workdays, a years-months-days breakdown, hours, and minutes.

Add / Subtract mode

Enter a start date, choose whether to add or subtract, and enter a number of days. The result shows the exact resulting date with its full weekday name, ISO week number, and how many days it is from today. This mode is useful for calculating deadlines ("30 days from contract signing"), expiry dates ("90 days from today"), and notice periods. To find how many days until a future date or since a past date, use Date Difference with Today as one of the inputs.

Days between dates

The number of days between two dates is the count of calendar days from the earlier date to the later date, not counting the start date itself. This is called exclusive counting and is the standard mathematical convention:

  • January 1 to January 5 = 4 days (Jan 2, 3, 4, 5 — not counting Jan 1)
  • January 1 to February 1 = 31 days (all of January)
  • January 1 to December 31 in a non-leap year = 364 days

If you need inclusive counting (counting both the start and end date), add 1 to the result. This matters in contexts like "how many days is a 3-day event running from Thursday to Saturday?" — the answer is 3 inclusive (Thu, Fri, Sat), which is 2 by exclusive counting.

Leap years

February has 29 days in a leap year and 28 in a non-leap year. A year is a leap year if it is divisible by 4, except for century years (1900, 2100), which must also be divisible by 400 (2000 was a leap year; 1900 was not). Any date range that crosses February of a leap year will be 1 day longer than the same range in a non-leap year. This calculator handles leap years automatically.

Workdays vs calendar days

This calculator shows both total calendar days and workdays (Monday through Friday). The two figures answer different questions:

Use caseWhich count to use
Payment terms (Net 30, Net 60)Calendar days
Project deadlines from a contract dateCalendar days (unless contract specifies business days)
Statutory notice periodsCalendar days (most jurisdictions)
Delivery estimates from a carrierWorkdays (Mon-Fri, sometimes excluding holidays)
Work effort estimation (sprints, tasks)Workdays
Court filing deadlinesUsually calendar days — always verify the specific rule
Bank processing timesWorkdays (business days), often excluding public holidays

Public holidays: This calculator counts Mon-Fri only. It does not exclude public holidays because these vary by country, region, and employer. If you need a holiday-adjusted workday count, subtract the number of public holidays that fall on weekdays within the period from the workday total shown.

A standard year contains approximately 261 workdays (the exact number varies between 260 and 262 depending on how weekends align with the start and end of the year). A typical month averages 21-22 workdays.

Adding and subtracting days

Adding or subtracting days from a date is straightforward: each day shifts the calendar by exactly one position, regardless of month boundaries or leap years. Common applications:

  • Contract deadlines: A 30-day payment term from an invoice dated March 15 falls on April 14.
  • Notice periods: A 90-day notice period starting October 1 ends December 30.
  • Drug expiration: A 28-day course of medication starting January 3 ends January 30.
  • Trial periods: A 14-day free trial starting November 20 ends December 3.
  • Warranty and returns: A 30-day return window from a December 1 purchase expires December 31.
  • Financial quarters: Add 90 days to a quarter start to estimate the quarter-end date (actual quarter boundaries are fixed by calendar, so this is approximate).

Note that "add 1 month" and "add 30 days" are not the same thing. The Add / Subtract mode in this calculator adds or subtracts calendar days only. For month-based arithmetic, see the section below.

Month and year arithmetic

The years-months-days breakdown in the Date Difference result uses exact calendar month counting, which behaves differently from simply dividing days by 30. The rules:

  • A complete calendar month elapses when the day-of-month in the end date is equal to or later than the day-of-month in the start date.
  • If the end date's day-of-month is earlier, the most recent month is not yet complete and the remaining days are counted from the end of the previous month.
Start dateEnd dateResultNotes
Jan 1Feb 11 month 0 daysExactly one calendar month
Jan 1Mar 152 months 14 daysTwo complete months plus 14 days
Jan 31Feb 280 months 28 daysNot a full month (Feb 28 < Jan 31 + 1 month)
Jan 31Mar 11 month 1 dayJan 31 + 1 month = Feb 28/29; + 1 day = Mar 1
Jan 31Mar 312 months 0 daysExactly two calendar months
Feb 28Mar 281 month 0 daysExactly one month regardless of Feb length
Dec 31, 2023Jan 1, 20240 months 1 dayJust one calendar day across a year boundary

The total days figure is always exact. The years-months-days breakdown is the most natural human-readable interpretation but should not be used for precise contractual calculations where the exact day count matters.

Excel and Google Sheets formulas

For automating date calculations in spreadsheets, these are the most useful built-in functions:

What to calculateExcel / Sheets formulaNotes
Days between two dates=B1-A1Format the cell as Number. Works in both Excel and Sheets.
Workdays between two dates=NETWORKDAYS(A1,B1)Inclusive of both start and end date. Optional third argument for holidays.
Add N days to a date=A1+30Simply add a number. Ensure the result cell is formatted as Date.
Add workdays to a date=WORKDAY(A1,30)Adds 30 working days (Mon-Fri). Optional third argument for holidays.
Years elapsed=DATEDIF(A1,B1,"Y")DATEDIF is undocumented in Excel but works in all versions.
Remaining months after years=DATEDIF(A1,B1,"YM")Months in the partial year after complete years are subtracted.
Remaining days after months=DATEDIF(A1,B1,"MD")Days in the partial month after complete months are subtracted.
ISO week number=ISOWEEKNUM(A1)Returns the ISO 8601 week number for any date.

Note that NETWORKDAYS counts both the start and end date as workdays if they fall on weekdays, giving an inclusive count. This is 1 more than the workday figure this calculator shows (which uses exclusive counting, matching the total days convention).

Common mistakes

Off by one: exclusive vs inclusive counting

The most common date calculation mistake is not knowing whether the start date or end date (or both) should be counted. This calculator uses exclusive counting: start is not counted, end is counted. So January 1 to January 5 = 4 days. If your context requires inclusive counting (both start and end), add 1 to the days result.

Legal and financial contexts often specify "within 30 days" or "30 days from" — always read the contract or statute carefully to determine whether the start date counts as day 0 or day 1.

Treating all months as 30 days

Dividing a day count by 30 to get "months" is an approximation. February has 28 or 29 days; most other months have 30 or 31. Twelve months is not always 360 days — it is 365 or 366 days. For precise month-based calculations, use the years-months-days breakdown from this calculator or the DATEDIF function in Excel rather than dividing the day count.

Ignoring time zones and Daylight Saving Time

Date calculations based on calendar days do not need to account for time zones or DST. However, if you are calculating a duration in hours or minutes and crossing a DST boundary, a day may be 23 or 25 hours rather than 24. The hours and minutes values in this calculator are derived from the day count multiplied by 24 and 1440, which assumes every day is exactly 24 hours. For high-precision time-of-day calculations, use a dedicated timestamp calculator.

Confusion between the two workday counting conventions

Excel's NETWORKDAYS counts both the start and end date as workdays if they are weekdays (inclusive). This calculator counts Mon-Fri days in [start, end) — exclusive of the start, inclusive of the end. This matches the total days convention but differs from NETWORKDAYS by 1 when both dates are weekdays. Be consistent in whichever convention you use within a single calculation.

FAQs

How do I calculate the number of days between two dates?

Enter both dates in the Date Difference tab. The result appears instantly in total days, weeks, workdays, and a years-months-days breakdown. The calculator always returns a positive result regardless of which date you enter first.

How do I find what date is 90 days from today?

Switch to the Add / Subtract tab. Click the Today button to set the start date, choose Add, and type 90 in the days field. The resulting date appears instantly with its weekday name, ISO week number, and how many days it is from today.

What counts as a workday?

Monday through Friday. Weekends (Saturday and Sunday) are excluded. Public holidays are not excluded because they vary by country and employer. Subtract any holidays that fall on weekdays within the period to get a holiday-adjusted figure.

How many workdays are in a year?

Approximately 261, ranging between 260 and 262 depending on the year. Enter January 1 and December 31 of any year in the Date Difference tab to see the exact workday count for that year.

Does February have 28 or 29 days?

29 days in a leap year (divisible by 4, except century years not divisible by 400), 28 days otherwise. This calculator handles leap years automatically.

Why is "1 month" not the same as 30 days?

Because calendar months have different lengths. One calendar month from January 31 is February 28 or 29 (not March 3). The Y/M/D display uses exact calendar month counting, not 30-day approximations.

How do I calculate days between dates in Excel?

Use =B1-A1 formatted as a number for calendar days. Use =NETWORKDAYS(A1,B1) for workdays (inclusive of both dates). Use =DATEDIF(A1,B1,"D") for an explicit day count via the DATEDIF function.

How do I calculate the number of business days between two dates?

Use the workdays figure in the Date Difference tab, then subtract any public holidays that fall on weekdays in the period. For spreadsheet use, =NETWORKDAYS(A1,B1,holidays) accepts an optional range of holiday dates to exclude automatically.