Article

How to Calculate Hours Worked: Hours Calculator Guide

The time between two clock times is calculated in minutes first and then converted to hours and minutes or to decimal hours. This article explains the method, how to subtract a break, how overnight shifts work, how to turn minutes into a fraction of an hour and works through four examples. Try your own times in the hours calculator. From 8:00 AM to 4:30 PM is 8 hours and 30 minutes, or 8.5 hours.

Last updated:

Overtime pay is covered by the overtime calculator, and the number of days between dates by the date difference calculator.

How to calculate the hours between two times

To find the time between a start time and an end time, convert both to minutes after midnight and subtract the start from the end. The difference in minutes can be written as hours and minutes or divided by 60.

8:00 AM = 480 min, 4:30 PM = 990 min
990 − 480 = 510 min = 8 hours and 30 minutes = 8.5 h

The calculator shows the result in hours and minutes, in decimal hours and in minutes alone. Times are entered on the clock, and the result for add and subtract mode is shown in 12-hour format with AM and PM.

A workday from 8:00 AM to 4:30 PM with a 30-minute break on a 24-hour axisA 24-hour axis from 12:00 AM to 12:00 AM with a work span from 8:00 AM to 4:30 PM and a short block for a 30-minute break. After the break is subtracted, 480 minutes remain, which is 8 hours.0:003:006:009:0012:0015:0018:0021:0024:0030 min break8:00 AM – 4:30 PM, 30 min break = 8 h510 min − 30 min = 480 min
The time between 8:00 AM and 4:30 PM is 510 minutes. The break is subtracted from the total whatever time of day it was taken, so 480 minutes remain.

Try it with an example

Example: work from 7:30 AM to 4:15 PM with a 45-minute break. The times and the length of the break are already stored in the link to the calculator.

Mode
time between two times
From
7:30 AM
To
4:15 PM
Break
45 min
Time worked
8 h 0 min = 8 h

Open the calculator with these numbers

The calculator reads the values from the page address and shows the result right away. You can change them freely.

How the calculator works

The calculator converts both times to minutes after midnight and subtracts the start from the end. When the end time is earlier than the start time it adds 1,440 minutes, and equal times give 0 minutes. The break minutes are subtracted from the result. The answer is shown in hours and minutes, in decimal hours rounded to two places and in minutes. The calculator does not use a date or a time zone.

Breaks and overnight shifts

In the break field you enter the number of minutes to subtract from the result. From 8:00 AM to 4:30 PM with a 30-minute break leaves 8 hours. An empty break field changes nothing. The break cannot be longer than the time between the two clock times.

When the end time is earlier than the start time, the calculator adds 1,440 minutes, which is one day. From 10:00 PM to 6:00 AM the result is 480 minutes, or 8 hours. If both times are the same, the result is 0 minutes, not a full day.

The calculator does not use a date or a time zone, so a daylight saving change does not shorten or lengthen the calculated night.

Decimal hours: turning minutes into a fraction of an hour

Spreadsheets and payroll often need time written as a decimal number. The conversion is minutes divided by 60. The calculator rounds decimal hours to two places.

MinutesFraction of an hourExample
100.177 h 10 min = 7.17 h
150.257 h 15 min = 7.25 h
200.337 h 20 min = 7.33 h
300.57 h 30 min = 7.5 h
450.757 h 45 min = 7.75 h

Pay for time worked is decimal hours multiplied by the rate. For 8.5 hours at $20 an hour the result is $170. Work out an hourly rate from monthly pay in the hourly rate calculator, and earnings from hours in the earnings from hours calculator.

How to total hours worked for a week

The calculator works out one stretch of the clock. For a whole week, calculate each day separately, subtract the break, and then add the results, which is the same method as filling in a time card or timesheet. The table below shows that calculation.

DayFromToBreakTime worked
Monday8:00 AM4:30 PM30 min8 hours (8 h)
Tuesday7:45 AM4:15 PM30 min8 hours (8 h)
Wednesday8:00 AM5:00 PM60 min8 hours (8 h)
Thursday9:00 AM3:30 PM30 min6 hours (6 h)
Friday8:00 AM2:00 PM0 min6 hours (6 h)
Total36 hours (36 h)

The total is 2,160 minutes, which divided by 60 gives 36 hours. For part-time schedules use the employment fraction calculator, and for a monthly overview the working time calculator.

