Date Difference Calculator

Find the number of days, weeks, months and years between any two dates.

How to use

  1. Pick a start date.
  2. Pick an end date.
  3. Press Calculate.

Good to know

Months and years are approximations based on average lengths.

This tool is free, needs no sign-up and runs in your browser. Explore more on the Tools page.

What can you learn from the gap between two dates?

Counting days on a calendar sounds easy until the dates are months apart, span a leap year, or need to be reported in more than one unit. Is a project that runs from March to September about six months, 26 weeks or 184 days? All three are correct answers to slightly different questions. A date difference calculator takes two dates and reports the gap in days, weeks, months and years at once, so you can pick the unit that suits your purpose without counting boxes on a wall calendar.

This guide explains how the numbers are produced, why the month and year figures are approximations, how leap years fit in, and how people use the result in planning, contracts, countdowns and personal milestones.

How does the calculator work?

Dates are converted into a continuous day count, and the difference is simply the number of whole days between the two. Everything else is derived from that single figure:

  • Days are the exact difference between the dates.
  • Weeks are the day count divided by 7, shown to one decimal place.
  • Months are the day count divided by 30.4375, shown to one decimal place.
  • Years are the day count divided by 365.25, shown to two decimal places.

The days figure is exact. The other three are conversions. A week is always seven days, so the week figure is reliable as a fraction, but months and years have no fixed length in days, which is why the calculator uses averages.

Where do 30.4375 and 365.25 come from?

The Gregorian calendar adds a leap day roughly every four years, so over a four year cycle there are 365 x 4 + 1 = 1,461 days. Dividing by four gives an average year of 365.25 days. Dividing that average year by twelve gives an average month of 365.25 / 12 = 30.4375 days. Real months run from 28 to 31 days, but over long stretches the average smooths those differences out. The result is a consistent, predictable measure instead of one that jumps depending on which calendar months the range happens to cover.

How do leap years affect the count?

A year is a leap year if it is divisible by 4, except that century years must also be divisible by 400. So 2024 and 2028 are leap years, 1900 was not, and 2000 was. A leap year has 366 days because February has 29. When your date range includes a February 29, the day count includes it automatically. For example, January 1 to December 31, 2024 is 365 days, while January 1, 2024 to January 1, 2025 is 366 days.

How do you use the tool?

  1. Select the start date using the date picker.
  2. Select the end date.
  3. Press Calculate and read the results for days, weeks, months and years.
  4. Choose the unit that fits your need. Use days for precise deadlines, and months or years for rough overviews.

Remember that the result counts the gap between the dates, not the number of calendar days you touch. From a Monday to the next Monday the answer is 7, even though eight different dates are involved. If you need to include both the start and the end day, for example when counting every day of a hotel stay or a campaign, add one to the day count.

What do worked examples look like?

Example 1: a short countdown

From October 16, 2026 to December 25, 2026: the rest of October contributes 15 days, November 30 and December 25, so the gap is 15 + 30 + 25 = 70 days. That is exactly 10 weeks. In months it is 70 / 30.4375, about 2.3, and in years 70 / 365.25, about 0.19.

Example 2: a six month project

From March 1, 2026 to September 1, 2026: March has 31 days, April 30, May 31, June 30, July 31 and August 31, totalling 184 days. In weeks that is 184 / 7, about 26.3. In months it is 184 / 30.4375, about 6.045, which the tool displays as 6.0, and in years 0.50. Notice that "six months" comes out slightly above 6 before rounding, because this particular span includes four 31 day months and only two 30 day months.

Example 3: a quarter century

From January 1, 2000 to January 1, 2025: that is 25 years, and the leap years in between are 2000, 2004, 2008, 2012, 2016, 2020 and 2024, which is seven leap days. The day count is 25 x 365 + 7 = 9,132 days. Dividing by 365.25 gives about 25.003, which displays as 25.00 years. In months it is 9,132 / 30.4375, about 300.0, and in weeks about 1,304.6. The averages land within a day or so of the exact answer of 25 calendar years.

