How to use the hours calculator
- Enter the start time and end time of the shift.
- Enter the unpaid break in minutes, or leave it blank for none.
- Optionally add your hourly pay to see what the shift earns.
The result shows hours worked in h:mm format, the same figure as decimal hours for timesheets and payroll, the full shift length before the break, and the minutes worked.
The formula
hours worked = (end time − start time) − unpaid break
If the end time is earlier than the start time, the shift crossed midnight, so 24 hours are added to the end time first. Decimal hours are the worked minutes divided by 60, rounded to two decimal places.
Worked example: a day shift
Start 8:45 AM, end 5:15 PM, with a 30-minute unpaid lunch:
- 8:45 AM to 5:15 PM is 8 hours 30 minutes (510 minutes).
- 510 − 30 = 480 minutes.
- Hours worked: 8:00, which is 8.00 decimal hours.
Worked example: an overnight shift
Start 10:00 PM, end 6:30 AM, with a 45-minute break, paid $18.40 an hour:
- 6:30 AM is earlier than 10:00 PM, so the shift ends the next morning.
- 10:00 PM to 6:30 AM is 8 hours 30 minutes (510 minutes).
- 510 − 45 = 465 minutes = 7:45, or 7.75 decimal hours.
- Pay: 7.75 × $18.40 = $142.60.
h:mm versus decimal hours
Clocks count in base 60 and payroll counts in base 10, which is where most timesheet mistakes come from. Here are common conversions:
| Minutes | Decimal hours |
|---|---|
| 6 | 0.10 |
| 15 | 0.25 |
| 20 | 0.33 |
| 30 | 0.50 |
| 40 | 0.67 |
| 45 | 0.75 |
| 50 | 0.83 |
Always multiply a pay rate by decimal hours, never by the h:mm figure. Paying 7:45 as “7.45 hours” would underpay by 18 minutes.
Adding up a week
To total a week, run each day through the calculator and add the decimal hours: for example, 8.00 + 7.75 + 8.50 + 8.00 + 6.25 = 38.50 hours. Adding decimal figures avoids the base-60 carrying that makes summing h:mm values error-prone.
Interpreting your result
The shift line repeats the times in 12-hour format and flags “next day” when the shift runs past midnight, so you can confirm the calculator read your times the way you meant. If your employer rounds clock-ins (for example to the nearest quarter hour), apply that rounding to your start and end times before entering them.
Limitations
The calculator handles one shift of less than 24 hours at a time; for longer spans with dates, use a time duration calculator. It does not apply overtime rules, shift differentials, taxes or daylight-saving changes, and the pay figure is gross pay for the hours entered. Breaks are assumed to be unpaid — leave paid breaks out of the break field.
Frequently asked questions
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.5, 45 minutes is 0.75, and 50 minutes is 0.83 (rounded). So 7 hours 50 minutes is 7.83 decimal hours.
How do I calculate hours for a night shift?
Enter the start and end times as they appear on the clock. When the end time is earlier than the start time, the calculator treats it as the next day — 10:00 PM to 6:30 AM is 8 hours 30 minutes before any break.
Should I subtract my lunch break?
Subtract breaks that are unpaid. Many employers pay short rest breaks (often 20 minutes or less) but not meal breaks, so check your contract or local labor rules.
Why is 8:30 not the same as 8.30 hours?
8:30 means 8 hours and 30 minutes, which is 8.5 decimal hours. 8.30 decimal hours is only 8 hours and 18 minutes.
Last reviewed: