Calculateus

Work Hours Calculator

Calculate total hours worked from clock-in and clock-out times, minus breaks.

Result

Total Hours Worked
8h 0m
Decimal Hours
8
Hours Worked: 480Break: 30Total510
  • Hours Worked - 480
  • Break - 30

About the Work Hours Calculator

Calculating total hours worked from a clock-in and clock-out time, minus a lunch break, is basic but error-prone math that timesheets rely on constantly. Our Work Hours Calculator handles it precisely, with optional pay calculation.

How It Works

The calculator finds the raw duration between clock-in and clock-out times, subtracts your break minutes, and - if you provide an hourly rate - multiplies the resulting decimal hours by that rate to show pay for the shift.

Formula & Methodology

This builds directly on the same time-duration math used elsewhere - clock-in to clock-out is a straightforward duration calculation (with the same midnight-crossing handling for overnight shifts), and subtracting unpaid break minutes narrows that down to actual worked time. Converting the result to decimal hours (like 8.5 instead of 8 hours 30 minutes) is what makes the optional pay calculation a simple multiplication against an hourly rate.

Step-by-Step: Calculating It By Hand

  1. 1Calculate the raw duration between clock-in and clock-out times.
  2. 2Subtract unpaid break minutes from that raw duration.
  3. 3Convert the result to decimal hours for easier pay calculation.
  4. 4If an hourly rate is provided, multiply decimal hours by the rate to find shift pay.

Examples

Standard shift

Clocking in at 9:00 AM and out at 5:30 PM with a 30-minute break gives 8 hours worked exactly.

With pay calculation

That same 8-hour shift at a $20/hour rate calculates to $160 in pay for the shift, shown alongside the hours breakdown.

Advantages

  • Correctly subtracts break time from raw clock-in-to-clock-out duration
  • Optionally calculates pay for the shift when an hourly rate is provided
  • Shows both hours-and-minutes and decimal hours formats
  • Handles shifts that cross midnight correctly

Common Mistakes

  • Forgetting to subtract unpaid break time, overstating actual hours worked
  • Manually converting hours and minutes to decimal format incorrectly for payroll purposes
  • Not accounting for a shift that crosses midnight, which requires special handling
  • Confusing paid and unpaid break time when both exist in the same shift

Edge Cases to Watch For

  • Only unpaid breaks should be subtracted - paid breaks are still compensated time and shouldn't reduce the pay calculation, even though they might be excluded from 'hours worked' for other purposes.
  • A shift crossing midnight needs the same wraparound handling as any overnight time-duration calculation.
  • Overtime pay rates (often 1.5x beyond a threshold) aren't factored into this base hourly calculation and require a separate overtime-specific calculation.
  • Rounding rules for payroll purposes (some employers round to the nearest quarter-hour) can differ from this calculator's precise decimal-hour result.

Common Use Cases

  • Calculating hours worked for a single shift from clock-in/out times
  • Verifying timesheet entries are calculated correctly
  • Estimating pay for a shift when an hourly rate is known
  • General work hour tracking and record-keeping
Written & fact-checked by the Calculateus TeamLast updated August 5, 2026How we verify our formulas

Frequently asked questions

Does this handle overnight shifts that cross midnight?

Yes - if your clock-out time is earlier than clock-in (like 22:00 to 06:00), the calculator automatically treats it as spanning into the next day.

Conclusion

Accurate hours (and break deductions) matter for both employees and employers when it comes to payroll - this removes any manual math error from the equation. Our Weekly Time Card Calculator extends this same logic across a full five-day work week.