How Many Days Are There Between Two Dates?
Counting the days between two dates sounds simple until a leap year or a month with 30 or 31 days gets in the way. This guide explains how to calculate the difference between two dates, with examples, and points to a free calculator that does it for you.
The basic idea
The number of days between two dates is the end date minus the start date. If you count Monday to Tuesday, the answer is 1 day. If you want to count both the first and the last day, add 1, so the same period is 2 days.
Leap years
A leap year has 366 days instead of 365. The rule: a year divisible by 4 is a leap year, except years divisible by 100 are not, unless they are also divisible by 400. So 2000 and 2024 were leap years, while 1900 was not. This matters whenever the period includes 29 February.
Examples
- 1 January 1990 to 1 January 1993 is 3 years and 1,096 days, because 1992 was a leap year.
- 1 January 2024 to 25 December 2024 is 359 days.
- 31 January 2024 to 1 March 2024 is 1 month and 1 day, or 30 days in total.
Years, months and days
To express a difference as years, months and days, count whole calendar months from the start date and then the remaining days. When a month is shorter than the start day, many calculators use the last day of that month. Counting this way by hand is easy to get wrong, so a calculator is more reliable.
Use the free calculator
Our date difference calculator shows the exact number of days, plus the difference in years, months, weeks, hours and minutes. It also counts weekdays and weekend days and tells you how many leap days are in the period. Everything runs in your browser and nothing is sent to a server.
Free templates to try
Open a template, check it in the preview, then download the PDF and print at 100% scale.