Skip to content

How to Count How Many Days Between Two Dates

By Sprout Calculator Editorial Team Bylines · Published November 5, 2026 · Updated November 10, 2026

To count how many days between two dates, convert each to a day number in its year, subtract, and add 365 or 366 for each full year in between. For dates in different months, add the days remaining in the first month, the full months between, and the days into the last month. Decide up front whether the end date is included.

How many days between two dates? A quick check

People often want a single number: how many days between two dates. Subtract first, then decide whether to add one if both dates should count.

QuestionPlain differenceCounting both dates
1 January 2026 to 1 February 20263132
4 July 2026 to 26 July 20262223
10 November 2026 to 25 December 20264546
1 January 2024 to 1 January 2025366367

If you only need the number, the days between dates calculator returns it along with weeks and business days. The sections below show how to get the same count by hand.

Why is counting days between dates tricky?

Our calendar is not a clean system. Months have 28 to 31 days, and every fourth year has an extra day. A simple subtraction like 25 − 3 works only inside one month, and anything longer needs care. On top of that, there is a question of whether the first and last days are counted.

The easy way is to use the days between dates calculator. But the manual methods are worth knowing, because they let you check a result and understand deadlines, notice periods and trip lengths.

What are the days in each month?

You need these to count by hand:

MonthDays
January31
February28 (29 in leap years)
March31
April30
May31
June30
July31
August31
September30
October31
November30
December31

The rhyme "Thirty days hath September, April, June and November" covers the 30-day months, and the rest have 31 except February. You can also use your knuckles: make a fist and name the months along the knuckles and the dips between them. Every month that lands on a knuckle has 31 days, and every month that lands in a dip is shorter. Start on the first knuckle for January, and go back to that knuckle for August.

The total for a common year is 365, and for a leap year it is 366. Our guide to leap years explains which years get the extra day.

How do you count days within the same month?

Subtract the earlier day number from the later one. From March 5 to March 21 is 21 − 5 = 16 days.

This count leaves out one end of the span. March 5 to March 6 is one day, because one day passes. If you want to count both March 5 and March 21 as days in your span (for example, hotel nights versus calendar days), add 1: 17 days.

How do you count days across months?

Add three parts: the days left in the first month, the days in any full months between, and the day number in the last month.

Example: January 20 to April 10 (not a leap year).

  • Days left in January after the 20th: 31 − 20 = 11.
  • All of February: 28.
  • All of March: 31.
  • Days into April: 10.

Total: 11 + 28 + 31 + 10 = 80 days.

Another approach is to number every day of the year. The day-of-year number is the sum of the days in all earlier months plus the day of the month. January 20 is day 20. April 10 is 31 + 28 + 31 + 10 = day 100. The difference is 100 − 20 = 80, which matches.

Day-of-year numbers make this very quick for dates within the same year. In a leap year, every date after February 28 shifts by one.

How do you count days across years?

Add the days remaining in the first year, the days of every full year in between, and the day-of-year number for the end date.

Example: November 15, 2024 to March 3, 2026.

  • Days remaining in 2024 after November 15: November has 30 days, so 30 − 15 = 15, plus December's 31 gives 46 days. (2024 is a leap year, but the extra day is in February, so it does not count here.)
  • All of 2025: 365 days.
  • Days into 2026 up to March 3: 31 + 28 + 3 = 62.

Total: 46 + 365 + 62 = 473 days.

Add 366 for each full leap year and 365 for each common year between. If the span covers a February 29, remember it counts as a day.

Should you include the end date?

There are two common conventions, and mixing them up causes off-by-one errors.

  • Exclusive counting (the difference): count the days that pass. From Monday to Friday is 4 days.
  • Inclusive counting: count every calendar day touched, including both ends. Monday to Friday is 5 days.

Use the exclusive version for questions like "how long until my deadline?" or "how old is this?" Use the inclusive version for questions like "how many days of a leave period?" or "how many days does an event run?" A seven-day hotel stay that checks in on the 10th and checks out on the 17th is 7 nights but touches 8 calendar dates.

Contracts, legal deadlines and rental periods have their own rules. When it matters, read the definition.

How do you add or subtract days from a date?

Walk forward through months, subtracting the days you use. To add 45 days to March 20:

  • Days left in March: 31 − 20 = 11, which brings you to March 31 (45 − 11 = 34 days left).
  • April has 30 days, so April 30 (34 − 30 = 4 days left).
  • Four more days leads to May 4.

So March 20 plus 45 days is May 4. For subtraction, go backward the same way.

The date calculator does this for any number of days, weeks, months or years. Note that "add one month" and "add 30 days" are different. January 31 plus one month has no clear answer, since February has no 31st; software typically returns the last day of February.

How do you count weekdays or business days?

A week has 5 weekdays. To estimate, divide the number of days by 7 and multiply by 5, then adjust for the leftover days. For exact counts, list the start day of the week and count the extra days one by one, then subtract public holidays.

A span of 28 days always holds exactly 20 weekdays. A span of 30 days holds 20 weekdays plus the weekdays among the 2 extra days.

How is this used for age?

Age is a date difference expressed in years, months and days. To find the years, subtract birth year from the current year, then subtract one more if this year's birthday has not happened yet. Remaining months and days follow from the month-by-month method. The age calculator gives the result in all these units.

What mistakes should you avoid?

  • Off-by-one errors from not deciding whether the end date counts.
  • Forgetting February 29 in a leap year.
  • Using 30 days for every month. That is an approximation, not an exact count.
  • Treating months as a fixed length when adding. March 31 plus one month is not April 31.
  • Ignoring time zones and times of day when working with timestamps. A difference of 36 hours is 1.5 days, not 2.
  • Mixing up date formats. 03/04/2026 is March 4 in the US and April 3 in much of the world.

A good habit is to count a short span two different ways, such as with the day-of-year method and the month-by-month method. If they agree, you can trust the longer answers. Then check with the days between dates calculator before you commit to a deadline.

FAQ

Frequently asked questions

01Should I include the start and end dates when counting days?

It depends on the question. The plain difference between two dates leaves out one end, so Jan 1 to Jan 10 is 9 days. If you count every calendar day including both ends, it is 10. Contracts and rentals often count both, so check the wording.

02How many days are in each month?

January, March, May, July, August, October and December have 31 days. April, June, September and November have 30. February has 28, or 29 in a leap year. The knuckle trick helps: knuckles are 31-day months, and the dips between them are shorter months.

03How do leap years affect the count?

A leap year adds February 29, so a span that includes that date is one day longer. A year has 366 days in a leap year and 365 otherwise. Leap years occur every four years, except century years not divisible by 400.

04How do I calculate days between dates in Excel or Google Sheets?

Subtract the cells: =B1-A1 gives the days between the dates in A1 and B1, as long as both cells hold real dates. In both apps, =NETWORKDAYS(A1,B1) counts weekdays, including both ends.

05How do I calculate the number of weeks between two dates?

Count the days, then divide by 7. From 1 January to 25 December 2026 is 358 days, which is 51 weeks and 1 day. Decide first whether you count the end date, because that can add one day.