Elapsed Time Across Midnight Calculator
Find elapsed hours between two 24-hour clock times, including an interval that crosses midnight.
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
Elapsed Time Across Midnight: find elapsed time from start time (24-hour decimal), end time (24-hour decimal). Elapsed time across midnight measures the forward clock interval from a start hour to an end hour on the following day.
Formula
Elapsed hours = (end hour − start hour + 24) mod 24
Worked example
With Start time (24-hour decimal): 22 h, End time (24-hour decimal): 6 h, elapsed time is 8 h.
Calculation method
The rule is Elapsed hours = (end hour − start hour + 24) mod 24.
For this elapsed time across midnight example, changing start time (24-hour decimal) from 22 h to 23 h while keeping the other inputs fixed changes elapsed time from 8 h to 7 h.
Reading elapsed time
A smaller end-hour number can still represent a positive interval after the clock wraps at 24 hours. In the worked values on this page, start time (24-hour decimal) 22 h, end time (24-hour decimal) 6 h produce elapsed time 8 h.
Practical use
Use it for a basic overnight shift or event-duration estimate. The specific task here is to find elapsed time from start time (24-hour decimal), end time (24-hour decimal).
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; a value measured on another basis would answer a different question.
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 this page’s specific calendar or elapsed-time convention; another convention can produce a different answer from the same dates or clock readings. These fields describe elapsed duration or clock readings as labeled. A decimal hour is a fraction of an hour, whereas minutes are a separate base-60 quantity. Keep those representations distinct when copying a time from a timetable or a work record.
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. Comparing one changed input at a time shows exactly which assumption drove the difference in this calculation. A duration or clock result depends on the exact hour and minute values 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 this elapsed time across midnight calculation, start time (24-hour decimal) in h and end time (24-hour decimal) in h determine elapsed time; the displayed elapsed time 8 h belongs to that exact combination rather than to a different rate, term, or measurement basis.
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. Check the start time (24-hour decimal) in h and end time (24-hour decimal) in h entries against the quantities in your own situation before using elapsed time; this page cannot infer a field or condition that you did not enter.
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 hours = (end hour − start hour + 24) mod 24. It does not automatically include a condition absent from the listed inputs. 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)