Counting days between two dates
This calculator counts the exact number of days between a start date and an end date, and also shows the span in weeks, months, hours and minutes. It handles the two things that make calendar math annoying: months of different lengths (28 to 31 days) and leap years.
Typical uses: how many days until a deadline, how long a project ran, or how many vacation days a trip uses. The result is a plain difference — the number of full days between the two dates.
How to use the calculator
- Set the start date — the earlier of the two.
- Set the end date — the later one.
- Read the result: days, plus the same span in weeks, months, hours and minutes.
Counting by hand across months
To count manually, add up the full months in between. Each month contributes its own length: 31 days for March, 30 for April, and so on. Leap years add one day to February.
days = days remaining in start month + full months between + days into end monthExample 1: March 1 to June 1, 2026
From March 1 to April 1 is 31 days (all of March). April adds 30 days to reach May 1, and May adds 31 more to reach June 1. Total: 31 + 30 + 31 = 92 days.
Mar 1 → Jun 1, 2026 = 92 days
Example 2: the leap-year difference
From January 1 to March 1 crosses all of February. In the leap year 2028 that is 31 + 29 = 60 days, but in 2026 (not a leap year) it is 31 + 28 = 59 days. Same dates, one day apart — 2024 and 2028 are leap years, 2026 is not.
Jan 1 → Mar 1: 60 days in 2028, 59 days in 2026
Inclusive vs exclusive counting
The calculator subtracts the start date from the end date, so the end day itself is not counted. That is the right choice for age, deadlines and elapsed time. But some questions count both endpoints — vacation days, for instance, where every day off counts.
To switch modes, add 1 to the difference. From January 1 to January 10: the difference is 9 days, but the vacation that starts on the 1st and ends on the 10th uses 10 days off. Contract clauses often spell out which counting they use — check before signing.
One more wrinkle: month counts are approximate by nature. The 92-day example above is exactly three calendar months, but 92 days starting elsewhere can land in three or four different months.