Elapsed Time Across Midnight Calculator
Enter start time (24-hour decimal), end time (24-hour decimal) to find elapsed time. Elapsed time = (End time (24-hour decimal)-Start time (24-hour decimal)+24)%24.
How the result changes
Only start time (24-hour decimal) changes; all other inputs stay at your current values. The line illustrates the formula across the shown range. This is not a forecast of real-world outcomes.
About this calculation
This tool measures the forward clock interval within one 24-hour cycle. An end hour earlier than the start is treated as the next day; an end hour later than the start is treated as the same day. Use this elapsed time across midnight calculator to find elapsed time from start time (24-hour decimal), end time (24-hour decimal).
Formula
Elapsed time = (End time (24-hour decimal)-Start time (24-hour decimal)+24)%24
Worked example
With Start time (24-hour decimal): 22 h, End time (24-hour decimal): 6 h, elapsed time is 8 h.
How to calculate elapsed time
The rule is Elapsed time = (End time (24-hour decimal)-Start time (24-hour decimal)+24)%24.
In the elapsed time across midnight example, start time (24-hour decimal) 22 h produces elapsed time 8 h. Entering 23 h instead produces 7 h.
Reading elapsed time
A smaller end-hour number can still represent a positive interval after the clock wraps at 24 hours. With start time (24-hour decimal) 22 h, end time (24-hour decimal) 6 h, the calculator returns elapsed time 8 h.
Practical use
Use it for a basic overnight shift or event-duration estimate. Measure a shift or journey that crosses midnight without treating the end clock time as earlier.
Limits and common mistakes
This tool uses simple 24-hour clock arithmetic and does not include dates, time zones, or daylight-saving transitions. Verify start time (24-hour decimal) in h before interpreting elapsed time.
Read the example and units
The worked values on this page use start time (24-hour decimal) 22 h and end time (24-hour decimal) 6 h. With those exact entries, the calculator reports elapsed time 8 h. The output follows the one-day clock-wrapping convention stated on this page; an interval lasting additional full days needs separate information. These fields are 24-hour clock readings written as decimal hours: 9.5 means 09:30. The result is a forward duration modulo 24 hours, so the same readings cannot reveal additional whole days.
Compare one changed input
For a second scenario, change only start time (24-hour decimal) 22 h to start time (24-hour decimal) 24 h and leave the other example entries alone. The result for elapsed time changes from 8 h to 6 h. The clock result depends on the start and end readings entered. If the interval crosses midnight, check the one-day wrapping rule and whether the real event spans any additional whole days.
How to interpret this kind of result
Clock time and elapsed duration are different quantities. These fields accept 24-hour decimal hours, so 9.5 represents 09:30 and 9.25 represents 09:15; the digits after the decimal are fractions of an hour, not minutes written as two digits. The modulo-24 rule handles one crossing of midnight. For elapsed time across midnight, the entered start time (24-hour decimal) in h and end time (24-hour decimal) in h produce elapsed time 8 h. Keep elapsed time and its unit attached to this input scenario.
Scope and practical checks
The formula cannot distinguish a zero-length interval from an interval of exactly 24 hours when start and end clock times match. It also does not add whole days, daylight-saving adjustments, or time-zone changes. For a real shift or journey longer than one day, use full dates and times instead of clock values alone.
Common questions
What does this elapsed time across midnight result include?
The elapsed time comes from start time (24-hour decimal) in h and end time (24-hour decimal) in h using the displayed rule Elapsed time = (End time (24-hour decimal)-Start time (24-hour decimal)+24)%24. Check the stated rule for calendar boundaries, weekends, time zones, or elapsed time before applying a deadline.
Inputs
- Start time (24-hour decimal) (h)
- End time (24-hour decimal) (h)