About the Time Duration Calculator
Sometimes minutes are not precise enough. Race results, lap times, lab experiments, video and audio timestamps, machine cycle times, call logs and computer event logs are all recorded to the second, and working out the elapsed time between two such readings by hand means borrowing seconds and minutes — easy to get wrong.
This time duration calculator finds the exact time between a start time and an end time, to the second. It gives the duration in hours, minutes and seconds, in h:mm:ss format, as decimal hours and minutes, and as total seconds. If the end time is earlier than the start, it assumes the end is the next day, and you can add whole days for longer spans.
How to Use the Time Duration Calculator
Enter the start time and the end time as HH:MM:SS or HH:MM, in 24-hour format or with am and pm.
If the end is one or more days after the start, enter the days later.
The duration appears immediately.
How the Duration Is Calculated
convert each time to seconds after midnight:
seconds = hours × 3,600 + minutes × 60 + seconds
duration = end − start + days later × 86,400
(if the end is earlier and no days are set, add 86,400 for the next day)
then split back into hours, minutes and seconds
Step-by-Step Example
From 08:15:20 to 17:42:05.
Start: 8 × 3,600 + 15 × 60 + 20 = 29,720 s
End: 17 × 3,600 + 42 × 60 + 5 = 63,725 s
Duration: 63,725 − 29,720 = 34,005 s
34,005 s = 9 h (32,400 s) + 26 min (1,560 s) + 45 s
= 9:26:45 = 9.446 hours = 566.75 minutes
Crossing midnight: 23:30:00 to 01:15:30.
End is earlier, so it is the next day:
(1 × 3,600 + 15 × 60 + 30 + 86,400) − (23 × 3,600 + 30 × 60) = 6,330 s
= 1 h 45 min 30 s
Subtracting Times by Hand
The traditional method works column by column, from seconds to hours, borrowing when the top number is smaller:
17:42:05
− 08:15:20
──────────
seconds: 5 − 20 won't go → borrow 1 minute: 65 − 20 = 45
minutes: 41 − 15 = 26
hours: 17 − 8 = 9 → 9:26:45
The key point is that each column borrows 60, not 10. Converting everything to seconds, as the calculator does, avoids the borrowing altogether.
Durations Versus Clock Times
A clock time is a moment in the day, such as 17:42:05. A duration is a length of time, such as 9:26:45. They look alike but behave differently: clock times wrap around at midnight, while durations can exceed 24 hours. In spreadsheets, the difference matters — a duration of 30 hours formatted as a clock time shows 06:00. Use a duration format such as [h]:mm:ss to display long durations correctly.
Decimal Durations
For analysis, durations are often easier to handle as decimals. 9:26:45 is 9.446 hours, 566.75 minutes or 34,005 seconds. Averages, rates and charts work naturally with these numbers: a machine that runs 566.75 minutes and produces 1,000 parts takes about 34 seconds per part. The calculator shows every form so you can pick the one your task needs.
Race Times and Pace
Runners, cyclists and swimmers record times to the second and often want the time for a section of a race, or their pace. If a runner passes the 10 km mark at 00:48:30 and the half-marathon finish at 01:44:10, the second part of the race, 11.1 km, took 55 minutes 40 seconds, or 3,340 seconds. Dividing by the distance gives about 301 seconds per kilometre — just over 5 minutes per kilometre. Split times like these show whether an athlete kept an even pace or slowed down, and a time duration calculator makes finding each split quick and reliable.
Timestamps in Video and Audio
Editors and transcribers constantly work with timestamps such as 00:12:05 and 00:17:42, and need the length of the section between them — here, 5 minutes and 37 seconds. The same calculation gives the running time of a scene, the length of a song excerpt for licensing, or the gap between two moments in a recorded meeting. Many editing programs also show frames after the seconds; for durations to the frame, convert the frames to a fraction of a second using the frame rate before subtracting.
Common Uses
Sport: race and split times, training intervals and pace. Science: reaction times and experiment durations. Media: the length of a clip between two timestamps in a video or audio file. Operations: machine run times, downtime and cycle times. IT: the time between two entries in a log file. Everyday: how long you slept, how long a call lasted, or how long a parcel took from dispatch to delivery.
Time Zones and Clock Changes
The calculator assumes both times are read from the same clock. If they come from different time zones — a log written in UTC and a report in local time — convert them to a common zone first. And if a daylight-saving change falls between the two times, the real elapsed time differs by an hour from the clock difference.
Understanding Your Result
The headline gives the duration in hours, minutes and seconds.
The h:mm:ss line gives it in clock-style format.
The decimal line gives decimal hours and minutes.
The seconds line gives the total seconds.
The times line confirms the times used, or notes that the end was taken as the next day.
When Should You Use This Calculator?
Use it for race, lap and split times.
Use it to measure time between timestamps in videos, logs and recordings.
Use it to time experiments, processes and machine cycles.
Use it whenever seconds matter.
Common Mistakes
Borrowing 10 instead of 60. Minutes and seconds run to 60, not 100.
Leaving out the seconds. Enter HH:MM:SS when the seconds matter, or the result is rounded to the minute.
Displaying a long duration as a clock time. Durations can exceed 24 hours.
Mixing time zones. Convert timestamps to the same zone first.
Forgetting the day change. Set days later for spans over midnight by more than a day.