Everyday calculators
Date difference calculator
Count the days between two dates, including an optional inclusive count.
Loading the interactive tool…
When to use each day count
Use elapsed days for the gap between dates. Choose the inclusive count when the start and end dates are both part of the period.
How to compare dates
- Choose a start date and an end date.
- Read the elapsed-day result for the gap, or the inclusive result when counting both dates.
Example across a leap day
Inputs
- Start date
- 2024-02-28
- End date
- 2024-03-01
Outputs
- Elapsed count
- 2 elapsed calendar days
- Both dates counted
- 3 days counting both endpoints
How the counts are calculated
The calculator compares whole calendar dates, not hours. Reversing the dates gives the same positive difference. The inclusive count adds both endpoints, and a same-day range counts as one inclusive day.
elapsed days = |end calendar day − start calendar day|; inclusive days = max(1, elapsed days + 1)
What the result does not include
- The calculation does not count business days, holidays, or hours within a day.
- Invalid calendar dates are rejected rather than normalized.