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

  1. Enter the start time.
  2. Enter the end time.
  3. Read the number of hours between them.

Assumptions

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
Common mistakes

FAQs

How many hours between 22:00 and 06:00?

8 hours — this calculator handles the overnight span automatically.