Shift Length Calculator

A shift length calculator answers a simple question that matters to almost every worker: how long was my shift, and how many of those hours were paid? The answer is not always obvious, because shifts often cross midnight, include an unpaid meal break, or start and end at unusual times. Doing the maths in your head at the end of a long day is easy to get wrong, especially after a night shift. This calculator does the subtraction for you, in seconds, and shows both the total shift length and the paid hours after the break.




How to Use

Follow these steps to work out any shift. The calculator updates as you change the times, so you can test different start and end times quickly.

  1. Enter the shift start time in the first box, using the 24-hour clock. For example, enter 22:00 for ten o'clock at night.
  2. Enter the shift end time in the second box. For a night shift that finishes after midnight, enter the morning time, such as 06:00.
  3. Enter the unpaid break in minutes. A 30-minute meal break is entered as 30. If the break was paid, enter zero.
  4. Press the Calculate shift button, or simply change a value and watch the result update.
  5. Read the result, which shows the total shift length first, then the paid hours after the break is taken away.

Formula

The shift length formula has three steps. First, turn both times into minutes since midnight. A time of 22:00 is 22 times 60, which is 1,320 minutes. A time of 06:00 is 360 minutes. Second, subtract the start from the end. If the answer is zero or negative, add 1,440 minutes, which is 24 hours, because the shift crossed midnight. For 22:00 to 06:00, the subtraction gives 360 minus 1,320, which is negative 960, so adding 1,440 gives 480 minutes, which is eight hours.

Third, subtract the unpaid break from the total shift length to get the paid minutes. Paid hours equals total shift minutes minus break minutes, divided by 60. For the night shift above, 480 minus 30 is 450 minutes, and 450 divided by 60 is 7.5 paid hours. If the break is longer than the shift, the paid time is treated as zero, because you cannot be paid for fewer than zero hours.

Worked Examples

The table below shows three shifts worked out step by step. Each row uses the same formula, so you can follow the numbers and check the result in the calculator above.

ShiftBreakTotal shift lengthPaid hours
10:00 PM to 6:00 AM30 minutes8 hours7.5 paid hours
9:00 AM to 5:00 PM60 minutes8 hours7 paid hours
7:00 AM to 3:00 PM30 minutes8 hours7.5 paid hours
6:00 PM to 2:00 AM45 minutes8 hours7.25 paid hours

Common Uses

  • Night shifts: work out hours for shifts that start in the evening and finish in the early morning.
  • Payslip checks: compare the hours on a payslip with the hours you actually worked.
  • Timesheets: record total hours and paid hours in a clear, consistent way each week.
  • Rota planning: test different start and end times before a new rota is agreed.
  • Overtime checks: see how many hours sit above a normal shift before overtime rules apply.
  • Rest planning: check the gap between the end of one shift and the start of the next.
  • Part-time work: add up short shifts across a week without doing midnight maths by hand.

Frequently Asked Questions

How does the calculator handle a shift that crosses midnight?

If the end time is earlier than the start time, the calculator adds 24 hours to the result. A shift from 10:00 PM to 6:00 AM is treated as eight hours, not negative sixteen hours. You do not need to enter a date, because the overnight rule covers the usual case of a single night shift.

What is the difference between total shift length and paid hours?

Total shift length is the full time from start to finish, including breaks. Paid hours are what remains after unpaid breaks are taken away. A shift of eight hours with a 30-minute unpaid break has 7.5 paid hours. A paid break is not taken away, so you should enter zero for that break.

Should I enter the break in minutes or hours?

Enter the break in minutes. A 30-minute break is 30, a one-hour break is 60, and a 45-minute break is 45. Entering minutes avoids rounding mistakes, because most breaks are given in minutes rather than in fractions of an hour.

What if my shift is longer than 24 hours?

This calculator is made for a single shift of up to 24 hours. If you worked a very long stretch with sleep breaks, split it into separate shifts and add the results together. That keeps each calculation clear and avoids treating two days as one shift.

How do I turn paid minutes into decimal hours for payroll?

Divide the paid minutes by 60. For example, 450 minutes divided by 60 is 7.5 hours, and 435 minutes divided by 60 is 7.25 hours. The calculator shows both forms, so you can copy the decimal figure straight into a timesheet or payroll form.

Scroll to Top