How to Count the Days Between Two Dates Without Mistakes
A clear method for counting days between dates, including the inclusive-versus-exclusive question and how month lengths and leap years affect totals.
Working out the number of days between two dates is useful for contracts, notice periods, warranties, travel and countdowns. It is simple in principle and easy to get off by one.
Decide whether the end dates count
The first question is whether you include the start date, the end date, both or neither. Conventions differ:
- Exclusive counting (the usual default): from 1 March to 5 March is 4 days.
- Inclusive counting counts both ends: 1 March to 5 March is 5 days.
Contracts and rules often state which they mean. If a document says "within 14 days of the date of the letter", the letter's own date is normally day zero.
The manual method
- If the dates are in the same month, subtract the day numbers.
- If they are in different months, count the days remaining in the first month, add the full lengths of any months in between, then add the day number of the final date.
- If the span crosses 29 February in a leap year, remember to use 29 for that month.
For example, from 18 January to 9 April in a normal year: 13 days left in January (31 − 18), 28 in February, 31 in March, then 9 in April — 81 days.
Memorising month lengths
The classic rhyme — thirty days has September, April, June and November — covers the short months, with February the exception. The knuckle method works too: knuckles are 31-day months, gaps between them are shorter ones.
Leap years
A year is a leap year if it is divisible by 4, except for century years, which must be divisible by 400. So 2000 and 2024 were leap years, but 1900 and 2100 are not. Spans that include the end of February need this check.
Business days versus calendar days
Legal and shipping deadlines sometimes count only working days, excluding weekends and public holidays. That is a separate calculation, and holidays differ by place, so check how the deadline is defined.
Common errors
- Off-by-one from mixing inclusive and exclusive counting.
- Assuming every month has 30 days.
- Reading dates in the wrong day/month order.
- Forgetting a leap day in a multi-year range.
For anything that matters, use a date tool and note which convention it applies.
Age Calculator
Calculate your exact age in years, months and days, and find your next birthday
More about Age Calculator
Age in Weeks, Months and Days: When Each Unit Makes Sense
Why different life stages are described in different time units, and how to convert an age into weeks or months without rough guessing.
Read article →Tracking a Baby's Age: Milestone Dates Parents Actually Use
How parents track age in weeks and months for vaccinations, check-ups and photo milestones, and how to avoid date-counting slips.
Read article →Birthstones and Zodiac Signs: What Your Birth Date Tells You
A plain guide to how birthstones and zodiac signs are assigned by date, where the traditions come from, and how to look yours up accurately.
Read article →How Many Birthdays Have You Really Had? Counting the Small Surprises
Why 'number of birthdays' isn't always the same as your age, and other quirks of counting a life in years, days and celebrations.
Read article →