How to count the days between two dates
The number of days between two dates is the end date minus the start date. Counted that way, the start date is day zero, so Monday to Tuesday is 1 day. If you want both the first and the last day to count, add 1.
Example: March 15 to June 1, 2026
- Days left in March after the 15th: 31 − 15 = 16
- All of April: 30
- All of May: 31
- Days into June: 1
- 16 + 30 + 31 + 1 = 78
There are 78 days from March 15 to June 1, 2026, or 79 if you count both dates.
Those 78 days are 11 weeks and 1 day, or 2 months and 17 days. The month figure counts whole calendar months first (March 15 to May 15) and then the days left over, which is how most people say it out loud.
Inclusive vs exclusive day counting
Off-by-one errors are the most common mistake in date math. It's the fencepost problem: a fence 10 meters long with a post every meter needs 11 posts, not 10. Before you count, decide whether you care about the gaps between days or the days themselves.
| Situation | Count | Example |
|---|---|---|
| Hotel nights | Exclusive | Check in Monday, out Friday: 4 nights |
| Days to wait for an event | Exclusive | From the 1st to the 10th: 9 days to wait |
| Festival or conference days | Inclusive | Friday to Sunday: 3 days |
| A course of daily tablets | Inclusive | The 1st to the 10th: 10 doses |
| Age in days | Exclusive | The day you were born is day zero |
| Vacation days from work | Inclusive, weekdays only | Monday to Friday off: 5 days |
How many days are in each month
Seven months have 31 days, four have 30, and February has 28, or 29 in a leap year. The knuckle trick saves you reciting the rhyme: make a fist and count the months across your knuckles and the dips between them, starting with January on the first knuckle. July lands on the last knuckle, so start again at the first knuckle with August. Knuckle months have 31 days; dip months have 30, or fewer for February.
| Month | Days | Day of the year on the 1st |
|---|---|---|
| January | 31 | 1 |
| February | 28 (29) | 32 |
| March | 31 | 60 (61) |
| April | 30 | 91 (92) |
| May | 31 | 121 (122) |
| June | 30 | 152 (153) |
| July | 31 | 182 (183) |
| August | 31 | 213 (214) |
| September | 30 | 244 (245) |
| October | 31 | 274 (275) |
| November | 30 | 305 (306) |
| December | 31 | 335 (336) |
The last column is a shortcut for two dates in the same year: turn each into a day-of-year number and subtract. March 15 is day 60 + 14 = 74 and June 1 is day 152, so the gap is 152 − 74 = 78 days, the same answer as the worked example.
Leap years and the Gregorian rule
A year is a leap year if it divides evenly by 4, except century years, which must also divide by 400. So 2024 and 2028 are leap years and 2000 was one, but 1900 wasn't and 2100 won't be. Over 400 years that gives 97 leap days, and an average year of 365.2425 days.
| Year | Divisible by 4 | Century year | Divisible by 400 | Leap year |
|---|---|---|---|---|
| 2024 | Yes | No | No | Yes |
| 2026 | No | No | No | No |
| 1900 | Yes | Yes | No | No |
| 2000 | Yes | Yes | Yes | Yes |
| 2100 | Yes | Yes | No | No |
Any span that crosses a February 29 is one day longer than the same span in other years. That's why counting days as years × 365 comes up short by about a day every four years.
Turning days into weeks, months and years
Weeks are exact: divide by 7 and keep the remainder as days. Months and years aren't, because months run from 28 to 31 days. For a quick estimate, divide by the average month or year instead.
So 78 days is about 2.6 months, and 1,000 days is about 2.7 years. Use the calendar answer (2 months and 17 days) when you need something exact, like a notice period, and the decimal when you're just comparing lengths.
To find the date a set number of days away, use the add or subtract days calculator. If public holidays need skipping, the business days calculator lets you list them, and a countdown keeps track as a big date gets closer.