How to Count Days Between Two Dates (3 Easy Methods)

By UpnixTools · Updated October 29, 2026 · 6 min read

Skip the reading — try it now
Free · No signup · Works in your browser
Open Days Between Dates Calculator →

How many days until the deadline? How long was that project, really? How many days old is the baby? Counting days between two dates sounds trivial until you try it across month boundaries, a leap year, or a span of several years — then the mental arithmetic gets unreliable fast. This guide shows three dependable methods, from doing it by hand to letting a tool handle it, and explains the edge cases that trip people up.

Why this is harder than it looks

Months are irregular: 28, 29, 30 or 31 days. Years are irregular too, thanks to leap years. So "three months later" can mean 89, 90, 91 or 92 days depending on which months you cross. Any method that treats months as a fixed length will drift. The reliable approach is always the same underneath: convert both dates to a day count from a fixed reference point, subtract, and you have the exact difference. Calendars, spreadsheets and online calculators all do this; only the interface differs.

Method 1: Count it manually

For short spans within one or two months, manual counting works fine:

  1. Count the remaining days in the start month (days in that month minus the start day).
  2. Add the full months in between using each month's real length.
  3. Add the day number of the end date in its month.
  4. Adjust for 29 February if your range crosses a leap day.

Example: 20 January to 10 March in a non-leap year. January has 31 days, so 31 − 20 = 11 remaining. February adds 28. March adds 10. Total: 11 + 28 + 10 = 49 days. This method is fine for spans under a few months but becomes error-prone quickly — one wrong month length and the answer is off.

Method 2: Use a spreadsheet

Spreadsheets store dates as serial numbers, so subtraction just works. In Excel or Google Sheets, put the start date in A1 and the end date in B1, then use =B1-A1. The result is the exact day count, leap years included. For business days only, =NETWORKDAYS(A1,B1) excludes weekends, and you can pass a holiday list as a third argument.

This is the best method when the dates already live in a spreadsheet — project trackers, invoice logs, HR records. But for a one-off question, opening a spreadsheet is overkill, and date formatting quirks (US vs international order) cause their own mistakes.

Method 3: Use an online calculator

For a quick answer, a dedicated date-difference calculator is the fastest option: enter both dates and get the day count instantly, usually alongside weeks, months and the weekday of each date. No formulas to remember, no month lengths to look up, no leap-year traps. Because the calculation runs in your browser, it works offline once loaded and sends nothing anywhere.

This is the method to reach for when someone asks "how many days until…?" in conversation, when you are planning an event, or when you want the answer in multiple units at once rather than just a raw day count.

The inclusive vs exclusive trap

The single most common disagreement about day counts is whether the end date is included. Standard date subtraction excludes it: 1 January to 2 January is 1 day. But hotel bookings, car rentals and holiday countdowns often count both endpoints: the same range feels like 2 days. Neither is wrong, but mixing them up causes real disputes — a "7-day rental" can mean 7 or 8 calendar days depending on convention.

Whenever the count has consequences — money, deadlines, legal terms — state the convention explicitly: "7 nights" or "8 calendar days including both endpoints" leaves no room for argument.

Leap years: the quiet troublemaker

A year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. So 2024 was a leap year, 1900 was not, and 2000 was. Any range crossing 29 February gains a day. This matters more than people expect: a "one year" span from 1 March 2023 to 1 March 2024 is 366 days, not 365, because it crosses the 2024 leap day — while 1 March 2024 to 1 March 2025 is 365. Manual counters get this wrong constantly; calculators never do.

Common uses for day counting

SituationWhat to countWatch out for
Project deadlinesDays remaining until deliveryWhether weekends count toward the deadline
Age in daysBirth date to todayLeap days add up over the years
Trip planningStart to end of travelInclusive vs exclusive nights
AnniversariesOriginal date to todayMilestone round numbers (1000 days, 10 years)
Contracts & notice periodsSignature to expiryExact legal definition of the period

Five mistakes to avoid

  1. Treating all months as 30 days. The error compounds over long spans.
  2. Forgetting 29 February. Check whether your range crosses a leap day.
  3. Mixing up inclusive and exclusive counts. Decide upfront and say so.
  4. Counting on your fingers across year boundaries. Use a tool once the span crosses January.
  5. Assuming "a year" is 365 days. It is 366 whenever the span includes a leap day.

How to use the calculator

Open the days-between-dates calculator and pick your two dates. You get the total days instantly, plus the same span expressed in weeks, approximate months and years, and the weekday each date falls on. Tick "include end date" when you need both endpoints counted, and if you enter the later date first, the calculator handles the reversed order gracefully instead of erroring.

Bottom line: convert both dates to day counts and subtract — that is all any method does. Do it by hand for short spans, in a spreadsheet for tabular data, and with a calculator for everything else. And always clarify whether the end date counts.

Frequently Asked Questions

Does the day count include the end date?

By convention, the difference between two dates excludes the end date: 1 January to 2 January is 1 day. If you need both endpoints counted — common for bookings and rentals — add 1 to the result. Always state which convention you are using when the count matters.

How do leap years affect the day count?

A leap year adds 29 February, so any date range that crosses that day gains one extra day. Ranges entirely within non-leap years are unaffected. This is the most common source of manual counting errors, which is why calculators handle it automatically.

Can I count only business days between dates?

Yes, but it needs an extra step: count all days, then subtract weekends and public holidays in the range. Spreadsheets have a NETWORKDAYS function for exactly this. A plain date-difference calculator gives calendar days, not business days.

Do time zones change the number of days?

For whole-day counts between calendar dates, time zones do not matter — a date is a date. They only matter when you measure precise durations in hours across zones, such as flight times. For anniversaries, deadlines and project plans, ignore time zones.

How far apart can the two dates be?

There is no real limit. The same subtraction works for dates days apart or centuries apart, as long as both use the same calendar system. Online calculators and spreadsheets handle multi-decade ranges without breaking a sweat.

Ready to try it yourself?
Days Between Dates Calculator is free forever — no account needed.
Open Days Between Dates Calculator →