Counting days between two dates sounds simple, until you actually try to do it and second-guess yourself halfway through. Does the start date count? Does the end date count? What happens when months have different lengths? Why does your manual count keep coming out one day off from what the calculator says?

These are questions almost everyone runs into at some point, whether they’re calculating a deadline, figuring out how long until an event, tracking a project timeline, or settling a bet about how many days are in summer.

This guide walks through exactly how to do it right, covers the most common mistakes, and explains when to count differently depending on what you’re actually trying to figure out.

The Basic Method: How to Count Days Between Two Dates

The most reliable manual method is subtraction but only if your dates are in the same month or year. Let’s start simple and work up.

Same Month

If both dates are in the same month, just subtract:

End date − Start date = Number of days between them

Example: From June 5 to June 20
20 − 5 = 15 days

This gives you the number of days between the two dates, not counting either endpoint. More on that distinction in a moment.

Different Months, Same Year

When the dates span multiple months, you need to count through each month:

Example: From March 10 to June 25

  • March 10 → March 31: 31 − 10 = 21 days
  • All of April: 30 days
  • All of May: 31 days
  • June 1 → June 25: 25 days

Total: 21 + 30 + 31 + 25 = 107 days

Different Years

Same logic, just keep adding full months and years as you go. Remember that a regular year has 365 days and a leap year has 366.

Example: From November 15, 2023 to February 8, 2025

  • Nov 15 → Nov 30: 15 days
  • December 2023: 31 days
  • All of 2024 (leap year): 366 days
  • January 2025: 31 days
  • Feb 1 → Feb 8: 8 days

Total: 15 + 31 + 366 + 31 + 8 = 451 days

The Off-by-One Problem: Does the Start Date Count?

This is the most common source of confusion, and honestly, there’s no single right answer, it depends on what you’re measuring.

There are three ways to count a date range, each giving a different result:

1. Exclusive of Both Endpoints (Days Between)

You count only the days that fall strictly between the two dates, not the start date, not the end date.

From June 1 to June 5: June 2, 3, 4 = 3 days

Use this when you want to know how much time passes between two events.

2. Inclusive of Both Endpoints (Total Days in the Range)

You count every day from the start date through the end date, including both.

From June 1 to June 5: June 1, 2, 3, 4, 5 = 5 days

Use this when you want to know how many days a period covers, for example, how many days a conference runs, or how many days you were on holiday.

3. Inclusive of Start, Exclusive of End (Most Common in Computing and Contracts)

You count the start date but not the end date.

From June 1 to June 5: June 1, 2, 3, 4 = 4 days

This is the most common convention in programming, some legal contexts, and how most online date calculators work by default.

The practical rule: When someone asks “how many days between” two dates, the expected answer is usually method 1 (exclusive of both). When someone asks “how many days from” a date, they usually mean method 3 (inclusive of start). When counting how long something lasts, use method 2.

Always clarify which method applies when the count is used for something important.

Days in Each Month: The Reference You Actually Need

One of the most common errors in manual date counting is getting the number of days in each month wrong. Here’s the full list:

MonthDaysNotes
January31
February28 or 2929 in leap years
March31
April30
May31
June30
July31
August31
September30
October31
November30
December31

The knuckle trick: Make a fist and count months across your knuckles, starting with January on the first knuckle. Knuckle = 31 days, gap between knuckles = 30 days (or 28/29 for February). This is a surprisingly reliable way to avoid month-length errors.

How to Tell If a Year Is a Leap Year

Leap years add an extra day in February (February 29), which can throw off any calculation that spans one.

The rule:

  1. The year must be divisible by 4.
  2. BUT if the year is also divisible by 100, it’s not a leap year.
  3. UNLESS the year is also divisible by 400, then it is a leap year again.

Examples:

  • 2024 → divisible by 4, not by 100 → leap year
  • 1900 → divisible by 4 and by 100, not by 400 → not a leap year
  • 2000 → divisible by 4, by 100, and by 400 → leap year

For most practical purposes: if the year ends in 00, check the 400 rule. Otherwise, divisible by 4 = leap year.

The Most Common Mistakes When Counting Days

Mistake 1: Assuming All Months Have 30 Days

Using 30 as a rough average is fine for estimates. It’s not fine for anything that matters. July and August are both 31 days. February is 28 (or 29). Using the wrong number compounds across months and can throw your count off by 3 or more days on longer ranges.

Mistake 2: Forgetting Leap Years

Any date range that crosses February of a leap year needs an extra day. A count from January 2024 to April 2024 that ignores February 29 will be one day short.

Mistake 3: Not Knowing Whether the Start/End Dates Are Included

Most disputes over date counts come from this. Two people can both count correctly and get different answers simply because one is including the start date and the other isn’t. Agree on the method before you count.

Mistake 4: Mixing Up “Days Between” and “Days Until”

“How many days until my birthday?” typically means from today up to and including the birthday, so you’d include the birthday. “How many days between Christmas and New Year’s?” typically means just the days in between, not counting either holiday. These sound similar but they’re different questions.

Mistake 5: Not Accounting for Time Zones

If you’re counting days across time zones, say, a transaction that starts at 11pm Eastern and arrives at 2am London time the next day, the calendar date that counts as “the start” depends on which time zone you use. For legal or financial purposes, always confirm which time zone the clock starts and ends in.

Mistake 6: Confusing Calendar Days and Business Days

If a deadline says “10 business days,” counting 10 calendar days will give you the wrong date. Weekends and holidays don’t count as business days. See the section at the end for a refresher on the difference.

A Step-by-Step Method That Works Every Time

