TheToolsBank.com
Calculators & Math

How to Calculate Hours Worked for Payroll

Calculate hours worked for payroll in 4 steps: subtract breaks, convert minutes to decimal hours, total the week and spot overtime. Includes Excel formulas.

Share:
Time Duration Calculator Dashboard

To calculate hours worked, subtract the clock-in time from the clock-out time, take off any unpaid break, then convert the minutes to decimal hours by dividing them by 60. For example, 8:30 AM to 5:15 PM with a 30-minute unpaid lunch is 8 hours 15 minutes, which is 8.25 hours on a timesheet.

That last step is where most payroll mistakes happen. Below is the full method, a weekly example with overtime, and formulas you can paste into Excel or Google Sheets.

How Time Duration Is Calculated
How Time Duration Is Calculated

The 4-step method

  1. Find the time between clock-in and clock-out. 8:30 AM to 5:15 PM is 8 hours 45 minutes. The Time Duration Calculator does this instantly, including overnight shifts.
  2. Subtract unpaid breaks. Take off a 30-minute unpaid lunch: 8 hours 45 minutes becomes 8 hours 15 minutes.
  3. Convert minutes to decimal hours. Divide the minutes by 60: 15 ÷ 60 = 0.25. So 8 hours 15 minutes is 8.25 hours.
  4. Add up the week and check for overtime. Total the daily hours. In the US, non-exempt employees must be paid overtime at 1.5 times their regular rate for hours over 40 in a workweek.

Minutes to decimal hours

MinutesDecimal hoursMinutesDecimal hours
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

The mistake that underpays people

Clock time and decimal time look alike, but they aren't the same. 8 hours 45 minutes is 8.75 hours, not 8.45. Writing 8.45 drops 0.30 hours, which is 18 minutes.

At $20 an hour, that's $6 a day. Over a five-day week it's $30, and over a year it's about $1,560 for a single employee. The error is small on one line, but it adds up quickly.

A full week, worked through

DayInOutUnpaid breakHours (decimal)
Mon8:00 AM4:30 PM30 min8.00
Tue8:15 AM5:00 PM30 min8.25
Wed7:50 AM4:20 PM30 min8.00
Thu8:00 AM6:00 PM30 min9.50
Fri8:00 AM3:00 PM30 min6.50
Total40.25

This employee worked 40.25 hours: 40 regular hours plus 0.25 overtime hours. At $20 an hour, regular pay is $800 and overtime is 0.25 × $30 = $7.50, so the gross pay for the week is $807.50. To check other rates, use the Hourly to Salary Calculator.

Excel and Google Sheets formulas

Put the clock-in time in column B, clock-out in column C and the unpaid break in minutes in column D. Format B and C as time.

What you needFormula (row 2)
Hours worked, in decimal=ROUND((C2-B2)*24 - D2/60, 2)
Hours worked, overnight shifts too=ROUND(MOD(C2-B2,1)*24 - D2/60, 2)
Weekly total (rows 2–6)=SUM(E2:E6)
Overtime hours=MAX(0, E7-40)
Regular hours=MIN(40, E7)
Convert a time like 7:45 to decimal hours (7.75)=A2*24 (then format the cell as Number, not Time)
Hours worked with 4 decimal places =ROUND((C2-B2)*24 - D2/60, 4)

The MOD version matters for night shifts. Without it, a shift from 10:00 PM to 6:00 AM gives a negative number instead of 8 hours.

If Excel shows something like 0.32 instead of 7.75, the cell is still formatted as time. Excel stores times as fractions of a day (7:45 is 0.3229 of 24 hours), so multiply by 24 and format the result as Number

Rounding and breaks: what's allowed

Under US federal rules (the Fair Labor Standards Act), employers can round clock times to the nearest 5, 6 or 15 minutes, as long as the rounding evens out over time and doesn't always favour the employer. Short breaks of about 5 to 20 minutes generally count as paid working time. A real meal break, usually 30 minutes or more where the employee is fully relieved of duties, can be unpaid. Many states have stricter rules, so check yours.

This article explains general US federal rules and isn't legal advice. State and local laws may differ.

Sources to link: US Department of Labor, Fact Sheet #22 "Hours Worked Under the FLSA" · 29 CFR 785.48 (rounding) · 29 CFR 785.18–785.19 (rest and meal periods).

TheToolsBank Editorial Team
Written By

TheToolsBank Editorial Team

Writers and testers of TheToolsBank's free tools

TheToolsBank Editorial Team is the in-house team behind TheToolsBank.com, home to 100+ free browser-based tools for developers, marketers and everyday tasks — calculators, converters, text utilities and more. We write practical, no-fluff guides to help you get the most out of every tool on the site. The byline belongs to the small in-house team that builds and maintains the site. Every guide is written with the matching tool open, so the explanation matches exactly what the tool does, and it is updated whenever the tool changes — a new feature, a corrected formula or a new option. Our calculators, converters and utilities follow standard, publicly documented methods, and when a result depends on an assumption we state it on the tool's page. We don't accept payment to recommend a method, formula or third-party product. If you find an error in a tool or a guide, tell us through the Contact page and we will correct confirmed errors as quickly as we can. The full process is described in our Editorial Standards.

Frequently Asked Questions

Divide the minutes by 60: 40 ÷ 60 = 0.67. So 7 hours 40 minutes is 7.67 hours.

Under US federal law, short breaks of about 5 to 20 minutes are generally counted as hours worked and must be paid. State rules can add more requirements.

Federal rules allow rounding to the nearest 5, 6 or 15 minutes if it averages out fairly over time. If your rounding always shaves time off, it isn't compliant.

If the clock-out time is earlier than the clock-in time, add 24 hours before subtracting. 10:00 PM to 6:00 AM is 8 hours. In a spreadsheet, use the MOD formula above.

Multiply the time by 24 and format the cell as Number. For example, if A2 contains 7:45, =A224 gives 7.75. To subtract an unpaid break in minutes from column D, use =A224 - D2/60.

More Articles & Guides