Time Duration Calculator
Calculate the duration between two times in hours, minutes, and seconds. Handles overnight shifts that cross midnight.
What is a Time Duration Calculator?
This tool calculates the elapsed time between a start time and an end time. It outputs the duration in hours, minutes, and seconds, and correctly handles cases where the time range crosses midnight (e.g. a night shift from 22:00 to 06:00).
How to use this tool
- Enter the Start Time (HH:MM or HH:MM:SS)
- Enter the End Time (HH:MM or HH:MM:SS)
- Click Calculate
- Duration is displayed in hours, minutes, and seconds
Midnight handling
If the end time is earlier than the start time, the tool assumes the duration crosses midnight and adds 24 hours to the result.
Example use cases
- Shift work: Calculate total hours worked for a night shift (e.g. 22:00 – 06:00 = 8 hours)
- Exercise tracking: Measure workout duration
- Event timing: Calculate how long an event or process took