Advertisement
100% x 90

Hours between Two Times Calculator

Calculate the duration between any two times with precision down to seconds

Calculate Hours Between Times

Start Time

Start Time: 09:00

End Time

End Time: 17:00

Time Duration

8.00
Total Hours
Decimal format
8h 0m
Duration Breakdown
Hours, minutes
480
Total Minutes
28800
Total Seconds
0.333
Days

Calculation Method: End time - Start time

Formula: Convert to seconds, subtract, then convert back to hours/minutes/seconds

Times (24h format): 09:0017:00

Example Calculations

Standard Work Day: 9:00 AM to 5:00 PM

Start Time: 09:00 (9:00 AM)

End Time: 17:00 (5:00 PM)

Calculation: 17:00 - 09:00 = 8 hours

Result: 8 hours exactly

Night Shift: 10:30 PM to 6:15 AM

Start Time: 22:30 (10:30 PM)

End Time: 06:15 (6:15 AM next day)

Calculation: (24:00 - 22:30) + 06:15 = 1:30 + 6:15 = 7:45

Result: 7 hours and 45 minutes

Advertisement
100% x 250

Quick Presets

Time Conversion Guide

1 hour60 minutes
1 minute60 seconds
0.5 hours30 minutes
0.25 hours15 minutes
8.5 hours8h 30m

Tip: To convert decimal hours to minutes, multiply the decimal part by 60.

How to Calculate Hours Between Two Times

Step-by-Step Method

  1. 1.Convert both times to 24-hour format if using 12-hour format
  2. 2.Convert each time to total seconds: hours × 3600 + minutes × 60 + seconds
  3. 3.Subtract start time from end time in seconds
  4. 4.If result is negative, add 24 hours (86,400 seconds) for next-day calculation
  5. 5.Convert result back to hours, minutes, and seconds

Common Use Cases

  • Work shift duration and overtime calculation
  • Meeting and event duration planning
  • Travel time and schedule coordination
  • Timesheet and payroll calculations

Calculation Examples

Example 1: Same Day

Start: 9:00 AM (09:00) = 9 × 3600 = 32,400 seconds

End: 5:00 PM (17:00) = 17 × 3600 = 61,200 seconds

Difference: 61,200 - 32,400 = 28,800 seconds

Result: 28,800 ÷ 3600 = 8 hours

Example 2: Overnight

Start: 10:30 PM (22:30) = 81,000 seconds

End: 6:15 AM (06:15) = 22,500 seconds

Difference: 22,500 - 81,000 = -58,500 seconds

Add 24h: -58,500 + 86,400 = 27,900 seconds

Result: 27,900 ÷ 3600 = 7.75 hours (7h 45m)

Note: When the end time appears earlier than the start time, the calculator assumes the end time is on the following day.

Time Format Conversions

12-Hour to 24-Hour

  • • 12:00 AM = 00:00 (midnight)
  • • 1:00 AM = 01:00
  • • 12:00 PM = 12:00 (noon)
  • • 1:00 PM = 13:00
  • • 11:59 PM = 23:59

Decimal Hours

  • • 8.5 hours = 8 hours 30 minutes
  • • 7.75 hours = 7 hours 45 minutes
  • • 0.25 hours = 15 minutes
  • • 0.5 hours = 30 minutes
  • • 1.333 hours ≈ 1 hour 20 minutes
Advertisement
100% x 250