Home / Articles / How to calculate hours worked

How to Calculate Hours Worked

Subtract your start time from your end time, remove any unpaid break minutes, and divide leftover minutes by 60 to get a decimal. Do that for each day, then add the daily totals for your weekly figure.

Skip the manual subtraction

Enter your clock times and get net hours instantly.

To calculate hours worked, subtract the start time from the end time to get gross hours, deduct any unpaid break time, and convert remaining minutes to a decimal by dividing by 60. For a full week, repeat for each day and sum the results.

The step-by-step formula

Use this sequence for any single shift:

Worked example: a five-day week

DayInOutBreakNet hours
Monday8:0017:0030 min8.50
Tuesday8:1517:0030 min8.25
Wednesday8:0016:3030 min8.00
Thursday8:0017:3030 min9.00
Friday8:0016:0030 min7.50
Total41.25

This employee worked 41.25 hours, so 1.25 hours qualify for overtime if their employer follows the federal 40-hour threshold.

Using 24-hour time prevents mistakes

When you subtract in 12-hour format, a 1:00 PM end time looks like "1", which is smaller than an 8:00 AM start time. Converting to 24-hour notation first (8:00 to 13:00) avoids that error entirely.

Multiply by your hourly rate to get gross pay

Once you have decimal hours, multiply by the regular rate. For 41.25 hours at $18/hr: the first 40 hours = $720, then 1.25 overtime hours at 1.5x ($27/hr) = $33.75. Total gross pay = $753.75. See how to calculate overtime for the full breakdown.

Overnight shifts

If a shift crosses midnight (e.g., 22:00 to 06:00), add 24 hours to the end time: 06:00 + 24 = 30:00. Then subtract: 30:00 minus 22:00 = 8 hours. Most digital time card tools handle this automatically.

Minutes-to-decimal quick reference

The most common source of timesheet errors is misreading minutes as decimal fractions. Use this table when you do not have a calculator handy:

Minutes workedAdd this decimalExample: 8 hrs + X min
5 min0.088.08 hours
10 min0.178.17 hours
15 min0.258.25 hours
20 min0.338.33 hours
25 min0.428.42 hours
30 min0.508.50 hours
45 min0.758.75 hours
50 min0.838.83 hours
55 min0.928.92 hours

Common rounding rules employers use

Some employers round clock-in and clock-out times to the nearest quarter hour (every 15 minutes) rather than tracking exact minutes. Under federal guidance, this practice is acceptable only if the rounding is neutral over time and does not consistently favor the employer. If your employer rounds to the nearest 15 minutes, punch times from :08 to :22 round to :15, times from :23 to :37 round to :30, and so on. Always check your pay stub to verify that rounding has not systematically reduced your pay. This is not legal advice; consult a qualified employment attorney or the Department of Labor for guidance specific to your situation.

What counts as "hours worked" under the law

Under the Fair Labor Standards Act (FLSA), "hours worked" includes all time an employee is required to be on duty or on the employer's premises, and all time the employee is permitted to work whether or not required to do so. This includes time spent at the start of a shift waiting for a machine to warm up, time spent on mandatory training, and short rest breaks of 20 minutes or less. Meal periods of 30 minutes or more where the employee is completely relieved of duties do not count as hours worked. Travel time rules depend on the type of travel. If you have questions about whether specific time counts, the Department of Labor's Wage and Hour Division is the authoritative source, not a summary on a calculator site.

Tracking hours accurately avoids payroll disputes

Keeping precise records protects both employer and employee. Employees should retain their own copies of timesheets or time card printouts each week. If a discrepancy appears on a pay stub, having your own records makes resolving the dispute straightforward. Employers are required by the FLSA to retain payroll records for at least three years. Using a digital time card tool, rather than paper or memory, creates a time-stamped record for both parties. Use the time card calculator to log daily hours, then print or screenshot the weekly summary for your records. See also how to calculate a timesheet with lunch breaks for guidance on properly deducting meal periods.

The 7-minute rule, mapped out

Quarter-hour rounding has a nickname on the shop floor: the 7-minute rule. Seven minutes is the largest amount that rounds down to nothing, so a 8:07 arrival becomes 8:00 while 8:08 becomes 8:15. The full map for any punch looks like this:

Punch minutesRounds toExample
:00 to :07:008:06 becomes 8:00
:08 to :22:158:11 becomes 8:15
:23 to :37:308:29 becomes 8:30
:38 to :52:458:51 becomes 8:45
:53 to :59next :008:56 becomes 9:00

The scheme is legal under 29 CFR 785.48(b), which also permits rounding to the nearest 5 minutes or tenth of an hour, on one condition: over time it has to wash out. Rounding that only ever trims the employee's side, like a system that rounds late arrivals up but early ones down, fails that condition no matter how small each trim is. When you compute hours by hand, work from the actual punches first, then apply your employer's stated rounding rule, in that order. Rounding first and subtracting second produces totals nobody can reconcile later.

