Few tasks trip people up more than counting days between dates. Whether you are planning a project, tracking an anniversary, or just curious how long ago something happened, the answer often hides behind a mix of month lengths and leap years.

Excel DATEDIF unit “d”: Full days between dates · DAYS function introduced: Excel 2013 · Direct subtraction: Simplest Excel method

Quick snapshot

1Confirmed facts
2What’s unclear
3Timeline signal
4What’s next
Label Value
DAYS function syntax =DAYS(end_date, start_date) (Corporate Finance Institute, finance education)
DATEDIF unit for days “d” – full days (Microsoft Support, Excel documentation)
DATEDIF unit for months “m” – full months (Microsoft Support, Excel documentation)
DATEDIF unit for years “y” – full years (Microsoft Support, Excel documentation)
Simple subtraction formula =end_date – start_date (Ablebits, spreadsheet solutions)
Days function availability Excel 2013 and later (Corporate Finance Institute, finance education)
Handling date+time values Use INT( end – start ) to separate days (Ablebits, spreadsheet solutions)

How to Calculate the Number of Days Between Two Dates

Manual calculation method

To manually find the days between two dates, subtract the earlier date from the later date by counting the days in each intervening month. For example, from March 15 to April 10: March has 31 days, so the remaining days in March are 16 (31 – 15), plus 10 days in April equals 26 days. You must account for leap years (February has 29 days in a leap year, 28 otherwise). The Gregorian calendar adds an extra day every four years, which shifts the calculation for dates crossing February 29.

Manual counting works for short spans but grows tedious for long periods. Excel or online tools eliminate the risk of missing leap days.

Using an online date calculator

Online calculators like those at ablebits.com automate the entire process. Ablebits states that its online calculator shows how many days there are from one date to another after entering the two dates (Ablebits, spreadsheet solutions). You simply pick a start date and an end date, and the tool returns the total days, months, and years. Many also offer a business-days option that excludes weekends.

Why this matters

Manual methods are error-prone once the span exceeds a few months. An online calculator gives a second opinion in seconds.

The implication: using two different methods (manual + online) lets you cross-check without extra work.

How Many Days Are Between Two Dates in Excel?

Using the DATEDIF function

Microsoft Support explains that the DATEDIF function with unit “d” returns the number of full days between two dates (Microsoft Support, Excel documentation). The syntax is =DATEDIF(start_date, end_date, "d"). Place the start date in one cell and the end date in another before applying the formula (Microsoft Support, Excel documentation).

Using a simple subtraction formula

The simplest Excel method, according to Ablebits, is to subtract the older date from the newer date (Ablebits, spreadsheet solutions). If cell A1 contains the start date and B1 the end date, =B1-A1 returns the number of days. Excel handles leap years and different month lengths automatically. For date-time values, combine INT with subtraction: =INT(B1-A1) isolates the day count (Ablebits, spreadsheet solutions).

The catch

Direct subtraction may return a date-format result if the cell is not preformatted as a number. Apply General or Number formatting first.

The pattern: DATEDIF gives explicit control over units; direct subtraction is faster but less flexible.

How to Count Days Since a Past Event

Counting from a birthday or anniversary

To count days since a past event, subtract the past date from today’s date. In Excel, =TODAY()-A2 returns the number of days since the date in A2. For a precise count including the start day (if the event happened at midnight), add 1 to the result. Ablebits notes that the same subtraction logic applies in Google Sheets with the TODAY() function.

Counting from a historical event

For dates that cross centuries or calendar reforms, manual counting requires knowledge of historical calendar changes. The Gregorian calendar was adopted at different times in different countries, so results for events before the local adoption may be off by up to 10 days. Use a reputable online calculator that accounts for historical calendars.

The trade-off

Modern spreadsheets assume the Gregorian calendar. For dates before 1752 (UK) or 1582 (Italy), manual research is still the safest route.

What this means: for twentieth-century events onward, Excel and online tools are reliable. For older events, double-check with a historical calendar source.

What is the Best Date Between Two Dates Calculator?

Four popular date calculators, each with distinct strengths. The table below contrasts their core features.

Four tools, one pattern: automated results beat manual counting for speed, but you need the right tool for the job.

Tool Days count Business days Add/subtract days Countdown
timeanddate.com Duration Calculator Yes Yes No Yes (timeanddate.com, date/time authority)
calculator.net Date Calculator Yes No Yes No (calculator.net, online tools)
Ablebits Online Calculator Yes No No No (Ablebits, spreadsheet solutions)
Omnicalculator Date Difference Yes Yes Yes Yes (Omnicalculator, specialist calculators)

Why this matters: if you only need a raw day count, any tool works. But if you need to add or subtract days from a start date (e.g., “90 days from today”), calculator.net or Omnicalculator is better. For a countdown to a future event, timeanddate.com and Omnicalculator have dedicated views.

