How to use the Hours Calculator
- Enter your start time and end time. A shift that ends after midnight is handled automatically.
- Enter any unpaid break in minutes.
- Enter how many identical shifts you worked, such as 5 for a regular week.
- Add your hourly rate to see gross pay, then read the hours in both hours-and-minutes and decimal form.
Hours worked formula
Show as plain text
Hours worked = (end time − start time) − unpaid break Decimal hours = minutes ÷ 60 Gross pay = decimal hours × hourly rate
Both times are converted to minutes after midnight and subtracted. If the end time is earlier than the start time, 24 hours are added because the shift runs past midnight.
Timesheets usually need decimal hours: 7 hours 30 minutes is 7.5 hours, not 7.3.
Assumptions and limitations
- A shift is shorter than 24 hours. Identical start and end times count as a full 24 hours.
- Pay is gross: overtime rates, tax and deductions are not applied.
- Decimal hours are rounded to 2 places; pay is calculated from the unrounded hours.
Example: 9:00 AM to 5:00 PM with a 30-minute unpaid break at $20 an hour
- Shift length: 17:00 − 09:00 = 8 hours = 480 minutes.
- Subtract the break: 480 − 30 = 450 minutes, or 7 h 30 min.
- Decimal hours: 450 ÷ 60 = 7.5.
- Gross pay: 7.5 × $20 = $150.00.
When to use the Hours Calculator
- Filling in a weekly timesheet that asks for decimal hours.
- Checking a payslip against the shifts you actually worked.
- For a week with different start and end times, use the time card calculator.
- Turning weekly hours into a yearly figure with the hourly to salary calculator.
Hours Calculator FAQs
How do I convert minutes to decimal hours for a timesheet?
Divide the minutes by 60. 15 minutes is 0.25, 30 minutes is 0.5 and 45 minutes is 0.75 of an hour.
Does this handle night shifts?
Yes. If the end time is earlier than the start time, the calculator assumes the shift finishes the next day. 10:00 PM to 6:00 AM is counted as 8 hours.
How do I total hours for a full work week?
If your shifts are the same, enter one shift and set the number of shifts. Five shifts of 9:00 AM to 5:00 PM with a 30-minute unpaid break total 37.5 hours, which is $750 at $20 an hour.
How this calculator was built and tested is explained in our methodology. Spotted a problem? Let us know.