How to Calculate Days Between Two Dates
Counting days between dates is useful for deadlines, notice periods, pregnancies and projects. These steps give the right answer every time.
On this page 1 min read
The simple method
Count the days left in the first month, add the full months in between, then add the days into the last month. Example: from 1 January to 1 March 2026 is 31 days in January plus 28 in February, which is 59 days.
Leap years
In a leap year February has 29 days. A leap year happens every 4 years, except century years not divisible by 400. So 2024 was a leap year, 2100 will not be.
Include or exclude the end date
Subtracting the dates counts the nights between them. If you want to count both the first and last day, add 1. For example, a course from 10 to 14 March lasts 4 days by subtraction and 5 days if both days count.
Weeks and months
Divide the days by 7 for weeks: 59 days is 8 weeks and 3 days. Months are less exact because they vary in length, so the usual shortcut is days / 30.44.
Working days
To estimate working days, count full weeks x 5 and then adjust for public holidays and any days at the start and end.
Common uses
- Notice periods and contract deadlines.
- Countdown to an event or exam.
- Days since or until a date.
- Project and delivery schedules.
Check the number
Enter two dates in the Date Difference Calculator to see the days, weeks and approximate months. It counts from one date to the other, so add 1 if you need both days included.