Age Difference Calculator
Updated July 15, 20268 min read

How to Count the Days Between Two Dates Correctly

How many days between two dates? Learn the exact way to count days, why the off-by-one error happens, how to handle leap years, and when to count business days only.

You need the number of days until a deadline, a wedding, or a due date, so you glance at a calendar and start counting squares. Halfway through the month you lose your place, start over, and end up with a number you do not fully trust. Counting days by hand is deceptively easy to get wrong β€” one boundary decision quietly shifts your total by a day, and a single leap year adds another. Here is how to count the days between two dates so the answer actually holds up.

The Off-by-One Trap That Fools Everyone

Ask two people how many days are between Monday and Wednesday and you will often get two different answers: some say two, some say three. Neither is "wrong" β€” they are answering different questions.

The gap depends on whether you count inclusively (counting both the start and end day) or exclusively (counting only the nights, or full days, in between).

  • Exclusive count: Monday to Wednesday is 2 days. This is the duration β€” how many 24-hour blocks elapse.
  • Inclusive count: Monday, Tuesday, Wednesday is 3 days. This is how many calendar days are touched.

This is the single most common thing people write in about. Someone takes a trip from Monday to Friday and says "that's a 5-day trip" β€” their brain counts the blocks on the wall calendar. But digital subtraction (Friday βˆ’ Monday) returns 4, because it counts the elapsed 24-hour periods between the two dates. Neither is broken. They are answering different questions: how many days do I touch (inclusive) versus how many days pass (exclusive).

Here is our strong view after building the engine: neither convention is universally correct β€” the real mistake is silently choosing one. For a duration (days until an event, days elapsed) the exclusive count is right. For "how many days am I booking the venue," where you occupy both the first and last day, the inclusive count is right, and it is simply the exclusive total plus one. Decide which question you are answering before you count, and use a tool that states its default rather than hiding it.

The Reliable Manual Method

Counting calendar squares one by one falls apart over long spans. This chunking method is faster and far harder to botch:

  1. Count the days left in the start month after your start date.
  2. Add the full months in between, using each month's real length (31, 30, 28, or 29).
  3. Add the day-of-month of your end date.

That gives you the exclusive day count. Add one if you need the inclusive total.

The weak point is step two: month lengths are not interchangeable. Assume every month is 30 days and a span of several months drifts by several days. This is the same month-length trap that makes manual age difference math so error-prone.

The trap bites hardest at month-ends. People happily say August 31 to September 30 is "one month," then get completely disoriented working out August 31 to October 1, because the trailing day spills across two months of different lengths. It is also where cheaper tools quietly fail: many convert the whole span to raw days and divide by an average month length (about 30.44), so a span like October 31 to February 28 gets mangled β€” the average-month shortcut can report "3 months and 28 days" even though November, December, and January have fully elapsed. A reliable engine steps month by month instead: October 31 to January 31 is exactly 3 whole months, then January 31 to February 28 is 28 days, so the honest answer is 3 months and 28 days without the intermediate months corrupting it. If the calendar-component breakdown matters, use a tool that steps the boundaries rather than averaging them.

Leap Years Silently Add a Day

Any span that crosses February 29 picks up an extra day that round-number math never accounts for. Leap years are divisible by 4 β€” except century years, which must also be divisible by 400. So 2000 was a leap year, 1900 was not, and 2024 and 2028 both are.

This compounds over long spans. A 10-year gap crosses either two or three February 29ths depending on exactly which years it spans, so not every "10-year" span has the same day count. For a full explanation of why February 29 breaks so much date math, see our piece on leap year birthdays.

A Worked Example

How many days from December 20, 2025 to March 10, 2026?

  • Days left in December: 31 βˆ’ 20 = 11 days.
  • Full months between: January (31) + February (28, since 2026 is not a leap year) = 59 days.
  • Day-of-month of the end date: 10 days.

Total: 11 + 59 + 10 = 80 days (exclusive). If you are counting both the first and last day inclusively, that is 81 days.

Swap in a leap year and the answer changes: the same span in early 2024 would add February 29, pushing the total to 81 days exclusive.

Count Any Span Instantly

Enter a start and end date to get the exact gap in years, months, and days β€” plus total days, weeks, and business days. Order doesn't matter.

Open the Date Difference Calculator→

When You Want Business Days, Not Calendar Days

Project deadlines, shipping estimates, and payment terms often care only about working days β€” Monday through Friday, skipping weekends.

There is no clean shortcut here, because the count depends on which weekday your span starts and ends on. A rough estimate is total days Γ— 5 Γ· 7, but that ignores exactly where the weekends fall and can be off by a day or two. It also cannot know about public holidays, which vary by country and even by state.

When the working-day count actually matters, count it precisely rather than estimating. Our calculator reports business days alongside the calendar total, so you can see both at once without a spreadsheet.

Days, Weeks, or Total Hours?

The same span answers several different questions depending on the unit:

QuestionWhat to report
How long until the event?Total days (exclusive)
How many weekends fall inside?Total weeks
How many working days to deliver?Business days only
How many days am I booking?Inclusive days (exclusive + 1)
How many hours of runtime?Total days Γ— 24

Picking the wrong unit is its own kind of error. "Six weeks" and "42 days" are the same span, but "6 weeks" quietly hides the 2 extra days in a 44-day gap. When precision matters, report the exact day count and convert from there.

Let the Tool Settle It

Hand-counting is fine for a span inside a single month. The moment you cross a month boundary, a year, or a February, the odds of an off-by-one or a missed leap day climb fast.

If you need the raw days between any two dates, find the exact gap with a dedicated engine. If one of your dates is a birthday and you want the answer as an age, the age calculator frames the same span as years, months, and days. And for the gap between two people, the main age difference calculator does the couple-and-sibling version of this exact math. For adding or subtracting days from a date instead of measuring between two, use the date calculator.

Days between two dates is a counting problem with two hidden traps: the boundary you count from, and the leap days you forget. Nail those two and the arithmetic is easy β€” or hand it to a tool that never miscounts.

Frequently Asked Questions

How do you calculate the number of days between two dates?

Count the days remaining in the start month, add the full months between using each month's real length, then add the end date's day-of-month. That gives the exclusive day count; add one if you are counting both the first and last day.

Should I count both the start and end date?

It depends on the question. For a duration β€” days until an event or days elapsed β€” use the exclusive count and do not count both ends. For "how many days am I occupying," count inclusively, which is the exclusive total plus one.

Do leap years change the day count?

Yes. Any span that crosses February 29 gains an extra day. Leap years are divisible by 4, except century years, which must also be divisible by 400 β€” so 2000 was a leap year and 1900 was not.

What is the difference between calendar days and business days?

Calendar days count every day in the span. Business days count only Monday through Friday, skipping weekends and typically public holidays. A 10-calendar-day span usually contains about 6 to 8 business days depending on where the weekends fall.

Why do two date calculators give me different answers?

Almost always because one counts inclusively and the other exclusively, producing a one-day difference. Check which convention each uses. Genuine math disagreements are rare; boundary conventions cause nearly all of them.

Ready to run the numbers?

Get your result instantly β€” private, in your browser.

Open the calculator β†’