How to Calculate Hours Worked

Build a weekly timesheet with clock-in and clock-out times, unpaid breaks, decimal hours, overtime math, and clear pay estimates.

By CalcWell Team · ·

To calculate hours worked, subtract the start time from the end time, then subtract any unpaid break. Convert the leftover minutes to a decimal by dividing by 60, so 8 hours and 15 minutes becomes 8.25. For a shift that crosses midnight, add 24 hours to the end time before subtracting. Multiply the decimal hours by the hourly rate to get pay. This guide walks through each step with real numbers, covers weekly overtime, and ends with a full timesheet. To skip the arithmetic, use the hours calculator.

The basic formula

hours worked = (end time − start time) − unpaid break

Work in 24-hour time if it helps: 5:00 PM is 17:00. Subtract hours from hours and minutes from minutes, and borrow 60 minutes when the end minutes are smaller than the start minutes. Only unpaid breaks come out. A paid 10-minute rest break stays in the total, while a 30-minute unpaid meal period does not.

Worked example 1: a normal day with a break

You clock in at 8:47 AM and out at 5:23 PM, with a 30-minute unpaid lunch.

  1. Convert to 24-hour time: 8:47 and 17:23.
  2. Subtract: 17:23 − 8:47. Minutes: 23 is less than 47, so borrow an hour: 83 − 47 = 36 minutes, and hours are 16 − 8 = 8. Elapsed time is 8 hours 36 minutes.
  3. Subtract the break: 8h 36m − 0h 30m = 8 hours 6 minutes.
  4. Convert to decimal: 6 ÷ 60 = 0.1, so the total is 8.10 hours.
  5. Pay at $18 an hour: 8.10 × 18 = $145.80.

Converting minutes to decimal hours

Payroll systems use decimal hours, and the most common error is writing 8 hours 15 minutes as 8.15. Fifteen minutes is a quarter of an hour, so the correct figure is 8.25. Divide the minutes by 60.

MinutesDecimal hoursMinutesDecimal hours
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

Values like 0.33 and 0.67 are rounded, since 20 ÷ 60 repeats forever. For exact payroll, keep extra decimals until the final total.

Worked example 2: a shift that crosses midnight

A night shift runs from 10:00 PM to 6:30 AM with a 30-minute unpaid break. Subtracting 22:00 from 6:30 gives a negative number, which signals that the shift ended the next day.

  1. Add 24 hours to the end time: 6:30 becomes 30:30.
  2. Subtract: 30:30 − 22:00 = 8 hours 30 minutes.
  3. Check by pieces: 10:00 PM to midnight is 2 hours, and midnight to 6:30 AM is 6.5 hours, for 8.5 hours.
  4. Subtract the break: 8.5 − 0.5 = 8.0 hours.

If the shift spans a daylight saving time change, the real elapsed time can be an hour longer or shorter than the clock difference. In the US, the clocks move on a Sunday morning in March and November. Use the actual punch times to settle it. For time across locations, the time zone converter helps.

Rounding to quarter hours

Many employers round punches to the nearest quarter hour. The common version is the 7-minute rule: 1 to 7 minutes past a quarter rounds down, and 8 to 14 minutes rounds up. Under federal wage rules, this is acceptable only if it averages out over time and does not consistently favor the employer. For example, 7 hours 25 minutes is 10 minutes past the 7:15 mark, so it rounds up to 7.5 hours. Exact minutes are fairer and just as easy with a calculator. Ask your employer which method they use.

Weekly overtime under US federal law

Under the Fair Labor Standards Act (FLSA), most non-exempt employees must be paid at least 1.5 times their regular rate for hours over 40 in a workweek. The workweek is a fixed period of 168 hours (seven consecutive 24-hour days), and hours cannot be averaged across two weeks. Salaried employees classified as exempt are not covered by the overtime rule, but the exemption depends on job duties and salary level, not just the pay method.

Some states add their own rules. California, for example, also requires overtime for work beyond a set number of hours in a single day, and other states have different thresholds. Where state and federal law differ, the rule that is better for the employee applies. Check your state labor department for the details that apply to you.

The formula is: pay = (regular hours × rate) + (overtime hours × rate × 1.5).

Worked example 3: a full weekly timesheet

A warehouse worker earns $22.00 an hour. The week runs Monday to Saturday, and each day shows start, end, and unpaid break.

DayInOutBreakHours
Mon8:00 AM5:00 PM60 min8.00
Tue7:30 AM4:30 PM30 min8.50
Wed8:00 AM6:15 PM30 min9.75
Thu8:00 AM5:30 PM30 min9.00
Fri8:00 AM6:00 PM45 min9.25
Sat9:00 AM2:00 PM0 min5.00
  1. Monday: 9 hours elapsed − 1 hour = 8.00. Tuesday: 9 − 0.5 = 8.50. Wednesday: 10.25 − 0.5 = 9.75. Thursday: 9.5 − 0.5 = 9.00. Friday: 10 − 0.75 = 9.25. Saturday: 5 − 0 = 5.00.
  2. Weekly total: 8 + 8.5 + 9.75 + 9 + 9.25 + 5 = 49.5 hours.
  3. Overtime hours: 49.5 − 40 = 9.5.
  4. Regular pay: 40 × $22.00 = $880.00.
  5. Overtime rate: 22.00 × 1.5 = $33.00. Overtime pay: 9.5 × 33 = $313.50.
  6. Gross pay: 880.00 + 313.50 = $1,193.50.

This is before taxes and deductions. In a state with daily overtime rules, the same week could produce more overtime hours, so confirm the local rules before relying on a federal calculation. If any bonuses were paid, they may need to be included in the regular rate.

Common mistakes

  • Writing minutes as decimals. 7:45 is 7.75 hours, not 7.45.
  • Forgetting AM and PM. A 12-hour clock error of 12 hours is easy to make at noon and midnight.
  • Skipping the midnight rule. A negative result means the shift crossed midnight, so add 24 hours.
  • Deducting paid breaks. Only unpaid meal periods come out.
  • Averaging across weeks. 50 hours one week and 30 the next is still 10 hours of overtime, not zero.
  • Applying overtime to the daily total only. Under the federal rule, the 40-hour threshold is weekly.

Frequently asked questions

How do I calculate hours between two dates?

If you need whole days, use the date difference calculator, then multiply by the hours per day or add the time-of-day difference.

How many hours is 9 to 5 with a 30-minute lunch?

Nine to five is 8 hours elapsed. Subtract 0.5 for lunch and you get 7.5 hours.

Do I get paid for lunch breaks?

It depends. Under the FLSA, a bona fide meal period of 30 minutes or more where you are fully relieved of duty can be unpaid. If you must work or stay on call, it is generally paid time. State rules on meal breaks vary.

How do I calculate pay for 37.5 hours at $19.40?

Multiply: 37.5 × 19.40 = $727.50.

Let the calculator do it

Enter your start time, end time, and break in the hours calculator to get total hours in both clock and decimal form. Browse more tools in date and time calculators.

References

We use cookies and similar technologies to improve your experience, analyze traffic, and show personalized ads. By clicking "Accept", you consent to the use of cookies. Privacy Policy · Cookie Policy