How to Calculate the Number of Days Between Dates

Whether you’re planning a trip, tracking a deadline, or calculating how long something lasted, knowing the number of days between two dates can be useful.

The simplest method is to count the calendar days that have passed from the start date to the end date. For longer periods, a date calculator can handle different month lengths and leap years automatically.

How to calculate days between two dates

Follow these steps:

  1. Write down your starting date and ending date.
  2. Count the days remaining in the starting month.
  3. Add the days in any complete months between the dates.
  4. Add the days elapsed in the ending month.
  5. Decide whether you need elapsed days or inclusive counting.

For a faster calculation, use our Date Difference Calculator at:

Date Difference Calculator

Example 1: Counting days within the same month

Question: How many days are between January 1 and January 7?

Subtract the starting day from the ending day:

7 − 1 = 6 days

Six calendar days have elapsed.

If you need to include both January 1 and January 7, the inclusive total is seven days.

Example 2: Counting across two months

Question: How many days are between January 25 and February 10 in a non-leap year?

January has 31 days.

  • Days remaining after January 25: 31 − 25 = 6
  • Days elapsed in February through February 10: 10
  • Total: 6 + 10 = 16 days

The elapsed difference is 16 days. If both endpoints are included, the total is 17 calendar dates.

Example 3: How leap years affect the result

Question: How many days are between February 28 and March 1?

In 2024, a leap year:

  • February 28 to February 29: 1 day
  • February 29 to March 1: 1 day
  • Total: 2 days

In 2025, a non-leap year, the same date range is only 1 day.

A leap year normally occurs every four years, except century years that are not divisible by 400. For example, 2000 was a leap year, but 1900 was not.

Elapsed days versus inclusive days

These methods answer slightly different questions.

Elapsed days measure the gap between two dates. For example, Monday to Friday is four elapsed days.

Inclusive counting includes both the starting and ending dates. Monday through Friday therefore covers five calendar dates.

For an ordered date range:

Inclusive days = elapsed days + 1

Choose the method based on what you’re measuring:

  • Hotel stays: Usually count nights between check-in and check-out. Monday check-in and Friday check-out generally mean four nights.
  • Event schedules: An event running Monday through Friday generally spans five calendar dates.
  • Deadlines: Confirm whether the starting day counts and whether the rule uses calendar days or business days.
  • Billing periods: Follow the provider’s specific start-date and end-date rules.

How to convert days into weeks

Divide the total number of days by seven.

For example, 246 days contains:

  • 35 complete weeks (245 days)
  • 1 remaining day

The result is 35 weeks and 1 day, or approximately 35.14 weeks.

Why calculating months is different

Unlike weeks, calendar months have different lengths.

For example, January 15 to February 15 is one calendar month, even though the elapsed day count varies depending on whether February is in a leap year.

Dividing a day count by 30 can provide a rough estimate, but it does not reliably calculate complete calendar months.

For precise month-based calculations, the rules must specify how to handle dates near the end of a month.

Common mistakes to avoid

Forgetting leap years: February sometimes has 29 days rather than 28.

Mixing inclusive and elapsed counting: These produce different totals.

Ignoring date order: If the ending date comes before the starting date, decide whether you need a negative difference or the absolute number of days between the dates.

Confusing calendar days with business days: Business-day calculations may exclude weekends and specified holidays.

Subtracting local timestamps: Some days contain 23 or 25 hours because of daylight saving time. When calculating calendar-date differences in software, use a calendar-aware date method or normalize dates appropriately instead of assuming every local day contains exactly 86,400,000 milliseconds.

Frequently asked questions

Does the starting date count?

Not in a standard elapsed-day calculation. It does count when using inclusive counting.

What if both dates are the same?

The elapsed difference is zero days. Inclusive counting treats that single date as one calendar day.

Does a date difference include weekends?

A standard calendar-day difference includes weekends. Business-day calculations follow separate rules.

How do I calculate days between dates in different years?

Count the remaining days in the first year, add any complete intervening years, and then add the days elapsed in the final year. Remember to account for leap years.

Can I calculate days between dates without counting manually?

Yes. A date difference calculator can handle month lengths and leap years for you. Check whether the calculator reports elapsed days or inclusive days.

Calculate your date difference

Use the free Date Difference Calculator to find the time between two dates:

Date Difference Calculator

You can also use the Age Calculator to calculate age from a birth date:

Age Calculator

These tools are intended for general calculations. For legal deadlines, billing disputes, or other situations where counting rules matter, verify the applicable requirements.

Related resources