Skip to content
Tejo Tools
Search
Menu

How to count the days between two dates

Count the days from one date to another, choose whether the last day is included, and add days to a date.

Last updated

Open Days between dates

Counting days is a subtraction

Every date has a place on a long line of days, so the days between two dates are the difference between their places. How many months or years lie between them makes no difference to the method. Days between dates gives each date a number, counting from 1 January of the year 1 as day 1, and subtracts one from the other. For 1 and 31 January 2026 the working reads 739,647 − 739,617 = 30. You can do the same on paper with a calendar: count the days left in the first month, add the whole months in between, then add the day of the month of the later date. A calculator saves the bookkeeping, and the working it prints lets you check it against your own count.

Inclusive and exclusive counting

The first question is whether the last day belongs in the count. Two ways exist, and both are correct for their own purpose:

  • Exclusive counting measures the distance between the two dates. From the 1st to the 3rd is 2 days, the number of nights between them.
  • Inclusive counting also counts the day you start from and the day you end on, so the same dates cover 3 calendar days. Which one applies depends on how the question is worded. “How many days until the exam” asks for a distance. “How many days does the course run, first and last day included” asks for an inclusive count. A form or a contract that gives a number of days usually says how it counts. When it doesn’t, read the sentence around it, because the two answers differ by exactly 1 day. In Days between dates the box Include the end date switches between the two. It adds a day to the later of the two dates before counting, so the count grows by 1 day whichever date comes first.

Worked examples

Each example gives the dates typed into the tool and what the tool shows. The first two use Days between dates. The third uses Date calculator, which adds or subtracts days, weeks, months and years.

1 to 31 January 2026, with and without the last day

Type 1 January 2026 as Start date and 31 January 2026 as End date. The result reads 30 days, with the working 739,647 − 739,617 = 30. Under it, Weeks and days reads 4 weeks and 2 days and Hours reads 720 hours. Years, months and days reads 30 days, because a whole month hasn’t gone by. Now tick Include the end date. The result becomes 31 days, with the working 739,647 − 739,617 + 1 = 31. Weeks and days reads 4 weeks and 3 days, Hours reads 744 hours, and Years, months and days now reads 1 month: counting the 31st as a day in full reaches 1 February, which is a month after 1 January.

15 November 2025 to 15 February 2026

The dates are in different years. The result reads 92 days, which is 13 weeks and 1 day and 2,208 hours. Years, months and days reads 3 months, since the 15th comes round three times. Three months and 92 days describe the same span: 30 days to 15 December, 31 more to 15 January and 31 more to 15 February.

90 days from 5 March 2026

In Date calculator, leave Add selected, enter 5 March 2026 as the start date and 90 as the Days amount. The result date is Wednesday, 3 June 2026, ISO date reads 2026-06-03 and Total days reads +90 days. Steps reads 5 March 2026 + 90 days = 3 June 2026. With 89 in Days instead, the date is Tuesday, 2 June 2026. The start date is day 0, so the first day added is day 1.

Months are not a fixed number of days

A month has 28, 29, 30 or 31 days, so a count in months and a count in days answer different questions. The same three months from 5 March 2026 land on Friday, 5 June 2026, which is 92 days on and not 90. Ninety days is shorter than that by 2 days, and the difference comes entirely from which months the span crosses. Days between dates counts a month each time the same day of the month comes round again. When the start is the 31st and the next month is shorter, the last day of that shorter month counts as the same day. Whatever remains after the whole months is shown in days. For a deadline written in days, use days. For one written in months, use months. Converting between them with a fixed length such as 30 days gives another answer, as the 90 and the 92 above show.

Leap years

Most years have 365 days. A year with a 29 February has 366. The rule of the Gregorian calendar is that a year divisible by 4 has one, except a century year, which has one only when it is divisible by 400. That makes 2024 and 2000 leap years, and 2023 and 1900 not. The count shows it. From 28 February to 1 March is 2 days in 2024 and 1 day in 2023. Both tools apply these rules back to the year 1, so the answer for an early year follows the same rule.

What the count leaves out

Both tools work in whole calendar days. They don’t know about times of day, time zones or daylight saving, so a clock change can’t add or remove an hour, and every day counts as 24 hours. They also don’t skip weekends or public holidays: a span of 30 days includes every Saturday and Sunday inside it. A count in working days needs a calendar or the rules that set the deadline. Dates are limited to the years 1 to 9999, and a date that isn’t on the calendar, like 29 February 2023, gets a mark on its field.

Checking your own count

Three checks catch most slips:

  1. Count a short span both ways. If 1 to 3 January is 2 days exclusive, it is 3 inclusive.
  2. Swap the two dates. The count keeps its size and changes its sign.
  3. Add the answer back to the start date in Date calculator. If the result is the end date, the two tools agree. Everything is calculated in your browser, and nothing you type is uploaded.

Tools in this guide