Hours Between Times Calculator
Free hours between times calculator. Enter two clock times to get the exact elapsed hours and minutes — overnight-safe, so 10 PM to 6 AM is 8 hours.
Hours Between Times Calculator
Background.
This hours-between-times calculator measures the elapsed time between two clock readings — a start time and an end time, both on the 24-hour clock — and returns the answer as a decimal-hours figure, an hours-and-minutes breakdown, and a total-minutes count. It is the general-purpose sibling of this site's time-card calculator: no break deduction, no pay rate, no weekly rollup, just a clean answer to 'how much time passed between these two clock readings' for any context that needs it — how long a phone call lasted, how long a flight is scheduled for, how long between two meeting times, or how long a single work shift ran before you get to the payroll math.
The detail that separates a correct time-duration tool from a broken one is what happens when the end time is numerically earlier than the start time. A shift that runs from 22:00 to 06:00 the next morning is eight hours long, not a nonsensical negative sixteen — and a calculator that just subtracts the start from the end without checking for a midnight crossing will get exactly that wrong. This tool treats any end time that is at or before the start time as a span that has crossed midnight, and adds 24 hours before reporting the result. Night-shift workers, call-center staff, security guards, and anyone tracking an overnight event are the primary beneficiaries.
The edge case worth stating explicitly: if you enter the exact same time for both the start and the end, the calculator reports a full 24 hours elapsed, not zero. Two identical clock readings are genuinely ambiguous on their own — a bare clock time cannot distinguish 'no time passed at all' from 'exactly one full day passed' — and this tool resolves that ambiguity in favor of the forward-only interpretation used everywhere else on this site's time and date calculators (a countdown or a next-occurrence search never returns zero or a negative span when a real question was asked). If you specifically mean zero elapsed time, this calculator's identical-times behavior is not what you want — the answer you're looking for is simply zero, entered as a special case you already know.
All arithmetic is done in whole minutes on the 24-hour clock, so there is no ambiguity between AM and PM, and no dependency on any particular date or time zone — this tool answers a pure clock-arithmetic question, decoupled from any specific calendar day. If your question instead spans multiple calendar days (not just a single overnight wrap) or needs a specific pair of dates rather than bare clock times, use the date-difference calculator instead, which works at the calendar-day level with full date inputs.
What is hours between times calculator?
An hours-between-times (or time duration) calculator computes the elapsed clock time between a start reading and an end reading, both expressed on the 24-hour clock, independent of any specific calendar date. Because the two inputs are bare clock times rather than full datetimes, the calculator must make an explicit choice about direction: it always measures forward from the start time to the next occurrence of the end time, wrapping past midnight (adding 24 hours) whenever the end time is numerically at or before the start time. This forward-only convention is what correctly turns an overnight span like 22:00 to 06:00 into 8 hours rather than a negative number, and it is the same directional convention used by the time-card calculator's shift-length computation on this site.
How to use this calculator.
- Enter the start time as an hour (0–23) and minute (0–59) on the 24-hour clock.
- Enter the end time the same way. For an overnight span (for example, 22:00 to 06:00), just enter the times as they appear on the clock — the calculator detects the midnight crossing automatically.
- Read 'Elapsed hours' for the single decimal-hours figure, or 'Hours' and 'Minutes' together for the plain-language breakdown.
- Check 'Crosses midnight?' if you want to confirm whether the calculator treated your span as same-day or overnight.
- If your question spans multiple calendar days rather than a single clock-to-clock span, use the date-difference calculator instead, which works with full dates.
The formula.
Both the start and end times are converted to total minutes since midnight: startTotal = startHour×60 + startMinute, endTotal = endHour×60 + endMinute. The raw difference is rawDiff = endTotal − startTotal. If rawDiff is zero or negative, the calculator adds 1440 (the number of minutes in a day), assuming the span has crossed midnight; otherwise it uses rawDiff directly. The result, totalMinutes, is always a positive number in the range (0, 1440]. From totalMinutes the calculator derives elapsedHoursDecimal = round(totalMinutes / 60, 2) for a single decimal figure, and the hoursPart / minutesPart breakdown via floor(totalMinutes / 60) and totalMinutes mod 60. The 'Crosses midnight?' flag is simply whether rawDiff was zero or negative before the adjustment — it tells you whether the calculator applied the midnight-wrap rule to get its answer.
A worked example.
A span running from 9:15 AM to 5:45 PM. In total minutes since midnight, the start is 9×60+15 = 555 and the end is 17×60+45 = 1,065. The raw difference is 1,065 − 555 = 510 minutes, which is already positive, so no midnight-wrap adjustment is needed. Converting: 510 minutes is 8 hours and 30 minutes (510 = 8×60 + 30), or 8.5 hours as a single decimal figure. Compare this to an overnight span from 10:00 PM to 6:00 AM: start total is 22×60 = 1,320, end total is 6×60 = 360, and the raw difference is 360 − 1,320 = −960, which is negative — so the calculator adds 1,440 to get 480 minutes, correctly reporting 8 hours rather than a nonsensical negative span.
Frequently asked questions.
How does the calculator handle an overnight span, like 10 PM to 6 AM?
What happens if I enter the exact same time for start and end?
Does this calculator work across multiple calendar days, or just a single overnight wrap?
Why does the calculator use a 24-hour clock instead of AM/PM?
Can I use this to calculate the length of a work shift?
What's the difference between this calculator and time-duration?
References& sources.
- [1]International Organization for Standardization, ISO 8601-1:2019 — Date and time representations. Specifies the unambiguous 24-hour clock convention this calculator's hour/minute inputs follow.
- [2]U.S. National Institute of Standards and Technology (NIST), Time and Frequency Division. Maintains the U.S. civil time standard against which clock-time arithmetic is ultimately calibrated.
- [3]Internet Engineering Task Force, RFC 3339 — Date and Time on the Internet: Timestamps. The IETF profile of ISO 8601 defining unambiguous time-of-day representation.
In this category
Embed
Quanta Pro
Paid features are coming later.
- All 313 calculators remain free
- No billing is enabled