Date Difference Calculator
Difference = End Date − Start DateFree online tool
Compare two calendar dates in whole years, remaining months and days. Check the elapsed day total separately, especially across month ends.
Instant calculation
Enter a start date and an end date to find the exact difference.
Calculation inputs are processed in your browser. Copying or sharing a result is your choice. See our privacy policy for advertising and technical logs.
Tool and explanation maintained by Leslie. Report an incorrect result.
Input steps
Type the year, month and day for the earlier date.
Type the year, month and day for the later date.
Calculate to see the exact gap in years, months, days, weeks and total days.
The formula
Count the full years between the dates, then the remaining months, then the days. Total days, weeks and months are also calculated.
Difference = End Date − Start DateCheck the method
Each example follows the same formula used by the calculator.
Dec 31 − Jan 1 = 364 days (non-leap year)364 daysBoth dates are July 1, so the full-year count is 2026 − 1990.36 years, 0 months, 0 days.January 1 to February 1 is one calendar month but 31 elapsed days. February 1 to March 1 may be 28 or 29 days. Do not assume the months component means a fixed number of days.
February 28 to March 1 in 2024 spans two days because February 29 exists. The same dates in 2025 span one day. January 1 to February 1 is one calendar month and 31 days, so months and days are alternative descriptions rather than interchangeable units. Use the day total when comparing durations on a common scale.
From January 31 to February 28, 2025 the calendar result is one month and zero remaining days. February has no 31st, so the month ends at its last valid date. The elapsed total is 28 days. A February 29 anniversary advances to March 1 in a non-leap year under this tool’s convention. Reversing the dates returns the same positive gap.
Method notes updated by Leslie.
Common questions
The elapsed-day gap between January 1 and January 2 is one day. A list containing both dates has two dates. For a rule that explicitly includes both endpoints, account for that separately.
Yes. The calculator works in both directions. If the end date is before the start date, the difference is still displayed correctly.
The calculation counts full calendar days between the two dates. The first day is exclusive and the last day is inclusive for a forward calculation.
Enter the year, month and day in separate fields. Month uses 1 for January through 12 for December.
Yes. The Age Calculator is built on the same algorithm. For a direct age calculation, use the Age Calculator instead.
Continue calculating