Everyday

How to Calculate the Number of Days Between Two Dates

Counting the days between two dates sounds like the simplest arithmetic in the world — until you actually try it. Do you count the first day, the last day, or both? What happens when February gets in the way, or a leap year sneaks an extra day into the span? This guide walks through the rules that trip people up and shows you a method that always gives the right answer.

The part that trips everyone up: inclusive vs exclusive

The single biggest source of off-by-one errors is deciding whether the endpoints count. There are two valid conventions, and you have to pick the one that matches your situation.

Exclusive counting measures the gap between the dates — the elapsed time. The distance from Monday to Tuesday is one day, because you count the end date but not the start. This is the default for "how long until" and "how long since" questions, and it's what most date calculators report.

Inclusive counting includes both the first and last day. If a festival runs "from the 10th to the 12th," that's three days, not two, because every day of the event counts. Hotel stays, rental periods, vacation days, and many legal deadlines use inclusive counting. The two methods always differ by exactly one day, so the only real mistake is mixing them up.

The gotcha in one line: exclusive counting gives the days elapsed; inclusive counting gives the days covered. To convert, just add one. If a calculator says 59 days and you need the inclusive total, it's 60.

The other two complications: leap years and unequal months

Because months range from 28 to 31 days, you can't just multiply months by a fixed number and call it done. Going "two months ahead" from January 15 lands on March 15, but that span is 59 days — not 60 or 62 — precisely because February is short.

Leap years add a second wrinkle. If your span crosses February 29, it picks up one extra day. The rule for leap years is: a year is a leap year if it is divisible by 4, except century years, which must also be divisible by 400. That's why 2000 was a leap year but 1900 was not, and why 2024 and 2028 are leap years. A normal year is 365 days; a year that includes February 29 is 366.

A method that always works

There are two reliable manual approaches. The first is to count whole years and months, then the leftover days: step forward from the start date in big chunks (full years, then full months) and add the remaining days, checking each February and leap year as you pass through it. This is intuitive but easy to fumble.

The more bulletproof method is to convert each date to a single running day-count and subtract. Pick any fixed reference point, express both dates as "the Nth day since that point," and the difference is your answer. Computers do exactly this — they store dates as a number of days (or seconds) since an epoch, then subtract. It sidesteps every month-length and leap-year question because the conversion already accounts for them.

Finance has its own twist worth knowing about. Many bond and interest calculations use the 30/360 convention, which pretends every month has 30 days and every year has 360, to keep coupon math tidy. That's deliberately not the true elapsed time — it's a simplifying assumption. For everything outside specialized financial contracts, you want the actual-day count, which respects real month lengths and leap days. If you're computing interest or a maturity date, always confirm which convention applies.

Calendar days vs business days

Once you can count calendar days, there's a related question: do weekends and holidays count? Calendar days include every single day. Business days exclude Saturdays, Sundays, and public holidays, counting only working days.

The distinction matters more than people expect. Shipping estimates ("arrives in 3 business days"), bank processing times, contract notice periods, and court deadlines are usually measured in business days, so a Friday order doesn't actually start its clock until Monday. Age, anniversaries, countdowns, and most personal deadlines use plain calendar days. Mixing the two is how a "5-day" turnaround quietly becomes a week and a half. For working-day spans, a dedicated workdays calculator handles the weekend and holiday skipping for you.

A worked example

Let's count the days from 2026-01-15 to 2026-03-15 using exclusive counting (elapsed days).

  • Days remaining in January after the 15th: 16 (the 16th through the 31st)
  • All of February — and 2026 is not a leap year, so February has 28 days: 28
  • Days into March up to the 15th: 15

Add them: 16 + 28 + 15 = 59 days. If 2026 had been a leap year, February's 29 days would push the total to 60. And if you wanted the inclusive count — including January 15 itself — you'd add one and get 60 days. Same two dates, two perfectly correct answers, depending entirely on which convention you chose.

Handy reference spans

For quick mental math, it helps to memorize a few common spans. The approximate values are fine for estimates; use an exact calculation when the day matters.

SpanDaysNotes
1 week7Exact, always
2 weeks (fortnight)14Exact, always
1 month≈ 30 or 3128 in February (29 in a leap year)
1 quarter≈ 9190 to 92 depending on the months
1 year365 or 366366 when it includes February 29

The takeaway

Counting days is easy arithmetic wrapped around three real complications: whether the endpoints count, how leap years bend the total, and the fact that months aren't equal. Decide inclusive vs exclusive first, respect the leap-year rule, and when precision matters, let a tool convert and subtract for you. The free date difference calculator does exactly that, and you can use date add or subtract to jump a number of days forward, countdown to a future date, or look up the week number for any day.

Frequently asked questions

Should I count both the start and end date?
It depends on what you're measuring. Exclusive counting (the default for elapsed time) counts the end date but not the start, so the gap from the 1st to the 2nd is one day. Inclusive counting includes both endpoints and is common for hotel nights, rental periods, and legal deadlines, which adds one extra day to the total.
How do leap years affect the count?
If the span crosses February 29, it contains one extra day. A year is a leap year if it is divisible by 4, except for century years, which must also be divisible by 400. So 2000 was a leap year, 1900 was not, and 2024 and 2028 are. A full year is 365 days normally and 366 across a leap day.
What's the difference between calendar days and business days?
Calendar days count every day including weekends and holidays. Business days count only working days, excluding Saturdays, Sundays, and public holidays. Shipping estimates, contract notice periods, and processing times are usually quoted in business days, while age, countdowns, and most deadlines use calendar days.
How many days are between January 15 and March 15, 2026?
There are 59 days using exclusive counting, because 2026 is not a leap year and February has 28 days: 16 remaining days in January, plus 28 in February, plus 15 in March equals 59. If you count inclusively, including the start date, it becomes 60.

This guide is general educational information. For legal deadlines or financial contracts, confirm the exact day-counting convention that applies to your situation.