Formula
Shift minutes = (Out − In) − BreakIf Out < In, add 24 hoursDecimal hours = Total minutes ÷ 60
How it works
Every shift is converted to minutes after midnight. When the out time is earlier than the in time the shift is treated as ending the next day, so a 10 PM to 6 AM night shift counts 8 hours instead of a negative number. The unpaid break for that row is subtracted, and every row is added in whole minutes before anything is rounded.
Only the final total is converted to decimal hours and rounded to two places, which is the format most payroll systems and invoices expect. Rounding each day first and then adding can drift by a few hundredths over a week.
Worked examples
A standard five-day week
Five shifts with lunch breaks of 0–45 minutes add up to 38 hours 30 minutes, or 38.5 decimal hours.
- Shifts
- 5 rows
- Total hours worked
- 38 h 30 min
Two night shifts with pay
Both shifts cross midnight. 8 h + 7 h 45 min = 15.75 hours; at $19.00 an hour that is $299.25 before taxes.
- Shifts
- 2 rows
- Also calculate pay
- Yes
- Hourly rate
- $19
- Total hours worked
- 15 h 45 min
Minutes to decimal hours
Payroll uses decimal hours, not clock minutes. Divide minutes by 60: 8 hours 15 minutes is 8.25 hours, not 8.15. Entering 8.15 would underpay the shift by six minutes.
- 5 min = 0.08 h
- 10 min = 0.17 h
- 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
- 50 min = 0.83 h
Breaks and rounding rules
Enter only unpaid breaks. Under the U.S. Fair Labor Standards Act, short rest breaks (usually 5–20 minutes) are generally paid time, while bona fide meal periods of 30 minutes or more can be unpaid if the employee is fully relieved of duty.
Some employers round punches to the nearest 5, 6, or 15 minutes. This calculator uses the exact minutes you enter; if your employer rounds, enter the rounded punch times.
What this calculator does not do
The optional pay line multiplies all hours by one rate. It does not apply overtime, taxes, or deductions. For time-and-a-half on hours over 40, use the overtime calculator with the total from this card.
Common questions
How do I enter a shift that ends after midnight?
Enter the real out time, for example 06:30. Because it is earlier than the in time, the calculator adds a day automatically.
Can I use it for two weeks?
Yes. Add up to 31 rows, one per shift, and the total covers all of them.
Related calculators
- Overtime Pay CalculatorSplit a week’s hours into regular and overtime, apply time and a half (or any multiplier), and see gross pay line by line.
- Add Time CalculatorAdd or subtract any number of durations in hours, minutes, and seconds, with carrying done for you and a running total.
- Military Time ConverterConvert 24-hour military time like 1730 to 5:30 PM, or a regular clock time to military time, with a full chart.
- Business Days CalculatorAdd or subtract working days from a date, or count business days between two dates, skipping weekends and U.S. federal holidays.
Last reviewed: