Days between dates calculator

Find how many days there are between two dates — and the same gap in weeks, in years, months and days, and in weekdays.

Today, unless you pick another date.
No (normal)Yes (+1 day)
Enter a start date.

How many days are there between two dates?

Subtract the earlier date from the later one in calendar days; leap days are counted automatically. From 1 January 2026 to 1 January 2027 is 365 days. Add one if you want to include both the start and end dates, as some contracts and countdowns do.

Days between dates calculator: A calendar with a date circled in red.
How it’s calculated
Days = later date − earlier date. Including both ends: + 1. Weeks = days ÷ 7.
Data source
Gregorian calendar
Checked by
Yasir Hafeez, founder and editor — how we test
</> Embed this calculator

Free to use on your website, blog or school page. Copy the code and paste it into your page’s HTML.

Days between dates calculator

Photo: kaboompics / Pixabay

How the days are counted

The calculator counts calendar days from the start date to the end date. By default the start date is counted and the end date is not, which is the usual meaning of “days between”: from Monday to Friday is 4 days. Choose “count the end date too” when you need both days included — for example, the length of a holiday or a hotel stay counted in days rather than nights, or a notice period that runs “up to and including” a date.

A red heart pillow next to a wooden calendar showing February 14th.

Leap days are included automatically. From 1 January 2028 to 1 January 2029 is 366 days, because 2028 has a 29 February.

Weekdays and weekends

The weekday figure counts Mondays to Fridays in the range, and the weekend figure counts Saturdays and Sundays. Public holidays are not removed, because they differ by country, state and employer — subtract any that fall in your range for an exact working-day count.

A tablet displaying a calendar, keyboard, phone, and notebook on a desk.

Years, months and days

The same gap is also shown the way an age is counted: whole years, then whole months, then the days left over. That is the easiest way to read long gaps, such as how long ago a wedding or a move was.

A red pencil circling the year 2018 on a calendar page.

How to Use the Days Between Dates Calculator

Using this calculator is straightforward. It quickly finds the time span between any two dates. First, choose your starting point. Then, select your desired end date. The tool handles all calendar complexities. It automatically accounts for leap years.

Next, decide how to count the final day. Most calculations do not include the end date. However, some situations require it. An example is counting the duration of a hotel stay. If you need to count the end date, simply check the option. Finally, click to see your results. The calculator then displays the total days, weeks, and other breakdowns.

  1. 1. Locate the 'Start date' field.
  2. 2. Click on the calendar icon or type the first date.
  3. 3. Find the 'End date' field.
  4. 4. Select or type the second date.
  5. 5. Review the 'Count the end date too?' option.
  6. 6. Choose 'Yes (+1 day)' if you need to include the end date. Otherwise, leave it as 'No (normal)'.
  7. 7. The results appear instantly below the input fields.

Worked Example: Inclusive Counting

Consider a different scenario. Imagine you booked a hotel from July 1, 2024, to July 5, 2024. Hotels often count nights, but sometimes you need the total days. This calculation requires including both the start and end dates. This is vital for accurate planning.

Set July 1, 2024, as your start date. Then, select July 5, 2024, as the end date. Crucially, select 'Yes (+1 day)' for the 'Count the end date too?' option. The calculator will then show 5 days. A manual check confirms: July 1, 2, 3, 4, 5. This totals five days, matching the calculator's output. This feature makes the Days between dates calculator versatile.

Common Mistakes to Avoid

Several common errors can lead to incorrect date calculations. One frequent mistake is misinterpreting the 'include end date' option. Always confirm whether your specific task requires counting the final day. For example, a 30-day notice period usually includes the last day. Conversely, the days 'until' an event typically exclude it.

Another error involves date format. Always enter dates clearly. Use the calendar picker to prevent typos. Also, be aware of differing year conventions. While this calculator uses the Gregorian calendar, other systems exist. Finally, remember that public holidays are not automatically excluded from weekday counts. Manually adjust for these if needed.

When to Use a Different Approach

While this calculator is robust for general date differences, some specialized situations require different tools. For instance, calculating business days, excluding specific holidays, falls outside its scope. The calculator only excludes Saturdays and Sundays. If your project demands custom holiday lists, a specialized business day calculator would be more appropriate.

Similarly, for complex financial calculations involving interest accrual, a simple day count might not suffice. These often use specific day count conventions like 'Actual/360' or '30/360'. Such methods require dedicated financial software. Furthermore, if you need to determine precise time differences down to hours, minutes, or seconds, a time difference calculator offers better precision. This tool focuses solely on full days.

Checking Your Results

Always review the output from the Days between dates calculator. It provides several ways to view the time span. You will see the total number of days. Next, it shows the same period in weeks. Also, a breakdown in years, months, and days appears. This helps grasp longer durations. Finally, a count of weekdays and weekends is provided.

To manually check, count on a calendar. For a short period, simply list the days. Then, compare your count to the calculator's total days. Remember if you included the end date or not. For example, from Monday to Friday is 4 days if Friday is not counted. However, if Friday is counted, it is 5 days. This careful check ensures accuracy for your specific need.

Practical Tips for Date Calculations

Effective date calculation requires clear inputs. Always double-check your start and end dates. A simple typo can change the result significantly. Use the calendar picker to prevent entry errors. Furthermore, confirm the exact definition of 'days between' for your task. Some tasks need the end date included, others do not.

Consider the context of your calculation. For example, a contract might specify '30 days from' a date. This often means excluding the start date but including the 30th day. Conversely, a countdown 'until' an event typically excludes the event day. Understanding these nuances ensures you use the Days between dates calculator correctly every time.

Frequently asked questions

How many days are between two dates?

Count the calendar days from the first date to the second; the calculator does it instantly and shows weeks and weekdays too.

Does it include the end date?

Not by default. Choose “Yes (+1 day)” to count both the first and the last day.

Are public holidays excluded from weekdays?

No. Only Saturdays and Sundays are excluded, because holidays differ by country and employer.

Sources

Photo of Yasir Hafeez
Written and checked by Yasir Hafeez. Last reviewed October 16, 2026. Results are calculated with fixed rules and tested against an independent date library; see how we check.

More age tools

From the blog