Home › Converters › Days Between Dates Calculator
🗓️

Days Between Dates Calculator

Count the exact days between two dates, with an inclusive-count option, business days and an exact years-months-days breakdown. Free day counter, no signup.

About this tool

How many days until the wedding, the exam, the product launch or the visa expiry? Counting days between two dates by hand is tedious, and month boundaries make it error-prone. Most people just want the number without the calendar gymnastics.

Our free days-between-dates calculator gives you the exact day count instantly. Pick the two dates and the tool also breaks the gap into an exact years-months-days breakdown, weeks, and business days, with an option to count the end date too — useful for planning timelines, contracts and countdowns.

By Azhar Hussain · Last updated: 12 November 2026

How to use

The start date defaults to today; pick the end date with the date picker, or use the End of year button to count the days left in the year. Tick “Include end date” if both endpoint days should count, then press Calculate Difference.

The tool shows the total days first, then the same span as an exact calendar breakdown (whole years, then whole months, then leftover days), weeks and days, business days and weekend days, and hour/minute/second equivalents.

The order does not matter: picking the later date first still gives the same positive difference. Leap years are counted correctly in the day total.

The math behind it

Each date is anchored to midnight UTC and converted to a millisecond timestamp; the absolute difference divided by 86,400,000 (the milliseconds in a day) is the exact day count. UTC anchoring means daylight-saving transitions can never shift a count by an hour, because calendar days are date boundaries, not 24 clock hours.

The calendar breakdown steps through the real calendar, largest units first: whole years, then whole months, then leftover days, with month-end clamping (31 January plus one month is 28 February). Business days are Mondays to Fridays counted over the range with both endpoint dates included, and weekend days are the rest.

Inclusive vs exclusive: why two calculators can differ by one

From 3 March to 21 March 2026 there are 18 days by the standard difference (the end date is not counted) and 19 days inclusive (both endpoint days count). Neither answer is wrong — they answer different questions, and the one-day gap is the classic fence-post problem: 19 fence posts make 18 gaps.

Use the exclusive count for elapsed time (how many days until the event, how old something is) and the inclusive count when every day on the list matters (hotel nights are actually exclusive — a 3-night stay spans 4 calendar dates — while project days and rental days are usually inclusive). Tick the “Include end date” box on this page to switch; the breakdown, weeks and totals all follow the same count. Legal deadlines sometimes count differently by jurisdiction, so check the rule that governs yours.

How months and years are counted

The breakdown counts whole calendar years first, then whole calendar months, then leftover days — the larger-units-first convention. Each calendar month counts as one month regardless of its length, so 28 January to 1 March and 31 January to 1 March both read as 1 month, 1 day: the month step clamps to 28 February, then one day remains. There is no perfect month/year breakdown, because months vary in length; the convention is stated here so the result is never a surprise.

The same breakdown gives exact ages: born 15 March 1990, on 12 November 2026 the age is 36 years, 7 months, 28 days. Try it with any two dates — the breakdown line is the age-style answer.

Business days: the counting rule

Business days are Mondays to Fridays, counted with both endpoint dates included, and the weekend-days line is everything else in the same inclusive range. The rule is labelled on each result line, because tools differ: some count business days exclusively, which is another common source of one-day disagreements.

Public holidays are NOT excluded — they vary by country, state and employer, so no single list would be right for every reader. A full year holds about 261 weekdays: 2026, a common year starting on a Thursday, has exactly 261, and January 2026 has 22 business days and 9 weekend days. If your count must skip holidays, use the spreadsheet formulas below with a holiday list.

Worked examples

Every row below can be checked in the calculator above.

StartEndDays (exclusive)InclusiveCalendar breakdown (exclusive)
3 March 202621 March 2026181918 days
28 January 20261 March 202632331 month, 1 day
1 January 20241 January 20253663671 year
15 March 199012 November 2026133911339236 years, 7 months, 28 days
10 June 202610 June 2026010 days

