Hours between times
Work out the number of hours between two times of day — handles an overnight span (e.g. 22:00 to 06:00) automatically.
Result
Hours between
How to use this calculator
- Enter the start time.
- Enter the end time.
- Read the number of hours between them.
Assumptions
- If the end time is earlier than the start time, assumes it falls on the next day (an overnight shift) rather than being an entry error.
Technical details: what the fields mean
- Start time
startTime - The earlier time of day.
- End time
endTime - The later time of day — if this is earlier than the start time, it's assumed to be the next day (an overnight span).
Methodology
Hours = (end time − start time) in minutes, ÷ 60. If the end time is earlier than the start time, 24 hours is added, treating it as an overnight span.
Worked example
22:00 to 06:00 (overnight)
Inputs: startTime=22:00, endTime=06:00
Result: 8.00 hours
Practical guidance
- For a shift with an unpaid break, use the shift-length calculator instead, which subtracts break time.
Common mistakes
- Assuming an end time earlier than the start time is an error — this calculator treats it as spanning into the next day instead.
FAQs
How many hours between 22:00 and 06:00?
8 hours — this calculator handles the overnight span automatically.