Hours calculator

Enter a clock-in and clock-out time, add unpaid breaks, and get hours worked in hours and minutes or decimal hours. Overnight shifts are detected automatically.

Calculate hours worked

Clock in
Accepts 17:30, 5:30 PM, 1730, or 9am.
Clock out
Accepts 17:30, 5:30 PM, 1730, or 9am.
Lunch or other unpaid time. Paid breaks stay in the total.

How this hours calculator works

The calculator converts each time to minutes from midnight, finds the length of the shift, then subtracts unpaid breaks. If clock-out is earlier than clock-in — for example 22:00 to 06:00 — it treats the shift as overnight and adds 24 hours before subtracting breaks. If both times are the same, it counts a 24-hour shift and tells you so.

Example

Clock in at 9:00, clock out at 17:30, and take a 30-minute unpaid lunch. The shift is 8 hours 30 minutes long. After the break, the result is 8 hours 00 minutes, or 8.00 decimal hours.

Overnight shifts

Night work is the case most people get wrong on paper, because 6:00 minus 22:00 looks negative. The reliable method is: minutes from clock-in to midnight, plus minutes from midnight to clock-out, minus unpaid breaks. The calculator does that for you. There is a longer walkthrough, with worked examples, on the overnight shift hours page.

Frequently asked questions

How do I calculate hours worked with a break?

Enter clock-in and clock-out, then enter each unpaid break in minutes. You can add more than one break. The result is the net time worked.

Does this handle overnight shifts?

Yes. When clock-out is earlier than or equal to clock-in, the shift is treated as crossing midnight. A badge marks it as overnight.

What are decimal hours?

Decimal hours are minutes divided by 60. 15 minutes is 0.25, 30 minutes is 0.50, and 8 hours 30 minutes is 8.50. See the decimal hours chart for every minute from 0 to 59.

Is this a payroll or overtime calculator?

No. It only measures time. It does not apply overtime rules, pay rates, tax, or leave policies.

Do you store the times I enter?

The hours calculator runs in your browser and does not send your times to a server. The weekly timesheet can optionally keep a copy in local storage on this device. See the privacy policy.