How to count days between dates

Quick answer
How do you count days between two dates?
To count days between dates, subtract the start date from the end date. Add one only if both the first and last day should count, as with leave. From 1 January to 31 December 2026 is 364 days, or 365 counting both ends, which includes 261 working days from Monday to Friday.
- Gap: end date − start date
- Period covering both days: end − start + 1
- Working days: Monday to Friday, before holidays
What is the basic rule for counting days between dates?
Counting days sounds simple, but there are two different questions hiding inside it:
- How long is the gap? From the start date to the end date. This is the end date minus the start date.
- How many days does the period cover? Both the first and last days are included. This is the gap plus one.
A quick test: from Monday to Tuesday is a gap of 1 day, but if you work both days, that’s 2 days of work. Choosing the wrong one is the most common counting error.
The date difference calculator gives the gap by default. Tick “Include the end date” to count both ends.
Should you include the end date or not?
Use the gap (don’t include the end date) when you’re measuring time from one moment to another:
- How many days until a birthday, an exam or a holiday.
- How long ago something happened.
- How long until a deadline or a due date.
Include the end date when you’re counting days that something lasts:
- Leave from 1 to 5 March: 5 days, not 4.
- Event or course dates, where both the first and last days happen.
Hotel stays are the exception people forget. You pay for nights, not days, so a stay from the 1st to the 5th is 4 nights: the plain gap.
Worked examples: days between dates
| From | To | Include end? | Days | Weeks | Working days (Mon–Fri) |
|---|---|---|---|---|---|
| 1 Mar 2026 | 5 Mar 2026 | No | 4 | 0 + 4 days | 3 |
| 1 Mar 2026 | 5 Mar 2026 | Yes | 5 | 0 + 5 days | 4 |
| 1 Jan 2026 | 31 Dec 2026 | No | 364 | 52 | 260 |
| 1 Jan 2026 | 31 Dec 2026 | Yes | 365 | 52 + 1 day | 261 |
| 21 Oct 2026 | 25 Dec 2026 | No | 65 | 9 + 2 days | 47 |
| 21 Oct 2026 | 1 Jan 2027 | No | 72 | 10 + 2 days | 52 |
| 21 Oct 2026 | 31 Mar 2027 | No | 161 | 23 | 115 |
The last row is handy in India, where the financial year ends on 31 March. The calculator has a shortcut button for it.
You can also read the gap as years, months and days. 21 October 2026 to 1 January 2027 is 2 months and 11 days.
How are working days counted?
Working days are the weekdays, Monday to Friday, between your two dates. The calculator steps through each day and leaves out Saturdays and Sundays.
For example, a two-week work assignment from Monday 26 October to Friday 6 November 2026, counting both ends, covers 12 calendar days and 10 working days.
Public holidays are not removed. They differ by state in India and by state and employer in the US, so subtract them yourself:
- Get the weekday count from the calculator.
- List the holidays that fall on weekdays in your period.
- Subtract them.
If your workplace has a six-day week or alternate Saturdays off, adjust in the same way.
How do leap years and month lengths affect the count?
Months range from 28 to 31 days, and February gains a day in leap years. That’s why “one month” or “three months” isn’t a fixed number of days.
| Period | Days |
|---|---|
| 1 Feb to 1 Mar 2027 | 28 |
| 1 Feb to 1 Mar 2028 (leap year) | 29 |
| 1 Jan to 1 Apr 2026 | 90 |
| 1 Jul to 1 Oct 2026 | 92 |
| Whole year 2026 | 365 |
| Whole year 2028 | 366 |
A leap year has a 29 February. Years divisible by 4 are leap years, except century years that aren’t divisible by 400. So 2000 was a leap year, but 2100 won’t be. The calculator uses real calendar dates, so it handles this for you.
How do you count days in a notice period or deadline?
Notice periods, payment terms and legal deadlines often say “within 30 days” or “90 days’ notice”. Two things decide the end date:
- Whether day one is the day of the notice or the day after. Many contracts and rules count from the next day.
- Whether calendar days or working days are meant.
As a reference, 90 calendar days after 21 October 2026 is 19 January 2027. If the period counts the day of notice as day one, the last day is a day earlier. Read the exact wording in your contract, offer letter or rule, and when in doubt, ask HR or the issuing office.
What mistakes should you avoid?
- Adding one when you shouldn’t. “Days until” questions use the plain gap.
- Forgetting to add one for leave. Leave and event lengths include both ends.
- Assuming a month is 30 days. Count real dates, especially across February.
- Treating weekdays as working days. Remove public holidays and any extra days off yourself.
- Mixing up date formats. 04/05/2026 is 4 May in India and the UK, but 5 April in the US. The calculator uses a date picker to avoid this.
- Typing the dates the wrong way round. The calculator sorts them, so you still get a positive count.
Where else does counting dates matter?
Exact age is a special kind of date difference, counted in completed years, months and days. Use the age calculator for that, including your age on a future date. For government exams in India, which check your age on a fixed cut-off date, the exam age calculator adds the age limits and relaxations from the notice.
Frequently asked questions
How many days is 3 months?
It depends on which months. From 1 January to 1 April 2026 is 90 days, because February is short, but from 1 July to 1 October 2026 is 92 days. When a contract says 3 months, the end date is usually the same date three months later, not a fixed number of days.
How many days are in a leap year?
A leap year has 366 days because February has 29 days. 2028 is the next leap year, so 1 February to 1 March 2028 is 29 days, while the same dates in 2027 give 28 days.
How do I count days between dates in Excel?
Subtract the cells: =B1-A1 gives the days between the dates, and you can add 1 to count both ends. =NETWORKDAYS(A1,B1) counts Monday-to-Friday days and includes both the start and end dates. You can pass a list of holidays as a third argument.
What date is 90 days after 21 October 2026?
It is 19 January 2027. The gap from 21 October 2026 to 19 January 2027 is exactly 90 days, of which 64 are weekdays. Check whether your notice or deadline counts from the day itself or the day after.
How many weeks are in a year?
A normal year has 52 weeks and 1 day, and a leap year has 52 weeks and 2 days. That's why your birthday moves forward one weekday each year, or two after 29 February.