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.
| Start | End | Days (exclusive) | Inclusive | Calendar breakdown (exclusive) |
|---|---|---|---|---|
| 3 March 2026 | 21 March 2026 | 18 | 19 | 18 days |
| 28 January 2026 | 1 March 2026 | 32 | 33 | 1 month, 1 day |
| 1 January 2024 | 1 January 2025 | 366 | 367 | 1 year |
| 15 March 1990 | 12 November 2026 | 13391 | 13392 | 36 years, 7 months, 28 days |
| 10 June 2026 | 10 June 2026 | 0 | 1 | 0 days |
The same counts in a spreadsheet
In Excel or Google Sheets, with the start date in A1 and the end date in B1:
| Count | Formula | Notes |
|---|---|---|
| Days (exclusive) | =B1-A1 | Plain 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?
Are leap years included?
Can I use it to count down to an event?
How many business days are between two dates?
Why do two date calculators disagree by one day?
How are months and years counted when months have different lengths?
How do I count days between two dates in Excel or Google Sheets?
Does the count change with daylight saving time?
Related tools
Date Calculator
Age Calculator
Time Zone Converter
Unit Converter
Currency Converter
Temperature Converter
💬 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.