How Many Hours Between Two Times?

Last updated: August 2026

The quick answer: To find the duration between two times, subtract the start from the end — 9:00 AM to 5:00 PM is 8 hours. The calculator handles overnight and multi-day durations automatically. Enter your start and end times below.

Use the Time Duration Calculator below — enter your start and end times, then click Calculate to get the duration.

24h
24h
min

How to Calculate the Duration Between Two Times

Convert both clock times to total minutes since midnight, then subtract the start from the end. If the end time is earlier than the start time, the span crosses midnight — add 24 hours (1,440 minutes) to the end time first. For example, from 9:15 AM to 5:45 PM: 9:15 is 555 minutes and 5:45 PM is 1,065 minutes, so the duration is 1,065 − 555 = 510 minutes, or 8 hours and 30 minutes (8.5 decimal hours for payroll).

Work hours example: clock in at 7:30 AM, clock out at 4:30 PM, with a 30-minute unpaid lunch. Duration = 9 hours minus 30 minutes = 8 hours 30 minutes of paid time.

Hours Between Common Times

These are the most searched start/end pairs — the exact durations are pre-calculated for you.

Start – End TimeDuration (h:m)Decimal Hours
6:00 AM – 2:00 PM8:008.0
7:00 AM – 3:00 PM8:008.0
7:30 AM – 4:30 PM9:009.0
8:00 AM – 4:00 PM8:008.0
8:00 AM – 6:00 PM10:0010.0
9:00 AM – 5:00 PM8:008.0
9:00 AM – 5:30 PM8:308.5
10:00 PM – 6:00 AM (overnight)8:008.0
11:00 PM – 7:00 AM (overnight)8:008.0
12:00 AM – 12:00 PM12:0012.0

Decimal Hours for Payroll & Timesheets

Payroll systems record time as decimal hours instead of hours and minutes. Divide minutes by 60 to convert: 30 minutes = 0.5 hours, 15 minutes = 0.25 hours, 45 minutes = 0.75 hours. A shift from 9:15 to 5:45 is 8.5 hours — 510 minutes ÷ 60 = 8.5. Use our overtime pay calculator to turn those hours into earnings.

Frequently Asked Questions

How many hours is 9am to 5pm?
Exactly 8 hours, or 480 minutes, or 28,800 seconds. It is the standard North American workday without breaks.
How do I calculate the duration between two times?
Convert both times to minutes since midnight, subtract the start from the end, then convert back to hours and minutes. If the end time is earlier than the start, add 1,440 minutes (24 hours) first — the span crosses midnight.
How many hours is 7am to 3pm? What about 8am to 6pm?
7:00 AM to 3:00 PM is 8 hours. 8:00 AM to 6:00 PM is 10 hours. See the "Hours Between Common Times" table above for 10 of the most searched pairs.
How do I calculate hours worked?
Subtract the clock-in time from the clock-out time, then subtract any unpaid breaks. For payroll, convert to decimal hours by dividing the total minutes by 60 — a 9:15 to 5:45 shift is 8.5 hours of paid time.
How do I handle times that cross midnight?
If the end time is earlier than the start time, the span crosses midnight — add 24 hours to the end time before subtracting. A 10:00 PM to 6:00 AM shift is 8 hours, never a negative number.
Is 12am noon or midnight?
12:00 AM is midnight (start of the day) and 12:00 PM is noon. Right after 11:59 PM comes 12:00 AM — this is why overnight spans like 10 PM to 6 AM need the 24-hour wrap-around.

Data sources: Time unit definitions per the International System of Units (SI), NIST time and frequency standards, and standard payroll rounding practices.

Free Online Calculators

Duration Quick Facts

  • 9am – 5pm = 8 hours
  • 7am – 3pm = 8 hours
  • 8am – 6pm = 10 hours
  • 10pm – 6am = 8 hours (overnight)
  • 30 minutes = 0.5 decimal hours
  • 9:15 – 5:45 = 8.5 hours