Method
How the time difference calculator works
Both times are read as clock times on the same day, with no time zone attached. Clock values are converted to minutes after midnight. When the end is earlier than the start, the calculator treats the end as occurring the following day.
Example
Time difference calculator example
09:15 to 17:45 is 8 hours 30 minutes; 22:00 to 06:00 is treated as an 8-hour overnight duration.
Rule
Exact rule used by the time difference calculator
Each time becomes minutes after midnight and the start is subtracted from the end. If the result is negative, 1,440 minutes are added, which treats the end as the next day. If the two times are identical, the answer is zero, not 24 hours.
There is no date and no zone attached, so the tool measures clock time only. The result is also shown as total minutes and as decimal hours to two places, which is the form most timesheets expect.
Step by step
Worked through step by step
From 22:15 to 05:40 is 7 hours 25 minutes, which is 445 minutes or 7.42 decimal hours. From 23:30 to 00:15 is 45 minutes. From 07:50 to 16:20 is 8 hours 30 minutes, or 8.5 decimal hours, and from 12:00 to 12:00 is 0.
Order matters in a way that can surprise you. If the times are typed backwards, from 17:45 to 09:15, the page assumes an overnight span and returns 15 hours 30 minutes, not minus 8 hours 30 minutes.
Pitfalls
Common mistakes with the time difference calculator
- Expecting equal times to give 24 hours. A full-day span needs two dates, so use the hours between dates calculator.
- Swapping start and end by accident. The overnight rule turns a reversed range into a long duration rather than an error.
- Forgetting breaks. The result is gross elapsed time; subtract any unpaid break afterwards or use the working hours calculator.
- Using clock times across a daylight-saving change. With no dates, a night shift on a clock-change night is measured as if nothing moved.
FAQ
Time difference calculator FAQ
Can the calculation cross midnight?
Yes. An earlier end time is interpreted as the next day.
Does this subtract breaks?
No. Subtract break duration separately from the elapsed result.
Does it account for daylight-saving transitions?
No. This tool has no date or zone attached, so it measures clock time only. Use the time zone converter when the two times are in different places.
I meant the difference between two time zones
Use the time zone difference calculator instead. It reports the UTC offset between two locations, such as the five and a half hours between London and India, rather than elapsed time on one clock.
How do I convert the result to decimal hours?
Divide the minutes by 60 and add them to the hours. Eight hours 30 minutes is 8.5 hours, which is the form most timesheets and payroll systems expect.
Why do I get 15 hours 30 minutes when I swapped the times?
An end time earlier than the start is read as the next day. 17:45 to 09:15 the next morning is 15 hours 30 minutes, so check that the start is first.
How do I measure more than 24 hours?
Use the hours between dates calculator, which takes a full date and time for each end and handles spans of days or months.