Total hours between start and end time, minus breaks.
by Calcuatany.com
An hours worked calculator returns the hours in one shift, breaks subtracted, in two formats: hours and minutes, and decimal hours. Both times are converted to minutes past midnight and subtracted, then the break is removed. If the end time is earlier than the start time, the calculator adds 1,440 minutes, treating the shift as crossing midnight into the next day. If the break is longer than the shift itself, it returns an error rather than a negative total. The break field accepts 0 to 1,440 minutes.
Time arithmetic can be deceptively tricky when a shift crosses midnight or when breaks are recorded separately. This calculator handles both of those common issues. If the End time is earlier than the Start time, it assumes the shift rolled overnight into the next day. It then subtracts Break (minutes) and shows both a clock-style answer and decimal hours.
How to use the Hours Worked Calculator
- Enter the clock-in time in Start time using the 24-hour field. For example, 08:30 means half past eight in the morning and 22:15 means quarter past ten at night.
- Enter the clock-out time in End time. If this time is earlier than the start, the calculator treats the shift as passing midnight into the next day.
- Enter your nonworking time in Break (minutes). This value is subtracted after the gross shift duration is found.
- Read Hours worked for the hours-and-minutes version of the answer, then check Decimal hours if you need a format that fits payroll systems or billing sheets.
- Use Share to copy a link with the same shift values, Save to keep a result in local browser history, or Reset to restore the default workday.
Formula
Hours = end − start − break
Example: an overnight shift with a break
Suppose Start time is 22:15, End time is 06:45, and Break (minutes) is 30. With those exact inputs, the calculator returns Hours worked 8h 0m and Decimal hours 8.
The gross span from 22:15 to midnight is 1 hour 45 minutes, and from midnight to 06:45 is another 6 hours 45 minutes. Together that is 8 hours 30 minutes, or 510 minutes. Subtract the 30-minute break and the net becomes 480 minutes. Converting 480 minutes back gives 8 hours 0 minutes, which is also 8.00 decimal hours.
How to interpret the result
Hours worked is easiest to read when you think in clock time, while Decimal hours is usually better for payroll and billing systems because quarter hours, tenths, or hundredths are easier to total in tables.
An overnight result does not mean the calculator guessed the date. It simply follows the practical rule that an End time earlier than Start time belongs to the next day.
If the answer seems too low, check whether the break was entered in minutes rather than hours. A value of 60 means one hour, not one minute.
Next, you may also find these useful: Age Calculator, Date Difference Calculator, Date Add / Subtract.
Assumptions and limitations
- The calculator handles one continuous shift with one total break value. It does not manage multiple punch pairs, split shifts, meal premiums, or overtime rules.
- If End time is earlier than Start time, the tool assumes the shift crossed midnight once. It does not support multi-day spans longer than 24 hours with dates attached.
- Break subtraction happens after the gross difference is found. If the break exceeds the shift length, the calculator returns an error because negative worked time would not make sense.
- The result is arithmetic only. Rounding rules for payroll, legal rest periods, and paid versus unpaid breaks depend on your employer or jurisdiction.
Frequently asked questions
Can it handle overnight shifts?
Yes. If End time is earlier than Start time, the calculator rolls the end past midnight automatically. That covers many common night shifts without needing a separate date field.
Why is the break entered in minutes?
Minutes make short unpaid periods easier to enter precisely. A 30-minute lunch, 15-minute break, or 45-minute pause can all be entered directly without converting from fractional hours.
What if I took two breaks?
Add them together and enter the total number of break minutes. If you need a detailed punch-by-punch record, a dedicated timesheet tool is a better fit.
What is the difference between 8h 0m and decimal 8?
They describe the same net duration in two formats. The first is clock style, and the second is numerical style for calculations, spreadsheets, or billing summaries.
Can I use this for pay calculations?
It is a good first check for hours, but pay depends on rates, overtime, rounding policies, and labor rules. Use your official payroll process for anything that must be exact and auditable.
Why did I get a break exceeds shift error?
That message appears when the entered break is longer than the total time between Start time and End time after any overnight roll. Reduce the break value or confirm the shift times were entered correctly.
Sources and further reading
Last reviewed: 2026-10-02. See our editorial policy.
Related calculators
For informational purposes only. Full disclaimer