Launch offer: 10% off through the end of 2026 with code QRAY10Launch offer: 10% off through the end of 2026 with code QRAY10

Hours calculator: hours worked between two times

Type a start time and an end time, choose AM or PM, and take off any unpaid break. The calculator shows the hours worked in hours and minutes and in decimal hours, for one shift or a whole list of shifts, and handles shifts that run past midnight. It all runs in your browser.

QRAY Team · Last updated:

Clock inClock outUnpaid break (min)HoursDecimal
1
8:008.00
2
0:000.00

Total hours

Hours8:00
Decimal8.00

An end time earlier than the start time is the next day.

Nothing you enter leaves your browser. No sign-up.

How hours worked are calculated

  1. Subtract the start time from the end time. If the shift ends after midnight, the end counts on the next day.
  2. Subtract the unpaid break in minutes.
  3. For decimal hours, divide the minutes by 60 and round to two decimals.
  4. For several shifts, the total adds up the minutes first and rounds once, so it always matches the hours and minutes.

Example

  • 9:15 AM to 5:45 PM is 8 hours 30 minutes.
  • Minus a 30-minute break: 8:00, or 8.00 decimal hours.
  • A second shift, 10:00 PM to 2:15 AM: 4:15, or 4.25. Total: 12:15, or 12.25.

Frequently asked questions

How do I calculate hours worked between two times?

Subtract the start time from the end time, then subtract unpaid breaks. 9:15 AM to 5:45 PM is 8 hours 30 minutes; minus a 30-minute break, 8 hours.

How do I calculate hours for a shift that ends after midnight?

Add 24 hours to the end time before you subtract. 10:00 PM to 6:00 AM is 30:00 minus 22:00, so 8 hours. The calculator does this when the end time is earlier than the start time.

How do I turn hours and minutes into decimal hours?

Divide the minutes by 60 and add them to the hours. 7 hours 45 minutes is 7 + 45/60 = 7.75. The decimal hours converter has a chart for every minute.

Can I add up several shifts?

Yes. Add a row for each shift. The total adds up the minutes first and rounds once, so it matches the sum of the hours and minutes.

How is this different from the time card calculator?

This one adds up shifts. The time card calculator lays out a full workweek by day, splits regular hours from overtime and can print the week or save it as a CSV.

Is anything I enter saved?

No. The calculator runs in your browser; nothing is sent to QRAY and there is no sign-up.

Stop doing the math on every shift

Employees clock in and out on their own phones. QRAY keeps every punch and adds up the hours for the pay period.

Try QRAY free for 14 days. No credit card needed.

info@qray.app