A standard workday: 09:00 to 17:30
- Input
- Start = 09:00, End = 17:30
- Working
- 17:30 is 1,050 minutes since midnight; 09:00 is 540. 1,050 − 540 = 510 minutes = 8 h 30 min = 8.5 decimal hours.
- Result
- 8 h 30 min (510 minutes, 8.5 h)
Work out the time between two clock times — shifts, flights, study sessions — with overnight spans handled, in hours and minutes, decimal hours and total minutes. Runs entirely in your browser — your numbers never leave this device.
Convention: when the end time is earlier than the start time, the span is treated as running overnight into the next day (22:30 → 06:15 = 7 h 45 min). Identical start and end times give 0 — a zero-length span, not 24 hours.
| Start | End | Duration | Decimal hours |
|---|---|---|---|
| 09:00 | 17:30 | 8 h 30 min (510 min) | 8.5 |
| 22:30 | 06:15 | 7 h 45 min (465 min) — overnight | 7.75 |
| 09:00 | 19:00 | 10 h (600 min) | 10 |
| 09:00 | 09:00 | 0 min — equal times | 0 |
Enter a start and an end time and the calculator converts both to minutes since midnight and subtracts. The answer is presented three ways, because different jobs want different forms: hours and minutes for humans, total minutes for logs and timesheets, and decimal hours for billing and payroll, where 7 h 45 min must become 7.75 before it can be multiplied by an hourly rate.
The one convention to know is the overnight rule: when the end time is earlier than the start time, the span is read as running past midnight into the next day — 22:30 to 06:15 is 7 hours 45 minutes, the classic night shift. Without that rule every overnight span would come out negative or would need a date attached, and night workers would be the ones doing mental arithmetic. Equal start and end times are zero, not 24 hours: a duration measures elapsed time, and no time elapses between a moment and itself.
For spans longer than a day, or spans between two different dates, this is the wrong tool on purpose — pair the dates in the Days Between Dates calculator and add the clock-time remainder from here. Everything computes in your browser.
If the end time is earlier than the start time, the calculator assumes the span crosses midnight and adds 24 hours to the end before subtracting: 22:30 → 06:15 becomes 7 h 45 min. If your span really is same-day backwards (a data entry error, usually), the convention note under the result warns you.
Because a duration is elapsed time between two moments, and a moment minus itself is zero. Treating it as 24 h would make every typo'd same-time entry produce a phantom full day on a timesheet. If you genuinely worked a full 24 h span, split it at midnight and add the two halves, or log it in the Hours Calculator as 24:00.
Payroll and billing multiply time by a rate, and rates do not multiply '7 h 45 min' — they multiply 7.75. The conversion is minutes ÷ 60: 45 minutes is 0.75 of an hour, 510 minutes is 8.5 hours. Beware the common mistake of reading 7:45 as 7.45 hours; that underpays by 18 minutes.
Not directly — it works on clock faces, so spans wrap at a day. For multi-day spans, count the whole days with the Days Between Dates calculator and the leftover clock time here, then add them: 2 days + 3 h 15 min is an exact answer.
For a single day, subtract the break from the total minutes (510 − 30 = 480 for a standard day with a half-hour break). For a whole week of shifts with breaks, the Time Card Calculator does this per day and totals regular and overtime hours for you.
No. The times are processed in your browser only — nothing is sent to a server or stored.
More in Date & Time Tools · Browse all tools