Hours Calculator

Calculate elapsed work time and subtract an unpaid break.

Use the tool

Enter a start time, end time, and unpaid break in minutes. The calculator supports shifts that cross midnight and shows the result as hours and minutes as well as decimal hours.

How the hours calculation works

The calculator converts each clock time to minutes after midnight. When the end time is earlier than the start time, it treats the shift as ending on the following day. It then subtracts the unpaid break and converts the remaining minutes into hours and minutes.

  1. Enter the shift start and end times.
  2. Enter unpaid break minutes, using zero when there is no break.
  3. Calculate to see the net time worked and its decimal-hour equivalent.

Formula

Net minutes = elapsed minutes − unpaid break minutes; decimal hours = net minutes ÷ 60

Worked examples

Example: regular daytime shift

Input
09:00 to 17:30; 30-minute break
Result
8 hours; 8.00 decimal hours

The elapsed time is 8 hours 30 minutes. Subtracting the 30-minute break leaves 8 hours.

Example: overnight shift

Input
22:00 to 06:00; 45-minute break
Result
7 hours 15 minutes; 7.25 hours

The shift crosses midnight and lasts 8 hours before subtracting the 45-minute break.

Frequently asked questions

Can the end time be earlier than the start time?

Yes. The calculator treats an earlier end time as the following day, which supports an overnight shift of less than 24 hours.

Is the unpaid break subtracted?

Yes. Enter the break in minutes and the tool subtracts it from elapsed time. A break equal to or longer than the shift is rejected.

What are decimal hours?

Decimal hours express minutes as a fraction of an hour. For example, 15 minutes is 0.25 hours, so 7 hours 15 minutes is 7.25 hours.

Can I calculate more than one day?

This version supports a single shift of up to 24 hours. For multi-day periods, calculate each shift separately and add the net totals.

Are the times stored?

No. The calculation runs locally in the browser and the entered times are not uploaded or saved by the site.

What if the start and end times are the same?

A start and end time that are exactly the same is rejected rather than assumed to mean a 24-hour shift.

Last updated: