About the Minutes Between Two Times Calculator
This tool finds the exact duration between two clock times on the same day, or across midnight for overnight shifts, by converting both times to minutes since midnight and subtracting. It can also deduct an unpaid break, which makes it useful for timesheets, shift scheduling, and any task where you need a precise elapsed-time figure rather than a rough estimate.
The formula
- Convert to minutes since midnight: for a time of H hours and M minutes, that is H × 60 + M. So 09:00 is 540 minutes and 17:30 is 1,050 minutes.
- Subtract: gross elapsed minutes = end minutes − start minutes. In the example above, 1,050 − 540 = 510 minutes.
- Handle overnight spans: if the subtraction is negative (or zero, when a full 24-hour span is intended) and the end time is meant to fall on the next day, add 1,440 — the number of minutes in a day. A shift from 22:00 to 06:00 becomes (360 − 1320) + 1440 = 480 minutes, i.e. 8 hours.
- Subtract any break: net minutes = gross elapsed minutes − break minutes. This is the figure most timesheets actually want to record.
Formatting the result
- Hours and minutes: divide net minutes by 60 to get whole hours, and the remainder is the leftover minutes (for example, 450 minutes is 7h 30m).
- Decimal hours: divide net minutes by 60 directly and keep the fraction (450 minutes is 7.50 hours), which is the format most payroll and invoicing systems expect.
Common uses
- Timesheets and payroll: turning clock-in and clock-out times into billable or payable hours
- Shift scheduling, including overnight shifts that cross midnight
- Meeting and appointment length, or gaps between two scheduled events
- Cooking, workouts, commutes, or any activity where you know the start and end clock times but not the duration
Precision note
The calculator works in whole clock minutes and does not account for seconds, time zone changes, or daylight saving transitions. If a shift crosses a daylight saving change, the clock-time difference will be off by an hour from the true elapsed time; adjust manually in that case.