About this tool
Fill in a timesheet, check a payslip or plan a rota: this calculator works out how long you worked between two clock times, takes off unpaid breaks and adds several shifts together.
Night shifts are handled automatically. If the end time is earlier than the start time — say 22:00 to 06:00 — the shift is treated as finishing the next day. The total is shown in hours and minutes and in decimal hours, the format most payroll systems ask for.
How to use it
- Enter the start and end time of the shift (24-hour or AM/PM, depending on your device's settings).
- Enter the unpaid break in minutes, or leave it at 0.
- Press “Add shift” for each extra day. New rows copy the previous times so a regular week takes seconds.
- Optionally enter an hourly rate to estimate gross pay.
Examples
A standard day
09:00 to 17:30 with a 30-minute lunch break is 8 h 00 min (8.00 decimal hours).
A night shift
22:00 to 06:00 with no break is 8 h 00 min — the calculator knows the shift ends the next morning.
Decimal hours
7 h 45 min is 7.75 decimal hours; 8 h 20 min is 8.33. At a rate of 15 per hour, 8 h 20 min pays 125.00.
How hours are calculated
Both times are converted into minutes after midnight. If the end is later than the start, the duration is end − start. If the end is earlier than or equal to the start, the shift is assumed to cross midnight, so 24 hours are added to the end time. The break is then subtracted.
Decimal hours divide the minutes by 60: 30 minutes is 0.5 hours and 15 minutes is 0.25. Results are rounded to two decimals. The pay estimate is simply decimal hours × hourly rate; it does not include overtime rates, taxes or deductions.
- worked = (end − start, +24 h if the end is the next day) − break
- decimal hours = minutes ÷ 60
Frequently asked questions
How do I calculate hours worked overnight?
Just enter the times as they are, for example 22:00 and 06:00. Because the end is earlier than the start, the calculator counts it as the next day and gives 8 hours. Shifts longer than 24 hours are not supported.
How do I convert minutes to decimal hours?
Divide the minutes by 60. 15 min = 0.25 h, 30 min = 0.5 h, 45 min = 0.75 h, 20 min ≈ 0.33 h. The calculator shows the decimal total for you.
What if the start and end times are the same?
The calculator treats it as a full 24-hour period, because an identical start and end time can only mean a whole day has passed.
Does it handle daylight saving changes during a night shift?
No. On the two nights a year when clocks change, a night shift is really one hour shorter or longer than the clock times suggest. Adjust that shift by hand if it applies to you.