How to use the days between dates calculator
- 1Choose the start date and the end date. Dates can be in any order; the calculator always reports a positive number of days.
- 2Decide whether the end date should count. Leave it off to measure elapsed time; turn it on when both the first and last day count, such as days of a trip.
- 3Read the results: total days, weeks and days, calendar years, months and days, and business days.
How the number of days between dates is calculated
Each date is converted to a running day number (like counting days since a fixed starting point), and one number is subtracted from the other. This is the same idea astronomers use with Julian day numbers and spreadsheets use with date serial numbers. It automatically accounts for different month lengths and leap days.
Days between = day number(end) − day number(start)Inclusive count = days between + 1Worked example
March 15 to August 9 of the same year
- Days left in March after the 15th: 31 − 15 = 16
- Full months in between: April 30 + May 31 + June 30 + July 31 = 122
- Days into August: 9
- Total: 16 + 122 + 9 = 147 days (148 if you include both dates)
Inclusive vs exclusive counting
“How many days between” can mean two different things, and they differ by exactly one day:
| Question | Count | Monday → Friday |
|---|---|---|
| How much time has passed? | Exclusive (end − start) | 4 days |
| How many calendar days does it cover? | Inclusive (end − start + 1) | 5 days |
A hotel booked from Monday to Friday is 4 nights (exclusive), but a conference running Monday through Friday is 5 days (inclusive). Use whichever matches your situation.
Counting business days
Business days are weekdays, Monday to Friday. With the holiday option on, the calculator also skips the 11 US federal holidays, using the observed date when a holiday falls on a weekend (Saturday holidays are observed on Friday, Sunday holidays on Monday).
| Holiday | Date |
|---|---|
| New Year's Day | January 1 |
| Birthday of Martin Luther King, Jr. | Third Monday in January |
| Washington's Birthday (Presidents' Day) | Third Monday in February |
| Memorial Day | Last Monday in May |
| Juneteenth National Independence Day | June 19 |
| Independence Day | July 4 |
| Labor Day | First Monday in September |
| Columbus Day | Second Monday in October |
| Veterans Day | November 11 |
| Thanksgiving Day | Fourth Thursday in November |
| Christmas Day | December 25 |
Days in months and years
| Period | Days |
|---|---|
| Week | 7 |
| 30-day months (April, June, September, November) | 30 |
| 31-day months (Jan, Mar, May, Jul, Aug, Oct, Dec) | 31 |
| February | 28, or 29 in a leap year |
| Quarter | 90–92 |
| Common year | 365 |
| Leap year | 366 |
| Average Gregorian year | 365.2425 |
Counting days in Excel and Google Sheets
Spreadsheets store dates as serial numbers, so date arithmetic is built in:
| Goal | Formula | Notes |
|---|---|---|
| Days between two dates | =B1-A1 | Format the result as a number |
| Days between (function) | =DAYS(B1,A1) | End date first |
| Whole months or years | =DATEDIF(A1,B1,"m") or "y" | DATEDIF is supported but not listed in Excel’s function menu |
| Weekdays between (inclusive) | =NETWORKDAYS(A1,B1) | Counts both end dates if they are weekdays |
| Weekdays excluding holidays | =NETWORKDAYS(A1,B1,H1:H11) | List holiday dates in H1:H11 |
Note that NETWORKDAYS counts both the start and end date, while this calculator’s default business-day count excludes the start date. Turn on “Include the end date” to match spreadsheet behavior.
Common uses
- Project timelines and countdowns to deadlines, launches or events.
- Contract and notice periods, warranty windows and return policies.
- Pregnancy, medication and recovery timelines (always follow your clinician’s dates).
- Ages and anniversaries; for an exact age in years, months and days use the age calculator between two dates.
- Interest calculations that use actual-day counts (actual/365 or actual/360 conventions).