Date Difference Calculator

Count the days between two dates, with the same span in weeks and approximate months and years. Pick a start and an end date.

Updated

Everyday calculators● Free No upload Instant

Loading Date Difference Calculator…

Your browser is preparing the tool. It runs 100% locally.

Quick answer

Pick a start date and an end date and the tool counts the days between them, then shows the same span in weeks and as approximate months and years. The day count is exact. The months and years use averages (about 30.44 days a month and 365.25 a year), so they are estimates rather than exact calendar figures. The calculation happens in your browser.

What the Date Difference Calculator does

This tool measures the gap between two dates. The main figure is the number of whole days, and the same span is also shown as weeks and days, as months and as years, so you can read it whichever way suits you.

Use it to see how long is left until a deadline, how many days a project ran, or how far apart two events are, without counting on a calendar.

How it works

The tool takes the two dates and finds the number of whole days between them. It uses the absolute difference, so the order doesn't matter. It then divides the days by seven for weeks, by the average month length for months, and by the average year length for years.

Days are exact because a day is a fixed length. Months and years aren't, so the tool uses averages of about 30.44 days per month and 365.25 days per year, which makes those figures close estimates rather than exact calendar counts.

Methodology

  1. Read the two dates. Take the start and end dates you choose.
  2. Count the days. Find the whole days between them, whichever comes first.
  3. Convert to weeks. Divide the days by seven for a weeks-and-days figure.
  4. Estimate months and years. Divide the days by the average month and year length for approximate figures.

Date difference

days = whole days between the two dates (order does not matter) weeks = days ÷ 7 months ≈ days ÷ 30.44 years ≈ days ÷ 365.25
Worked example
30 days apart → 4 weeks 2 days · about 1.0 month · about 0.08 years

Days are exact. Months and years use average lengths (30.44 and 365.25 days), so they are estimates, not exact calendar months. For an exact breakdown into years, months and days, use the age calculator.

Assumptions

  • The result counts whole days and ignores the time of day, so the two dates are compared date to date.
  • Months and years use average lengths (about 30.44 and 365.25 days), so they approximate the calendar instead of counting actual calendar months.
  • The difference is absolute: swapping the start and end dates gives the same number of days.

Standards and references

  • Days as the exact unit: A day is a fixed length, so the count of whole days between two dates is exact and unambiguous, which makes it the most reliable way to measure a span.
  • Average month and year: A month runs from 28 to 31 days and a year is 365 or 366, so to express a span in months or years the tool uses averages of about 30.44 and 365.25 days.
  • Approximate versus calendar: Dividing by averages gives a close estimate, not an exact calendar count. A precise breakdown into years, months and days needs a calendar-based calculation.

Accuracy and limits

The number of days is exact, since a day is a fixed length. For a deadline, a notice period or a project length, anything measured in days, the count is precise.

The months and years are approximate because they divide the days by average lengths. A span of 31 days shows as about 1.0 month whichever calendar months it actually crosses, so treat these as close estimates.

It works on dates and ignores the time of day, so the two dates are compared as whole days. For hours and minutes, use a time-duration calculator.

For an exact breakdown into years, months and days that follows the calendar, with its uneven month lengths and leap years, use the age calculator. It counts calendar units directly instead of dividing by averages.

Real-world uses

Counting down to a deadline

See how many days remain until a due date.

Measuring a project length

Find how many days or weeks something ran.

Spacing out events

Work out how far apart two dates are.

Planning ahead

Estimate a span in weeks or months for scheduling.

When it fits, and when it doesn't

Good for

  • Counting days between two dates
  • A span in weeks and days
  • Approximate months or years
  • Deadlines and project lengths

Not the best choice for

  • An exact calendar breakdown into years, months and days
  • Including the time of day (hours, minutes)
  • Business days only (excluding weekends)
  • Adding or subtracting a duration from a date

For an exact breakdown into years, months and days, use the age calculator, which follows the calendar. For hours and minutes within a day, use a time-duration calculator. For working days only, a business-day calculator leaves out weekends.

Frequently asked questions

How does it count the days?
It finds the number of whole days between the two dates, using the absolute difference so the order doesn't matter. A day is a fixed length, so the count is exact.
Are the months and years exact?
No, they are approximate. The tool divides the days by average lengths of about 30.44 days a month and 365.25 a year, so those figures are close estimates rather than exact calendar counts.
Why use 30.44 days for a month?
Because months run from 28 to 31 days. Spreading a 365.25-day year over 12 months gives about 30.44, which is the usual way to express a span of days in months.
How do I get an exact months and days breakdown?
Use the age calculator. It counts calendar years, months and days directly, handling different month lengths and leap years, instead of dividing by averages.
Does the order of the dates matter?
No. The difference is absolute, so swapping the start and end dates gives the same number of days. The tool measures the gap, not the direction.
Does it include the time of day?
No. It compares whole dates and ignores the time. For hours and minutes, use a time-duration calculator.
Does it count both the start and end dates?
It measures the span between the two dates, the number of days from one to the other. If you need to include both endpoints (an inclusive count), add one day to the result.
Are leap years handled?
The day count is exact and includes any leap days in the range. The years figure uses 365.25 days, which averages leap years in, so it is a close estimate.
Can it tell me the date a number of days from now?
No, it measures between two dates you choose. To add or subtract days from a date, use a date-add calculator.
Does it exclude weekends or holidays?
No. It counts every calendar day in the span. For working days only, use a business-day calculator that skips weekends and holidays.
Is my data uploaded?
No. Your browser does the calculation, and the dates you pick aren't sent to a server.
How is the weeks figure shown?
As whole weeks plus the leftover days. For example, 30 days shows as 4 weeks and 2 days, which is often easier to picture than a raw day count.

References

The tool counts whole days between two dates and derives weeks from them. Months and years are averages, so those two figures are approximate rather than exact calendar counts.

Popular

Age Calculator

Get your exact age in years, months and days on any date, including the cut-off date an exam or admission form names.

Everyday calculatorsOpen Tool

Timestamp Converter

Convert a Unix timestamp to a readable date in UTC, your local time and ISO 8601, or turn a date back into Unix seconds and milliseconds.

DeveloperOpen Tool
Popular

Stopwatch and Timer

A stopwatch and a countdown timer on one page. Count up with lap splits, or count down from any number of minutes, timed from your device clock.

UtilityOpen Tool
Popular

Percentage Calculator

Get three percentage answers on one screen: X% of Y, X as a percent of Y, and the change between two numbers.

Everyday calculatorsOpen Tool

Scientific Calculator

Type a maths expression with trig, square roots, logs, pi or e and read the result straight away. Your browser does the calculation.

Everyday calculatorsOpen Tool
PopularHot

BMI Calculator

Find your BMI from height and weight, with the WHO category and a plain note on what BMI misses.

Everyday calculatorsOpen Tool

Back to the Date Difference Calculator

Enter your numbers at the top of the page. Nothing you type leaves this device.