How to calculate hours between two times
Write both times on the 24-hour clock, then subtract the start from the end. If the end time is earlier than the start, the shift ends on the next day, so add 24 hours first. Take off any unpaid breaks. For decimal hours, divide the minutes by 60 and add them to the whole hours.
hours = end − start
past midnight: hours = end + 24:00 − start
decimal hours = hours + minutes ÷ 60
- 9:00 am to 5:00 pm. On the 24-hour clock, 5:00 pm + 12:00 = 17:00. Then 17:00 − 09:00 = 8:00, so 9:00 am to 5:00 pm is 8 hours.
- 10:30 pm to 6:15 am, less a 30-minute break. The end is on the next day: 06:15 + 24:00 − 22:30 = 7:45. Less the break, 7:45 − 0:30 = 7:15. In decimal hours, 7 + 15 ÷ 60 = 7.25.
- 9:00 am to 4:40 pm. 16:40 − 09:00 = 7:40. In decimal hours that is 7 + 40 ÷ 60 = 7.666 666…, rounded to 7.67.
Hours for common workdays
Hours from each start time between 6:00 am and 11:00 am to every half hour from 1:00 pm to 7:00 pm. Hours are decimal hours, and the last column takes off a 30-minute break. Every entry is a whole number of half hours, so nothing is rounded. When the calculator lands on one of these days, with no break or a 30-minute break, its row is marked.
Starting at 6:00 am Starting at 06:00| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 7:00 | 7.00 | 6.50 |
|---|
| 1:30 pm 13:30 | 7:30 | 7.50 | 7.00 |
|---|
| 2:00 pm 14:00 | 8:00 | 8.00 | 7.50 |
|---|
| 2:30 pm 14:30 | 8:30 | 8.50 | 8.00 |
|---|
| 3:00 pm 15:00 | 9:00 | 9.00 | 8.50 |
|---|
| 3:30 pm 15:30 | 9:30 | 9.50 | 9.00 |
|---|
| 4:00 pm 16:00 | 10:00 | 10.00 | 9.50 |
|---|
| 4:30 pm 16:30 | 10:30 | 10.50 | 10.00 |
|---|
| 5:00 pm 17:00 | 11:00 | 11.00 | 10.50 |
|---|
| 5:30 pm 17:30 | 11:30 | 11.50 | 11.00 |
|---|
| 6:00 pm 18:00 | 12:00 | 12.00 | 11.50 |
|---|
| 6:30 pm 18:30 | 12:30 | 12.50 | 12.00 |
|---|
| 7:00 pm 19:00 | 13:00 | 13.00 | 12.50 |
|---|
Starting at 7:00 am Starting at 07:00| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 6:00 | 6.00 | 5.50 |
|---|
| 1:30 pm 13:30 | 6:30 | 6.50 | 6.00 |
|---|
| 2:00 pm 14:00 | 7:00 | 7.00 | 6.50 |
|---|
| 2:30 pm 14:30 | 7:30 | 7.50 | 7.00 |
|---|
| 3:00 pm 15:00 | 8:00 | 8.00 | 7.50 |
|---|
| 3:30 pm 15:30 | 8:30 | 8.50 | 8.00 |
|---|
| 4:00 pm 16:00 | 9:00 | 9.00 | 8.50 |
|---|
| 4:30 pm 16:30 | 9:30 | 9.50 | 9.00 |
|---|
| 5:00 pm 17:00 | 10:00 | 10.00 | 9.50 |
|---|
| 5:30 pm 17:30 | 10:30 | 10.50 | 10.00 |
|---|
| 6:00 pm 18:00 | 11:00 | 11.00 | 10.50 |
|---|
| 6:30 pm 18:30 | 11:30 | 11.50 | 11.00 |
|---|
| 7:00 pm 19:00 | 12:00 | 12.00 | 11.50 |
|---|
Starting at 7:30 am Starting at 07:30| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 5:30 | 5.50 | 5.00 |
|---|
| 1:30 pm 13:30 | 6:00 | 6.00 | 5.50 |
|---|
| 2:00 pm 14:00 | 6:30 | 6.50 | 6.00 |
|---|
| 2:30 pm 14:30 | 7:00 | 7.00 | 6.50 |
|---|
| 3:00 pm 15:00 | 7:30 | 7.50 | 7.00 |
|---|
| 3:30 pm 15:30 | 8:00 | 8.00 | 7.50 |
|---|
| 4:00 pm 16:00 | 8:30 | 8.50 | 8.00 |
|---|
| 4:30 pm 16:30 | 9:00 | 9.00 | 8.50 |
|---|
| 5:00 pm 17:00 | 9:30 | 9.50 | 9.00 |
|---|
| 5:30 pm 17:30 | 10:00 | 10.00 | 9.50 |
|---|
| 6:00 pm 18:00 | 10:30 | 10.50 | 10.00 |
|---|
| 6:30 pm 18:30 | 11:00 | 11.00 | 10.50 |
|---|
| 7:00 pm 19:00 | 11:30 | 11.50 | 11.00 |
|---|
Starting at 8:00 am Starting at 08:00| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 5:00 | 5.00 | 4.50 |
|---|
| 1:30 pm 13:30 | 5:30 | 5.50 | 5.00 |
|---|
| 2:00 pm 14:00 | 6:00 | 6.00 | 5.50 |
|---|
| 2:30 pm 14:30 | 6:30 | 6.50 | 6.00 |
|---|
| 3:00 pm 15:00 | 7:00 | 7.00 | 6.50 |
|---|
| 3:30 pm 15:30 | 7:30 | 7.50 | 7.00 |
|---|
| 4:00 pm 16:00 | 8:00 | 8.00 | 7.50 |
|---|
| 4:30 pm 16:30 | 8:30 | 8.50 | 8.00 |
|---|
| 5:00 pm 17:00 | 9:00 | 9.00 | 8.50 |
|---|
| 5:30 pm 17:30 | 9:30 | 9.50 | 9.00 |
|---|
| 6:00 pm 18:00 | 10:00 | 10.00 | 9.50 |
|---|
| 6:30 pm 18:30 | 10:30 | 10.50 | 10.00 |
|---|
| 7:00 pm 19:00 | 11:00 | 11.00 | 10.50 |
|---|
Starting at 8:30 am Starting at 08:30| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 4:30 | 4.50 | 4.00 |
|---|
| 1:30 pm 13:30 | 5:00 | 5.00 | 4.50 |
|---|
| 2:00 pm 14:00 | 5:30 | 5.50 | 5.00 |
|---|
| 2:30 pm 14:30 | 6:00 | 6.00 | 5.50 |
|---|
| 3:00 pm 15:00 | 6:30 | 6.50 | 6.00 |
|---|
| 3:30 pm 15:30 | 7:00 | 7.00 | 6.50 |
|---|
| 4:00 pm 16:00 | 7:30 | 7.50 | 7.00 |
|---|
| 4:30 pm 16:30 | 8:00 | 8.00 | 7.50 |
|---|
| 5:00 pm 17:00 | 8:30 | 8.50 | 8.00 |
|---|
| 5:30 pm 17:30 | 9:00 | 9.00 | 8.50 |
|---|
| 6:00 pm 18:00 | 9:30 | 9.50 | 9.00 |
|---|
| 6:30 pm 18:30 | 10:00 | 10.00 | 9.50 |
|---|
| 7:00 pm 19:00 | 10:30 | 10.50 | 10.00 |
|---|
Starting at 9:00 am Starting at 09:00| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 4:00 | 4.00 | 3.50 |
|---|
| 1:30 pm 13:30 | 4:30 | 4.50 | 4.00 |
|---|
| 2:00 pm 14:00 | 5:00 | 5.00 | 4.50 |
|---|
| 2:30 pm 14:30 | 5:30 | 5.50 | 5.00 |
|---|
| 3:00 pm 15:00 | 6:00 | 6.00 | 5.50 |
|---|
| 3:30 pm 15:30 | 6:30 | 6.50 | 6.00 |
|---|
| 4:00 pm 16:00 | 7:00 | 7.00 | 6.50 |
|---|
| 4:30 pm 16:30 | 7:30 | 7.50 | 7.00 |
|---|
| 5:00 pm 17:00 | 8:00 | 8.00 | 7.50 |
|---|
| 5:30 pm 17:30 | 8:30 | 8.50 | 8.00 |
|---|
| 6:00 pm 18:00 | 9:00 | 9.00 | 8.50 |
|---|
| 6:30 pm 18:30 | 9:30 | 9.50 | 9.00 |
|---|
| 7:00 pm 19:00 | 10:00 | 10.00 | 9.50 |
|---|
Starting at 9:30 am Starting at 09:30| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 3:30 | 3.50 | 3.00 |
|---|
| 1:30 pm 13:30 | 4:00 | 4.00 | 3.50 |
|---|
| 2:00 pm 14:00 | 4:30 | 4.50 | 4.00 |
|---|
| 2:30 pm 14:30 | 5:00 | 5.00 | 4.50 |
|---|
| 3:00 pm 15:00 | 5:30 | 5.50 | 5.00 |
|---|
| 3:30 pm 15:30 | 6:00 | 6.00 | 5.50 |
|---|
| 4:00 pm 16:00 | 6:30 | 6.50 | 6.00 |
|---|
| 4:30 pm 16:30 | 7:00 | 7.00 | 6.50 |
|---|
| 5:00 pm 17:00 | 7:30 | 7.50 | 7.00 |
|---|
| 5:30 pm 17:30 | 8:00 | 8.00 | 7.50 |
|---|
| 6:00 pm 18:00 | 8:30 | 8.50 | 8.00 |
|---|
| 6:30 pm 18:30 | 9:00 | 9.00 | 8.50 |
|---|
| 7:00 pm 19:00 | 9:30 | 9.50 | 9.00 |
|---|
Starting at 10:00 am Starting at 10:00| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 3:00 | 3.00 | 2.50 |
|---|
| 1:30 pm 13:30 | 3:30 | 3.50 | 3.00 |
|---|
| 2:00 pm 14:00 | 4:00 | 4.00 | 3.50 |
|---|
| 2:30 pm 14:30 | 4:30 | 4.50 | 4.00 |
|---|
| 3:00 pm 15:00 | 5:00 | 5.00 | 4.50 |
|---|
| 3:30 pm 15:30 | 5:30 | 5.50 | 5.00 |
|---|
| 4:00 pm 16:00 | 6:00 | 6.00 | 5.50 |
|---|
| 4:30 pm 16:30 | 6:30 | 6.50 | 6.00 |
|---|
| 5:00 pm 17:00 | 7:00 | 7.00 | 6.50 |
|---|
| 5:30 pm 17:30 | 7:30 | 7.50 | 7.00 |
|---|
| 6:00 pm 18:00 | 8:00 | 8.00 | 7.50 |
|---|
| 6:30 pm 18:30 | 8:30 | 8.50 | 8.00 |
|---|
| 7:00 pm 19:00 | 9:00 | 9.00 | 8.50 |
|---|
Starting at 10:30 am Starting at 10:30| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 2:30 | 2.50 | 2.00 |
|---|
| 1:30 pm 13:30 | 3:00 | 3.00 | 2.50 |
|---|
| 2:00 pm 14:00 | 3:30 | 3.50 | 3.00 |
|---|
| 2:30 pm 14:30 | 4:00 | 4.00 | 3.50 |
|---|
| 3:00 pm 15:00 | 4:30 | 4.50 | 4.00 |
|---|
| 3:30 pm 15:30 | 5:00 | 5.00 | 4.50 |
|---|
| 4:00 pm 16:00 | 5:30 | 5.50 | 5.00 |
|---|
| 4:30 pm 16:30 | 6:00 | 6.00 | 5.50 |
|---|
| 5:00 pm 17:00 | 6:30 | 6.50 | 6.00 |
|---|
| 5:30 pm 17:30 | 7:00 | 7.00 | 6.50 |
|---|
| 6:00 pm 18:00 | 7:30 | 7.50 | 7.00 |
|---|
| 6:30 pm 18:30 | 8:00 | 8.00 | 7.50 |
|---|
| 7:00 pm 19:00 | 8:30 | 8.50 | 8.00 |
|---|
Starting at 11:00 am Starting at 11:00| End | h:mm | Hours | Less 30 min |
|---|
| 1:00 pm 13:00 | 2:00 | 2.00 | 1.50 |
|---|
| 1:30 pm 13:30 | 2:30 | 2.50 | 2.00 |
|---|
| 2:00 pm 14:00 | 3:00 | 3.00 | 2.50 |
|---|
| 2:30 pm 14:30 | 3:30 | 3.50 | 3.00 |
|---|
| 3:00 pm 15:00 | 4:00 | 4.00 | 3.50 |
|---|
| 3:30 pm 15:30 | 4:30 | 4.50 | 4.00 |
|---|
| 4:00 pm 16:00 | 5:00 | 5.00 | 4.50 |
|---|
| 4:30 pm 16:30 | 5:30 | 5.50 | 5.00 |
|---|
| 5:00 pm 17:00 | 6:00 | 6.00 | 5.50 |
|---|
| 5:30 pm 17:30 | 6:30 | 6.50 | 6.00 |
|---|
| 6:00 pm 18:00 | 7:00 | 7.00 | 6.50 |
|---|
| 6:30 pm 18:30 | 7:30 | 7.50 | 7.00 |
|---|
| 7:00 pm 19:00 | 8:00 | 8.00 | 7.50 |
|---|
Evening and night shifts
A shift that runs past midnight ends on the next day, so its end time is earlier than its start. 10:00 pm to 6:00 am the next day is 8 hours. The last row has the same time at both ends: 7:00 am to 7:00 am the next day is 24 hours.
Evening and night shifts| Shift | h:mm | Hours | Less 30 min |
|---|
| 2:00 pm to 10:00 pm 14:00 to 22:00 | 8:00 | 8.00 | 7.50 |
|---|
| 3:00 pm to 11:00 pm 15:00 to 23:00 | 8:00 | 8.00 | 7.50 |
|---|
| 4:00 pm to 12:00 am 16:00 to 00:00 | 8:00 | 8.00 | 7.50 |
|---|
| 5:00 pm to 1:00 am 17:00 to 01:00 | 8:00 | 8.00 | 7.50 |
|---|
| 6:00 pm to 6:00 am 18:00 to 06:00 | 12:00 | 12.00 | 11.50 |
|---|
| 7:00 pm to 7:00 am 19:00 to 07:00 | 12:00 | 12.00 | 11.50 |
|---|
| 8:00 pm to 8:00 am 20:00 to 08:00 | 12:00 | 12.00 | 11.50 |
|---|
| 9:00 pm to 5:00 am 21:00 to 05:00 | 8:00 | 8.00 | 7.50 |
|---|
| 10:00 pm to 6:00 am 22:00 to 06:00 | 8:00 | 8.00 | 7.50 |
|---|
| 11:00 pm to 7:00 am 23:00 to 07:00 | 8:00 | 8.00 | 7.50 |
|---|
| 12:00 am to 8:00 am 00:00 to 08:00 | 8:00 | 8.00 | 7.50 |
|---|
| 7:00 am to 7:00 am 07:00 to 07:00 | 24:00 | 24.00 | 23.50 |
|---|
Midnight, clock changes and other notes
- The next day. When the end time is the same as the start time or earlier, the calculator counts it as the next day and adds 24 hours. It counts spans of up to 24 hours.
- 12 am, 12 pm and 24:00. 12:00 am is midnight at the start of the day, 00:00 on the 24-hour clock, and 12:00 pm is noon. You can also type noon or midnight. To put 12:30 am on the 24-hour clock, take off 12 hours: 12:30 am − 12:00 = 00:30. On the 24-hour clock you can enter 24:00 for midnight at the end of the day: 00:00 to 24:00 is 24 hours.
- Clock changes. The calculator counts clock time and assumes the clocks don't change during the shift. On the night they change for daylight saving time, a shift lasts an hour less or an hour more than its clock times say. In New York, 10:00 pm on March 7, 2026 to 6:00 am the next morning lasted 7 hours, and 10:00 pm on October 31, 2026 to 6:00 am lasted 9 hours. In London the same shift lasted 7 hours on the night of March 28, 2026 and 9 hours on the night of October 24.
- Breaks. Enter unpaid breaks in minutes (30) or as hours and minutes (1:15, 1 h 15 min or 1.25 h). For several breaks, enter their total. Breaks can't be longer than the time from start to end.
- Rounding. Times are exact to the minute. Decimal hours are rounded to 2 places, half away from zero, so 40 minutes is 0.67 hours; the Proof shows the division before rounding. The calculator doesn't round punch times to the nearest 5, 6 or 15 minutes.
- In a spreadsheet. With the start time in A2, the end time in B2 and break minutes in C2,
=MOD(B2-A2,1)*24-C2/60 gives decimal hours. MOD keeps a shift past midnight positive. It gives 0 when the two times are the same, where this calculator counts 24 hours. - Time only. The calculator counts time and nothing else. It doesn't work out pay, overtime or break rules.
Worked examples
A night shift with a 30-minute break
10:30 pm to 6:15 am the next day, less 30 minutes of breaks, is 7 hours 15 minutes, or 7.25 hours.
| Start in 24-hour time10:30 pm + 12:00 | 22:30 | |
|---|
| End in 24-hour time6:15 am | 06:15 | |
|---|
| Start to end, next day06:15 + 24:00 − 22:30 | 7:45 | h:mm |
|---|
| Less breaks7:45 − 0:30 | 7:15 | h:mm |
|---|
| Total | 7 h 15 min | |
|---|
| Decimal hours7 + 15 ÷ 60 | 7.25 | h |
|---|
8:45 am to 5:15 pm with an hour for lunch
8:45 am to 5:15 pm, less 1 hour of breaks, is 7 hours 30 minutes, or 7.5 hours.
| Start in 24-hour time8:45 am | 08:45 | |
|---|
| End in 24-hour time5:15 pm + 12:00 | 17:15 | |
|---|
| Start to end17:15 − 08:45 | 8:30 | h:mm |
|---|
| Less breaks8:30 − 1:00 | 7:30 | h:mm |
|---|
| Total | 7 h 30 min | |
|---|
| Decimal hours7 + 30 ÷ 60 | 7.50 | h |
|---|
Questions
- How do I calculate the hours between two times?
- Subtract the start time from the end time on the 24-hour clock. For 9:00 am to 5:00 pm, 17:00 − 09:00 = 8:00, which is 8 hours. If the end is earlier than the start, add 24 hours first.
- How many hours is 9 am to 5 pm?
- 8 hours. With a 30-minute unpaid lunch it is 7 hours 30 minutes, or 7.5 hours, and with a 1-hour lunch it is 7 hours.
- How do I calculate hours for a night shift?
- Add 24 hours to the end time, then subtract the start: 06:00 + 24:00 − 22:00 = 8:00, so 10:00 pm to 6:00 am the next day is 8 hours.
- How do I change pm times to 24-hour time?
- Add 12 hours to any time from 1:00 pm to 11:59 pm: 5:30 pm + 12:00 = 17:30. 12:00 pm stays 12:00, and times from 12:00 am to 12:59 am lose 12 hours: 12:30 am − 12:00 = 00:30.
- How do I turn hours and minutes into decimal hours?
- Divide the minutes by 60 and add them to the hours: 7 + 15 ÷ 60 = 7.25, so 7 hours 15 minutes is 7.25 hours. The Decimal Hours Calculator converts both ways and has a printable chart of all 60 minutes.
Checked by [[Reviewer name]] · Last reviewed [[Review date]] · Report an error