How to Count Days Between Two Dates

Learn how to count days between dates: what counts, how leap years change the answer, and how to avoid off-by-one errors.

What "days between dates" means

Counting the days between two dates sounds simple until you try it across months, years and leap years. The Days Between Dates calculator does the counting for you: enter a start date and an end date, and it tells you how many days separate them. It is the tool for deadlines, countdowns, trip lengths, notice periods, and any question that starts with "how long until".

The first thing to settle is what counts. The usual convention is that the result is the number of days you need to add to the start date to reach the end date. From 1 March to 10 March is 9 days by that convention, not 10: you do not count the start date itself. If you need to include both the start and end days, for example a holiday booking where both the arrival and departure days count as days of the trip, add one to the result. State which version you are using whenever the count matters, because off-by-one errors are the most common mistake in date maths.

How to count days between two dates

Enter the earlier date as the start and the later date as the end, then read the result. If your dates are the other way round, swap them: most calculators expect the start first, and entering them backwards can give a confusing or negative answer. Double-check the year on both dates, since a mistyped year is easy to miss and changes the answer by hundreds of days.

For a rough check, count in whole months first and then adjust: from 5 January to 5 April is three calendar months, but the day count depends on which months they are, since February has 28 or 29 days. That is why mental date counting goes wrong.

Leap years and why they matter

A leap year has 366 days instead of 365, with the extra day added as 29 February. Under the Gregorian calendar, a year is a leap year if it is divisible by 4, except for century years, which are leap years only if they are also divisible by 400. So 2024 was a leap year, 2000 was a leap year, but 1900 was not, and 2100 will not be.

Leap years only change your count if the span crosses 29 February. A period from March 2024 to March 2025 includes no leap day, because the leap day fell before the span started; a period from January 2024 to January 2025 does include it. If a hand count feels one day out, a leap day is the first thing to check. For planning across time zones as well as dates, the Time Zone Converter is the companion tool.

Common uses: deadlines, trips and notice periods

Deadlines are the most unforgiving use. If a contract says something is due "within 30 days" of a date, the count starts from that date and the exact convention matters: does day one count, or does the count start the next day? Read the wording, and when it matters, confirm with the other party rather than assuming. The same care applies to notice periods for jobs, tenancies and subscriptions, where one day can be the difference between a valid notice and a missed one.

For trips, the day count helps you plan but does not tell the whole story: a 10-day trip and a 10-night trip are not the same thing, and transport days at either end eat into time at the destination. For countdowns, re-check the count as the date approaches rather than trusting a number worked out months ago.

Working days versus calendar days

A day count is normally a calendar-day count: every day counts, including weekends and public holidays. If what you actually need is working days, the calendar count will overstate it. Roughly speaking, a span of 30 calendar days contains about 22 weekdays, but the exact figure depends on which weekdays the span starts and ends on, and on local public holidays.

If a deadline is stated in working days or business days, do not use a calendar-day result directly. Count the weekdays in the span, subtract any public holidays that fall inside it in the relevant country, and confirm whether the start and end days themselves count. When a deadline is stated simply in days with no qualifier, calendar days are the normal reading, but for anything contractual, confirm rather than assume.

Checking your result before you rely on it

Date maths feeds into deadlines and bookings, so check the result before acting on it. Confirm both dates, including the year, confirm whether the count should include the start day, the end day, both or neither, and check whether a leap day falls inside the span. A sanity check helps: a span of about three months should be roughly 90 days, a span of a year roughly 365, and anything different from that pattern deserves a second look.

Finally, remember that a date is not a time. If an event happens at a specific hour across time zones, the day count alone does not settle it: an event on "15 May" in one city may fall on 14 or 16 May in another. Convert the time as well as counting the days, and if you need to split costs for the trip, see our guide on how to split a bill fairly.

Try it now — free

Use the Days Between Dates right in your browser. No signup.

Open the tool →

More guides

All guides →