How to count the days between two dates

How many days since the wedding, how long the vacation lasts, how many days are left before the deadline — it is all the same task: count the days between two dates. People usually slip in two places: the length of the months, and whether to count the first and last day. Here is how to get both right, with a worked example.

The key rule: inclusive or not

The difference between two dates is how many times you turn the calendar page to get from one to the other. From March 1 to March 2 is 1 day; from March 1 to March 10 is 9 days. That is the answer to “how many days has it been since” and “how many days until.”

But when you count how long something lasts and both end days are part of it — a vacation, a business trip, sick leave — add one. A vacation from July 1 through July 14 is 14 days, even though the dates are 13 days apart.

QuestionHow to countExample: March 1–10
How many days since / untildate difference9 days
How many days it lasts (both ends included)difference + 110 days

How many days are in each month

The second common mistake is treating every month as 30 days. Here is the exact table:

MonthDaysMonthDays
January31July31
February28 (29 in a leap year)August31
March31September30
April30October31
May31November30
June30December31

The knuckle trick helps: make a fist and count the months across your knuckles and the dips between them. January is a knuckle (31), February a dip (short), March a knuckle (31) and so on; July and August land on two knuckles in a row, so both have 31 days. Or use the rhyme “Thirty days hath September, April, June and November.”

Example: days from May 15, 2025 to October 27, 2026

Work in big steps: whole years first, then months, then days.

  1. One whole year: May 15, 2025 to May 15, 2026 — 365 days (no February 29 in between).
  2. The rest of May 2026: May 15 to May 31 — 16 days.
  3. Whole months: June 30 + July 31 + August 31 + September 30 = 122 days.
  4. October: September 30 to October 27 — 27 days.
  5. Total: 365 + 16 + 122 + 27 = 530 days.

If both end dates should count, it is 531 days.

How to do it in Excel or Google Sheets

Spreadsheets store dates as numbers, so the difference is plain subtraction. With the start date in A1 and the end date in B1:

Common mistakes

So you don’t have to recount every time

Counting the days once is easy. It gets tedious when you want the number every day: how long you have been together, how long since your last cigarette, how long until the trip. A counter that updates itself is simpler.

In Temfy: Countdown Days & Widget you set a date and choose a direction — until or since. The app shows days, hours, minutes and seconds, and a Home Screen widget keeps the number in sight. Count-ups get milestones — 100, 500 and 1,000 days and anniversaries. The app is free for iPhone and Android, no sign-up needed.

Let the days count themselves

Temfy: Countdown Days & Widget shows how long until an event and how long since a big day, down to the second. Widgets, reminders, habit streaks and milestones. Free for iPhone and Android.