Audited ·Last updated 27 Jul 2026·3 citations·Tier 2·0 uses

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

Hour of the start time, 24-hour clock (0 = midnight, 13 = 1 PM).
Minute of the start time (0–59).
Hour of the end time, 24-hour clock. If this is numerically at or before the start hour/minute (e.g. an overnight 22:00 → 06:00 span, or an identical reading), the calculator assumes the span crosses midnight and adds 24 hours.
Minute of the end time (0–59).
Elapsed hours
8.5
The full elapsed span as a single decimal-hours figure.
Hours
8 hrs
Minutes
30 min
Total minutes
510 min
Crosses midnight?
No

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.

  1. Enter the start time as an hour (0–23) and minute (0–59) on the 24-hour clock.
  2. 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.
  3. Read 'Elapsed hours' for the single decimal-hours figure, or 'Hours' and 'Minutes' together for the plain-language breakdown.
  4. Check 'Crosses midnight?' if you want to confirm whether the calculator treated your span as same-day or overnight.
  5. 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.

T = (end − start + 1440) mod 1440, if ≤ 0 add 1440

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.

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.

end Hour17
start Hour9
start Minute15
end Minute45

Frequently asked questions.

How does the calculator handle an overnight span, like 10 PM to 6 AM?
It checks whether the end time, expressed as total minutes since midnight, is numerically at or before the start time. If so, it assumes the span crosses midnight and adds 1,440 minutes (24 hours) before computing the result. A 22:00-to-06:00 entry correctly computes as 480 minutes (8 hours), never a negative number.
What happens if I enter the exact same time for start and end?
The calculator reports a full 24 hours elapsed, not zero. Two identical clock readings are genuinely ambiguous — there is no way to tell from a bare clock time alone whether zero time passed or a full day passed — and this tool resolves that ambiguity by always assuming forward motion, the same convention used everywhere else on this site's time and date tools. If you specifically want to represent zero elapsed time, you already know the answer is zero and do not need the calculator for that case.
Does this calculator work across multiple calendar days, or just a single overnight wrap?
Only a single wrap — at most 24 hours can be represented, because the inputs are bare clock times with no associated date. If your span covers more than one full day (for example, a shift that starts Monday evening and doesn't end until Wednesday morning), use the date-difference calculator instead, which accepts full calendar dates and can measure spans of any length.
Why does the calculator use a 24-hour clock instead of AM/PM?
The 24-hour clock removes any ambiguity about which half of the day a hour value refers to — there is no separate flag needed to distinguish 9 AM from 9 PM, since they are simply hour 9 and hour 21. This is the same 24-hour convention recommended by ISO 8601 for unambiguous time representation, and it is the convention this site's other clock-time calculators (time-card, time-zone) already use.
Can I use this to calculate the length of a work shift?
Yes — this is exactly the sub-day calculation the time-card calculator uses internally for its own shift-length step, exposed here as a standalone tool. If you also need to subtract an unpaid break and roll the result up into a weekly total with overtime pay, use the time-card calculator instead; use this tool when you just need the raw elapsed time between two clock readings with nothing else attached.
What's the difference between this calculator and time-duration?
This calculator takes two points in time (a start clock reading and an end clock reading) and computes the elapsed span between them, with automatic midnight-wrap handling. The time-duration calculator instead takes two ALREADY-KNOWN durations (each expressed as hours, minutes, and seconds) and adds or subtracts them — for example, combining a 2-hour-45-minute task with a 1-hour-30-minute task to get a combined duration. Use this tool to measure a span between two clock times; use time-duration to combine or compare durations you already have.

In this category

Embed

Quanta Pro

Paid features are coming later.

  • All 313 calculators remain free
  • No billing is enabled
Coming soon