Anyone who’s ever planned a trip, tracked a project deadline, or simply wondered how long until a holiday has faced the same question: exactly how many days between two dates? Whether you’re counting down to an event or figuring out how many days you’ve been working on a project, knowing the precise day difference is one of those small but surprisingly critical skills.

Days in a common year: 365 ·
Days in a leap year: 366 ·
Leap years per 400-year cycle: 97 ·
Average days per year (Gregorian): 365.2425 ·
Top Google result for “days between two dates”: timeanddate.com (2.7B monthly visits)

Quick snapshot

1Confirmed facts
2What’s unclear
  • Effect of time zones on day-counting across date boundaries (e.g., UTC vs local).
  • How calendar transitions (Gregorian vs Julian) affect calculations for very old dates.
3Timeline signal
  • No major timeline events — calculation methods have been stable for decades.
4What’s next
  • More programming libraries (Python, JavaScript) will continue to offer built-in date-diff functions.
  • Mobile apps likely to integrate smarter natural-language date input (“three weeks from next Tuesday”).

This table clarifies the core mechanics behind day-counting across all methods.

Key facts about calculating days between dates
Fact Value
Common calculation method Subtract start date from end date
Default behavior (most calculators) Excludes start date, includes end date
Leap year frequency Every 4 years, except century years not divisible by 400
Maximum supported date range Typically year 1 to 9999 in most tools

The implication: understanding these defaults prevents off-by-one errors in any method you choose.

How Do I Calculate the Number of Days Between Two Dates?

Manual step-by-step counting

  • Count the remaining days in the start month, then add the full calendar months between, then add the days of the end month (MathIsFun, an educational math site).
  • Leap year adjustments are needed if February falls in the range (every 4 years, century years divisible by 400).
  • This method is educational and works without any electronic tool.

Using a calendar

  • Physically mark the start date, count through each day until the end date — the simplest but most error-prone.
  • For long ranges, use the manual counting formula: days remaining in start month + days in full months + days in end month.

Subtraction method

  • Once dates are converted to a serial number (e.g., in spreadsheets or programming languages), subtracting the earlier from the later returns the day difference (Exceljet, a specialist spreadsheet resource).
  • This is the core logic behind every digital calculator.
Bottom line: Manual counting requires calendar knowledge, but digital tools do the same math in milliseconds. For quick estimates, use a calendar; for accuracy, use a spreadsheet or online calculator.

What Is the Formula for Days Between Dates in Excel?

DATEDIF function

Simple subtraction (end-start)

NETWORKDAYS for business days

Bottom line: DATEDIF gives full days, subtraction gives the numeric difference, and NETWORKDAYS filters weekends. Pick the one that matches your counting rule.

Can I Calculate Days Between Dates Online for Free?

Top free calculators

Features to look for

  • Leap year handling: automatic without user input.
  • End‑date inclusion toggle: some count from start to end (exclusive), some include both endpoints.
  • No sign‑up required for basic calculations.

Mobile vs desktop

  • Mobile versions of timeanddate.com and calculator.net work well on small screens.
  • Desktop versions often allow keyboard date entry and copy‑paste of results.
Why this matters

Free online calculators eliminate arithmetic errors and leap-year guesswork. For most casual uses, they are the fastest path from question to answer.

How to Count Days Between Dates Manually Without a Calculator?

Step-by-step manual counting

  1. Count days remaining in the start month (total days in month – start day).
  2. Add the total days of each full month in between.
  3. Add the days of the end month up to and including the end date.
  • Use a month‑length table (Jan=31, Feb=28/29, Mar=31…) and check for leap years.

Counting remaining days in start month

  • If start date is March 15, remaining days in March = 31 – 15 = 16.
  • If start date is the last day, remaining days = 0.

Adding full months and final month days

  • Example: March 15 to June 20 → remaining March: 16 days + April: 30 + May: 31 + June up to 20: 20 = 97 days.
  • This method is taught in educational contexts for understanding calendar structure (MathIsFun).
