Working Hours Between Two Times Calculator

Working Hours Between Two Times Calculator

Growing AI Skill PRO

Enter Calculation

Formula

Net Hours=(End time−Start time)−Break (min)60\text{Net Hours} = \left(\text{End time} - \text{Start time}\right) - \frac{\text{Break (min)}}{60}
Usage stats

Advertisement

Results

Net Working Hours
7.5
hours (7h 30m)
Gross duration 8 hours
Break deducted 0.5 hours

Report an error on this page

What is the Working Hours Between Two Times Calculator?

This tool calculates how many hours you actually worked between a start time and an end time, then subtracts any unpaid break. It is useful for timesheets, payroll, freelancing, and tracking shift length. It correctly handles overnight shifts where the end time falls on the next day.

How to use it

Enter your start time and end time in 24-hour format, then enter the total break in minutes (use 0 if you took no break). The calculator returns the net working hours as a decimal and as hours and minutes, plus the gross duration and the break that was deducted.

The formula explained

Times are converted to seconds since midnight. Gross duration is the difference divided by 3600 to get hours. If the end is before the start, 24 hours are added to account for a shift crossing midnight. The break, given in minutes, is divided by 60 to convert to hours and then subtracted from the gross duration to give net working hours.

$$\text{Net Hours} = \left(\text{End time} - \text{Start time}\right) - \frac{\text{Break (min)}}{60}$$

Advertisement
Timeline showing start time, end time, break block, and resulting net working hours
Net working hours equals total span minus the break period.

Worked example

For a 09:00 to 17:00 shift with a 30-minute break: gross duration = \((17 - 9) = 8\) hours. Break = \(30 \div 60 = 0.5\) hours. Net working hours = \(8 - 0.5 =\) 7.5 hours, or 7h 30m.

$$\text{Net Hours} = \left(17 - 9\right) - \frac{30}{60} = 8 - 0.5 = 7.5\ \text{hours}$$

Diagram of an overnight shift crossing midnight on a 24-hour timeline
Overnight shifts wrap past midnight, adding 24 hours to the end time.

Minutes to Decimal Hours Conversion Table

Timesheets and payroll systems often need hours in decimal form rather than hours and minutes. To convert minutes to decimal hours, divide the minutes by 60:

$$\text{Decimal hours} = \frac{\text{minutes}}{60}$$

Minutes Decimal hours
5 0.083
10 0.167
15 0.25
20 0.333
30 0.5
45 0.75
60 1.0

Values such as 0.083 and 0.333 are rounded to three decimal places; the exact values are repeating decimals.

Example: 7 h 45 m = \(7 + \frac{45}{60} = 7 + 0.75 = 7.75\) hours.

To go the other way, multiply the decimal part by 60: \(0.25 \times 60 = 15\) minutes, so 7.25 h = 7 h 15 m.

Advertisement

Example Shift Scenarios Compared

Net hours = (end − start) − break ÷ 60. When the end time is earlier than the start time, the shift is treated as overnight and runs past midnight into the next day.

Start End Break (min) Gross hours Net hours Net h:m
09:00 17:00 30 8 7.5 7 h 30 m
08:30 16:45 45 8.25 7.5 7 h 30 m
22:00 06:00 60 8 7 7 h 0 m
07:00 19:00 0 12 12 12 h 0 m
18:00 02:30 30 8.5 8 8 h 0 m

Worked check (last row): from 18:00 to 02:30 is 6 h to midnight plus 2.5 h = 8.5 h gross. Then \(8.5 - \frac{30}{60} = 8.5 - 0.5 = 8\) hours net.

Note that the second row shows how different start and end times can give the same net result: \(8.25 - 0.75 = 7.5\) hours.

FAQ

Does it handle night shifts? Yes. If the end time is earlier than the start time (e.g. 22:00 to 06:00), it assumes the shift ends the next day and adds 24 hours.

What if my break is longer than the shift? Net hours cannot be negative, so the result is capped at 0.

Are seconds supported? Input is in hours and minutes only; results are rounded to the nearest minute for the h/m display.

Last updated:

Most popular in Time and Date

View all Time and Date calculators