Free Date Difference Calculator
Find the time between any two dates — in years, months, and days, and as a total number of days and weeks.
Quick answer
A date difference calculator counts the time between a start date and an end date. It reports full years, then leftover months and days, using the calendar so different month lengths and leap years are handled correctly, and also gives the total number of days.
Formula & method
The difference is computed with real calendar dates. Full years are counted from the start date, then whole months, then leftover days (borrowing the previous month’s length when needed). The total day count is the exact number of calendar days between the two dates, and weeks are that total divided by seven.
Examples
- Input
- start 2020-01-01, end 2026-06-05
- Result
- 6 years, 5 months, 4 days
- Why
- 6 full years to 2026-01-01, then 5 months and 4 days more.
- Input
- start 2020-01-01, end 2026-06-05
- Result
- 2,347 days
- Why
- The exact calendar day count, including the 2020 and 2024 leap days.
- Input
- start 2026-07-01, end 2026-07-15
- Result
- 14 days (2 weeks)
- Why
- 15 July minus 1 July is 14 days.
When to use this tool
- Counting the days or weeks between two events.
- Working out a project duration or notice period.
- Finding how long ago something happened.
Common mistakes
- Expecting the day count to include both endpoints. The difference counts the gap, not the start day itself.
- Estimating months as 30 days each — real months vary from 28 to 31.
- Swapping start and end dates; enter the earlier date first for a positive result.
Frequently asked questions
+ - How do I calculate the difference between two dates?
Enter a start and end date. The tool counts full years, then months, then leftover days, and also shows the total number of days and weeks between them.
+ - Does it include leap years?
Yes. Because it uses actual calendar dates, leap days are counted automatically.
+ - Does the total include both the start and end day?
It counts the gap between the dates. For example, 1 July to 15 July is 14 days, not 15.
+ - Can I count business days only?
This tool counts all calendar days. Weekends and holidays are included in the totals.
+ - Are my dates uploaded?
No. The calculation runs entirely in your browser.
- ✓ Free to use
- ✓ No sign-up required
- ✓ Runs entirely in your browser — nothing is uploaded.
- ✓ Formula and method shown above
Provided “as is” for general information only — results may be inaccurate, so verify before you rely on them. No warranty; use at your own risk.
Related tools
- Age CalculatorDate & Time
- Days Until CalculatorDate & Time
- Percentage CalculatorCalculators
- Compound Interest CalculatorFinance