How to Calculate Days Between Two Dates

Quick answer

To find the days between two dates, subtract the earlier from the later, allowing for different month lengths and leap years, and decide whether to count both end dates or one.

To find the days between two dates, subtract the earlier from the later — but the moment you try it by hand across different months, you hit the awkward part: months have different lengths, February changes with leap years, and you have to decide whether to count both end dates or just one. That last choice, inclusive versus exclusive counting, is why two people calculating the same gap often disagree by a day. This guide covers the manual method, the counting conventions that matter for deadlines and hotel stays, and how to work out business days excluding weekends. The CalcRange Date Difference Calculator handles the calendar mechanics for you.

The Basic Method

The reliable manual approach counts the days remaining in the start month, adds the full months in between, and adds the days into the final month.

  1. Count the days left in the starting month after the start date.
  2. Add the number of days in each complete month between them.
  3. Add the day-of-month of the end date.

The trap is step two, where you have to use the real length of each month — 31, 30, 28, or 29 — rather than a convenient average. Get February wrong in a leap year and the whole total is off by a day.

Inclusive Versus Exclusive Counting

This is the distinction that causes most disagreements, and which one is correct depends entirely on what you are counting.

Exclusive counting measures the gap between the dates and counts one endpoint but not both. From Monday to Wednesday is two days, the way you would naturally answer “how many days until Wednesday?”

Inclusive counting includes both endpoints. From Monday to Wednesday inclusive is three days, which is how you count nights in hospital, days of a festival, or the length of a trip where both the first and last day count.

A simple rule: if both the start and end day are things you are counting, add one to the plain subtraction. A hotel booking from the 10th to the 14th is four nights but five days of your holiday, and both numbers are correct for their own question.

Worked Example

From 20 January 2026 to 4 August 2026.

  • Days left in January after the 20th: 31 − 20 = 11
  • Full months February to July: 28 + 31 + 30 + 31 + 30 + 31 = 181 (2026 is not a leap year, so February has 28)
  • Days into August: 4
  • Total, exclusive: 11 + 181 + 4 = 196 days

If you needed both endpoints counted — say for a project running across every one of those days — the inclusive total is 197.

Count the Days

Enter two dates into the CalcRange Date Difference Calculator for the exact gap, with leap years and month lengths handled automatically. To count from a birth date specifically, use the age calculator, and to count down to a future date, the countdown timer does that.

Business Days and Weekends

Many real deadlines run in working days, which excludes weekends and often public holidays.

The quick estimate: there are five working days in every seven, so multiply the total days by five-sevenths for a rough figure. Over the 196 days above, that suggests roughly 140 working days. It is only an approximation, because it ignores exactly where the weekends fall and every public holiday in the period.

For an exact count you have to walk the calendar, skipping each Saturday and Sunday and each holiday. This is tedious by hand and a natural job for a calculator, particularly because holidays differ by country and even by region within a country. A payment term of “net 30 business days” can land on very different calendar dates depending on where the parties are.

Where This Matters

The counting convention is not academic. It changes real outcomes.

Visa and travel documents often specify a maximum stay in days, and whether arrival and departure days both count can decide whether someone has overstayed. Notice periods, payment terms, and legal deadlines frequently hinge on inclusive versus exclusive counting, and contracts sometimes state which they mean precisely because the default is ambiguous. Even pregnancy is dated this way, with the estimated due date set 280 days from the last period, as our due date guide explains.

When a deadline genuinely matters, the safe habit is to confirm which day the count starts on and whether the final day is included, rather than assuming.

Common Mistakes

  1. Using an average month length instead of the real number of days in each month.
  2. Forgetting the leap day, which adds one to any span crossing 29 February.
  3. Mixing up inclusive and exclusive counting, the single most common source of off-by-one errors.
  4. Treating business days as a fixed fraction when a specific deadline needs the exact count.
  5. Ignoring public holidays, which vary by country and can shift a working-day deadline by several dates.

Frequently Asked Questions

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

Count the days remaining in the first month, add the full months in between using their real lengths, and add the day of the end date. Decide whether you need both endpoints counted, and if so add one. A calculator removes the month-length and leap-year bookkeeping.

Should I count both the start and end date?

It depends what you are measuring. Count both, inclusively, for things like festival days or trip length where the first and last day both matter. Count only one, exclusively, for a plain gap such as days until an event. The two answers differ by exactly one.

How many days are between two dates in a leap year?

One more than in a common year for any span that crosses 29 February. Leap years occur every four years, skipping century years not divisible by 400. If your period includes late February of a leap year, remember to use 29 days for that month.

How do I calculate business days?

Exclude Saturdays and Sundays, and usually public holidays too. A rough estimate multiplies total days by five-sevenths, but an exact figure requires walking the calendar, since it depends on where weekends fall and which holidays apply in the relevant country.

Why do date calculators sometimes disagree by one day?

Almost always because one uses inclusive counting and the other exclusive. Check whether the tool counts both endpoints. Neither is wrong; they are answering slightly different questions, so match the convention to what you actually need to measure.

How many weeks is a given number of days?

Divide by seven. So 196 days is 28 weeks exactly, and 100 days is about 14 weeks and 2 days. For pregnancy and similar contexts that are tracked in weeks, this conversion is used constantly alongside the day count.

Do public holidays count as business days?

No. Business-day counts exclude recognised public holidays as well as weekends. Because holidays differ by country and sometimes by state or region, the same “10 business days” can end on different calendar dates for parties in different places, which is worth confirming in any agreement.

The Bottom Line

Subtract the dates using the real length of every month, add the leap day when the span crosses it, and decide up front whether both endpoints count — that inclusive-versus-exclusive choice is where most disagreements come from. For deadlines measured in working days, weekends and public holidays complicate the count enough that a tool is worth using. Enter your two dates into the date difference calculator for an exact answer, and when a deadline matters, confirm the counting convention rather than assuming it.

Last reviewed: August 2026. Recommended editorial review: every 12 months.

Related: How to count 90 days from a date (the right way)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top