Hours Calculator

Hours Calculator

Enter a start time, an end time and any unpaid break — get total hours worked in HH:MM, total minutes and decimal hours. Overnight shifts are handled automatically.

= Total worked (HH:MM)
08:00
= Total minutes
480
= Decimal hours
8.00

The Hours Calculator tells you exactly how long you worked between two clock times. Enter a start, an end and any unpaid break, and it returns your total in three formats: HH:MM, total minutes, and decimal hours — the same decimal format used by most timesheet and payroll systems.

How it works

Both clock times are converted to total minutes past midnight. The end is subtracted from the start; if the answer is negative the calculator adds 24 hours to correctly measure overnight shifts. Break minutes are then subtracted, the difference is broken back into hours and minutes, and divided by 60 to give decimal hours.

The formulas

  • Start minutes = start_hour × 60 + start_min; same for end.
  • Diff = end − start; if Diff < 0 then Diff = Diff + 1,440.
  • Worked = Diff − break_minutes.
  • Decimal hours = Worked ÷ 60.

Worked examples

Standard day shift

09:00 → 17:30 with a 30-minute break = 8h 00m = 8.00 decimal hours.

Overnight shift

22:00 → 06:30, 45-minute break. Raw = 6:30 − 22:00 = −15:30 → +24h = 8h 30m − 0h 45m = 7h 45m (7.75h).

Split freelance session

14:15 → 18:50, no break = 4h 35m = 4.58 decimal hours.

Who uses this calculator

  • Hourly employees checking their weekly hours before signing a timesheet.
  • Freelancers and consultants billing clients in decimal hours.
  • Managers building schedules and rota rules around overtime thresholds.
  • Nurses, drivers and factory workers running overnight and rotating shifts.

Tips and common mistakes

  • Enter clock times in 24-hour format (17:30 not 5:30 PM) to avoid AM/PM confusion.
  • Unpaid breaks are subtracted; short paid breaks should stay in.
  • Round only for payroll — keep the raw minutes for your own record.
  • 4h 30m equals 4.50 decimal hours, not 4.30. Multiply the minutes by 1/60.

Frequently asked questions

What does the Hours Calculator do?+
It finds the number of hours and minutes between a start time and an end time — perfect for shift-workers, freelancers and payroll.
How does it handle shifts that cross midnight?+
If the end time is earlier than the start time, the calculator automatically adds 24 hours so an overnight shift is measured correctly.
Can I subtract breaks?+
Yes. Enter the total unpaid break minutes and the result excludes them.
Does it return decimal hours?+
Yes. The result is shown in HH:MM plus total minutes and decimal hours, which is what most timesheet software expects.
Is this the same as the Time Calculator?+
No. This works on clock times (09:15 to 17:40). The Time Calculator adds or subtracts durations like 2:30:00 and 1:45:30.