Free tool · Date and time
Overnight shift hours calculator
A shift from 22:00 to 06:30 with a 30 minute break is 8 h 00 min of paid time. 2 h 00 min falls before midnight, 6 h 00 min after it, and 7 h 30 min sits inside the night window.
- Free
- No sign-up
- Runs in your browser
8 h 00 min8 decimal hours, 22:00 to 06:30
- Shift crosses midnight
- 7.5 night window hours
- Total pay 164.25
- Before midnight
- 2 h 00 min
- After midnight
- 6 h 00 min
- In the night window
- 7 h 30 min
- Break taken
- 0 h 30 min
- Base pay
- 144.00
- Night premium pay
- 20.25
- Total pay
- 164.25
| Part of the shift | Hours and minutes | Decimal hours |
|---|---|---|
| Time on the clock, start to end | 8 h 30 min | 8.5 |
| Unpaid break | 0 h 30 min | 0.5 |
| Paid hours | 8 h 00 min | 8 |
| Paid hours before midnight (first date) | 2 h 00 min | 2 |
| Paid hours after midnight (second date) | 6 h 00 min | 6 |
| Paid hours inside the night window | 7 h 30 min | 7.5 |
How to use the Overnight Shift Hours Calculator
- Enter the Shift start and Shift end. An end time earlier than the start means the shift runs past midnight.
- Add the Unpaid break in minutes and the time it starts. Leave the length at 0 for no break.
- Set the Night window that your employer pays extra for, the Night premium percent and an Hourly rate if you want pay.
- Read the paid hours, the split before and after midnight and the pay lines. Raise Number of shifts for a week.
How do I calculate overnight shift hours?
Take the end time, subtract the start time and add 24 hours whenever the result is negative. For 22:00 to 06:30 the clock difference is 8 h 30 min, because 06:30 is 8 hours 30 minutes after 22:00 on the next morning. Subtract the unpaid break of 30 minutes and the paid time is 8 h 00 min, or 8 in decimal hours, the form most payroll sheets want.
A shift cannot be longer than 24 hours here. When the start and end are the same clock time the page asks for a different end, since the answer could be 0 or a full day. For a simple span with no pay lines, the hours calculator is quicker.
How is an overnight shift split at midnight?
A shift that crosses midnight touches two calendar dates, and records for each date often need their own hours. The calculator counts the paid minutes from the start to midnight as the first date and the rest as the second. In the example, 2 h 00 min belong to the first date and 6 h 00 min to the second. Together they equal the paid 8 h 00 min.
The break is taken out where you place it. It starts at 02:00, after midnight, so it reduces the second date. A break at 22:30 would come off the first date, leaving 1 h 30 min before midnight and 6 h 30 min after it.
| Part of the shift | Hours and minutes | Decimal hours |
|---|---|---|
| Time on the clock, start to end | 8 h 30 min | 8.5 |
| Unpaid break | 0 h 30 min | 0.5 |
| Paid hours | 8 h 00 min | 8 |
| Paid hours before midnight (first date) | 2 h 00 min | 2 |
| Paid hours after midnight (second date) | 6 h 00 min | 6 |
| Paid hours inside the night window | 7 h 30 min | 7.5 |
How do night window hours and the night premium work?
Some employers pay a higher rate for hours inside a set window. The window here is yours to define, and it can cross midnight too. With a window from 22:00 to 06:00, 7 h 30 min of the paid time falls inside it. The break counts against the window because it starts at 02:00. Moving the break to 06:00, after the window ends, raises the figure to 8 h 00 min.
The premium applies only to those minutes. At 18 an hour and 15%, each night window hour earns 2.70 extra. That is 7.5 hours times 2.70, or 20.25, on top of the base pay of 144.00, for a total of 164.25. The table shows the same shift at other premiums.
| Premium | Extra per hour | Premium pay | Total pay |
|---|---|---|---|
| 0% | 0.00 | 0.00 | 144.00 |
| 10% | 1.80 | 13.50 | 157.50 |
| 15% | 2.70 | 20.25 | 164.25 |
| 25% | 4.50 | 33.75 | 177.75 |
| 50% | 9.00 | 67.50 | 211.50 |
Enter 5 in Number of shifts to repeat the same shift for a week. Five shifts give 40 hours and a total of 821.25. Rules for night pay differ by employer, contract and place, so use the window and percentage from your own agreement. The figures are an estimate and not payroll or legal advice.
What the calculator does not cover
It works from clock times. A night when the clocks change for daylight saving has 23 or 25 hours, so enter the hours you really worked. Overtime limits, weekly caps and tax are outside this page. For those, use the overtime calculator or the time card calculator.
Use it with
- Hours Calculator: hours between two times.
- Salary to Hourly Converter: annual, monthly, weekly, hourly pay.
- Decimal Hours to Hours and Minutes: turn decimal hours into hours and minutes, and back.
Questions
How do I work out hours for a shift that ends after midnight?
Subtract the start from the end and add 24 hours if the answer is negative. 22:00 to 06:30 gives 8 h 30 min, and 8 h 00 min after the 30 minute break.
How many hours fall on each date?
The paid minutes up to midnight belong to the first date and the rest to the second. In the example that is 2 h 00 min and 6 h 00 min.
Where should I put the unpaid break?
Where it happens. The break is taken out of the date and the night window that it falls in, so a break at 02:00 gives 7 h 30 min of night window time and one at 06:00 gives 8 h 00 min.
What night window and premium should I enter?
The ones in your contract or pay policy. The page does not know any rule, and it treats the window and the percentage as numbers you choose.
Can I get decimal hours for payroll?
Yes. The result line and the table show decimal hours, so 8 h 00 min appears as 8.
Does the page save my shift times?
No. The times and pay figures stay in your browser while you type, and nothing is sent or stored.
The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.