Enter a start time and an end time to see how many hours are between them. Subtract an unpaid break if you need hours worked.
How to calculate hours between two times
- Convert each time to minutes after midnight (hours × 60 + minutes).
- Subtract the start from the end. If the result is negative, the period crosses midnight, so add 1,440 minutes (24 hours).
- Subtract any unpaid break, then divide by 60 for decimal hours.
Examples
- 9:00 AM to 5:00 PM = 8:00 hours (8.00)
- 8:45 AM to 5:15 PM with a 30-minute lunch = 8:00 hours (8.00)
- 7:30 AM to 4:10 PM = 8:40 hours (8.67)
- 10:00 PM to 6:00 AM (overnight) = 8:00 hours (8.00)
Need a whole week with overtime and pay? Use the time card calculator.
Frequently asked questions
How do I calculate the hours between two times?
Convert both times to minutes after midnight, subtract the start from the end, and divide by 60. For 8:45 AM to 5:15 PM: 1035 − 525 = 510 minutes, which is 8 hours 30 minutes or 8.5 hours.
What if the shift goes past midnight?
If the end time is earlier than the start time, the calculator assumes the shift ends the next day and adds 24 hours. For example, 10:00 PM to 6:00 AM is 8 hours.
Should I subtract my lunch break?
Subtract breaks that are unpaid. In the US, short rest breaks of 5 to 20 minutes are generally paid working time, while meal periods of 30 minutes or more, where you are fully relieved of duty, are usually unpaid.