DateCalc.app
EN FR ES PT DE IT PL JA KO NL

DATE CALCULATION GUIDE

How to Calculate the Number of Days Between Two Dates

To calculate the number of days between two dates, subtract the earlier date from the later date. There are several methods to do this accurately, depending on whether you are calculating by hand, using a spreadsheet, or using a formula.

Method 1: Count calendar days directly

The simplest approach: start from the earlier date and count forward to the later date, one day at a time. This is practical for short ranges (a few weeks) but impractical for longer ones.

Example: How many days from April 1 to April 15?
April 1 → April 15 = 14 days.

Method 2: Subtract day-of-year numbers

Each day of the year has a number from 1 (January 1) to 365 (December 31). To find days between two dates in the same year, subtract the day numbers.

Example: How many days from March 10 to November 20, 2025?

  1. March 10 = day 69 of the year
  2. November 20 = day 324 of the year
  3. 324 − 69 = 255 days
MonthDay of year (first day)Days in month
January131
February3228 (or 29 in a leap year)
March60 (61 in leap year)31
April91 (92)30
May121 (122)31
June152 (153)30
July182 (183)31
August213 (214)31
September244 (245)30
October274 (275)31
November305 (306)30
December335 (336)31

Method 3: Count across years

When dates span multiple years, add up the remaining days in the first year, the full days in complete middle years, and the days elapsed in the final year.

Example: Days from June 15, 2020 to March 10, 2024:

  1. June 15 to Dec 31, 2020: 199 days remaining in 2020
  2. Full year 2021: 365 days
  3. Full year 2022: 365 days
  4. Full year 2023: 365 days
  5. Jan 1 to Mar 10, 2024: 70 days (2024 is a leap year)
  6. Total: 199 + 365 + 365 + 365 + 70 = 1,364 days

How leap years affect the calculation

A leap year has 366 days instead of 365. When your date range includes February 29 of a leap year, add 1 extra day. Leap years occur every 4 years: 2020, 2024, 2028, 2032…

If you are calculating by hand across multiple years, check whether each year in the range is a leap year and use 366 instead of 365 for those years.

FAQ

How many days are between January 1 and December 31?

364 days separate January 1 and December 31 (not counting the first day). The full year from January 1 to January 1 of the next year is 365 days (or 366 in a leap year).

How do I calculate the number of days between two dates in Excel?

In Excel, subtract the two date cells directly: =B1-A1. Format the result cell as a number (not a date). Excel stores dates as numbers, so subtraction gives the exact number of days.

Does the calculation include both the start and end date?

It depends on the convention. Most calculators count the gap between dates (not including either endpoint), so January 1 to January 5 = 4 days. If you need to include both days (e.g., for a rental period), add 1 to the result.

How many days between two dates that span a leap year?

If the date range includes February 29 of a leap year, add 1 extra day compared to a non-leap-year calculation. For example, January 1, 2024 to January 1, 2025 = 366 days (2024 is a leap year).

What is the fastest way to calculate days between dates?

Use an online date calculator (like the one on this site). Enter the two dates and the calculator instantly returns the number of days, weeks, months, and years between them.

Related: Days in each month · Business days vs calendar days · Weeks in a year
Calculate days between dates — free tool →