Counting days

How to count the days between two dates (without mistakes)

A simple, reliable method for counting the days between any two dates, including month lengths, leap years, and whether to include the start and end date.

By Shaban Shoukat · Updated October 2, 2026 · 4 min read

Counting the days between two dates sounds like something you should be able to do in your head. In practice it is one of the most common sources of small but annoying mistakes: a deadline that lands a day early, a booking that is one night short, or a countdown that is off by one. This guide explains a method that works every time, and the two decisions you need to make before you start counting.

Decision 1: Do you count the start date?

There are two common ways to count, and both are "correct" in different situations:

  • Exclusive counting (the default almost everywhere): the start date is day zero. From Monday to Tuesday is 1 day. This is how countdowns, ages and "days since" work, and it is how spreadsheets subtract dates.
  • Inclusive counting: both the first and last day are counted. A hotel stay from Monday to Tuesday covers 2 days (but only 1 night). Event durations, rental periods and some medication schedules count this way.

The difference is always exactly one day. If you count exclusively and need the inclusive answer, just add 1. Our date duration calculator has an "include end date" box for exactly this reason.

Decision 2: Calendar days or business days?

Calendar days include every day of the week, weekends and holidays. Business days usually mean Monday to Friday. Shipping estimates, bank transfers and many workplace deadlines use business days, while most legal "within 30 days" rules use calendar days. If you need working days, see our separate guide on how to calculate business days.

The month-by-month method

Once you know which kind of count you want, the most reliable manual method is to break the period into whole months and leftover days:

  1. Count the days remaining in the start month (month length minus the start day).
  2. Add the full length of every month in between.
  3. Add the day number of the end date.

Example: How many days from January 15 to March 10, 2026?

StepCalculationDays
Rest of January31 − 1516
All of February 2026not a leap year28
Into Marchday 1010
Total54 days

That is the exclusive count. If both January 15 and March 10 should be counted, the answer is 55.

Remembering how long each month is

Seven months have 31 days: January, March, May, July, August, October and December. Four have 30: April, June, September and November. February has 28 days, or 29 in a leap year. The old "knuckle trick" helps: make a fist and count the months across your knuckles and the dips between them. Every month that lands on a knuckle has 31 days; every month in a dip has 30 (or 28/29 for February). July and August are both on knuckles, which is why they both have 31.

Watch out for leap years

Any period that includes a February 29 is one day longer. Leap years happen every four years, with an exception for century years: 2024 and 2028 are leap years, 2100 will not be. If your period crosses the end of February, check whether that year is a leap year. Our leap year checker answers that instantly, and the full rules are in our leap year guide.

Long periods: count by years first

For spans of several years it is faster to count whole years first. Each ordinary year adds 365 days and each leap year adds 366. Then use the month-by-month method for the leftover part. For example, from March 1, 2020 to March 1, 2026 is six years. Only one February 29 falls inside that span (in 2024, since February 29, 2020 comes before the start date), so the total is 6 × 365 + 1 = 2,191 days. These edge cases are exactly where calculators save time.

Weeks and months from a day count

To turn days into weeks, divide by 7: 54 days is 7 weeks and 5 days. Converting to months is less exact because months have different lengths. Calendar-month counting is usually the most meaningful: January 15 to March 10 is 1 month and 23 days (January 15 to February 15 is one month, then 23 more days to March 10). Our countdown pages show days, weeks and calendar months side by side so you can use whichever unit makes most sense.

Doing it in a spreadsheet

In Excel, Google Sheets and similar apps, dates are stored as numbers, so you can subtract them directly: if A1 holds the start date and B1 the end date, =B1-A1 gives the exclusive day count. =B1-A1+1 gives the inclusive count. =DATEDIF(A1,B1,"m") returns whole months, and =NETWORKDAYS(A1,B1) returns business days (note that NETWORKDAYS counts inclusively).

Try it: enter any two dates in the date duration calculator to see days, weeks, months, business days and weekends at once, or count down to a single date with days until.

Quick checklist

  • Decide whether the start date counts (exclusive vs inclusive).
  • Decide between calendar days and business days.
  • Count the rest of the first month, the full months in between, then the days into the last month.
  • Check for February 29 inside the period.
  • Double-check anything important with a calculator.

Keep reading