Hours Worked Calculator

Find the hours between two times. Overnight shifts, unpaid breaks and several shifts in one day are all handled.

Time format
Start time, end time and unpaid break for each shift
ShiftStartEndUnpaid break (min)Hours
1
8:00 8.00

An end time earlier than the start time is an overnight shift. Enter only unpaid break minutes.

Hours worked

8:00hours:minutes

8.00 decimal hours

480 minutes in total

8:00 (8.00 h) See results

How to use the hours worked calculator

  1. Choose 12 hour or 24 hour time.
  2. Type a start and an end time. Examples: 9, 9:30, 930, 5:15 pm, 17:15. In 12 hour mode a bare number uses the AM/PM box beside it. The start box defaults to AM and the end box to PM, the usual day shift.
  3. Enter the unpaid break in minutes.
  4. Press Add shift if you worked a second block, such as a split shift or a second job.

The answer updates as you type, in h:mm, in decimal hours and in total minutes.

How it works

Everything is counted in whole minutes since midnight:

worked = ((end − start) mod 1,440) − unpaid break        (never below 0)

The mod 1,440 is what makes overnight shifts work: an end that is earlier than the start has 24 hours added to it. Two special cases:

  • Same start and end is 0 minutes, not 24 hours, with a warning.
  • A break longer than the shift gives 0 minutes, never a negative number, with a warning.

The decimal form is the minutes divided by 60, rounded half up to two places. It is for display, and for entering into payroll systems that ask for decimals. If you want pay, use the time card calculator with an hourly rate: it works out pay from the exact minutes rather than the rounded decimal.

Worked examples

Start End Break Calculation Worked
9:00 AM 5:30 PM 30 min 8:30 − 0:30 8:00 (8.00 h)
10:00 PM 6:00 AM 0 (6:00 + 24:00) − 22:00 8:00 (8.00 h)
11:45 PM 12:15 AM 0 0:15 + 24:00 − 23:45 0:30 (0.50 h)
12:00 AM 8:00 AM 0 8:00 − 0:00 8:00 (8.00 h)
8:00 AM 8:00 AM 0 same time 0:00, with a warning
12:00 PM 12:20 PM 30 min break is longer than the shift 0:00, with a warning

Midnight and noon

12:00 AM is midnight and 12:00 PM is noon. In 24 hour mode midnight is 00:00, and 24:00 is accepted as the end of the day, so 4:00 PM to 24:00 is 8 hours. A bare 12 in the start or end box is read as noon, because that is how lunch times are usually written. Type 12 am for midnight.

Limits

  • A single shift cannot be 24 hours or longer.
  • Daylight saving time is not modelled. A 10:00 PM to 6:00 AM shift on the night the clocks change is an hour different in real life. Adjust by hand.
  • This tool measures time, not pay. Overtime depends on the whole workweek, so use the overtime calculator or the time card calculator for that.

See how to calculate hours worked for the step-by-step method, and overnight shifts on a time card.

Frequently asked questions

How do I calculate hours between two times?

Subtract the start from the end, counting from midnight if needed. 9:00 AM to 5:30 PM is 8 hours 30 minutes. Take off any unpaid break: with a 30 minute lunch that leaves 8 hours.

How do I calculate hours worked overnight?

If the end time is earlier than the start time, the shift crosses midnight. Add 24 hours to the end before subtracting. 10:00 PM to 6:00 AM is 6:00 + 24:00 − 22:00 = 8 hours. The calculator does this for you.

Why does the same start and end time give 0 hours?

A shift from 8:00 AM to 8:00 AM could be 0 hours or 24 hours, and 0 is almost always what was meant. The calculator uses 0 and shows a warning. If you worked an overnight shift, check the end time.

How do I turn the result into decimal hours?

Divide the minutes by 60. 8 hours 20 minutes is 8.33 hours. The result card shows h:mm, decimal hours and the total in minutes together.

Can I add up several shifts in one day?

Yes. Press Add shift for a split shift or for several jobs. Each row has its own start, end and unpaid break, and the total adds the minutes from all of them.

Should the break be paid or unpaid?

Enter only unpaid minutes. Short rest breaks of 5 to 20 minutes are normally paid work time under US federal rules (29 CFR 785.18), so they stay inside the shift. Meal periods of 30 minutes or more where the employee is fully relieved of duty are normally unpaid (29 CFR 785.19).