The same counts in a spreadsheet

In Excel or Google Sheets, with the start date in A1 and the end date in B1:

CountFormulaNotes
Days (exclusive)=B1-A1Plain subtraction; Microsoft recommends this over DATEDIF for day counts.
Days / months / years=DATEDIF(A1,B1,"D") / "M" / "Y"Complete units only; start after end gives #NUM!. Microsoft warns DATEDIF can give wrong results in some cases and advises against its "MD" unit.
Business days=NETWORKDAYS(A1,B1)Counts both endpoints; add a third argument with a holiday list to exclude holidays.
Custom weekend=NETWORKDAYS.INTL(A1,B1,7)Code 7 means a Friday–Saturday weekend; a 7-character 0/1 string (Monday first) works too.

Google Sheets supports DATEDIF, NETWORKDAYS and NETWORKDAYS.INTL with the same syntax. Note that NETWORKDAYS counts both endpoints, matching the business-days line on this page.

Scope: daylight saving, leap seconds, and holidays

Counts are calendar days, not clock time: dates are anchored to UTC midnight, so daylight-saving transitions never change a result, and leap seconds play no part in date arithmetic. The calendar is the Gregorian calendar, in use since 15 October 1582; very old dates use the same proleptic rules.

This tool measures the gap between two dates. It does not shift a date by an offset, add business days to a date, or list repeating dates — for those, use the date calculator. It does not count hours, minutes or seconds between times of day.

Frequently asked questions

Does it count the start and end day?
By default the tool counts the standard difference, which does not count the end date: from 1 January to 2 January is 1 day. Tick “Include end date in the count” to add 1 and count both endpoint days — useful for booking and project days. The result label always says which count is shown.
Are leap years included?
Yes. Because the calculation works from exact calendar dates, 29 February is counted whenever it falls between your two dates. A span from 1 January 2024 to 1 January 2025 correctly shows 366 days.
Can I use it to count down to an event?
Yes. The start date defaults to today, so just pick the event as the end date — or use the End of year button to count the days left in the year. The day count is your countdown. Many people use it for weddings, exams, trips and subscription renewals.
How many business days are between two dates?
The tool counts Mondays to Fridays with both endpoint dates included, and shows weekend days alongside. Public holidays are not excluded, because they vary by country, state and employer — for a count that skips holidays, use NETWORKDAYS in a spreadsheet with a holiday list.
Why do two date calculators disagree by one day?
Almost always inclusive vs exclusive counting. One tool counts the end date and the other does not, so 3 March to 21 March 2026 reads 19 days on one and 18 on the other. Both are correct under their own convention — this page labels every result with the convention it uses, and the toggle switches between them.
How are months and years counted when months have different lengths?
Largest units first: whole years, then whole months, then leftover days, stepping through the real calendar with month-end clamping. So 28 January to 1 March and 31 January to 1 March both give 1 month, 1 day, because the month step clamps to 28 February. The total-days figure is always exact; the breakdown is a convention, stated on the page.
How do I count days between two dates in Excel or Google Sheets?
Subtract: =B1-A1 gives the exclusive day count. =DATEDIF(A1,B1,"D"), "M" or "Y" gives complete days, months or years. =NETWORKDAYS(A1,B1) counts business days including both endpoints, with an optional holiday list, and =NETWORKDAYS.INTL(A1,B1,7) uses a Friday–Saturday weekend. Google Sheets supports all three functions with the same syntax.
Does the count change with daylight saving time?
No. The count is calendar days — date boundaries, not 24 clock hours — and each date is anchored to midnight UTC, so the spring-forward and fall-back transitions cannot shift a result by an hour. A span crossing a DST change counts exactly the same as any other span of the same dates.

Related tools

💬 Comments

Have a question about this page, or an idea to make it better? Share it below — your feedback helps everyone who uses this site.