Time Duration Calculator
Find the elapsed time between two clock times.
How to use
- 1 Enter the start time in 24-hour format, for example 09:00.
- 2 Enter the end time, for example 17:30.
- 3 Leave "Allow overnight" on for shifts that cross midnight, or turn it off to treat that as an error.
- 4 Read the duration in hours, minutes, seconds and decimal hours, then copy the summary.
About Time Duration Calculator
The Time Duration Calculator works out exactly how much time passes between a start time and an end time.
Enter two times in 24-hour form, such as 09:00 and 17:30, and it returns the gap broken down into hours, minutes and seconds, along with the total minutes, total seconds and a decimal-hours figure that is perfect for timesheets and payroll.
The decimal value turns awkward spans like one hour and thirty minutes into a clean 1.5, ready to multiply by an hourly rate.
Shifts that run past midnight are handled automatically.
When the end time is earlier than the start time, the calculator assumes the period wraps into the next day — so a shift from 22:00 to 06:00 correctly reads as eight hours rather than a negative result.
If you would rather treat an end-before-start as a mistake, you can switch off the overnight option and the tool will flag it instead.
Seconds are fully supported, so you can measure short intervals as precisely as long ones.
All of the arithmetic runs locally in your browser.
Nothing is uploaded, logged or stored, the tool works offline once the page has loaded, and it makes a quick, dependable helper for billing hours, planning schedules, timing tasks or checking how long an event lasted.
FAQ
How does it handle shifts that cross midnight?
If the end time is earlier than the start time, the calculator adds 24 hours so the duration wraps into the next day. You can disable this with the overnight toggle.
What are decimal hours?
Decimal hours express the duration as a single number, where 30 minutes is 0.5 and 15 minutes is 0.25. This format is convenient for invoices and payroll.
Can I include seconds?
Yes. Times accept an optional seconds field (HH:MM:SS), and the result reports seconds precisely alongside the larger units.