Clockhund

How to Calculate Hours Worked: Step by Step, From One Shift to a Paycheck

To calculate hours worked, take the end time minus the start time for each shift, subtract any unpaid meal break, convert the minutes to decimal hours, and add the days of each workweek together. A shift from 7:45 AM to 4:20 PM with a 30 minute lunch is 8 hours 5 minutes, or 8.08 hours. For pay, check whether the workweek went over 40 hours, then multiply regular hours by your rate and overtime hours by 1.5 times the rate.

Each of those six steps has one place where people often slip: the shift past midnight, the coffee break taken off by mistake, 8:15 written as 8.15, or a week added up from rounded decimals. Below are the steps in order, then one full week worked from the punches to gross pay, then what federal rules count as hours worked in the first place.

Step 1: Hours for one shift, end minus start

Write both times on the 24 hour clock, then subtract. PM times add 12 hours (4:20 PM is 16:20), AM times stay the same, and 12 AM is 0:00.

16:20 minus 7:45: the minutes of the end time are smaller, so borrow an hour. 16:20 becomes 15:80, and 15:80 minus 7:45 is 8:35 at work.

If the end time is earlier than the start time, the shift crossed midnight. Add 24 hours to the end time first: a shift from 10:00 PM to 6:30 AM is 30:30 minus 22:00, which is 8:30.

The work hours calculator does this for one shift and has a step by step section on hours between two times by hand, with common shift lengths.

Step 2: Subtract only the unpaid meal break

Not every break comes off. Under federal rules:

  • Short breaks stay in. Rest periods of 5 to about 20 minutes, such as coffee or snack breaks, "must be counted as hours worked" (29 CFR 785.18).
  • A real meal break comes off. A bona fide meal period is not work time if you are completely relieved from duty. Ordinarily that is 30 minutes or more (29 CFR 785.19).
  • Lunch at your desk while working stays in. The regulation's own example is an office employee required to eat at the desk: that person is working while eating.

So 8:35 at work with a 30 minute lunch off duty is 8:05 worked. The same shift with two 10 minute coffee breaks and no lunch is 8:35 worked. Whether a lunch break must be given at all depends on the state.

Step 3: Convert the minutes to decimal hours

Payroll multiplies hours by a rate, so hours and minutes have to become decimal hours: divide the minutes by 60.

Hours and minutesMinutes ÷ 60Decimal hours
8:055 ÷ 608.08
8:1515 ÷ 608.25
8:3030 ÷ 608.50
8:4545 ÷ 608.75
4:5050 ÷ 604.83

The classic mistake is writing 8:15 as 8.15. That is 8 hours and 9 minutes, not 8 hours and 15 minutes. At $20 an hour, 8.15 pays $163.00 and 8.25 pays $165.00, so the slip costs $2 on that one day. The hours to decimal converter has a chart for every minute from 1 to 60.

Step 4: Add the days into a workweek, then the pay period

Add each day's hours and minutes first, and convert the total to decimal once, at the end. If you round every day to two decimals and add those, the week can come out 0.01 hours off: in the example below, the daily decimals add up to 46.66 while the week is 46.67 hours.

Group the days by workweek, not by pay period. Under federal rules a workweek is a fixed, recurring period of 168 hours, seven days in a row. It can start on any day and at any hour, and once set it stays fixed (29 CFR 778.105). A biweekly pay period is two workweeks, and each one is counted on its own. The weekly hours calculator adds up a single week, with the hours left to reach 40.

Step 5: Check overtime week by week

Federal law pays time and a half for hours over 40 in a workweek (29 U.S.C. § 207(a)(1)). Weeks cannot be averaged: 30 hours one week and 50 the next means 10 hours of overtime in the second week, even though the two weeks average 40 (29 CFR 778.104).

Some states also count overtime by the day, or have their own thresholds. The guide to overtime laws by state lists them.

Step 6: Multiply by the rate

Regular hours times the hourly rate, plus overtime hours times 1.5 times the rate, is gross pay before taxes and deductions. If you also earn bonuses or commissions, the federal overtime rate is worked out from all pay in the week divided by the hours worked (29 CFR 778.109), so it can be higher than the hourly wage.

Worked example: one full week, from punches to pay

An hourly employee at $20 an hour, workweek starting Monday, with a night shift on Friday and a short paid break on Sunday:

DayInOutUnpaid breakAt workHours workedDecimal
Mon9:00 AM5:30 PM30 min8:308:008.00
Tue7:45 AM4:20 PM30 min8:358:058.08
Wed8:00 AM6:15 PM45 min10:159:309.50
Thuoff
Fri10:00 PM6:30 AM (Sat)30 min8:308:008.00
Sat2:00 PM10:45 PM30 min8:458:158.25
Sun8:00 AM12:50 PMnone (15 min rest break, paid)4:504:504.83
Week2:4546:4046.67