Adding and subtracting hours

In add and subtract mode you enter a start time and a number of hours and minutes. The calculator shows the new clock time. Adding 2 hours and 30 minutes to 2:45 PM gives 5:15 PM, and subtracting 1 hour and 45 minutes from 9:15 AM gives 7:30 AM. If the result falls after midnight, a note under the result tells you how many days it moved.

Text such as 1h 30min 45s is pasted into the duration parser among the IT calculators. Calendar days are shown by the date difference calculator, and dates with times by the time calculator. Count workdays in a range with the business days calculator.

Four worked examples

You can repeat each example in the hours calculator.

1. From 8:00 AM to 4:30 PM

Time between clock times with no break.

  1. Choose time between clock times and enter 8:00 AM and 4:30 PM.
  2. Convert the times to minutes: 480 and 990.
  3. Subtract: 990 − 480 = 510 min.
  4. The result is 8 hours and 30 minutes, or 8.5 h.

2. From 8:00 AM to 4:30 PM with a 30-minute break

A break shortens the time worked.

  1. Enter 8:00 AM, 4:30 PM and a break of 30 minutes.
  2. The time between the clock times is 510 min.
  3. Subtract the break: 510 − 30 = 480 min.
  4. The result is 8 hours, or 8 h.

3. A night shift from 10:00 PM to 6:00 AM

The end time is earlier than the start time.

  1. Enter 10:00 PM and 6:00 AM.
  2. To 6:00 (360 min) the calculator adds 1,440 min and gets 1,800 min.
  3. Subtract 1,320 min.
  4. The result is 8 hours, or 480 minutes.

4. 2:45 PM plus 2 hours and 30 minutes

Add hours and minutes mode.

  1. Choose add mode. Enter 2:45 PM as the start time and 2 hours 30 minutes as the amount to add.
  2. Convert 2:45 PM to 885 min and add 150 min.
  3. You get 1035 min, which is 5:15 PM.
  4. The result is 5:15 PM on the same day.

Common mistakes when calculating hours worked

  • Subtracting hours and minutes like decimals — an hour has 60 minutes, so 16:30 − 8:00 is 8.5 hours, not 8.3.
  • Leaving out the break — subtract an unpaid break from the time between the two clock times.
  • Forgetting overnight work — an end time earlier than the start time means the shift runs into the next day.
  • Converting 7:45 to 7.45 hours — 45 minutes is 0.75 of an hour, so 7:45 is 7.75 hours.
  • Mixing decimal and clock formats when adding — convert everything to minutes or to decimal hours before summing.
  • Treating the result as an attendance record — the calculator works out a clock stretch and does not log working time.
  • Expecting daylight saving to be included — the result does not depend on a date or a time zone.

Frequently asked questions

How do I calculate the hours between two times?

Convert both times to minutes after midnight and subtract the start from the end. From 8:00 AM to 4:30 PM there are 510 minutes, or 8 hours and 30 minutes.

How many hours is 10 PM to 6 AM?

Eight hours, or 480 minutes. The end time is earlier than the start time, so the calculator adds 1,440 minutes to it.

How do I include a break in the hours worked?

Subtract the break in minutes from the time between the clock times. From 8:00 AM to 4:30 PM with a 30-minute break leaves 8 hours.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. For 7 hours and 45 minutes the result is 7.75 hours.

How many hours is a week of 8 AM to 4:30 PM with a 30-minute break?

Each day gives 8 hours, so five days make 40 hours. The calculator works out one day, and you add the results to get the total.

What is 2 hours 30 minutes after 2:45 PM?

It is 5:15 PM on the same day. 2:45 PM is 885 minutes after midnight, and after adding 150 minutes it is 1035 minutes.

How many hours is 8 to 5?

From 8:00 AM to 5:00 PM is 9 hours. With a one-hour lunch that leaves 8 hours worked. The same method gives 9 hours from 7:30 AM to 4:30 PM and 8.5 hours from 9:00 AM to 5:30 PM, before any break.

What if the start and end times are the same?

The result is 0 minutes, not a full day. A full 24 hours can be added in add mode.

Calculate your own hours

Choose a mode in the hours calculator, enter the times and an optional break. The result shows the time in hours and minutes, decimal hours, minutes and a day bar.

After you have the hours, continue with the hourly rate calculator, the overtime calculator or the gross to net salary calculator.