The catch

Manual counting is prone to off‑by‑one errors and forgetting leap years. Use it to learn the logic, but verify the result with a tool before committing to a deadline.

How Many Days Between Dates Including the Start and End Date?

Inclusive vs exclusive counting

  • Exclusive counting (default in most tools): the difference between the two dates, not counting the start date. So from Monday to Wednesday is 2 days.
  • Inclusive counting adds one day: includes both start and end dates. Monday to Wednesday inclusive = 3 days (Ablebits, an Excel add‑in developer).

Common use cases

  • Exclusive: calculating age, loan terms, project duration.
  • Inclusive: counting how many days an event lasts (e.g., a weekend workshop Saturday to Sunday inclusive = 2 days).

How calculators handle it

  • Timeanddate.com’s Days Calculator defaults to exclusive but offers an “include end date” checkbox.
  • Excel’s DATEDIF always returns exclusive (full days between).
Bottom line: Know your counting rule before you start. Inclusive adds 1, exclusive doesn’t. The same date pair can give two different answers depending on the context.

Confirmed facts

  • Days between dates can be precisely calculated using standard calendrical algorithms.
  • Online calculators from authoritative sources produce consistent results.
  • Simple subtraction in Excel returns the same value as the DAYS function.

What’s unclear

  • Effect of time zones when calculating days across date boundaries (UTC vs local).
  • Handling of calendar transitions (Gregorian vs Julian) for very old dates.

“Our Days Calculator counts the number of days between two dates. It also shows the months, weeks, and hours.”

— Timeanddate.com documentation

“To find the number of days between two dates, we can count the days step-by-step: first count the remaining days in the start month, then whole months, then days in the final month.”

— MathIsFun.com

For anyone who needs to plan, track, or measure time across dates, the choice between manual counting, Excel formulas, and online tools comes down to the same question: how much accuracy do you need for the cost of effort? Manual methods teach you the logic but risk slips; spreadsheets handle recurring calculations; online calculators are the fastest for one‑off answers. For most people dealing with everyday deadlines, an online calculator is the clear winner — a free, tested tool that eliminates arithmetic and leap‑year guesswork. Use it, double‑check the counting rule, and move on.

Related reading: Calculate days between dates in Excel – step by step · How to calculate the difference between two dates in Excel

For a quick and accurate count, you can use a free online day calculator that handles leap years and date math automatically.

Frequently asked questions

How many days are in a leap year?

A leap year has 366 days, with February 29 as the extra day. Leap years occur every 4 years, except for century years not divisible by 400 (e.g., 1900 was not a leap year; 2000 was).

Is the end date included in the day count?

Most online calculators and Excel’s DATEDIF exclude the start date and include the end date (exclusive counting). Some tools offer a toggle to include both endpoints (inclusive counting), which adds one day to the result.

What is the formula for days between dates in Google Sheets?

Use DATEDIF(start, end, “D”) or simply subtract the two dates as numbers (e.g., =B2-A2). Both methods return the number of full days between the dates.

How many days until next New Year?

That depends on the current date. For example, from March 15, 2025 to January 1, 2026 is 292 days (exclusive). Use an online calculator for the exact count.

Can I calculate days between dates with time?

Yes, but time zones can affect the result. If you need day counts that cross midnight, use a tool that respects time zones (e.g., timeanddate.com’s date duration calculator).

How many days between two dates excluding weekends?

Use NETWORKDAYS in Excel or Google Sheets. For example, NETWORKDAYS(A1, B1) returns the number of weekdays between two dates, excluding Saturday and Sunday.

What is the difference between DATEDIF and simple subtraction in Excel?

Both return the same number of days in standard cases. DATEDIF allows other units (“m” for months, “y” for years), while simple subtraction only gives days. DATEDIF also considers complete 24‑hour periods.

How to calculate days between dates in Python?

Use the datetime module: from datetime import date; delta = date(2025,12,31) – date(2025,1,1); print(delta.days). This returns the exclusive day count.