How to Calculate Hours Between Two Times
When you only need to check a single workday, babysitting shift, or overnight hospital rotation, our calculate hours tool gives you the exact elapsed duration in both hours & minutes (8h 15m) and payroll-ready decimal hours (8.25 h) in two seconds.
Handling Overnight Shifts Past Midnight
Subtracting an overnight shift manually often causes errors around midnight. In this calculator, whenever End Time is earlier than Start Time—such as clocking in at 10:00 PM (22:00) and clocking out at 6:30 AM (06:30)—we automatically add 24 hours (1,440 minutes) so the shift spans midnight cleanly:
22:00to24:00=2 hours00:00to06:30=6 hours 30 minutes- Minus
30-minuteunpaid meal break =8 hours 00 minutes(8.00 decimal hours)
Quick Reference: Common Shift Lengths (Minus 30-Min Break)
| Start Time | End Time | Unpaid Break | Net Hours (H:M) | Payroll Decimal |
|---|---|---|---|---|
| 08:00 AM | 04:30 PM | 30 min | 8h 00m |
8.00 hrs |
| 08:30 AM | 05:15 PM | 30 min | 8h 15m |
8.25 hrs |
| 09:00 AM | 06:00 PM | 60 min | 8h 00m |
8.00 hrs |
| 07:00 AM | 07:30 PM | 30 min | 12h 00m |
12.00 hrs |
| 10:00 PM | 06:30 AM | 30 min | 8h 00m |
8.00 hrs |
Tracking multiple shifts across the week? Move up to our Timesheet Calculator with Federal & California overtime rules. Need to sum raw durations? Try Time Adder. Ready to produce an earnings statement? Open Paystub Generator Free.