Work Hours Calculator

Calculate how many hours you worked in a day after accounting for breaks.

🧮

Enter your values and click Calculate

Enter your start time, end time (both in 24-hour format as separate hour and minute fields), and any unpaid break duration in minutes. The calculator returns your net hours worked as both a decimal (e.g., 7.75) and in H:MM format (e.g., 7:45) — ideal for timesheets, freelance billing, payroll verification, or checking how long a shift was. Overnight shifts that cross midnight are detected and handled automatically, so night workers and employees on rotating shifts get the correct result without any manual workaround. The decimal output is designed for direct use in billing formulas: multiply it by your hourly rate to get earnings for the shift. The H:MM format suits paper timesheets and payroll systems that require hours and minutes as separate values. Breaks up to 480 minutes (8 hours) are supported, accommodating split shifts with long midday gaps. The gross shift minutes output is also provided so you can verify the total time on the clock before break deductions, which is useful when auditing timesheets or resolving discrepancies between recorded and paid hours.

How It Works

Start and end times are each converted to total minutes since midnight (hour × 60 + minute). The gross shift length is the difference between end and start minutes. If the end time is earlier than or equal to the start time — indicating an overnight shift — 1,440 minutes (24 hours) is added to the end to account for the midnight crossing. Net minutes equals gross shift minutes minus break minutes. Hours worked equals net minutes divided by 60. The H:MM format uses the integer part of that division as whole hours and the remainder modulo 60 as minutes. For example, a 9:00 start, 17:30 end, and 30-minute break gives 510 gross minutes minus 30 = 480 net minutes, which is 8.00 decimal hours displayed as 8:00. The gross shift minutes output shows the raw clock time before break deductions, allowing direct cross-checking against time-clock records.

Examples

09:00 to 17:30 with 30 min break
A standard office working day with a lunch break.
Result: 8 hours worked (7.5 hrs gross shift minus 0.5 hr break).
22:00 to 06:30 with 45 min break
An overnight shift crossing midnight.
Result: 7.75 hours worked (8.5 hrs gross overnight shift minus 45 min break).
07:15 to 13:00 with no break
A half-day or morning-only shift without a break.
Result: 5.75 hours worked.

Frequently Asked Questions

Does this support overnight shifts?
Yes. If your end time is before your start time, the calculator automatically adds 24 hours to account for midnight crossings. For example, a shift from 10 PM to 6 AM is correctly calculated as 8 hours.
How do I enter 9:30 AM in 24-hour format?
Set Start Hour to 9 and Start Minute to 30. For afternoon times, use the 24-hour equivalent: 1:45 PM = hour 13, minute 45. Midnight is hour 0, noon is hour 12.
Can I calculate hours for billing purposes?
Yes, the decimal hours output is ideal for multiplying by an hourly rate. For example, 7.75 hours × $40/hr = $310 in billable earnings. The H:MM format is useful for timesheets that require hours and minutes separately.

Related Calculators