Example 4: a full year, one leap

From January 1 to December 31, 2024 is 365 days. That gives about 52.1 weeks, 12.0 months (11.99 before rounding) and 1.00 years (0.999 before rounding). If you want a full 366 day leap year, go to January 1 of the following year instead.

What are the practical uses?

  • Project planning. Turn a start and deadline into days and weeks to size tasks and schedule milestones.
  • Countdowns. Count the days to a wedding, exam, product launch or holiday.
  • Contracts and notice periods. Check that a 30, 60 or 90 day window falls where you expect. For anything legally binding, confirm how the document defines days, since some count business days only.
  • Travel planning. Work out trip length, visa windows or how long ahead to book.
  • Pregnancy and family planning. Count weeks between a reference date and today for general tracking. The tool is not medical advice, so follow your healthcare provider's dating.
  • Anniversaries and milestones. Find out how many days you have been together, employed or in business.

What tips help you get accurate results?

  • Double check the date order and the year. A wrong year is the most common cause of a surprising result.
  • Decide whether to count inclusively. If both endpoints matter, add one day.
  • Use days for deadlines and the other units for a quick sense of scale.
  • Do not expect the months figure to match a calendar reading. January 31 to March 1 is a different number of calendar months depending on the rule you apply, but the day count is unambiguous.
  • Round sensibly. Quoting 6.045 months to a client suggests false precision, while "about six months" or "184 days" is clearer.

What mistakes should you avoid?

  • Treating months as a fixed length. They are not, which is why the figure is an estimate.
  • Confusing calendar days with business days. This tool counts every day, including weekends and holidays.
  • Mixing up date formats. Day and month order differs between regions, so rely on the date picker and read back the dates it shows.
  • Using the result for exact age. For a person's age in whole years, months and days, the Age Calculator is the better choice.

Who is this tool for?

Project managers and freelancers use it to estimate durations. Students count down to exams and submission dates. Small business owners check payment terms, warranty periods and campaign lengths. Event planners and travellers measure lead times.

Is my data private?

Yes. The calculation is plain arithmetic performed in your browser. The dates you pick are not sent to a server or stored anywhere.

What are the limitations?

The tool compares two calendar dates only. It does not account for time of day, time zones, business days, public holidays or daylight saving shifts. The month and year values are averages, not calendar based counts, so they may differ slightly from a manual reading of the calendar. It does not return a breakdown such as "2 years, 3 months and 5 days". For that, you would need a calendar aware tool.

Frequently asked questions

Why are the months and years shown as decimals?

Because months and years vary in length, the tool divides the exact day count by average lengths, 30.4375 and 365.25, which produces fractional values.

Is the day count inclusive of both dates?

No. It is the difference between the dates, so a Monday to the following Monday is 7 days. Add one if you need to count both the first and last day.

How are leap years handled?

Any February 29 within your range is included in the day count automatically, and the 365.25 average for years reflects the leap day cycle.

Why is a six month span not exactly 6.0 months?

Actual calendar months have 28 to 31 days. Six months can contain anywhere from about 181 to 184 days, so dividing by the 30.4375 average gives a number near, but not always exactly, six.

Does the calculator count only working days?

No. It counts every calendar day, including weekends and holidays.

Can I enter the later date first?

Yes. The tool reports the absolute gap, so the order of the two dates does not change the result.

Can I use it for legal deadlines?

Use it as a convenient check, but confirm the counting rules in your contract or local regulation, since some rules exclude the start day, skip weekends or roll to the next business day.

Closing thoughts

A date gap is simple at heart: an exact number of days, with weeks, months and years layered on top as friendly approximations. Use the days figure when precision matters and the larger units to communicate at a glance. For related questions, try the Age Calculator for birthdays, the Loan EMI Calculator when a date range is a loan term, the Percentage Calculator to see how much of a schedule has passed, and the Random Number Generator for picking days at random. More are listed among our free tools.

Scroll to Top