Days Between Two Dates Calculator
Count calendar days between dates.
How the Days Between Two Dates Calculator Works
The Days Between Two Dates Calculator subtracts the start date from the end date and returns the number of calendar days that separate the two dates. The count runs from the start date up to the end date, so 1 January to 2 January equals 1 day.
Enter the start date
Pick the first date of the period, for example the day a lease, trip or project begins.
Enter the end date
Pick the last date of the period. The calculator accepts end dates in any year from 1 to 9999.
Read the day count
The result shows total calendar days. Swapped dates still return a positive number. The tool measures the size of the gap, not the direction.
Add 1 day for inclusive counts
Add 1 to the result, if both the first and the last day must count, as with event days or hotel stays charged per day.
How the Count Is Calculated
The Days Between Two Dates formula converts both dates to day numbers and subtracts the smaller day number from the larger day number.
Days = | Day number(End date) − Day number(Start date) |- Day number
- A running count of days from a fixed reference date, such as the Unix epoch (1 January 1970).
- End date
- The later boundary of the period.
- Start date
- The earlier boundary of the period.
- | |
- Absolute value. The result is never negative.
Example: 1 January 2026 to 1 March 2026. January has 31 days and February 2026 has 28 days, so the gap is 59 days (8 weeks and 3 days, or 1,416 hours).
Worked Examples
The table lists day counts for common 2026 periods, with weeks and hours for the same span.
| Start date | End date | Days | Weeks + days | Hours |
|---|---|---|---|---|
| 1 Jan 2026 | 31 Jan 2026 | 30 | 4 w 2 d | 720 |
| 1 Jan 2026 | 1 Mar 2026 | 59 | 8 w 3 d | 1,416 |
| 1 Jan 2024 | 1 Mar 2024 | 60 (leap year) | 8 w 4 d | 1,440 |
| 1 Jan 2026 | 30 Jun 2026 | 180 | 25 w 5 d | 4,320 |
| 1 Jan 2026 | 31 Dec 2026 | 364 | 52 w 0 d | 8,736 |
| 1 Jan 2026 | 1 Jan 2027 | 365 | 52 w 1 d | 8,760 |
| 1 Jan 2024 | 1 Jan 2025 | 366 | 52 w 2 d | 8,784 |
What the Tool Measures
A Days Between Two Dates Calculator is a date tool that counts the calendar days from one date to another date. The tool uses the Gregorian calendar, real month lengths of 28, 29, 30 or 31 days, and 29 February in leap years.
The default count is exclusive of the end date. 10 March to 15 March returns 5 days, which matches how interest periods, rental nights and age are measured. Inclusive counting adds 1 day to the same result.
The calculator treats each date as a whole local calendar day. Daylight saving time (DST) changes shift clocks by 1 hour, but the tool never gains or loses a day from a DST switch.
When to Use This Tool
There are 6 common uses of the Days Between Two Dates Calculator, including deadline planning and travel planning.
Project timelines
Project managers count the days left between a kickoff date and a delivery date.
Travel planning
Travelers count trip length to check visa limits, such as 90 days in a 180-day window.
Loan and interest periods
Lenders count the exact days between a disbursement date and a repayment date to work out daily interest.
Pregnancy and health tracking
Patients count days between appointments, medication start dates and test dates.
Legal deadlines
Paralegals count the days between a filing date and a response deadline.
Personal countdowns
People count the days between today and a wedding, exam or holiday.