Guide

How to Count the Days Between Two Dates

How many days until the deadline? How long since the project started? Date differences look like simple subtraction, but counting conventions and uneven month lengths trip people up constantly.

The standard convention: don't count the last day

When people count days between dates, they normally count the gap, not both endpoints. October 1 to October 2 is 1 day apart; October 1 to October 31 is 30 days. Every date library, spreadsheet, and calculator uses this convention.

The confusion comes from counting on fingers: if you include both the first and last day, October 1–31 "feels like" 31 days. Both answers exist — the inclusive count is used for hotel nights and event durations, the exclusive count for elapsed time. Know which one your situation needs.

Counting by hand: month by month

To count manually, walk forward from the start date one month at a time, adding whole months (28, 29, 30, or 31 days depending on the month), then add the remaining days.

Example: March 15 to June 10. March 15 → April 15 is 31 days, April 15 → May 15 is 30, May 15 → June 15 is 31 — but you only need to reach June 10, which is 5 days short, so 31 + 30 + 31 − 5 = 87 days. This is where manual counts go wrong: using 30 for every month gives 90 instead.

Converting to weeks and months

Days ÷ 7 gives weeks — and it rarely divides evenly. 87 days is 12 weeks and 3 days (12.4 weeks). For months, there's a subtlety: calendar months have different lengths, so a precise "months" figure doesn't exist. The standard approximation divides by 30.437, the average length of a month across the calendar (365.25 ÷ 12).

87 days ÷ 30.437 ≈ 2.9 months — close to three months, as the month-by-month count above confirms. For contracts and notice periods, define the unit in writing: "30 days" and "one month" are not the same thing.

Leap years and February

A leap year adds February 29 — 366 days instead of 365. Any range that spans a February 29 counts one extra day, which matters for multi-year ranges: from March 1, 2023 to March 1, 2025 is 731 days, not 730, because 2024 was a leap year.

Leap years are years divisible by 4, except century years not divisible by 400 — 2000 was one, 1900 wasn't. The next is 2028. Manual counts across long ranges miss these days constantly.

When the end date is before the start date

Entering the dates backwards doesn't make the math fail — the difference just comes out negative. Most tools, including the Date Difference Calculator, show the absolute value and flag the reversal, so you get the same number either way.

That makes the tool forgiving for quick questions like "how many days from my deadline to today?" — enter them in either order and read the days, the weeks, and the average months without doing any calendar arithmetic.

Try it yourself

Put this guide into practice with our free Date Difference Calculator — no sign-up, no download.

Open the Date Difference Calculator