The short answer
To calculate night shift hours, add 24 hours to the end time and subtract the start time, then take off unpaid breaks. A shift from 10:00 PM to 6:00 AM is 8 hours; minus a 30-minute unpaid break, you worked 7.5 hours. Enter your times below: the calculator counts across midnight automatically.
Work hours calculator
The calculation runs only in your browser. Nothing is stored or sent.
Counting hours across midnight
Normal subtraction fails when a shift crosses midnight, because the end time looks smaller than the start time. There are two easy ways around it.
- Add 24 hours to the end time. In 24-hour time, 10:00 PM is 22:00 and 6:00 AM is 6:00. Add 24 to the end: 30:00 − 22:00 = 8 hours.
- Or split at midnight. Count from the start to midnight, then from midnight to the end. 10:00 PM to midnight is 2 hours, midnight to 6:00 AM is 6 hours, together 8 hours.
- Take off unpaid breaks. 8 hours minus a 30-minute break leaves 7 hours 30 minutes, or 7.5 hours.
More examples:
| Shift | Before midnight | After midnight | Unpaid break | Hours worked |
|---|---|---|---|---|
| 10:00 PM – 6:00 AM | 2:00 | 6:00 | 30 min | 7:30 (7.50) |
| 11:00 PM – 7:00 AM | 1:00 | 7:00 | 30 min | 7:30 (7.50) |
| 7:00 PM – 7:30 AM | 5:00 | 7:30 | 45 min | 11:45 (11.75) |
| 6:00 PM – 2:15 AM | 6:00 | 2:15 | 30 min | 7:45 (7.75) |
Which day and pay period do the hours belong to?
A night shift touches two calendar days, but a timesheet usually has one row per day. There is no single answer to where the hours go; it depends on your employer's payroll rule. The two common ways:
- Whole shift on the start day. The 10:00 PM to 6:00 AM shift from Friday into Saturday goes on Friday's row as 7.5 hours. This is simple and matches how most people think about "Friday's shift".
- Split at midnight. Friday gets the 2 hours before midnight, Saturday the 6 hours after. Where the break falls then matters: a break at 2:00 AM comes off Saturday's part.
The choice matters most at the edge of a workweek or pay period. Federal overtime under the Fair Labor Standards Act (FLSA) is counted per workweek: non-exempt employees get 1.5 times their regular rate for hours over 40 in a workweek. If a shift starts on the last night of one workweek and ends in the next, which week the hours land in can change whether you reach 40. Ask payroll how they handle it, and write the real start and end times on your timesheet so the hours can be checked either way.
Night shift differential: not a federal requirement
Many people expect extra pay for night work. Under US federal law, there is none required: the FLSA does not require a night shift differential. If you get one, it comes from your employer's policy or from a union or employment contract, and that document also sets how much it is and which hours count as "night".
Some states or industries may have their own rules, so check your state and your contract. If you do get a differential, your timesheet should show the night hours clearly, for example with start and end times rather than only a daily total.
Note: Daily overtime is not part of federal law, but some states have it, for example California for hours over 8 in a day. A long night shift can trigger it there even when your weekly total stays under 40.
The spreadsheet negative-time pitfall
In Excel, Numbers or Google Sheets, a night shift often shows up as a negative time, a row of hash signs, or an error. The cause is simple: the formula =C2-B2 subtracts 10:00 PM from 6:00 AM and gets a negative value.
The fix is a formula that adds one day when the shift crosses midnight:
=MOD(C2-B2,1)gives the shift length as a time, for example 8:00.=MOD(C2-B2,1)*24gives decimal hours, for example 8. Format the cell as a number, not a time.- Subtract breaks in the same unit: for a 30-minute break in decimal hours, subtract 0.5.
Check the total at the end of the week by hand once. A single row with a wrong formula is easy to miss.
Rest between shifts
Night workers often rotate shifts or come back after only a short break. For adult workers there is no federal US rule on a minimum rest time between two shifts. Some states, cities or industries have their own rules, and some contracts do too, so check what applies to you.
Even without a legal minimum, it helps to see the gap. When your shift ends at 6:00 AM and the next one starts at 2:00 PM the same day, you had 8 hours in between.
For the general math with day shifts, AM/PM and weekly totals, see how to calculate work hours.
How Horello helps with night shifts
Horello is an iPhone app built for shift work.
- Shifts over midnight count correctly. A 10:00 PM to 6:00 AM shift is recorded as one shift with its break taken off, so no negative times.
- Clock in or log later. Start a live timer when you begin, or enter the shift after it happened.
- Rest and long-day warnings. Horello warns when there are fewer than 11 hours between two shifts or more than 10 hours in one day. These are general warnings, not a check of US federal or state law.
- Weekly hours and gross pay. Set an hourly rate and see your gross pay per week. Export any week as a plain PDF or CSV for free.
- Pro. A whole month or pay period in one file and a designed timesheet PDF with signature lines are part of Horello Pro. See pricing.
Your hours are stored only on your iPhone, with no account. Horello is coming soon to the App Store.
General information, not legal advice. As of November 2026.
Frequently asked questions
How many hours is a 10 PM to 6 AM shift?
10 PM to 6 AM is 8 hours. If you take an unpaid 30-minute break, you worked 7.5 hours (7 hours 30 minutes).
Does a night shift count on the day it starts or the day it ends?
That depends on your employer's payroll rule. Many record the whole shift on the start day, others split the hours at midnight. Ask payroll which one they use, especially when a shift crosses into a new workweek or pay period.
Is night shift differential required by law in the US?
No. The federal Fair Labor Standards Act does not require extra pay for night work. A night differential is set by your employer or by a union or employment contract, so check your contract or handbook.
Why does my spreadsheet show a negative time for a night shift?
Because the end time, for example 6:00 AM, is smaller than the start time, 10:00 PM. Use a formula like =MOD(C2-B2,1), which adds a day when the shift crosses midnight.