Worked example of calculating days between two dates — 31 days plus 28 days equals 59 days from January 15 to March 15

How to Calculate Days Between Two Dates

Learning how to calculate days between two dates is something almost everyone needs sooner or later — for a deadline, a trip, a project timeline or a contract. There are two ways to get it: work it out by hand, or let a calculator do it in seconds. This guide shows both.

The quick way: use a free calculator

  1. Open the Date and Time Calculator.
  2. Enter your start date and your end date (add times too, if you need them).
  3. Read the result instantly — total days, plus the same span in weeks, hours, minutes and seconds.

If you only need whole days, weekdays and weekend days, the Count Days Calculator gives you exactly that breakdown.

How to calculate days between two dates by hand

  1. Count the full months first. From the same day of one month to the same day of the next is one month — but months have different lengths (28 to 31 days), so add each month’s real length.
  2. Add the remaining days at the start and end of the span.
  3. Check for February 29. If your span crosses February in a leap year, add one extra day.

Worked example

January 15, 2026 to March 15, 2026:

Worked example of calculating days between two dates — 31 days plus 28 days equals 59 days from January 15 to March 15
  • January 15 to February 15 = 31 days (January has 31 days)
  • February 15 to March 15 = 28 days (February 2026 has 28 days)
  • Total: 31 + 28 = 59 days

A shorter example: January 5, 2026 to January 19, 2026 is simply 19 − 5 = 14 days.

Weekdays and weekend days

Often you do not need all the days — you need the working days. Out of every 7 days, 5 are weekdays and 2 are weekend days, but the exact split depends on which days of the week your span starts and ends on. The Count Days Calculator counts weekdays and weekend days for you automatically.

Weekdays and weekend days in a week — five weekdays and two weekend days

Common mistakes to avoid

  • Counting both the start and the end date. The standard method counts the distance between the dates, so Jan 5 to Jan 19 is 14 days, not 15. If you need both endpoints included (for example, a hotel stay or a rental), add 1.
  • Forgetting leap years. A year is a leap year if it divides by 4 — 2028 is one, 2026 is not. February has 29 days in a leap year.
  • Assuming every month has 30 days. That shortcut can leave you one or two days out over a long span.

A second worked example

How many days are there from March 28, 2026 to May 4, 2026? Count it in three pieces. First, the rest of March: March has 31 days, so from March 28 there are 3 days left to reach March 31. Second, all of April: 30 days. Third, the days into May: 4. Add them together — 3 + 30 + 4 — and the answer is 37 days. Breaking a long span into month-sized pieces like this is the whole trick: each piece is small enough to check at a glance, and the pieces simply add up.

Mistakes that change the answer

The commonest mistake is counting both the first and the last day, which adds a phantom day; decide once whether your count includes the end date, and be consistent. The second is forgetting leap years: a span that crosses the end of February holds one extra day in a leap year such as 2028. And the third is trusting that every month has 30 days — seven months have 31, four have 30, and February has its own rules entirely.

FAQs

Does the end date count in the number of days between two dates?

In the standard calculation, no — the result is the distance between the two dates. Jan 5 to Jan 6 is 1 day. If your situation counts both the first and the last day (inclusive counting), add 1 to the result.

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

The method is the same, but if the span includes February 29, the total is one day longer. Our calculators handle leap years automatically.

How do I count only working days between two dates?

Count the total days, then subtract the Saturdays and Sundays inside the span — or use the Count Days Calculator, which shows weekdays and weekend days separately.

Can I calculate the hours and minutes between two dates as well?

Yes. The Date and Time Calculator accepts times as well as dates and shows the span in hours, minutes and seconds too.

Counting days by hand is a useful skill, but for long spans it is slow and easy to get wrong by a day. For an instant, exact answer, try the free Date and Time Calculator — no sign-up, and it works on any device.

You can find every tool on our Date and Time Calculators page. For the year itself, see also: How Many Days Are in a Year?

Similar Posts