From two weekly totals to one biweekly paycheck

Most American paychecks cover two workweeks, and here the single most expensive misunderstanding in timesheet math shows up: the two weeks never merge. Each one is calculated on its own, overtime included, and only the finished dollar amounts get added. Take an employee at $20 an hour who logs 43.5 hours the first week and 36.5 the second. Week one pays 40 regular hours ($800) plus 3.5 overtime hours at $30 ($105), for $905. Week two pays 36.5 straight hours, $730. The paycheck is $1,635. Averaging the two weeks to a tidy 80 hours would pay $1,600 and quietly delete the overtime premium, which is exactly why the FLSA forbids doing it that way. If your employer's pay period is semimonthly instead of biweekly, the workweeks still stay intact; a week that straddles two pay periods just gets split across two checks.

Mistakes the formula will not catch for you

The subtraction itself is grade-school math, so nearly every wrong timesheet total comes from what got fed into it. The classic is treating clock times as decimals: 17:15 minus 8:45 done as 17.15 minus 8.45 gives 8.70, and the correct answer is 8.50, because 30 leftover minutes is half an hour, not 30 hundredths.

Two subtler ones involve breaks. Deducting a lunch that the clock already excluded (because you punched out for it) removes the same half hour twice. And deducting a paid 15-minute rest break removes time the law says stays on the clock; short breaks under 20 minutes are compensable and never belong in the deduction column.

Last, the AM/PM trap, which is why every step on this page insists on 24-hour notation. A "6:00" with no meridiem on a handwritten sheet has ended more than one payroll Friday early.

When your total and payroll's total disagree

Recompute yours first, from the raw punches, in minutes. Then check the two usual suspects: a rounding policy you forgot to apply, and an automatic lunch deduction you did not know existed. Those two explain the bulk of small gaps. If a gap survives that check, raise it with payroll in writing, with your day-by-day numbers attached; specific beats indignant every time. Employers must keep payroll records for three years under FLSA recordkeeping rules, so the source data exists to compare against. A discrepancy that repeats in the same direction week after week is the one worth escalating, up to the Department of Labor's Wage and Hour Division if it comes to that.

Log the whole week at once

Daily totals roll up into a weekly figure automatically.

Related reading

Good to know

FAQs

How do I calculate hours worked from a timesheet?

Subtract the start time from the end time in 24-hour format, deduct any unpaid break time, then divide leftover minutes by 60 to get a decimal. Add each day's net hours for the weekly total. For example, 8:00 to 17:30 minus a 30-minute lunch = 9.0 hours.

What is the formula for calculating hours and minutes worked?

The formula is: (End time - Start time) - Unpaid breaks = Gross time. Then convert minutes to a decimal (minutes / 60) and add that to the whole hours. So 8 hours 45 minutes becomes 8 + (45/60) = 8.75 hours.

How do you calculate hours worked between two times?

Convert both times to 24-hour format, subtract the earlier from the later, then handle any minute conversion. If the shift crosses midnight, add 24 to the end time before subtracting. The result in decimal hours is what you multiply by your pay rate.

How do I calculate hours worked per week?

Calculate net hours for each day individually (accounting for breaks), then add all five daily totals. Hours beyond 40 in the week typically qualify as overtime. A time card calculator automates this so you do not have to do the arithmetic by hand.

What is the 7-minute rule for timesheets?

It is the everyday name for quarter-hour rounding. Punches up to 7 minutes past a quarter hour round down, and punches 8 or more minutes past round up, so 8:07 becomes 8:00 while 8:08 becomes 8:15. The name comes from 7 minutes being the most that can round away.

Is rounding hours to the nearest 15 minutes legal?

Yes, under 29 CFR 785.48(b), provided the rounding is neutral over time. Rounding to the nearest 5 minutes or tenth of an hour is also accepted. A policy that consistently rounds against the employee, however small each instance, does not comply.

Do paid rest breaks get subtracted when calculating hours worked?

No. Short breaks of 20 minutes or less are compensable time under the FLSA and stay in your total. Only bona fide meal periods, usually 30 minutes or more with no work duties, come out of the calculation.

How do I calculate hours worked if I forgot my exact clock-out time?

Make a good-faith estimate as close to the day as possible, note on the timesheet that it is an estimate, and tell your supervisor. Pay is owed for hours actually worked even when a punch is missing, so an honest reconstruction beats leaving the day blank.

Jessica Martinez
About the author
Jessica Martinez
Contributing Writer, Business & Finance, Encore Editorial

Before she covered payroll math, Jessica spent six years reading consumer loan files as a credit analyst, work that rewards catching a number that does not add up. That habit shows up here in the small stuff: why 24-hour notation prevents a subtraction error a 12-hour clock invites, and why a timesheet rounded to the nearest quarter hour can quietly favor one side of the ledger over a year.