Duration Calculator
Calculate the difference between two dates, or add/subtract time.
About the Duration Calculator
Find the exact difference between two datetimes broken into years, months, days, hours, minutes and seconds, plus totals. Also add or subtract a custom duration from a date.
Examples
Days between
2026-01-01 to 2026-08-06Output
7 months, 5 daysKeyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
Age Calculator
Date & Time
Calculate exact age and countdown to the next birthday.
Business Days Calculator
Date & Time
Count business days between two dates, excluding holidays.
Day of Year Calculator
Date & Time
Convert a date to its day-of-year number, or back again.
Leap Year Checker
Date & Time
Check if a year is a leap year and find nearby leap years.
Work Hours & Timesheet Calculator
Date & Time
Total up work hours across shifts with breaks and hourly pay.
ISO 8601 Converter
Date & Time
Convert dates and durations to and from ISO 8601 format.
Frequently asked questions
Read more
- The Pomodoro technique: why 25 minutes still works
A kitchen-timer method from the 1980s is still the most reliable focus tool a developer has. Here is what the timer is actually for, and how to tune the durations.
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser