How to calculate days between dates
- Pick a start date and an end date.
- Tick Include the end date if both the first and last day should be counted.
- Click Calculate difference.
- Read the result in years, months and days, plus total days, weeks, weekdays and hours.
Inclusive vs exclusive counting
By default the calculator counts from the start date up to, but not including, the end date. From 1 March to 2 March is 1 day, the same way you count nights in a hotel. When you include the end date, both days count, so 1 March to 2 March is 2 days. Inclusive counting suits leave requests, rentals, events and deadlines where the last day matters. The tool explains which rule was used with every result.
Years and months are calculated with real calendar months, not averages. When a start date falls on a day that doesn’t exist in a later month, like 31 January, the month is counted to the last day of the shorter month. Total days include leap days. Weekdays count Monday to Friday and don’t take public holidays into account, as these differ by country.
Useful for
- Counting days until a holiday, exam or deadline.
- Working out the length of a contract, project or notice period.
- Calculating how long you have lived somewhere or worked for a company.
- Checking working days between two dates.
Examples
| From – to | Difference | Days (exclusive) | Days (inclusive) |
|---|---|---|---|
| 1 Jan 2026 – 1 Jan 2027 | 1 year | 365 | 366 |
| 15 Jan 2026 – 15 Jul 2026 | 6 months | 181 | 182 |
| 31 Jan 2026 – 28 Feb 2026 | 1 month | 28 | 29 |
| 1 Mar 2026 – 2 Mar 2026 | 1 day | 1 | 2 |
The third row shows the month-end rule: because February has no 31st, 31 January to 28 February counts as one full month.
Counting working days
Weekdays are Monday to Friday. From 1 January 2026 up to, but not including, 1 January 2027 there are 261 weekdays. Public holidays aren’t removed automatically because they differ by country and region, so subtract the ones that apply to you.
Date difference FAQ
Can the end date be before the start date?
No. You’ll be asked to swap them, and the Swap button does it for you.
Are public holidays excluded from weekdays?
No. Holidays vary by country and region, so subtract them yourself if needed.
How far apart can the dates be?
Any valid dates work. Weekday counts are shown for ranges up to about 100 years.
How many days are there in a year?
A common year has 365 days and a leap year has 366. Leap years are divisible by 4, except century years, which must also be divisible by 400: 2000 was a leap year, 2100 will not be.
How do I count days between dates in Excel?
Subtract the earlier date from the later one, for example =B1-A1. For working days use =NETWORKDAYS(A1, B1), which counts both the start and end dates and can also exclude a list of holidays.
Last updated: 8 November 2026.