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.

By Reviewed 5 min read

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:00 to 06: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:00 to 06:00 is 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:15 becomes (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

  1. Start 09:15 = 555 minutes. End 17:45 = (17 × 60) + 45 = 1,065 minutes.
  2. 1,065 − 555 = 510 minutes.
  3. 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

8 hours 0 minutes

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

  1. Start 22:00 = 1,320 minutes. End 06:00 = 360 minutes.
  2. 360 − 1,320 = −960 — negative, so this range crosses midnight. Add 1,440: −960 + 1,440 = 480 minutes.
  3. 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 AM and 5:00 PM aren't 9 and 5 in this arithmetic. Convert to 09:00 and 17:00 first.
  • Forgetting the midnight-crossing adjustment and reporting a negative or wildly wrong number.
  • Mixing minutes and decimal hours partway through a calculation — 8:30 is 8 hours 30 minutes, not 8.30 hours. 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.

Open the hours calculator →

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.

Fletcher Langley

Fletcher Langley

Time & Scheduling Specialist · 24hourto12hour.com

Operations and workforce-systems specialist with 14+ years inside shift-based industries and payroll platforms. Fletcher builds and reviews every tool on the site, and writes its guides so the method is always shown, not just the answer. Read his full profile →

Sources & method

  1. This page uses direct clock arithmetic — minutes-since-midnight subtraction, with a 1,440-minute adjustment for ranges that cross midnight. Every worked example was computed by hand and cross-checked against the site's own hours calculator.
  2. Timesheet rounding conventions vary by employer and jurisdiction; this page describes common practice, not a legal requirement — confirm your own payroll's rounding rule before relying on it. Last reviewed August 2026.