Time calculator

Hours calculator: time between two times

Answer

8 hours 0 minutes

Example: 9:00 AM to 5:30 PM with a 30-minute break.

From 9:00 AM to 5:30 PM is 8 hours 30 minutes; minus a 30-minute break it is 8 hours (8.00 decimal hours). If the end time is earlier than the start time, the shift is treated as crossing midnight.

Decimal hours
8.00
Minutes
480

How it’s calculated

  1. Convert both times to minutes after midnight: 9:00 = 540, 17:30 = 1,050.
  2. Subtract: 1,050 − 540 = 510 minutes. If negative, add 1,440 (overnight shift).
  3. Subtract the break: 510 − 30 = 480 minutes = 8 hours = 8.00 decimal hours.

Minutes to decimal hours

MinutesDecimal hours
60.10
150.25
200.33
300.50
400.67
450.75
500.83

Timesheets and payroll

Payroll systems usually need decimal hours: divide the minutes by 60. 7 hours 45 minutes is 7.75 hours, so at $20 an hour that is $155. Rounding rules (for example, to the nearest 15 minutes) depend on your employer and local labor law.

Frequently asked questions

How do I calculate hours worked?

Subtract the start time from the end time, then subtract unpaid breaks. Convert minutes to decimal hours by dividing by 60.

How do I handle a shift past midnight?

Add 24 hours to the end time before subtracting. 10 PM to 6 AM is 8 hours.