How to Count Days Between Dates
By default, the days between two dates count the gap: from 1 March to 31 March is 30 days. If both the first and last day count โ as for a stay or an event that runs every day โ add one: 31 days.
Last updated: 8 November 2026
By the EasyDateCalc team ยท Updated 17 November 2026 ยท How we check dates
Ask three people how many days there are from Monday to Friday and you may get three answers: four, five or "four nights". None of them is wrong โ they are counting different things. This guide explains the two ways of counting days, which one each common situation uses, and how to avoid off-by-one mistakes in deadlines, bookings and visas.
Two ways to count
- The gap (exclusive): how many days you move forward to get from one date to the other. From 1 March to 31 March is 30 days. This is what calculators, spreadsheets (
=B1-A1) and programming languages return. - Both ends included (inclusive): how many calendar days are touched, counting the first and the last. 1 March to 31 March inclusive is 31 days โ every day of the month.
The difference is always exactly one. It is sometimes called the fence-post problem: a fence 30 metres long with a post every metre needs 31 posts. Our days between dates calculator shows the gap and has an option to include the end date.
Which count to use
| Situation | Usual count | Example |
|---|---|---|
| Age, time since an event | Gap | Born 10 May 2000 โ 10 May 2027 is exactly 27 years |
| Hotel stays | Nights = gap | Check in Fri 5, out Mon 8 = 3 nights |
| Holiday or leave length | Inclusive | Off Mon 22 to Fri 26 March = 5 days of leave |
| Event or festival running each day | Inclusive | Tet 2027, 4 to 10 Feb = 7 days |
| Schengen and many visa stays | Inclusive (entry and exit days count) | In on 1 June, out on 10 June = 10 days used |
| "Within 30 days of" a date | Gap, starting the day after | Notice given 1 March โ day 30 is 31 March |
For leave, the inclusive count is still only part of the story: weekends and public holidays inside the period usually do not use up leave days. Count working days with the business days calculator.
Deadlines: where off-by-one errors happen
Most legal and contractual deadlines in English-speaking countries start counting on the day after the triggering event. A 14-day return window for an order delivered on Monday 1 March ends on Monday 15 March. Some rules also say that if the last day falls on a weekend or public holiday, the deadline moves to the next working day. The exact rule depends on the contract, the court or the government department, so when a deadline matters, read the definition โ then use add days to a date to find the date, and the business days calculator if it is counted in working days. Our guide to business days vs calendar days covers that difference in detail.
Weeks and months
- Weeks: divide the gap by 7. From 1 March to 31 March is 30 days = 4 weeks and 2 days.
- Months: count to the same day number. From 31 January, "one month later" has no 31 February; most calculators and many legal systems use the last day of the month (28 February, or 29 in a leap year).
- Years: count to the same date. A year from 1 March 2027 is 1 March 2028 โ 366 days later, because 29 February 2028 is in between.
Quick checks
- The 30, 90 and 100 days from today pages show the date and weekday straight away.
- The Schengen calculator counts entry and exit days inclusively, as border guards do.
- For a countdown to an event โ "how many sleeps" โ use countdown to any date.
Frequently asked questions
- How many days from 1 March to 31 March?
- 30 days between the dates, or 31 days if you count both the first and last day.
- Do you count the first day when counting days?
- For a gap (age, time elapsed, deadlines) no. For a stay or an event that happens on every day, both the first and the last day count.
- Is a hotel stay counted in days or nights?
- In nights: the number of nights equals the gap between check-in and check-out dates.
- How do I count 30 days from a date?
- Start counting on the next day; the 30th day is the date 30 days later. Add days to a date does this for you.
Sources: European Commission โ Short-stay calculator (entry and exit days count)