How to Calculate Days Between Two Dates
Decide which days should count before you subtract dates. Elapsed days and inclusive calendar days answer different questions.
Calculate elapsed calendar days
To calculate the number of days between two dates, subtract the earlier calendar day from the later one. This is the number of day boundaries between them. For 1 March to 5 March, the elapsed difference is four days. If you count both dates as included calendar days, the result is five.
Our Date Diff calculator returns the nonnegative elapsed difference. It orders reversed dates automatically; it does not return a signed negative interval.
Try the date difference calculator
Choose the From and To dates. The widget shows total days, weeks plus remaining days, weekdays and weekend days. It uses civil dates rather than dividing local clock hours by 24, so the elapsed number of dates does not depend on a daylight-saving clock change.
The breakdown counts days after the earlier date through the later date. It treats Saturday and Sunday as weekend days; it does not have a public-holiday database or a configurable working week.
If the preview does not load, open Date Diff and customize it.
Work through three examples
| Start and end | Elapsed | Inclusive |
|---|---|---|
| 1 March to 5 March 2027 | 4 | 5 |
| 28 February to 1 March 2028 | 2 | 3 |
| 10 June to 10 June 2027 | 0 | 1 |
The second example crosses 29 February in a leap year. If a start and end date are the same, no calendar-day boundary has passed, but one date is included.
For an additional weekday example, from Friday 5 March 2027 to Monday 8 March 2027 the elapsed difference is three days: Saturday, Sunday and Monday. The widget's breakdown is two weekend days and one weekday. Including Friday would add one more weekday to an inclusive count.
Choose the rule for your own task
A hotel stay from 1 March to 5 March often represents four nights because the checkout date is not a night's stay. A workshop covering every date from 1 to 5 March covers five dates. These are different conventions, not competing calculation methods.
For inclusive calendar-day counting add one to the elapsed result. For an inclusive weekday count, also determine whether the earlier date is a weekday and whether holidays or nonstandard working weeks apply. For contracts, official deadlines or leave policies, use the rule specified by the relevant organization instead of assuming the widget's count is authoritative.
Keep the calculator in your workspace
Open Date Diff customization, choose the appearance and size, then copy the generated link into a Notion /embed block. Select the dates whenever you need a calculation. N sets From to today, S swaps the fields and R resets to today and 30 calendar days later when focus is outside inputs.
The widget does not schedule events or sync dates to a Notion database. For a continuously changing display until a target event, see our countdown setup guide.
Common questions
Does the calculator include both dates?
The main result is elapsed days. Add one for an inclusive count of both calendar dates.
Does it handle leap years?
Yes. It computes day numbers from valid civil calendar dates.
Does it count public holidays?
No. The weekday/weekend breakdown uses Saturday and Sunday as weekends without holidays.