Date Difference Calculator - Days Between Two Dates

Find the exact days, weeks, months and years between any two dates instantly. Free date difference calculator — runs in your browser, no data uploaded.

Two dates

Difference

365 days

1 yr 0 mo 0 d

In weeks

52 weeks

In months

12 months

How it is calculated

UnitConversion
Weeksdays ÷ 7
Months / yearscalendar difference between the dates

Find the Exact Gap Between Any Two Dates

Pick a start date and an end date, and this date difference calculator instantly shows you the gap in years, months, days, total days, and weeks — no mental arithmetic, no spreadsheet needed.

It is useful any time you need to know how far apart two dates are: counting down to a deadline, figuring out how long a project took, checking how many days until a birthday, or working out an age to the day.

How to Use the Date Difference Calculator

  1. Enter a start date — type it or use the date picker.
  2. Enter an end date — any date in the past or future works.
  3. Choose whether to include the end date — toggle this if you want to count that last day (more on that below).
  4. The result appears instantly: years, months, days, total days, and total weeks.

No button to press. The answer updates the moment you change either date.

Worked Example: Days Between Two Dates

Say you want to know the gap between 14 March 2023 and 9 November 2024.

UnitResult
Years, months, days1 year, 7 months, 26 days
Total days (end date excluded)606 days
Total days (end date included)607 days
Complete weeks86 weeks, 4 days

The calculator gives you both figures so you can use whichever suits your situation.

How the Date Difference Is Calculated

Under the hood the tool uses a simple rule: subtract the earlier date from the later date to get the number of elapsed days, then convert that into bigger units.

Total days = End date − Start date
Weeks      = Total days ÷ 7  (remainder = leftover days)
Months     = counted by calendar months, then remaining days

Why months are trickier than days: calendar months are different lengths (28–31 days), so the tool walks forward month by month rather than dividing by a fixed number. That is why you get a precise answer like "1 year, 7 months, 26 days" instead of an approximation.

Including vs. excluding the end date: by default the end date is not counted — so the gap from 1 Jan to 1 Feb is 31 days. Switch the toggle on and it becomes 32 days. Use "include end date" when you need to count every calendar day a person was present (e.g. a hospital stay or a rental period).

Quick Reference: Common Date Gaps

SituationTotal days (approx.)
1 calendar month (Jan)31 days
1 calendar quarter90–92 days
6 months (non-leap year)181–184 days
1 year (non-leap)365 days
1 year (leap year)366 days
2 years730 or 731 days

Other Ways People Ask This Question

People phrase the same calculation several different ways. Here is what each one usually means:

  • Days between dates — the raw count of days from one date to another. Best for scheduling, deadlines, and countdowns.
  • Time elapsed / time since — often phrased as "how long ago was X?" Start from a past date, end on today.
  • Days until — the reverse: start on today, end on a future date. Great for event countdowns.
  • Age in days / months — enter a birthdate as the start and today as the end to get an exact age breakdown.
  • Working days between dates — this calculator counts all calendar days. If you need to skip weekends and holidays, a business-days tool is the right fit for that.
  • Date duration — the total length of a period, often used in contracts or project timelines.

Tips and Common Mistakes

  • Put the earlier date first. Most tools handle reversed dates gracefully, but double-check the sign if you are doing comparisons by hand.
  • Remember leap years. Feb 29 exists only in leap years. The calculator handles this automatically, but be careful if you are working out durations by hand across February.
  • Do not mix up "months elapsed" and "month number." From 31 Jan to 1 Feb is 1 day, not 1 month.
  • Decide upfront whether the end date counts. Rental agreements and hospital billing usually include it; project timelines usually do not.
  • Time zones do not affect date calculations unless the two events happened in very different time zones near midnight. For most everyday uses, the calendar date is all you need.

Your Data Stays Private

Everything runs entirely in your browser. The dates you enter are never sent to any server, stored in a database, or shared. Close the tab and they are gone.

Pick your two dates above and get the exact gap in seconds. Whether you are planning an event, checking a contract period, or just satisfying curiosity, the date difference calculator gives you a clear, reliable answer every time.

Frequently asked questions

How do I calculate the number of days between two dates by hand?+
Subtract the earlier date from the later date. The easiest way without a calculator is to convert both dates to a day count from a fixed reference point (like Julian Day Numbers), then subtract. For quick rough answers, count the full months between the dates, multiply by 30, then add or subtract the leftover days. The tool above does the exact version instantly.
Does this calculator count the start date, the end date, or both?+
By default, the start date is counted and the end date is not — so '1 Jan to 1 Feb' = 31 days. Toggle 'include end date' to count that last day too, making the answer 32 days. Use the inclusive option for rental periods, hospital stays, or any situation where every calendar day the period is 'active' must be counted.
How do I find out how many days until a future date?+
Set the start date to today and the end date to the future date. The total days shown is your countdown. The calculator works just as well for future dates as it does for past ones.
Can I calculate someone's age in years, months, and days?+
Yes. Enter the person's birthdate as the start date and today's date as the end date. The result shows their age broken down into years, months, and days.
Does it handle leap years correctly?+
Yes. The calculator accounts for leap years automatically. If your date range includes 29 February, those extra days are included in the total.
What is the difference between calendar days and business days?+
Calendar days (what this tool counts) include every day of the week: weekends and public holidays included. Business days exclude Saturdays, Sundays, and often public holidays. If your deadline or contract specifically mentions 'business days' or 'working days', you need a separate business-day calculator.
Is my data uploaded or saved anywhere?+
No. The calculation runs entirely in your browser using JavaScript. The dates you type never leave your device and are not stored anywhere.
Is this tool free to use?+
Completely free, with no sign-up required. Open the page and start calculating right away.