Time Math & Duration · Quick Method
How Many Hours Between Two Times? A Simple Method
Two clock times, one number of hours — no calendar app, no spreadsheet. Here is the three-step shortcut that works for any pair of times, including the ones that cross midnight.
Key takeaways
- The whole method in one line: turn each time into minutes since midnight, subtract, then divide by 60.
- If the end time is earlier than the start time on the clock — like
22:00to06:00— the range crosses midnight. Add 1,440 minutes (24 hours) before you subtract. - “How many hours” usually wants a rounded whole number for a quick answer; payroll and billing usually want the exact decimal instead — the two aren't always the same figure.
- A shift from
22:00to06:00is 8 hours, not “negative sixteen” — the midnight-crossing step is exactly what fixes that. - Skip the arithmetic entirely with the free hours calculator, which runs the same three steps instantly.
Your shift starts at 22:00 and ends at 06:00. Or a flight boards at 13:50 and leaves at 14:35. Or you started reading at 09:10 and finished at 11:47. Every one of these is the same question wearing a different outfit: how many hours sit between these two clock times? You don't need a calendar app or a spreadsheet to answer it — just one small piece of arithmetic, applied consistently.
This page shows that arithmetic: the exact three steps, worked through on an ordinary pair of times and then on a pair that crosses midnight, which is where most people get tripped up. If you'd rather skip the subtraction, the site's own hours calculator runs the same method instantly. For the fuller breakdown across longer spans, see how to calculate the duration between two times.
01The 3-step method
Every “hours between two times” question reduces to the same three moves, and none of them need anything more than addition and division.
- Step 1 — convert each time to minutes since midnight. Multiply the hour by 60 and add the minutes.
09:15becomes (9 × 60) + 15 = 555 minutes. - Step 2 — subtract the start from the end. Later minus earlier, always.
- Step 3 — divide the result by 60. The whole number is hours; whatever is left over is minutes.
Worked example · 09:15 to 17:45
- Start
09:15= 555 minutes. End17:45= (17 × 60) + 45 = 1,065 minutes. - 1,065 − 555 = 510 minutes.
- 510 ÷ 60 = 8 remainder 30.
Result:8 hours 30 minutes
That's the raw hours-and-minutes figure for a single gap. For spans that run across several calendar days rather than a few hours, see how to calculate the duration between two times; for the general rules of adding and subtracting clock values — not just finding a gap — see how to add and subtract time.
02Try it: hours between two times
Enter a start and end time below — 24-hour format, colon optional — and the count updates as you type.
Hours between two times
Crosses midnight · 8.00 decimal hours
Need more than a quick count?
This box is a teaching demo. For longer or more detailed spans — including seconds, printable logs, or multi-day ranges — use the full hours calculator or the time duration calculator.
03When the times cross midnight
This is where the shortcut in §1 needs one extra move. If the end time's clock value is earlier than the start time's — 06:00 is “earlier” than 22:00 on the clock face — the gap runs past midnight into the next day, and a plain subtraction gives a negative number that means nothing on its own.
The negative-number signal
If step 2 of the method gives you a negative result, the range crosses midnight. That's not an error — it's the cue to add a day before you continue.
The fix: add 1,440 minutes (24 hours) to the negative result before dividing.
Worked example · 22:00 to 06:00
- Start
22:00= 1,320 minutes. End06:00= 360 minutes. - 360 − 1,320 = −960 — negative, so this range crosses midnight. Add 1,440: −960 + 1,440 = 480 minutes.
- 480 ÷ 60 = 8 remainder 0.
Result:8 hours 0 minutes
An overnight shift that looks like it runs “backwards” on paper is still an ordinary 8-hour shift — the arithmetic just needs that one adjustment.
04Whole hours or exact hours?
“How many hours” can mean two different things depending on who's asking. A friend asking how long a flight is wants a whole number — “about 8 hours.” A timesheet, an invoice, or a billing system wants the exact decimal — 8.50 hours, not “eight and a half.”
To round to the nearest whole hour, look at the minutes: 30 or more commonly rounds up, under 30 rounds down — though for pay purposes, pick one convention and use it consistently rather than switching case by case. For the exact decimal, divide the minutes by 60 instead of rounding: 30 minutes is .50 hours, 15 minutes is .25, 45 minutes is .75. The full minutes-to-decimal-hours conversion is worth bookmarking if you do this often, and most payroll systems apply a rounding rule — commonly the 7-minute rule — before the decimal is calculated at all.
05Where this shortcut actually gets used
- Work shifts, especially overnight ones that cross midnight.
- Sleep duration — bedtime to wake time (see how sleep cycles work).
- Travel — boarding to departure, or the length of a layover.
- Cooking and baking — a start time to a finish time on a recipe.
- Meetings and calls logged by clock time rather than a stopwatch.
06Mistakes that throw the count off
- Subtracting 12-hour AM/PM times directly without converting first —
9:00 AMand5:00 PMaren't9and5in this arithmetic. Convert to09:00and17:00first. - Forgetting the midnight-crossing adjustment and reporting a negative or wildly wrong number.
- Mixing minutes and decimal hours partway through a calculation —
8:30is 8 hours 30 minutes, not8.30hours. Convert fully before you round. - Treating an identical start and end time as “24 hours” instead of zero — the same clock time twice, on the same day, is a zero-length gap.
Get the exact hours in one tap
Type any start and end time and get hours, minutes, and the decimal figure instantly — free, no sign-up.
07Frequently asked questions
How do I find the number of hours between two times?
Convert both times to minutes since midnight, subtract the earlier from the later, then divide by 60. The whole number is hours and the remainder is minutes.
What if the end time is earlier than the start time?
That means the range crosses midnight. Add 1,440 minutes (24 hours) to the end time before subtracting, or add 24 to the end hour if you're working in hours.
How many hours is 22:00 to 06:00?
8 hours. Because 06:00 is earlier than 22:00 on the clock, the range crosses midnight, and the subtraction needs the 1,440-minute adjustment described above.
Should I round to a whole number of hours or give the exact decimal?
It depends on the audience. Casual answers such as “about 8 hours” usually round to a whole number; timesheets, invoices, and billing usually need the exact decimal, such as 8.50 hours for 8 hours 30 minutes.
Is 9:00 AM to 5:00 PM the same arithmetic as 09:00 to 17:00?
Yes, once both times are in 24-hour form. Convert 9:00 AM to 09:00 and 5:00 PM to 17:00 first — subtracting 12-hour clock values directly, without converting, is the most common source of wrong answers.