Skip to content
Insurance Calculator

How to Calculate Days Between Two Dates (Easy Guide)

Published

How to Calculate Days Between Two Dates

Finding the number of days between two dates is useful in everyday life. You may need to count how many days are left before a holiday, calculate the length of a trip, check how long a project will take, or work out the number of days between two important events. The good news is that you do not need advanced maths to do it.

There are several simple ways to calculate the days between two dates. You can count them manually, use a calendar, calculate the difference with a formula, or use an online date calculator. This guide explains each method with clear examples so you can choose the one that works best for you.

What Does Days Between Two Dates Mean?

The number of days between two dates is the amount of time that passes from one date to another. For example, if an event starts on March 1 and ends on March 10, the difference between the dates is 9 days.

This calculation normally does not count the starting date as a complete day. It measures the time from the beginning of the first date to the beginning of the second date.

It is important to understand this point because some situations require inclusive counting. Inclusive counting includes both the start date and the end date. For example, March 1 through March 10 covers 10 calendar dates when both dates are included, even though the difference between the dates is 9 days.

How to Calculate Days Between Two Dates Manually

You can calculate the difference without a calculator if the dates are close together or fall within the same month.

Follow these steps:

  1. Write down the starting date.
  2. Write down the ending date.
  3. Count the days from the starting date to the ending date.
  4. Do not count the starting date itself when calculating the standard date difference.

Example: March 5 to March 14

Count the days after March 5:

  • March 6: 1 day
  • March 7: 2 days
  • March 8: 3 days
  • March 9: 4 days
  • March 10: 5 days
  • March 11: 6 days
  • March 12: 7 days
  • March 13: 8 days
  • March 14: 9 days

The difference between March 5 and March 14 is 9 days.

Manual counting works well for short periods. For dates several months or years apart, a calendar or date calculator can save time and help prevent mistakes.

How to Calculate Days Between Dates in Different Months

When two dates fall in different months, you need to account for the number of days in each month.

Example: January 25 to February 8

January has 31 days. There are 6 days from January 25 to January 31 when counting the elapsed time up to February 1. Then there are 8 more days from February 1 to February 8.

You can also calculate it by counting the date difference directly:

  • January 25 to February 1 = 7 days
  • February 1 to February 8 = 7 days
  • Total = 14 days

Therefore, the difference between January 25 and February 8 is 14 days.

Remember that months do not all have the same length. February has 28 days in a common year and 29 days in a leap year. April, June, September, and November have 30 days. The remaining months have 31 days.

How to Calculate Days Between Two Dates in Different Years

Calculating dates across years takes a little more care because you must include all the days in the months and years between them.

Example: December 20, 2025 to January 10, 2026

There are 11 days between December 20 and December 31, followed by 10 days from January 1 to January 10.

The total difference is:

11 + 10 = 21 days

For longer periods, it is easier to use a date calculator or convert each date into a day number and subtract the smaller number from the larger one.

How to Calculate Days Between Two Dates Using a Formula

A simple mathematical approach is to convert both dates into a continuous day count. Then subtract the earlier date's count from the later date's count.

Formula:

Days between dates = Later date value - Earlier date value

This works because each calendar date has a position in a continuous sequence of days. The difference between those positions gives the number of elapsed days.

For example, suppose the date values are:

  • Start date value: 20,000
  • End date value: 20,045

The calculation is:

20,045 - 20,000 = 45 days

You do not normally need to calculate these day values yourself. Spreadsheet programs and programming languages can do the conversion automatically.

How to Calculate Days Between Dates in Excel or Google Sheets

Excel and Google Sheets make date calculations simple. Enter the starting date in one cell and the ending date in another. Then subtract the first cell from the second.

For example:

Cell Value


A2 01/03/2026 B2 15/03/2026

In another cell, enter:

=B2-A2

The result is 14.

Make sure both cells contain real date values rather than text that only looks like a date. If the result appears as another date, change the result cell's format to Number or General.

You can also use the DAYS function:

=DAYS(B2,A2)

This returns the number of days between the end date in B2 and the start date in A2.

The same basic subtraction method works in Google Sheets.

How to Calculate Days Between Dates in a Leap Year

A leap year has 366 days instead of the usual 365. February has 29 days during a leap year, which can change the result when your date range includes February.

