Hours Calculator
How many hours and minutes between two times, with breaks and overnight shifts.
Hours between two times
Type times any way you like: 9, 930a, 5:30 pm, 17:30. An end time before the start counts as the next day.
Add up hours
Type hours:minutes (7:45) or decimal hours (7.75), one per row. To subtract, start a row with a minus sign (-).
How to calculate the hours between two times
Subtract the start time from the end time. If the end time is earlier, the shift crossed midnight, so add 24 hours: 10:00 PM to 6:15 AM is 8 hours 15 minutes, or 8.25 in decimal.
- Write both times on a 24-hour clock: 10:00 PM is 22:00 and 6:15 AM is 6:15.
- The end is earlier than the start, so add 24 hours to it: 6:15 becomes 30:15.
- Subtract: 30:15 − 22:00 = 8:15. If the minutes go negative, borrow 60 minutes from the hours.
- Subtract any unpaid break, then divide the leftover minutes by 60 for decimal hours: 15 ÷ 60 = 0.25, so 8.25 hours.
Taking an unpaid lunch? See how to calculate hours worked with lunch for more examples and which breaks are paid.
Doing this for a whole week? The time card calculator adds up every day and the overtime.
Open the time card calculator →Frequently asked questions
Does it work for overnight shifts?
Yes. When the end time is earlier than the start time, the calculator counts it as the next day. 11:00 PM to 7:00 AM is 8 hours.
How many hours is 9 to 5?
9:00 AM to 5:00 PM is 8 hours. With an unpaid 30-minute lunch it is 7.5 hours of paid work.
How do I write 7 hours 45 minutes as a decimal?
Divide the minutes by 60: 45 ÷ 60 = 0.75, so it is 7.75 hours. See the minutes to decimal chart.
Can I add up several shifts?
Yes. Use “Add up hours” above for a quick total, or the time card calculator for a full week with breaks and overtime.