How Many Days Between Two Dates

Counting the number of days between two dates is the most fundamental date calculation. You might need it to figure out how many days until a vacation, how long a project has been running, or how many days remain on a warranty. While our date calculator gives you instant results, this guide shows you how the math works behind the scenes, explains the critical difference between inclusive and exclusive counting, and provides reference tables for fast manual calculation. You can also add days to a date or subtract days from a date for related calculations.

Key Takeaways
  • Method: Count remaining days in the start month, add full months in between, then add the day of the end month.
  • Inclusive vs. exclusive: Exclusive counting (the standard) does not count the start date; inclusive counting adds 1 to include both endpoints.
  • Leap years add an extra day in February (29 instead of 28), affecting any calculation that spans February.
  • Example: January 1 to July 4 = 184 days (exclusive) in a non-leap year.
  • For business-day counts (excluding weekends and holidays), use the business days calculator.

Step-by-Step: How to Count Days Between Two Dates

Let us walk through counting the days from January 1 to July 4 in a non-leap year (e.g., 2025).

  1. Remaining days in January: 31 − 1 = 30 days (we exclude January 1 itself in standard counting)
  2. Full months in between:
    • February: 28 days
    • March: 31 days
    • April: 30 days
    • May: 31 days
    • June: 30 days
  3. Days in the final month (July): 4 days
  4. Total: 30 + 28 + 31 + 30 + 31 + 30 + 4 = 184 days

In a leap year (e.g., 2024), February has 29 days, so the same date range would be 185 days.

This is exactly the calculation our date calculator performs instantly when you enter two dates.

Days in Each Month: Reference Table

To calculate days between dates manually, you need to know how many days each month has. Here is the complete reference.

MonthDaysCumulative Days (end of month)
January3131
February28 / 2959 / 60
March3190 / 91
April30120 / 121
May31151 / 152
June30181 / 182
July31212 / 213
August31243 / 244
September30273 / 274
October31304 / 305
November30334 / 335
December31365 / 366

The “/” notation shows non-leap year / leap year values. The cumulative column is especially handy: to find the days between two dates in the same year, subtract the cumulative value of the start date from the cumulative value of the end date.

Learn more about the Gregorian calendar structure on Wikipedia.

Inclusive vs. Exclusive Day Counting

One of the most common sources of confusion in day counting is whether to include the start date, the end date, both, or neither.

MethodCounts Start Date?Counts End Date?Example: Jan 1 to Jan 5
Exclusive (standard)NoYes4 days
InclusiveYesYes5 days

Exclusive counting is the standard in most software, including our date calculator. It answers the question: “How many days do I have to wait from the start date to reach the end date?”

Inclusive counting is used when you need to count both the first and last days. This is common in legal contexts (e.g., “a 30-day notice period starting today includes today”) and when counting event days (e.g., a 3-day conference from Monday to Wednesday counts Monday, Tuesday, and Wednesday).

To convert between the two: Inclusive count = Exclusive count + 1.

Common Date Pairs: Days Between

Here are the day counts for frequently searched date ranges (non-leap year).

FromToDays (Exclusive)Weeks + Days
January 1July 418426 weeks + 2 days
January 1December 2535851 weeks + 1 day
January 1December 3136452 weeks
March 1September 118426 weeks + 2 days
June 1December 118326 weeks + 1 day
September 1December 3112117 weeks + 2 days
Valentine's Day (Feb 14)Christmas (Dec 25)31444 weeks + 6 days
Tax Day (Apr 15)Year End (Dec 31)26037 weeks + 1 day

For date pairs that span leap years or cross year boundaries, the counts will differ. Use the date calculator for exact results with any date pair.

Counting Days Across Multiple Years

When your date range spans more than one calendar year, the calculation becomes a bit more involved:

  1. Remaining days in the start year: Subtract the day-of-year number of your start date from 365 (or 366 in a leap year).
  2. Full years in between: Each standard year adds 365 days; each leap year adds 366.
  3. Days in the final year: The day-of-year number of your end date.

Example: March 15, 2023 to October 8, 2025

  1. March 15 is day 74 of 2023. Remaining days in 2023: 365 − 74 = 291
  2. 2024 is a leap year: 366 days
  3. October 8 is day 281 of 2025
  4. Total: 291 + 366 + 281 = 938 days

This multi-year calculation is where a date calculator saves the most time, especially when multiple leap years are involved.

Frequently Asked Questions

Count the remaining days in the start month, add up the days for each full month in between, then add the number of days into the final month. Remember to check for leap years if your range includes February.

In a standard (non-leap) year, there are 364 days between January 1 and December 31 using exclusive counting. Including both endpoints, it is 365 days—the full year.

Exclusive counting does not count the start date (it counts only the days you “cross”). Inclusive counting counts both the start and end dates. The inclusive count is always one more than the exclusive count.

Yes. If your date range includes February of a leap year, the total day count increases by 1 because February has 29 days instead of 28. Leap years occur every 4 years (with exceptions for century years not divisible by 400).

From January 1 to December 25 there are 358 days in a non-leap year and 359 days in a leap year. You can also check our days until Christmas countdown for a live count.

Yes. Use our business days calculator, which excludes weekends (Saturday and Sunday) and optionally accounts for public holidays. See our business days explained guide for details.

Related Calculators

Related Guides