How to calculate the days between two dates
How many days until a holiday, how long since you started a job, exactly how old someone is: counting days by hand on a calendar is slow and easy to get wrong, especially across months of different lengths and leap years. Here is how to do it in seconds, with examples and the rules that cause most mistakes.
Step by step
- Open the Date and Age Calculator.
- Pick the start date. For an age, use the date of birth.
- Pick the end date, or tap "Use today as end date".
- Read the result in days, in weeks, and in years, months and days.
Examples
- From 1 January 2026 to 28 November 2026: 331 days, 47 full weeks, or 10 months and 27 days.
- Someone born on 15 March 1990 is, on 28 November 2026, 36 years, 8 months and 13 days old: 13,407 days.
The rules that trip people up
- The start day is not counted. From Monday to Wednesday is 2 days. If you need to count both ends, for example the days of a hotel stay or of a course, add 1.
- Months have different lengths. "One month" from 31 January has no 31 February. That is why the years-months-days result can differ from dividing the days by 30.
- Leap years add 29 February (2024, 2028…). The calculator takes them into account.
- Calendar days, not working days. Weekends and holidays are counted. Legal and administrative deadlines in working days need those removed.
What people use it for
- Checking whether a return or warranty period is still open.
- Counting the days of a contract, a rental or a notice period.
- Working out an exact age for a form, a school place or a sports category.
- A countdown to a wedding, a trip or a due date.
What the calculator does not do
It does not add days to a date (for example "30 days from today"). Pick today as the start and try end dates until you reach 30, or use a calendar. It also does not count working days or hours.
Questions
Why does my count differ by one day?
Because one of the two counts includes both the first and the last day. The calculator counts the difference, like most spreadsheets: from the 1st to the 2nd is one day.
Can the end date be before the start date?
Yes. The days and weeks then appear with a minus sign.
Does it work for dates long ago?
Yes, with the calendar used today in most of the world. Very old dates, before countries changed calendars, may need historical adjustment.
Is anything saved?
No. Everything is calculated in your browser.