When to use a business day calculator

Business day calculators exclude weekends and optionally public holidays. Timeanddate.com’s duration calculator offers a “business days” option. This is essential for contract deadlines, shipping estimates, and project timelines. Ablebits’ online tool does not include a business-day mode.

The trade-off: simple day counters are free and fast; business-day tools require you to specify a holiday calendar and may only be accurate for the country you choose.

How Many Days Until a Future Date?

Using the “Countdown” feature

Online countdown tools display days, hours, minutes, and seconds until a target date. Timeanddate.com’s countdown calculator lets you set a future date and shows the time remaining. In Excel, =A1-TODAY() where A1 holds the future date gives the days until. For hours and minutes, combine with NOW().

Manual calculation for future dates

To manually compute days until a future date, subtract today’s date from the target date using the same month-borrowing method described earlier. Remember that a leap year adds a day if the target date is after February 29. For dates more than one year out, multiply years by 365 and add an extra day for each leap year in between.

The pattern: future-date calculations are identical in logic to past-event calculations—only the direction changes.

Steps: How to Calculate Days Between Dates Manually in 5 Steps

  1. Write down both dates in the format YYYY-MM-DD (e.g., 2023-03-15 and 2023-04-10).
  2. Subtract the year of the earlier date from the later date. If the later date’s month/day is earlier in the year, borrow 1 year (12 months) from the year difference.
  3. Subtract the month of the earlier date from the later date. If the later day is smaller, borrow days from the previous month using that month’s number of days.
  4. Subtract the day of the earlier date from the later date after borrowing. This gives the total days.
  5. Add leap year adjustments: count how many February 29ths occurred between the two dates and add that many days.

For the example above: 2023-03-15 to 2023-04-10. Year difference = 0. Month difference = 1 (April – March). Day difference = 10 – 15? Borrow 1 month from April (30 days): +30 days, so day difference = (30 – 15) + 10 = 25. Total days = 0 years + 0 months + 25 days = 25 days. No leap day in that range, so result is 25 days.

Confirmed Facts vs. What’s Unclear

Confirmed facts

  • Excel’s DATEDIF function with unit “d” returns full days between dates (Microsoft Support, Excel documentation)
  • The DAYS function syntax is =DAYS(end_date, start_date) and was introduced in Excel 2013 (Corporate Finance Institute, finance education)
  • Direct subtraction of date cells works for simple day counts (Ablebits, spreadsheet solutions)

What’s unclear

  • How date format regional settings affect Excel formula results (Microsoft Support notes potential formatting issues)
  • Whether online calculators include the end date by default—some count full days, others calculate elapsed time from start to end (Ablebits mentions variability)

What Industry Experts Say

“The Date Duration Calculator on timeanddate.com calculates days, months, and years between two dates.”

— timeanddate.com, date/time authority

“This tool can add or subtract days from a given date, useful for planning.”

— calculator.net, online tools

Summary

Knowing how many days between dates is a core task for personal scheduling, professional deadlines, and even historical curiosity. The manual method teaches the logic; Excel formulas give you speed and repeatability; online calculators catch mistakes. For the average user working with modern dates, a combination of direct subtraction in a spreadsheet and a quick sanity check with an online tool is the most efficient workflow. For anyone tracking contract timelines or project milestones, the choice is clear: use a business-day calculator that accounts for weekends and holidays, or your deadline could slip by.

Additional sources

youtube.com, youtube.com, commerce.wa.gov

For a quick and accurate result, you can use a days between dates calculator that handles all the math automatically.

Frequently asked questions

How many days are in a year on average?

The average length of a year in the Gregorian calendar is 365.2425 days, accounting for leap years every 4 years (with exceptions for century years not divisible by 400). For quick calculations, 365 days is the common year value.

What is a leap year and why does it matter for date calculation?

A leap year has 366 days instead of 365, with February 29 added. It occurs every four years (except century years not divisible by 400). When calculating days between dates that include February 29, you must count that extra day.

Can I calculate only weekdays between dates?

Yes, many online calculators and Excel (using NETWORKDAYS function) can count only weekdays (Monday–Friday) and optionally exclude holidays.

How do I count days in Google Sheets?

Google Sheets supports the DAYS, DATEDIF, and MINUS functions. Simple subtraction works as well: =B1-A1 returns the day count.

What is the formula to count days in Excel?

Use =DATEDIF(start_date, end_date, "d") or =DAYS(end_date, start_date) or simply subtract the cells: =end_date - start_date.

Is there a difference between a calendar day and a business day?

Yes. A calendar day counts every day of the week; a business day typically counts Monday through Friday, excluding weekends and public holidays. Business day calculations are standard for contracts and shipping.