Calculating hours worked sounds simple until your shift crosses midnight, your break is 32 minutes instead of 30, or your employer rounds your clock-out to the nearest quarter hour. The formula underneath all of that is the same one payroll clerks have used for decades: end time minus start time minus unpaid breaks. What trips people up is converting the leftover minutes correctly, knowing which breaks can legally be unpaid, and understanding how much your employer is allowed to round your punches before it becomes a wage problem. This guide walks through one full worked example, a night shift that starts before midnight and ends after it, so you can see every step in order.
The basic formula for hours worked
The formula used across nearly every payroll guide is: End time − Start time − Unpaid breaks = Hours worked, with the result converted to a decimal number for pay calculations, as described by Homebase. For a simple day shift this is easy. Clock in at 9:00 AM, clock out at 5:30 PM, subtract a 30-minute unpaid lunch, and you're left with 8 hours. The complications start when your shift doesn't fit neatly inside one calendar day, or when the leftover time isn't a clean half hour.
Converting minutes to decimal hours
Payroll runs on decimals, not on hours and minutes, because decimal hours multiply cleanly against an hourly rate. Fit Small Business publishes a full minute-to-decimal conversion chart; the values you'll use most often are:
| Minutes | Decimal hours |
|---|---|
| 5 | 0.08 |
| 10 | 0.17 |
| 15 | 0.25 |
| 20 | 0.33 |
| 25 | 0.42 |
| 30 | 0.50 |
| 35 | 0.58 |
| 40 | 0.67 |
| 45 | 0.75 |
| 50 | 0.83 |
| 55 | 0.92 |
| 60 | 1.00 |
As an example, OnTheClock points out that 8 hours and 45 minutes of work converts to 8.75 decimal hours, since 45 minutes is three-quarters of an hour. That 0.75 figure is the one worth memorizing, since 45-minute remainders show up constantly on real shifts.
Worked example: a night shift that crosses midnight
Here's a full example built around a shift that actually causes confusion: a night-shift clock-in before midnight and a clock-out after it.
Clock in: 10:50 PM (Monday) Unpaid break: 30 minutes, taken at 2:00–2:30 AM Clock out: 7:05 AM (Tuesday)
- Count the time from clock-in to midnight: 10:50 PM to 12:00 AM = 1 hour 10 minutes.
- Count the time from midnight to clock-out: 12:00 AM to 7:05 AM = 7 hours 5 minutes.
- Add the two segments: 1h10m + 7h5m = 8 hours 15 minutes total on the clock.
- Subtract the 30-minute unpaid break: 8h15m − 30m = 7 hours 45 minutes.
- Convert the remainder to decimal: 45 minutes = 0.75, so the shift equals 7.75 hours.
That 7.75-hour figure is what gets multiplied by the hourly rate for this shift, and it's also the number that feeds into the weekly overtime check further down.
Is your lunch break paid or unpaid?
Federal law doesn't require any employer to offer a meal or rest break at all, and whether a break is paid or unpaid is largely a state-by-state question. Where no state rule applies, federal guidance treats any break under 20 minutes as paid time, and any break over 30 minutes as unpaid, off-the-clock time, according to Workforce.com. A 10-minute coffee break generally stays on the clock; a 30-minute lunch generally doesn't. These rules apply to non-exempt (hourly) employees; exempt salaried employees, who must earn at least $684 per week federally and meet certain duties tests, have breaks at their employer's discretion, per the same source. If your break runs long or short of the scheduled time, check your state's labor department site or ask HR directly, since the 20/30-minute line is only a federal default, not a rule that applies the same way everywhere.
Can your employer round your clock punches?
Yes, but only within narrow limits. Federal regulation 29 C.F.R. §785.48 lets employers round time punches to the nearest 5 minutes, one-tenth of an hour, or quarter hour, but only if the rounding doesn't, over time, result in employees being paid for less than they actually worked, as explained by Workplace Fairness. This is the source of the well-known "7-minute rule": a clock-in at 8:07 or earlier rounds back to 8:00, while 8:08 or later rounds forward to 8:15.
Apply that rule to the night-shift example above. A clock-in of 10:50 PM sits 5 minutes past the 10:45 PM mark, which falls inside the 7-minute window, so it rounds back to 10:45 PM. A clock-out of 7:05 AM sits 5 minutes past 7:00 AM, also inside the window, so it rounds back to 7:00 AM. Run the math again with the rounded times (10:45 PM to 7:00 AM, minus the 30-minute break) and you still land on 7 hours 45 minutes, 7.75 decimal hours. That's what a neutral rounding policy looks like over a single shift: it shifts individual punches slightly without changing the total.
What's illegal is a pattern that rounds clock-ins forward and clock-outs backward on a consistent basis, effectively shaving minutes off both ends of every shift, or rounding that quietly keeps employees just under the 40-hour overtime line week after week. Workplace Fairness notes that employers must be able to produce raw, unrounded punch data to show their rounding evens out over time; if your rounded total is consistently lower than your actual clock times, that's worth raising with your employer or a labor agency.
How to check your hours against overtime
Once you know your hours for the week, compare the total against the overtime threshold. Under the Fair Labor Standards Act (FLSA), covered employees get overtime pay at one and a half times their regular rate for every hour worked over 40 in a workweek, and a workweek is a fixed, recurring 168-hour period that doesn't have to match the calendar week, according to the U.S. Department of Labor. Overtime is calculated workweek by workweek; averaging two weeks together to avoid paying overtime isn't allowed under the FLSA, per the same fact sheet.
The DOL's own example shows how the regular rate gets calculated for a salaried employee: someone on a fixed salary of $405 for a 45-hour workweek has a regular rate of $9.00 an hour ($405 ÷ 45), and is owed 5 overtime hours × $4.50 (half the regular rate, since the salary already covers straight time) = $22.50 in extra pay. The DOL also notes that a flat lump sum, like a flat $180 Sunday bonus regardless of hours worked, doesn't satisfy the overtime premium requirement even if it looks generous, because it isn't tied to actual overtime hours worked.
Working two jobs or two pay rates in one week
If you work different pay rates at two jobs, or at the same job doing different tasks, the FLSA regular rate used for overtime is a weighted average: total earnings from all rates for the week, divided by total hours worked across all of them, per the DOL fact sheet. This matters for gig and multi-job workers especially, since a single pay stub from one employer won't show the full picture.
A quick checklist before you submit your hours
- Record the actual clock-in and clock-out times, not a rounded guess
- Subtract only genuinely unpaid breaks (generally 30 minutes or longer)
- Convert remaining minutes using the decimal chart above, not a rough estimate
- Add up total hours for the full workweek, not just one shift
- Check the weekly total against the 40-hour overtime threshold
- If rates differ across jobs or tasks, calculate the weighted average before applying overtime
- Keep your own raw punch records in case your employer's rounding doesn't match your total
Where Shiftbook fits
Most of the math walked through above, splitting a shift at midnight, subtracting breaks, converting minutes, checking the overtime line, is work a shift worker repeats every week. Shiftbook is an hours and shift tracker for iPhone made by our studio, SZS Labs. According to its app page, it records clock-in and clock-out times with breaks, keeps day, late and night shifts on one calendar, and tracks overtime, tips and pay period totals per job as hours accumulate, then can produce a timesheet to send to an employer. We mention it here because the calculation steps in this guide are exactly what it's built to track automatically, not because it's the only way to do this math; a notebook and the formula above work too.



