Calculation Number Of Days

Instant date span, business days & live distribution

Days Between Two Dates Calculator

Count calendar days between dates.

Result
—

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.

  1. Enter the start date

    Pick the first date of the period, for example the day a lease, trip or project begins.

  2. Enter the end date

    Pick the last date of the period. The calculator accepts end dates in any year from 1 to 9999.

  3. 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.

  4. 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 dateEnd dateDaysWeeks + daysHours
1 Jan 202631 Jan 2026304 w 2 d720
1 Jan 20261 Mar 2026598 w 3 d1,416
1 Jan 20241 Mar 202460 (leap year)8 w 4 d1,440
1 Jan 202630 Jun 202618025 w 5 d4,320
1 Jan 202631 Dec 202636452 w 0 d8,736
1 Jan 20261 Jan 202736552 w 1 d8,760
1 Jan 20241 Jan 202536652 w 2 d8,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.