This hours calculator finds the time between a start and end time. It converts each to minutes, subtracts, adds 24 hours if the shift runs overnight, and takes off any break. The answer comes in decimal hours (good for pay) and H:MM (good for the clock).
Reviewed: June 20, 2026 · Author: Naveen P N, Founder — AI Calculator · Verified against: minute arithmetic, recomputed in code.
How it works
Each clock time becomes minutes from midnight (9:00 → 540, 17:30 → 1050). Subtract start from end; if the result is negative the shift crossed midnight, so add 1440. Subtract the break, then divide by 60 for decimal hours, or split into whole hours and leftover minutes for H:MM.
Worked examples
A 9-to-5:30 day:
The same day with a 30-minute lunch:
An overnight shift 22:00 to 06:00:
So a 9:00–17:30 day is 8.5 hours, 8.0 after a half-hour break, and a 22:00–06:00 night shift is also 8.0 hours once the overnight wrap is handled.
Frequently Asked Questions
Minutes from midnight, end − start, ÷ 60. 9:00→17:30 = 510 min = 8.5 h (8:30).
If end < start it adds 24 h. 22:00→06:00 = 8 h, not negative.
8.5 (for pay × rate) vs 8:30 (clock format). Both are shown.
Enter break minutes; it's deducted. 8.5 h − 30 min = 8.0 h.
It handles one overnight wrap. For dates across days, use a date difference calculator.