Skip to content
Free Tools Galaxy
Everyday
📅

How to Calculate the Number of Days Between Two Dates

By The Free Tools Galaxy Team6/1/20264 min read

Working out how many days lie between two dates sounds simple, but doing it by hand is surprisingly error-prone. Months have different lengths, leap years add a day, and it's easy to be off by one depending on whether you count the start and end dates. Whether you're counting down to an event, working out a deadline, or measuring how long something took, getting the exact number matters.

Why it's harder than it looks

You can't just subtract the day numbers. Going from 28 February to 2 March is two days in a normal year but three in a leap year. Spanning several months means adding up months of 28, 29, 30 and 31 days. This is exactly the kind of fiddly counting a calculator handles instantly and without slips.

The 'inclusive vs exclusive' question

Decide whether you're counting the gap between dates or the number of days in a range. From Monday to Wednesday is 2 days of difference, but 3 days if you count Monday, Tuesday and Wednesday inclusively. For deadlines and bookings, inclusive counting is usually what you want; for ages and durations, exclusive is normal. Always be clear which one you mean.

Counting only working days

Sometimes you need business days, not calendar days — for delivery estimates, project deadlines or payment terms. That means excluding weekends (and often public holidays). Counting these by hand across weeks is tedious, which is why a dedicated working-days calculator saves real time.

  • Calendar days: every day counts, including weekends and holidays.
  • Business days: Monday–Friday only, excluding holidays.
  • Weeks: divide the total days by 7 for a quick week count.

Where time zones quietly mess with the count

If you're counting across time zones — a flight that crosses the date line, or a deadline set in another country — the calendar date can differ by one depending on whose clock you use. Daylight-saving adds another wrinkle: two moments can be 24 hours apart yet land on different calendar days. For everyday counting it almost never matters, but for travel, international deadlines and logistics it occasionally does, so it's worth a quick sanity check when the dates straddle borders.

Handy real-world uses

  • Counting down to a wedding, exam, trip or product launch.
  • Working out notice periods, free-trial end dates and warranty windows.
  • Measuring how long a project actually took, start to finish.
  • Checking how many days old you, a pet, or a milestone is.

Frequently asked questions

Should I include both the start and end date?

It depends on what you're measuring. For a duration — how long something lasted — exclude one end. For a booking or notice period where every day counts, include both; that's the 'inclusive' count, which comes out one higher.

How do I count only weekdays?

Use a business-days calculator, which skips Saturdays and Sundays automatically (and holidays if you add them). Counting those by hand across several weeks is exactly where errors sneak in.

Why is the gap one more or less than I expected?

It's almost always the inclusive-versus-exclusive question, or a leap day hiding in the range. Decide which you're counting, and check whether 29 February falls between your two dates.

A quick mental method for a rough count

When you only need a ballpark and have no tool handy, there is a fast trick. Count the whole months between the two dates and multiply by 30 for a rough figure, then nudge it for the extra days in the longer months. For a gap of a few weeks, counting in sevens is easier still: four weeks is 28 days, so 'about a month' from a Tuesday lands on a Tuesday four weeks later, give or take a day. These shortcuts are fine for planning in your head, but for anything that triggers a deadline, a payment or a legal window, switch to an exact count — the rounding that makes mental maths easy is exactly what produces off-by-a-day errors.

Why spreadsheets and apps sometimes disagree

If two tools give you different day counts for the same dates, the cause is usually one of two things. The first is the inclusive-versus-exclusive choice we covered: some tools count the gap, others count every day in the range. The second is how each tool treats time of day — a calculator working from midnight to midnight can differ by one from a tool that includes hours and minutes, especially around daylight-saving changes. When results clash, check whether both tools are counting the same way before assuming one is wrong.

The bottom line

Counting days correctly means respecting month lengths and leap years, and being clear about whether your range is inclusive. For calendar days use our date difference tool; for working days only, use the business days calculator. Either way you get the exact answer in a click.