Here’s a reliable, repeatable process for counting days between any two dates:

Step 1: Write both dates in full
Include the day, month, and year. Don’t count from memory.

Step 2: Decide on your counting method
Are you including the start date? The end date? Both? Neither? Settle this first.

Step 3: Break the range into chunks

  • Days remaining in the starting month
  • Full months in between
  • Days in the final month

Step 4: Look up days in each month
Don’t guess. Refer to a calendar or the table above.

Step 5: Check for leap years
If February falls anywhere in your range, confirm whether it’s a leap year.

Step 6: Add everything up
Sum your chunks for the total.

Step 7: Verify
Use an online date calculator to confirm. If your manual count matches, you’re done. If not, retrace your steps, the most likely errors are a wrong month length or an off-by-one on the start/end date.

Worked Examples

Example 1: Contract deadline, 90 calendar days from signing

Start date: January 15, 2025
End date: ?

  • Jan 15 → Jan 31: 31 − 15 = 16 days
  • February: 28 days (2025 is not a leap year)
  • March: 31 days
  • April 1 → April 15: 15 days

16 + 28 + 31 + 15 = 90 days ✓ → Deadline: April 15, 2025

Example 2: How long was a trip?

Departure: September 3
Return: September 22
Including both days (method 2): 22 − 3 + 1 = 20 days

The “+1” accounts for including both the departure and return date.

Example 3: Days until an event

Today: March 10
Event: April 2
Not including today, including the event day (method 3):

  • March 10 → March 31: 31 − 10 = 21 days
  • April 1 → April 2: 2 days

Total: 21 + 2 = 23 days until the event

When to Just Use a Calculator

Manual counting is useful to understand and verify, but for anything more than a week or two, a date calculator removes the risk of error entirely.

Use a calculator when:

  • The range spans multiple months or years
  • Leap years are involved
  • You’re counting business days (not just calendar days)
  • The result will be used for a legal, financial, or contractual purpose
  • You need to add a specific number of days to a date to find a future deadline

Most date calculators let you switch between inclusive and exclusive counting, and between calendar days and business days. Make sure you’ve set those options correctly before trusting the output.

Counting Days for Specific Situations

For legal deadlines

Courts and contracts typically count calendar days, and the start date is usually the day after the triggering event. For example, if a contract says you have 30 days to respond “from the date of notice,” day 1 is usually the day after you receive the notice. Verify this in the specific document, the wording matters.

For shipping and delivery estimates

Shipping timelines use business days. A package shipped on Friday with a “5 business day” delivery estimate won’t arrive the following Wednesday, it arrives the following Friday, because the weekend doesn’t count.

For age calculations

Age in days is typically counted inclusively, your first day of life is your birthday, not the day after. So from July 4 to July 4 one year later is 365 days (or 366 if there’s a Feb 29 in between).

For project management

Project timelines often use business days and don’t include the day the project starts as a working day. A 10-day task that starts on Monday typically finishes on the Friday of the following week, not the following Monday.

For medication intervals

Medical instructions like “take every 48 hours” or “wait 14 days” are counting calendar days and clock hours, not business days. The start is typically when you take the first dose, and the interval counts actual elapsed time.

Frequently Asked Questions

How do I count days between two dates manually?

Subtract the start date from the end date if they’re in the same month. For dates across months, count the remaining days in the first month, add all the days in any complete months in between, then add the days in the final month. Check month lengths carefully, and account for leap years if February is in the range.

Does the start date count as day 1?

It depends on the context. In most deadline and countdown situations, the start date is day 0 and the next day is day 1. When measuring how long a period lasts (like a vacation or hospital stay), both the start and end dates are counted. Always check the specific context or document you’re working from.

Why does my count keep coming out one day different from online calculators?

Almost always an inclusive/exclusive mismatch. If the calculator is including the end date and you’re not (or vice versa), you’ll be off by one. Check the calculator’s settings and make sure your counting method matches.

How do I add 30 days to a date?

Count forward 30 calendar days from your start date. If you’re in a month with 31 days, “30 days from the 1st” lands on the 31st. “30 days from the 5th” lands on the 4th of the next month. For quick results, an online date calculator handles this instantly without risk of error.

What is the fastest way to count days between two dates?

For dates in the same month: subtract. For longer ranges: use a date calculator. For manual cross-month counting, break it into chunks (days left in month 1 + full months in between + days in final month) and add them up.

How many days is 3 months?

It depends on which 3 months. January + February + March = 90 days (91 in a leap year). June + July + August = 92 days. There’s no fixed answer because months have different lengths. If you need a contract or deadline count, use actual calendar dates rather than “3 months.”

Is there a formula for counting days between dates?

In spreadsheet tools like Excel or Google Sheets, you can subtract two dates directly: =B1-A1 returns the number of days between them. Format the result cell as a number, not a date. For business days, use the NETWORKDAYS function, which excludes weekends and optionally holidays.

Quick Summary

  • Same month: subtract the dates.
  • Different months: count days left in month 1, add full months, add days in final month.
  • Include start date? Depends on context, clarify before counting.
  • Leap years add a day in February, check if they fall in your range.
  • Month lengths vary, don’t assume 30 for all of them.
  • Business days vs calendar days, make sure you know which one you need.
  • Verify with a calculator for anything longer than a few weeks or high-stakes.

Getting day counts right isn’t complicated once you have a system. The mistakes almost always come from skipping one of these steps, wrong month length, forgotten leap year, or an unresolved question about whether the start day counts. Work through it methodically and you’ll get it right every time.

JS Bin