How the week is read:

  • Friday ends on Saturday morning. 6:30 AM plus 24 hours is 30:30, minus 22:00 is 8:30 at work, minus the 30 minute meal break is 8:00. It counts on Friday, the day it started.
  • Sunday had a 15 minute break. That is a rest period, so it stays in the hours and nothing is subtracted.
  • The week is 2,800 minutes, and 2,800 ÷ 60 = 46.67 hours.
  • Overtime: by the end of Friday the week has 33:35. Saturday's first 6:25 reach 40:00, its last 1:50 are overtime, and all of Sunday's 4:50 is overtime: 6:40 of overtime.
HoursRatePay
Regular40:00$20.00$800.00
Overtime (1.5x)6:40$30.00$200.00
Gross pay46:40$1,000.00

6:40 is 400 minutes, and 400 minutes at $30 an hour is $200.00.

The start day of the workweek changes the answer. If the same employer's workweek started on Sunday, this Sunday's 4:50 would belong to the next workweek. The week from Sunday to Saturday would then hold 41:50, with 1:50 of overtime ($55.00 instead of $200.00). That is why the workweek is fixed in advance and may only be moved for good, not to avoid overtime (29 CFR 778.105).

What counts as hours worked under federal law

The steps above assume you know which minutes count. Under the Fair Labor Standards Act, the Department of Labor's rules on hours worked are in 29 CFR part 785, and WHD Fact Sheet #22 gives a short overview. The points that change a time card most often:

  • Work you were allowed to do counts, even if nobody asked for it. Staying after the shift to finish a task or fix errors is work time if the employer knows or has reason to believe it is happening, including work done at home (29 CFR 785.11 and 785.12).
  • Rest breaks of 5 to about 20 minutes count (785.18); bona fide meal periods, usually 30 minutes or more, do not, and you do not need to be allowed to leave the building for the meal to be unpaid (785.19).
  • On call: having to stay on or so close to the premises that you cannot use the time for yourself is work; only having to leave word where you can be reached is not (785.17).
  • Travel: the normal trip from home to work is not work time (785.35). Travel during the workday is a different case; the fact sheet covers it.
  • Rounding: clock times may be rounded to the nearest 5, 6 or 15 minutes only if it averages out over time. The guide to time clock rounding rules has the text of 29 CFR 785.48 and worked weeks.
  • Records: for covered employees, the employer's records include the day and time the workweek begins, the hours worked each workday and the total hours each workweek (29 CFR 516.2(a)). Keeping your own In and Out times lets you compare.

States can set their own rules on breaks, overtime and what counts as work, so check your state's labor department as well.

This is a calculation, not legal advice.

Doing the six steps in the calculator

The time card calculator runs all six steps as you type. Enter In, Out and Break for each day; an Out time earlier than In is marked "Ends the next day" and counted on the day the shift started. The Total shows the hours and minutes and the decimal hours, adding minutes first and converting once.

Under "Overtime, breaks and pay" you set "Workweek starts on", the overtime rule (U.S. federal by default, with presets for California, Alaska, Nevada and Colorado; other states can have their own rules) and an "Hourly rate". The week then splits into Regular and Overtime and shows "Regular pay", "Overtime pay" and "Gross pay". "Round clock times" and "Deduct lunch automatically" are there if your employer uses them. The period can be a Day, a Week, 2 weeks or a Month.

What it does not decide for you:

  • Whether a minute was work. On-call time, travel and work after the shift count only if you enter them. The Break field is for the unpaid meal break only.
  • The overtime rate with bonuses or commissions. It multiplies the hourly rate you enter.
  • Exempt status, taxes and net pay. It shows gross pay only.
  • A night shift across the start of a new workweek. It counts the whole shift on the day it started; check how your employer splits it.

The week stays in this browser, and you can download it as a PDF timesheet or a CSV file. If you do hours for several people, the team plan keeps each person's hours in one account, with a monthly timesheet per person and one payroll CSV.

FAQ

How do I calculate my hours worked in a day?

Subtract your start time from your end time on the 24 hour clock, then subtract the unpaid meal break. 7:45 AM to 4:20 PM is 8:35 at work; with a 30 minute lunch, 8:05 worked, or 8.08 hours.

How do I calculate hours worked for payroll?

Work out each day, add the days of each workweek in hours and minutes, and convert the weekly total to decimal. Split it into regular hours (up to 40 under federal law) and overtime, then multiply each by its rate.

Do I subtract a 15 minute break from my hours?

No, not under federal rules. Rest breaks of 5 to about 20 minutes count as hours worked. Only a meal break during which you are fully off duty, usually 30 minutes or more, is subtracted.

How do I calculate hours worked overnight?

Add 24 hours to the end time before you subtract. 10:00 PM to 6:30 AM is 30:30 minus 22:00, which is 8:30 at work.

Why is 8:15 not 8.15 hours?

Because 15 minutes is a quarter of an hour, 0.25. 8:15 is 8.25 hours; 8.15 hours would be 8 hours 9 minutes.

Can my hours be averaged over two weeks?

Not for federal overtime. Each workweek stands alone, so 30 hours and 50 hours in two weeks means 10 hours of overtime in the second week.

What is the difference between a workweek and a pay period?

The workweek is the fixed seven day period overtime is counted in. The pay period is how often you are paid. A biweekly pay period holds two workweeks, each checked against 40 hours on its own.