Hours Calculator
Add up the hours between two times — including overnight shifts and unpaid breaks — then convert to decimal hours and pay with an overtime split.
A 09:00–17:00 shift with a 30-minute break is 7.5 worked hours (7h 30m). An 08:00–19:00 shift with no break is 11 hours — 3 of them overtime.
7.5 hrs
Decimal worked hours for a 9-to-5 shift with a 30-minute break
1.5x
Time-and-a-half premium applied to hours above your daily threshold
Overnight
Shifts that cross midnight are detected and counted automatically
From a pair of clock times to paid hours
Breaks, overnight shifts, and overtime handled so the total is the one you get paid for.
Decimal hours are what get paid
A timesheet that says 7h 30m is 7.5 hours to a payroll system. Converting cleanly avoids rounding disputes and makes invoices and pay match.
Overnight shifts counted correctly
Clock out before you clocked in? The calculator assumes the shift crossed midnight and adds 24 hours once, so night-shift totals stay accurate.
Breaks come out first
Unpaid breaks are subtracted before hours and pay are computed, so the number you see is the time you actually get paid for.
How the Hours Calculator Works
Formula
gross = endTime − startTime
(if end ≤ start, add 24h for an overnight shift)
worked = max(0, gross − unpaid break)
hours = worked ÷ 60 (decimal)
H:MM = floor(worked ÷ 60) : (worked mod 60)
regular = min(hours, overtime threshold)
overtime= max(0, hours − overtime threshold)
pay = regular × rate + overtime × rate × 1.5Enter start and end times
Use 24-hour or your locale's time picker; overnight shifts are detected automatically.
Add any unpaid break
Break minutes are removed from the worked total.
Optionally add an hourly rate
See pay for the shift, with overtime at time-and-a-half.
Set your overtime threshold
Hours above this per day count as overtime (8 by default).
Read decimal and HH:MM
Use decimal hours for payroll and the HH:MM split for your records.
Overtime rules vary by country, state, and contract. The 1.5x premium and daily threshold here are a common default, not legal advice — confirm the rules that apply to you.
This tool covers a single shift. For a full week of separate days and breaks, use the time sheet calculator, which totals multiple entries at once.
Frequently Asked Questions
Related Calculators
Pair this with adjacent time and pay tools.