Hours Worked Calculator
The hours worked calculator subtracts your break time from the time between clock-in and clock-out (including overnight shifts) to give your exact hours and minutes worked.
verified_userReviewed by the Calculopedia editorial teamLast updated 2026-08-15
Embed on your site
Embed this calculator on your site:
<iframe src="https://calculopedia.darzh.xyz/embed/hours-worked-calculator/" width="100%" height="700" style="border:0;border-radius:12px" loading="lazy"></iframe>
quizExample
How this calculator works, with real numbers (no JavaScript needed):
Inputs
- Clock in
- 09:00
- Clock out
- 17:00
- Ends next day
- false
- Break time
- 30
Results
- Hours worked
- 7.5
- Total minutes
- 450
- Timecard entry
- 7 hours 30 minutes
- Shift length
- 8
- Break time
- 0.5
functionsThe formula
Calculating hours worked is the difference between your clock-out and clock-in times, minus any unpaid break. It sounds trivial, but real shifts are full of subtle cases — overnight crossings, unpaid lunch, and the need to present the result as a decimal for payroll. This calculator handles the fiddly parts for you.
The simple case
Clock in at 09:00, out at 17:00, no overnight:
17:00 − 09:00 = 8 hours
Minus a 30-minute break = 7 hours 30 minutes (7.5 hours)
Overnight shifts
If you clock in at 23:00 and out at 07:00, the shift crosses midnight, so the raw subtraction 07:00 − 23:00 would be negative. The calculator adds 24 hours to bring the end time past the start:
07:00 + 24:00 = 31:00
31:00 − 23:00 = 8 hours (before breaks)
Simply toggle the "ends next day" option and the math works itself out — exactly the kind of case people get wrong with a pen and paper.
Gross, break and net hours
The tool separates the three numbers clearly:
- Gross (shift length) — the total between clock-in and clock-out, regardless of breaks
- Break time — whatever you subtract, up to the minutes you set
- Net hours worked — the figure that actually gets paid, after subtracting the break
Tips for accurate time tracking
- Track the exact minute — round only at the very end, not at each clock in or out. Rounding every entry introduces drift across a week or month.
- Lunch breaks matter — a 30- or 60-minute unpaid meal break usually does not count as work time, while short paid breaks often do. Confirm what your employment agreement says, then subtract accordingly.
- Decimal for payroll — most payroll, timesheet and billing systems record 7.5 hours, not "7 hours 30 min." To convert manually, divide the minutes by 60 (30 ÷ 60 = 0.5). The calculator gives you the decimal and the plain-language text side by side.
- Weekly usage — use this tool per shift, then sum the daily totals. For a full week with overtime at 1.5x, feed the weekly net hours into a timesheet or overtime calculator on top of this per-shift figure.
- Multiple shifts in a day — if someone splits a day across two shifts (a morning stint and an evening stint), calculate each one separately and add the net hours.
Uses
- Employee timesheets and payroll — converting shifts into billable or payable hours
- Freelance and contract invoicing — turning logged time into decimal hours for a client
- Shift planning — checking whether rosters meet daily or weekly hour targets
- Self-auditing — verifying an employer's or software's hour totals before sign-off
Historical note
The modern sense of "work hours" took shape during the Industrial Revolution, when factory clocks and punch cards made exact, minute-level attendance a necessity; today the decimal-hour and payroll conventions of that era still govern how paid time is recorded.
helpFrequently asked questions
question_markHow do I calculate hours worked?
Subtract your clock-in time from your clock-out time (adding 24 hours for overnight shifts), then subtract your break time. The calculator does this instantly.
question_markHow do I calculate hours worked overnight?
For a shift crossing midnight (e.g. 23:00 to 07:00), add 24 hours to the clock-out time before subtracting: 31:00 − 23:00 = 8 hours. Toggle "ends next day" in the calculator.
question_markDoes break time count as hours worked?
Short paid breaks usually count; longer unpaid meal breaks typically do not. Check your employment agreement — this calculator lets you subtract whatever break time applies.
question_markHow do I convert hours worked to decimals for payroll?
Divide minutes by 60. For example, 7 hours 30 minutes = 7.5 hours, and 8 hours 15 minutes = 8.25 hours. The calculator shows both formats.