TIME TOOL
Work Hours Calculator
A work hours calculator totals a shift from clock-in and clock-out times, subtracts an unpaid break, and reports hours worked in hours and minutes and as a decimal for timesheets. Overnight shifts that pass midnight are handled automatically.
Every timesheet starts with the same three numbers: when the shift started, when it ended, and how long the unpaid break was. From those three, the hours actually worked fall out — but only if the arithmetic survives lunch breaks, shifts that cross midnight, and the decimal format payroll systems expect.
Enter the clock-in time, the clock-out time, and the break length. The calculator returns the net hours in hours and minutes for people and in decimal form for spreadsheets, and it tells you whether the shift ran overnight.
How to Use the Work Hours Calculator
- Enter the clock-in time (for example 09:00).
- Enter the clock-out time (for example 17:00).
- Enter the unpaid break in minutes — use 0 when the break is paid.
- Select "Calculate result".
- Read the net hours worked on the first line and the decimal figure in brackets.
- The second line shows the gross shift length, the break deducted, and whether the shift ran overnight.
What Is a Work Hours Calculator?
A work hours calculator converts clock-in and clock-out times into hours actually worked. It answers the question every hourly worker, freelancer, and manager asks at the end of a shift: how many hours do I put on the timesheet? The answer is the shift length minus any unpaid break, expressed both as hours and minutes and as a decimal number.
It is deliberately narrower than a full payroll system. No hourly rates, no overtime thresholds, no tax — just the time arithmetic, done correctly, so the number you carry into those other calculations is right.
The Work Hours Formula
The whole calculation is one line:
Hours worked = (clock out − clock in) − unpaid break
Subtract the clock-in time from the clock-out time to get the gross shift length, then take off the break. If the clock-out is earlier than the clock-in, the shift crossed midnight: add 24 hours before subtracting, which is exactly what the calculator does.
| Clock in | Clock out | Break | Gross | Worked |
|---|---|---|---|---|
| 09:00 | 17:00 | 0 min | 8h 00m | 8h 00m (8.00) |
| 09:00 | 17:00 | 30 min | 8h 00m | 7h 30m (7.50) |
| 08:30 | 17:45 | 45 min | 9h 15m | 8h 30m (8.50) |
| 22:00 | 06:00 | 0 min | 8h 00m | 8h 00m (8.00) overnight |
How to Calculate Work Hours by Hand
- Write both times in 24-hour format (5:30 PM becomes 17:30).
- Subtract the clock-in time from the clock-out time, borrowing 60 minutes if the minutes would go negative.
- If the result is negative, the shift crossed midnight — add 24 hours.
- Subtract the unpaid break in minutes.
- Convert to decimal by dividing the minutes by 60 for timesheet entry.
The manual version fails most often at step 3 — a 22:00 to 06:00 shift looks like minus 16 hours until you remember it runs into the next day — and at step 4, when a lunch break is remembered after the timesheet is filled in.
Work Hours Examples
| Scenario | Inputs | Result |
|---|---|---|
| Standard 9-to-5, unpaid lunch | 09:00–17:00, 30 min break | 7 hours 30 minutes (7.50) |
| 9-to-5, paid break | 09:00–17:00, 0 min break | 8 hours 0 minutes (8.00) |
| Early finish with long break | 08:30–17:45, 45 min break | 8 hours 30 minutes (8.50) |
| Night shift across midnight | 22:00–06:00, 0 min break | 8 hours 0 minutes (8.00) |
| Short evening block | 19:25–19:45, 0 min break | 0 hours 20 minutes (0.33) |
The 9-to-5 comparison is the one people meet most often: without a break the shift is a clean 8 hours; with a 30-minute unpaid lunch it is 7.50 — the difference between an 8-hour and a 7.5-hour timesheet entry from the same clock times.
Note: The calculator rejects a break that is longer than the shift and times where the clock-in equals the clock-out, because both cases usually mean a mistyped time rather than a real schedule.
Overnight Shifts
When the clock-out time is numerically earlier than the clock-in time, the shift belongs to the next day: 22:00 to 06:00 is a standard 8-hour night shift, not a negative duration. The calculator adds the missing 24 hours automatically and flags the result as overnight.
A midnight crossing also changes the date on a timesheet. If your records include dates as well as times, remember that a shift started on Friday at 22:00 and ended on Saturday at 06:00 belongs to Friday's shift for reporting purposes, even though the clock-out fell on Saturday.
Decimal Hours for Timesheets
Spreadsheets and payroll systems usually want decimal hours rather than hours and minutes: 7 hours 30 minutes becomes 7.50, 8 hours 30 minutes becomes 8.50, and 20 minutes becomes 0.33. The conversion is minutes ÷ 60 — 30 ÷ 60 = 0.5, 45 ÷ 60 = 0.75.
Decimal hours add cleanly, which is why they are the payroll standard: five shifts of 7.50 total 37.50 hours, a figure you can multiply by a rate directly. Rounded to two decimal places, the calculator's decimal figure matches the format most timesheet columns expect.
Paid and Unpaid Breaks
Only subtract breaks that are genuinely unpaid. Many jurisdictions require short rest breaks (typically 5 to 20 minutes) to be paid, while meal breaks of 30 minutes or more are commonly unpaid — but the rules differ by country, state, and contract. Enter the break your employer actually deducts, not the break you technically take.
If every break at your workplace is paid, enter 0 and the calculator returns the full gross shift. The break field exists for the schedules that do deduct, which is where manual timesheets most often go wrong.
Note: DatePilot applies no overtime rules, pay rates, or rounding policies — it reports raw hours only. Your employment contract or local law decides everything beyond that.
Work Hours vs Time Difference
Both tools measure time, with different jobs. The Time Difference Calculator compares two full date-and-time values — useful when the moments sit on different days or weeks — and reports hours and minutes only. The Work Hours Calculator is built for a single shift: clock times, a break deduction, decimal output, and an overnight flag.
If your question includes a break or a decimal figure, this is the right tool. If it spans multiple days and needs no break logic, use time difference; if it spans multiple days of work rather than clock time, count the weekdays with the Working Days Calculator.
Common Work Hours Mistakes
- Forgetting to subtract the unpaid lunch, inflating the timesheet by 30 minutes a day.
- Treating an overnight shift as a negative duration instead of adding 24 hours.
- Rounding 7.5 hours up to 8 on a timesheet that expects exact decimals.
- Subtracting a paid break that payroll does not actually deduct.
- Using clock-time subtraction across two different dates without noting which shift the hours belong to.
Related Tools
Compare two full moments with the Time Difference Calculator, count the weekdays in a date range with the Working Days Calculator, and convert a meeting time across zones with the Time Zone Converter.
Method, checked examples, and limits
Clock-in and clock-out times are converted to minutes. If clock-out is earlier than clock-in, the shift is treated as overnight and 24 hours are added. The unpaid break is then subtracted to give net hours and decimal hours.
Assumptions
- Times are local clock times in 24-hour format.
- An end time earlier than the start time means the shift crosses midnight.
- Break minutes are unpaid and must be shorter than the shift.
Examples you can reproduce
| Input | Result | Why it matters |
|---|---|---|
| 09:00–17:00 with a 30-minute break | 7 hours 30 minutes · 7.50 decimal hours | — |
| 22:00–06:00 with no break | 8 hours 0 minutes · 8.00 decimal hours | Overnight shift. |
| 09:00–09:00 | Error: start and end times are the same. | — |
These examples were produced with the same calculation functions the tool uses. Enter the inputs above to reproduce them.
Known limitations
- Does not apply overtime, shift differentials, or rounding rules.
- Does not know local labour-law break requirements.
- Does not handle multiple breaks in one shift.
Rules and definitions: US Department of Labor — Wage and Hour Division, US Bureau of Labor Statistics — Work schedules glossary
Read the full testing methodology, the editorial standards, or report a problem.
Related Calculators
Related Guides
Frequently Asked Questions
How many hours is a 9-to-5 job?
Eight hours if every minute is paid. With a standard 30-minute unpaid lunch break it is 7 hours 30 minutes (7.50 decimal); with an unpaid 60-minute break it is 7 hours.
What happens if I finish earlier than I started?
The calculator treats it as an overnight shift: it adds 24 hours and reports the true length. A 22:00 to 06:00 shift is 8 hours, flagged as overnight.
What are decimal hours?
Hours expressed as a decimal number of hours: 7 hours 30 minutes = 7.50, 8 hours 15 minutes = 8.25. Divide the minutes by 60 to convert. Timesheets and payroll systems prefer this format because the values add directly.
Why does the calculator reject my times?
It reports an error when the clock-in equals the clock-out (usually a typo) or when the break is as long as or longer than the shift itself. Re-enter the times and calculate again.
Does it calculate overtime or pay?
No. It reports hours worked only — no rates, overtime thresholds, or rounding rules. Apply your contract's rules to the raw hours it returns.