Most leap years are divisible by 4. However, a year divisible by 100 is not a leap year unless it is also divisible by 400.

For example:

  • 2024 was a leap year.
  • 2025 was not a leap year.
  • 2000 was a leap year.
  • 1900 was not a leap year.

Example: February 28, 2024 to March 1, 2024

February 29 falls between these dates. The difference is 2 days.

In a non-leap year, February 28 to March 1 is 1 day.

A reliable date calculator automatically accounts for leap years, so you do not have to check them yourself.

How to Calculate Working Days Between Two Dates

Sometimes you need to count only working days rather than every calendar day. This is useful for business deadlines, office schedules, delivery estimates, and project planning.

Working-day calculations usually exclude Saturdays and Sundays. Public holidays may also be excluded, depending on the country and the rules you are using.

For example, if a task begins on Monday and ends on Friday of the same week, there are 4 elapsed days between the dates, but 5 weekdays are included when counting both Monday and Friday as working dates.

In Excel or Google Sheets, you can use:

=NETWORKDAYS(A2,B2)

This counts weekdays and includes both the start and end dates if they are working days. You can also provide a range of holiday dates to exclude them from the result.

Be aware that working days vary by country, company, and industry. Some workplaces operate on Saturdays or follow different weekly schedules.

How to Use an Online Days Between Dates Calculator

An online days between dates calculator is often the quickest option. It is especially helpful when the dates are far apart or when you want to avoid manual counting.

Most date calculators follow a simple process:

  1. Open the date calculator.
  2. Select the starting date.
  3. Select the ending date.
  4. Press the Calculate button.
  5. Read the number of days shown in the result.

Some calculators also display the number of weeks, months, or years between the selected dates. Others let you include the starting date in the total or calculate working days.

Before using the result, check whether the tool counts elapsed days or includes both selected dates. This small difference matters when calculating event durations, booking periods, or deadlines.

Common Mistakes to Avoid

Date calculations are straightforward, but a few common mistakes can lead to incorrect results.

Counting the Starting Date Twice

The standard date difference does not include the starting date as an elapsed day. If you need to count every calendar date in a range, use inclusive counting instead.

Forgetting Leap Years

February has 29 days in a leap year. Ignoring this extra day can produce an incorrect result for date ranges that include it.

Assuming Every Month Has 30 Days

Months have different lengths. Always use the actual number of days in each month when calculating manually.

Mixing Up Date Formats

A date such as 04/05/2026 can mean April 5 or May 4, depending on the date format. Check the format used by your calculator or spreadsheet before entering dates.

Confusing Calendar Days With Working Days

Calendar days include weekends and holidays. Working-day calculations usually exclude weekends and may exclude public holidays too. Choose the correct type for your task.

Frequently Asked Questions

How many days are between two dates?

The answer depends on the dates you select. Enter the earlier and later dates into a date calculator, or subtract the earlier date from the later date in a spreadsheet.

Do I count the first day when calculating the difference?

Usually, no. The standard difference measures elapsed days and does not count the starting date. If you want to include both the starting and ending dates, add one to the standard difference.

How do I calculate days between dates in different years?

Count the days across the remaining part of the first year, include any complete years in between, and then count the days in the final year. A date calculator can do this automatically and account for leap years.

Does a date calculator include leap years?

A properly designed date calculator accounts for leap years automatically. It uses the calendar rules to determine whether February has 28 or 29 days.

Can I calculate days between dates in Excel?

Yes. Enter the start date in A2 and the end date in B2, then use =B2-A2 or =DAYS(B2,A2) in another cell.

What is the difference between calendar days and working days?

Calendar days include every day of the week. Working days generally include weekdays only, although the exact schedule and public holidays depend on the workplace or country.

How can I count both the start date and end date?

Calculate the standard difference between the two dates and add one. For example, March 1 to March 10 has a standard difference of 9 days, but 10 dates are included when counting both endpoints.

Final Thoughts

Calculating the days between two dates is easy once you understand the difference between elapsed days and inclusive counting. You can count manually for short periods, subtract dates in Excel or Google Sheets, or use an online calculator for a quick result.

For everyday planning, an online days between dates calculator is a convenient choice. Select your start and end dates, check whether you need calendar days or working days, and use the result to plan your deadline, trip, event, or schedule with confidence.