About the Hours Between Two Times Calculator
This tool finds the duration between a start time and an end time — the same arithmetic behind a timesheet, a work-hours log, or figuring out how long a meeting or trip actually lasted. Enter both clock times, subtract any unpaid break, and the calculator reports the span in hours and minutes as well as decimal hours.
The formula
Both times are converted to minutes past midnight (hours × 60 + minutes). The gross duration is simply end minutes − start minutes. If the end time is earlier than the start time — an overnight shift like 10:00 PM to 6:00 AM — the calculator adds 1,440 minutes (24 hours) before subtracting, so the span correctly rolls into the next day. Net worked time is gross duration − unpaid break, and dividing net minutes by 60 gives the decimal-hour figure many payroll systems use (for example, 7 hours 30 minutes is 7.50 decimal hours).
- Gross duration: end time minus start time, in minutes, then converted to hours and minutes.
- Overnight handling: when the end clock time is numerically smaller than the start, 24 hours is added so a 11:00 PM–7:00 AM shift correctly reads 8 hours rather than a negative number.
- Net worked time: gross duration minus any unpaid break (lunch, rest periods) that should not count as worked time.
- Decimal hours: net minutes ÷ 60, rounded to two decimal places — the format most payroll and invoicing software expects instead of HH:MM.
Common uses
- Timesheets and payroll: converting clock-in/clock-out times into billable or payable hours
- Shift scheduling, including overnight shifts that cross midnight
- Tracking how long a meeting, class, flight, or task actually took
- Freelance and contractor billing in decimal-hour increments
Precision note
The calculator works to the minute and assumes both times fall on the same 24-hour cycle unless you enable next-day auto-detect for an end time that is earlier than the start. It does not account for time zone changes or daylight saving transitions — if a shift crosses a clock change, adjust the result manually by the amount the clock shifted.