Time Duration Calculator — Free Online Tool
How long did that take? Enter a start and end time — or full dates with times — to get the precise elapsed duration in hours, minutes, and seconds.
Last updated: October 2026
What is the Time Duration Calculator?
Time math is annoying because hours and minutes don't work in base 10: 1:45 + 0:30 isn't 1:75, it's 2:15. This calculator handles the carrying for you across any two timestamps, including multi-day spans when you include dates.
Typical uses: billing hours for freelance work, timing workouts or study sessions, calculating shift lengths, measuring travel time, or checking how long an event ran. For shifts crossing midnight, include the date (or set the end date to the next day) so the calculator counts correctly.
Payroll departments, freelancers, and project managers live by elapsed time. A task that runs from 1:47 PM to 4:12 PM is not ‘about two and a half hours’ — it is exactly 2 hours 25 minutes, or 2.42 decimal hours, and that precision decides what gets billed. This calculator removes the mental arithmetic, including the tricky borrow across the 60-minute boundary.
It also handles multi-day spans: enter a start on Monday morning and an end on Wednesday evening and you get the full duration broken into days, hours, minutes, and seconds. That makes it handy for tracking equipment rental periods, parking durations, and SLA windows as well as work shifts.
Freelancers billing by the hour should also track non-billable time the same way: a 45-minute client call plus 20 minutes of follow-up notes is 1.08 hours, and logging it accurately is the difference between profitable and underwater. Pair this calculator with a simple timesheet and review weekly — most people underestimate admin time by 30% or more.
How to use this calculator
- Pick the start date and time.
- Pick the end date and time.
- Click Calculate Duration for the full breakdown.
Formula
Worked example
Example: A nurse clocks in at 9:00 PM and clocks out at 5:30 AM the next morning. Enter both date-times and the calculator returns 8 hours 30 minutes (510 minutes, 30,600 seconds). At $28/hour, that is 8.5 × $28 = $238.00 of pay before differentials.
Tip: for payroll, most employers round to the nearest quarter hour — 8h 30m stays 8.50 hours, but 8h 22m would round to 8.25.
Frequently asked questions
How do I calculate hours between two times?
Enter both as date-times and subtract — this tool does it, handling the 60-minute carry automatically.
What about overnight shifts?
Include dates: set the end date to the next day. Without dates the tool can't know midnight was crossed.
Can it handle multi-day durations?
Yes — with dates included, any span works, reported in hours/minutes/seconds totals.
Does it account for daylight saving or time zones?
No — it treats both timestamps in your browser's local time. For DST-crossing spans, verify manually.
How do I handle an overnight shift?
Enter the start date-time (e.g. 9:00 PM Monday) and the end date-time (5:30 AM Tuesday). Because both date and time are included, the calculator correctly spans midnight.
Can I convert the result to decimal hours for payroll?
Yes — divide the minutes by 60. For example, 7 hours 45 minutes is 7 + 45/60 = 7.75 hours. Multiply by your hourly rate to get gross pay.
What is the best way to log billable hours?
Record start and end times to the minute, then convert to decimals (15 min = 0.25 h). Round per your contract — many firms round to the nearest 6 minutes (0.1 h) — and never round each entry up by habit.