How to calculate the time between two times
Enter a start time and an end time to get the duration in hours and minutes, decimal hours and total minutes. Add more spans to total a whole week of shifts, several work sessions or a series of activities.
Doing it by hand
- Convert both times to the 24-hour clock (2:30 PM = 14:30).
- Subtract the start from the end. If the minutes go negative, borrow 60 minutes from the hours.
- If the result is negative, the span crosses midnight, so add 24 hours.
Example: 9:00 AM to 5:30 PM is 17:30 − 09:00 = 8 hours 30 minutes. Night shift: 22:00 to 06:00 is −16 h + 24 h = 8 hours.
Converting minutes to decimal hours
Payroll and timesheet systems usually need decimal hours. Divide the minutes by 60:
| Minutes | Decimal |
|---|---|
| 15 min | 0.25 h |
| 20 min | 0.33 h |
| 30 min | 0.50 h |
| 40 min | 0.67 h |
| 45 min | 0.75 h |
So 8 hours 30 minutes is 8.5 hours, not 8.3. Mixing these up is one of the most common timesheet errors.
Using it as a timesheet calculator
- Add one row per shift or work session.
- Enter your unpaid break length (for example a 30-minute lunch) and it is subtracted from every span.
- Enter your hourly rate to see gross pay for the total time.
Overtime rules, such as time-and-a-half beyond 40 hours a week under the US Fair Labor Standards Act, are not applied automatically. Multiply overtime hours by 1.5 × your rate separately.
Working with military time
Time inputs follow your device's settings, so you may see 12-hour or 24-hour format. To convert between the two, use our military time converter. To count whole days rather than hours, see days between dates.
Frequently asked questions
How many hours is 9 AM to 5 PM?
8 hours. With a 30-minute unpaid lunch, that is 7.5 working hours.
How do I calculate hours for an overnight shift?
Subtract the start from the end and add 24 hours if the result is negative. For example, 10 PM to 6 AM is 8 hours. The calculator does this automatically.
How do I convert minutes to decimal hours?
Divide minutes by 60. For example, 45 minutes = 0.75 hours, so 7 h 45 min = 7.75 hours.
Can I add up multiple time spans?
Yes. Click "Add another time span" for each period and the total updates instantly.
Last updated December 2, 2026.