How to Calculate the Days Between Two Dates (Every Method)

Need to work out how many days between two dates? Whether you’re counting down to a holiday, measuring how long a project ran, or checking whether a warranty is still valid, getting the number right matters more than most people think. The catch is that this simple question hides a subtle trap: depending on how you count, the answer can be off by exactly one day. This guide walks you through every reliable way to calculate days between two dates — the quick hand-counting method for short ranges, the manual approach that handles leap years, the exact Excel and Google Sheets formulas, and the fastest option of all: a free online date calculator that does it in seconds.

The inclusive vs exclusive trap (read this first)

Before any maths, you need to decide one thing: are you counting the start date itself?

  • Exclusive counting (the standard): Days = End date − Start date. From 1 January to 10 January, that’s 9 days. This is what Excel, Google Sheets, and most online calculators give you.
  • Inclusive counting: Days = (End date − Start date) + 1. The same range gives 10 days — you’re counting both endpoints as full days.

Neither is wrong; they answer different questions. “How long until the holiday?” is usually exclusive — you want the number of sleeps. “How many days is the rental booked for?” is usually inclusive — you’re paying for both the first and last day. If the number comes from a contract, policy, or visa rule, follow its exact wording. When the stakes are high, don’t guess which one applies.

How to count days by hand (short ranges)

The hand method works fine when both dates sit in the same or neighbouring months. Here’s the process:

  1. Write down both dates clearly, for example 12 March and 4 May.
  2. Count the days remaining in the start month. March has 31 days, so 31 − 12 = 19 days after the 12th.
  3. Add any whole months in between. April has 30 days.
  4. Add the days into the end month. 4 days of May.
  5. Total: 19 + 30 + 4 = 53 days (exclusive counting).

Double-check month lengths as you go: April, June, September and November have 30 days; the rest have 31; February has 28, or 29 in a leap year. For ranges under a couple of months this is quick and reliable — and a good way to sanity-check a calculator’s answer.

Worked example: counting down to Christmas. Say today is 5 October and you want the days until 25 December. October has 31 days, so 31 − 5 = 26 days remaining; November contributes 30; December contributes 25. Total: 26 + 30 + 25 = 81 days (exclusive counting — 81 sleeps to go). Notice this matches the spreadsheet formula =DAYS(“2026-12-25″,”2026-10-05”), which also returns 81: a nice cross-check that both methods agree.

Longer spans: leap years and month lengths

Hand counting gets risky over long spans because of two complications: months aren’t equal, and leap years add an extra day. The leap-year rule is simple once you know it: a year is a leap year if it’s divisible by 4 — except century years (1700, 1800, 1900, 2100), which must also be divisible by 400. So 2000 was a leap year, but 2100 won’t be.

Here’s why it matters. From 1 January 2023 to 1 January 2025, the span crosses the leap day of 29 February 2024, so the exclusive total is 366 + 365 = 731 days — not 730. Miss that single day and a deadline or interest calculation is wrong.

The systematic manual approach is to break the span into three parts: the days left in the start year, plus the full years in between (remembering leap years), plus the days elapsed in the end year. It works, but it’s slow and fiddly — for anything over a year, a spreadsheet or calculator is the sensible choice.

Excel and Google Sheets: the exact formulas

In Excel and Google Sheets, dates are stored as serial numbers, so subtracting one date from another gives you the day difference directly:

  • =DAYS(end_date, start_date) — the cleanest option, and it works in both Excel and Google Sheets. For example, =DAYS(“2026-12-25″,”2026-10-05”) returns 81.
  • =B1−A1 — plain subtraction, with the end date minus the start date. Make sure the result cell is formatted as a Number, not a Date, or Excel will display a nonsense date instead of your answer.
  • =DATEDIF(start_date, end_date, “d”) — Excel’s dedicated date-difference function (“d” = days; it can also return “m” for months and “y” for years).
  • =NETWORKDAYS(start_date, end_date, holidays) — counts only weekdays, skipping weekends and any holiday dates you list. Ideal for project timelines, notice periods, and delivery estimates.

One common gotcha: if subtraction gives you a negative number, the dates are simply in the wrong order — swap them, or wrap the formula in ABS() to get the absolute value.

The fastest way: use a free online date calculator

If you don’t live in spreadsheets, the quickest route is a purpose-built tool. Our free date calculator takes two dates and instantly returns the difference in days, weeks, and a full years/months/days breakdown — no formulas to remember, no leap-year traps, no cell-formatting gotchas. It handles any two valid calendar dates, however far apart, so a 10-day holiday count and a 10-year anniversary check are equally effortless.

Frequently asked questions

Do you count the start date when working out days between two dates?

Standard calculators don’t — they use exclusive counting (End date − Start date). If your situation needs both endpoints counted, add 1 to the result. Rental bookings and holiday durations are usually counted inclusively; countdowns and anniversaries usually aren’t.

How many days are there between 1 January and 31 December in a non-leap year?

364 days with exclusive counting (31 December minus 1 January = 364), or 365 days inclusive. In a leap year, it’s 365 days exclusive — another example of why the leap day matters.

How do I calculate days between two dates in Excel?

Use =DAYS(end_date, start_date) with the end date first, or simple subtraction like =B1−A1 with the start date in A1. Just remember to format the result cell as a number.

How do I count only working days between two dates?

In Excel, use =NETWORKDAYS(start_date, end_date, holidays), which skips weekends and any public holidays you list. It returns the weekday count directly.

Why does my calculator show 1 day when I expected 0?

If both dates are the same, exclusive counting gives 0 and inclusive counting gives 1. Check which mode your calculator uses — most default to exclusive.

Can I calculate days across a leap year by hand?

Yes — just remember which February had 29 days (2024 did; 2025 doesn’t). But for multi-year spans the manual method is error-prone, so a calculator removes the risk entirely.

Does the time of day change the day count?

No — date-difference calculations work on whole calendar days and ignore times. From 9am on Monday to 5pm on Wednesday is 2 days by the standard exclusive count, same as midnight to midnight. If you need hours and minutes as well, use a countdown timer rather than a date calculator.

The bottom line

Calculating days between two dates is simple once you settle the inclusive vs exclusive question and let the right tool handle the calendar quirks. For a quick one-off, hand counting or a spreadsheet formula does the job. For anything longer — or anything that matters, like a contract deadline — skip the mental arithmetic and get an instant, verified answer with our free date calculator: enter two dates and get the exact difference in seconds. And if you’re counting down to something specific, like the festive season, our Christmas countdown shows the days, hours, and minutes remaining.