Hours Calculator

Type a start time, an end time and any unpaid break to see the hours worked, in hours and minutes and as decimal hours for a timesheet.

Type 9, 9:30 am, 5p or 17:30. An end time before the start counts as the next day, so night shifts work too.

Example: Hours worked

8:00

8.00 hours

8 hours, from 9:00 AM to 5:30 PM, minus a 30-minute break.

Decimal hours
8.00
Total minutes
480
Before the break
8:30
Crosses midnight
No

From the faint example times. Type your own to replace them.

Last reviewed:

How to calculate hours between two times

The reliable way is to turn both times into minutes after midnight, subtract, take off any unpaid break, and turn the answer back into hours and minutes. Working in minutes avoids the most common slip, which is subtracting hours and minutes as if they were ordinary decimal numbers.

Hours worked = (end time − start time) − unpaid break
Times are in minutes after midnight: 9:15 AM is 9 × 60 + 15 = 555
If the end time is the smaller number, add 1,440 (24 hours) to it first

Example: 8:45 AM to 5:15 PM with a 30-minute lunch

  1. Start: 8 × 60 + 45 = 525 minutes
  2. End: 5:15 PM is 17:15, so 17 × 60 + 15 = 1,035 minutes
  3. 1,035 − 525 = 510 minutes on site
  4. 510 − 30 = 480 minutes worked
  5. 480 ÷ 60 = 8

8 hours exactly, written as 8:00 or 8.00 hours.

For a check in your head, count whole hours first and then the leftover minutes. From 8:45 to 4:45 is 8 hours, and 4:45 to 5:15 adds another 30 minutes, so 8 hours 30 minutes before the lunch break comes off.

Shifts that cross midnight

On a night shift the end time is a smaller number than the start time, so a plain subtraction gives a negative answer. Adding 24 hours to the end time fixes it, and that's what the calculator does whenever the end comes before the start.

Example: 10:00 PM to 6:30 AM

  1. Start: 22 × 60 = 1,320 minutes
  2. End: 6 × 60 + 30 = 390 minutes
  3. 390 is smaller than 1,320, so add 1,440: 390 + 1,440 = 1,830
  4. 1,830 − 1,320 = 510 minutes

8 hours 30 minutes, or 8.50 hours, before any break.

The 24-hour clock makes overnight sums easier to read, because 22:00 and 06:30 can't be mixed up with morning and evening. A shift longer than a full day can't be described by two clock times alone, so split it into parts and add them with the time calculator.

Converting minutes to decimal hours

Payroll systems and many timesheets want decimal hours rather than hours and minutes. Divide the minutes by 60: 45 minutes is 0.75 hours, so 7 hours 45 minutes is 7.75 hours. The classic mistake is writing 7:45 as 7.45, which loses 18 minutes of pay, because 0.45 hours is only 27 minutes.

MinutesFraction of an hourDecimal hours
51/120.08
61/100.10
101/60.17
121/50.20
151/40.25
201/30.33
301/20.50
402/30.67
453/40.75
505/60.83

To go back the other way, multiply the decimal part by 60. So 6.4 hours is 6 hours and 0.4 × 60 = 24 minutes.

Which breaks to subtract from your hours

Only take off breaks you aren't paid for. Under the US Fair Labor Standards Act, short rest periods of about 20 minutes or less count as hours worked, so a 15-minute coffee break stays in. A bona fide meal period, typically 30 minutes or more with you fully relieved of duty, generally doesn't need to be paid and comes off the total.

Ontario's rules work differently. Employees can't work more than five hours in a row without a 30-minute eating period, meal breaks are unpaid unless the employment contract says otherwise, and meal breaks, paid or not, don't count as hours of work. Other provinces, states and employers have their own rules, so your contract or pay stub is the final word on what's paid.

12 AM, 12 PM and other times that trip people up

NIST, the US national measurement lab, calls 12 a.m. and 12 p.m. ambiguous and suggests avoiding them, since noon is neither before nor after noon. This calculator follows the everyday convention: 12 AM is midnight and 12 PM is noon. To remove any doubt, type noon or midnight, or use the 24-hour clock, where 00:00 starts the day and 24:00 ends it.

  • 9 or 9am is read as 9:00 AM, and 5:30p or 5:30 pm as 5:30 PM.
  • 1730 or 17:30 is 5:30 PM. A leading zero, as in 07:00, means a 24-hour time.
  • A bare end time takes the reading that gives the shorter shift, so 9 to 5 means 9 AM to 5 PM, and 10pm to 6 means 10 PM to 6 AM.
  • After you leave a box, the time is rewritten the way it was read, so you can spot a wrong guess straight away.

For a whole week of shifts with overtime and pay, use the time card calculator. To see what an hourly wage adds up to over a year, try the salary to hourly calculator.

Sources and further reading

How to use it

  1. 1Type the start and end times, like 9am and 5:30pm. An end time earlier than the start counts as the next day.
  2. 2Add an unpaid break in minutes, if there was one.
  3. 3Read the hours in h:mm and in decimal hours, ready for a timesheet.

Questions

How do I work out hours for a night shift?

Type the times as they are, like 10pm and 6:30am. When the end time is earlier than the start, it counts as the next morning, so 10 PM to 6:30 AM is 8 hours 30 minutes.

How do I turn minutes into decimal hours?

Divide the minutes by 60. 15 minutes is 0.25 hours, 30 is 0.5 and 45 is 0.75, so 7 hours 45 minutes is 7.75 hours.

What if I type 9 and 5 without AM or PM?

The calculator picks the reading that gives the shorter shift, so 9 to 5 means 9 AM to 5 PM. It shows how it read each time, and you can add am or pm, or use 24-hour times like 17:00, to be exact.

Also handy: Salary to Hourly Calculator, Online Stopwatch, Countdown Timer to Any Date