Utility

Date difference calculator

Find the exact time between two dates: days, weeks, months and years.

Any AI today can calculate the difference between two dates in seconds. But not everyone has a paid plan, tokens available all the time, or knows how to ask for it properly. This calculator exists for that: an instant result, no friction — and further down, we explain how to do the calculation by hand.
Result
Select both dates to see the result.
Total days
Weeks and days
Months and days
Years, months and days

How the date difference is calculated

Total days end_date − start_date, direct subtraction, no +1 — This is a classic gotcha in date programming: subtracting two dates directly gives the number of days between them, not the days included. Example: from Jan 1 to Jan 2 there's 1 day of difference, not 2. If you need to count both endpoints (for example, how long a booking lasts if it starts on day 1 and ends on day 2, counting both days), you need to add 1 manually — this adjustment is known as a "fencepost" error, and it shows up constantly in billing, booking, and scheduling calculations.
Years, months, and days complete years are counted first, then complete months from the remainder, and what's left is expressed in days — Example: from Jan-1-2020 to Mar-15-2026 → 6 years, 2 months, and 14 days.
Weeks and days total days ÷ 7 = complete weeks; the remainder is the leftover days — Example: 73 days → 10 weeks and 3 days.

Frequently asked questions

The uses are very diverse. In work and legal contexts it is helpful for calculating the length of contracts, expiry deadlines, or warranty periods. In healthcare, it can help estimate weeks of pregnancy or the time elapsed since a diagnosis date. On a personal level, it is useful for knowing how many days are left until an anniversary, a wedding, or a trip — or simply to find out how long you have been in a new job or a new city. The tool displays the result simultaneously in years, months and days, as well as in total days, weeks and months.

Counting exact months is not trivial because months have different lengths. The algorithm advances month by month from the start date and checks whether the target day has been reached. When the destination month has fewer days than the origin month (for example, moving from January 31 to February 28 in a non-leap year), it adjusts to the last available day of that month. That is why between January 31 and March 31 there are exactly 2 months, but between January 31 and February 28 there are 28 days even though it does not count as a full month.

This calculator counts calendar days — that is, every consecutive day including Saturdays, Sundays and public holidays. It does not distinguish between working days and non-working days, and does not take into account public holidays for any particular country. To obtain business days you would need an additional tool that excludes weekends and your region's holiday calendar. That said, knowing the total number of calendar days is still the first step for many deadline calculations.

Yes, and that is completely normal. Calendar months have between 28 and 31 days, so dividing days by 30 is only an approximation. For example, between January 1 and March 1 there are exactly 2 months, but the number of days depends on the year (59 days in a regular year, 60 in a leap year). In another scenario, 60 days from January 1 may land on March 1 or 2, but the month difference could be expressed as 1 month and several days. For precise deadline calculations it is always better to work with exact dates rather than multiplying or dividing by 30.

Lawyers and legal professionals use it to calculate prescription deadlines, contract expiry dates, warranty periods, and procedural terms where every day matters. Human Resources professionals use it to determine seniority, the length of fixed-term contracts, or accumulated vacation time. Doctors and healthcare workers use it to estimate weeks of pregnancy, time elapsed since a diagnosis, or treatment durations. Project managers use it to measure real progress between milestones or calculate how many days remain until a delivery date. Event planners use it to find out exactly how much time is left before a wedding, conference, or deadline. Accountants and auditors consult it to verify fiscal periods, invoice due dates, or the age of outstanding debts.

On desktop, press Ctrl + D (Windows/Linux) or Cmd + D (Mac) in Chrome, Firefox, or Edge to add this page to your bookmarks instantly. In Safari for Mac, use Cmd + D or go to Bookmarks → Add Bookmark. On mobile with Chrome (Android), tap the three-dot menu (⋮) and choose "Add to Home screen" or "Add to bookmarks." On mobile with Safari (iPhone/iPad), tap the share button (□↑) and then "Add to Home Screen." Once on your home screen, open it with a single tap — no need to search for the URL every time you need to calculate a deadline.

This calculator is built for the general case: finding how many days, weeks, months, or years there are between any two dates, without either one necessarily being a birth date. If you instead need to calculate your exact age from your date of birth, use the age calculator, which also shows the day of the week you were born on and how long until your next birthday.

The tool will show a warning asking the end date to be after the start date — it doesn't calculate negative differences. If what you want is to know how many days have passed from a past date until today, just enter the earlier date as the start date and the more recent one as the end date, regardless of which one you typed first.

Leave the start date set to today (you can use the "Today" button to fill it in automatically) and put the future date you're interested in the end date field. The result will show exactly how many days, weeks, months, and years are left until that date — whether it's a product launch, a trip, an exam, or any deadline that matters.