100% Free · No Signup · Private

Hours Worked Crossing Midnight: Calculate Overnight Shifts Right

Hours worked crossing midnight trip up almost every new night shift worker, because a 6 AM clock out looks smaller than a 10 PM clock in. The fix is simple: add 24 hours to the end time, subtract the start, then take out unpaid breaks. This guide shows the method, the Excel formula, and three worked pay examples.

✓Worked examples with real numbers
✓DOL sources
Hours worked crossing midnight 2026
◷
10 PM to 6 AM8.00 hours elapsed
✓
After a 30 minute break7.50 paid hours

A night shift does not lose hours at midnight. The clock resets, your shift does not. Add 24 hours to the end time and the math works the same as any day shift.

What Are Hours Worked Crossing Midnight?

Hours worked crossing midnight are the paid hours in a shift that starts on one calendar day and ends on the next, like a 10 PM to 6 AM warehouse shift or an 11 PM to 7 AM nursing shift. The hours are ordinary hours. Only the clock makes them look strange, because the end time is a smaller number than the start time.

That smaller number is the whole trap. Subtract 6 AM from 10 PM the plain way and you get negative 16 hours, which is nonsense. The shift did not run backwards. It ran forward across midnight, and the math has to count the hours on both sides of midnight. So how do you count them? You give the end time its missing day back, and the next section shows the exact method.

If you would rather check your own punches than do the math by hand, the Time Clock Calculator adds up shifts, breaks, and overtime for you. The method below shows what it does behind the scenes, so you can trust the total and spot a wrong one.

What Is the Formula for an Overnight Shift?

Three methods give the same answer. Pick the one that fits how you work, by hand or in a spreadsheet.

Paid hours = end time + 24 hours, minus start time, minus unpaid breaks

Method 1: Add 24 to the end time

Convert both times to the 24 hour clock first. 10 PM becomes 22:00 and 6 AM becomes 06:00. Because the shift ends after midnight, add 24 hours to the end time, so 06:00 becomes 30:00. Now subtract: 30 minus 22 is 8 hours. That is the elapsed time, and you take unpaid breaks out of it to get paid hours. The 24 hour clock keeps AM and PM mixups out of the math, and our Military Time Converter turns any standard time into 24 hour time in seconds.

Method 2: Count minutes since midnight

Turn each time into minutes since midnight: multiply the hour by 60 and add the minutes. 10 PM is 1,320 minutes and 6 AM is 360 minutes. Subtract the start from the end: 360 minus 1,320 is negative 960. A negative answer means the shift crossed midnight, so add 1,440 minutes, the minutes in a full day. That gives 480 minutes, and 480 divided by 60 is 8 hours. Subtract unpaid breaks in minutes, then divide by 60 for decimal hours.

Method 3: The Excel formula

In Excel or Google Sheets, put the start time in cell A2 and the end time in cell B2, then use this formula: =MOD(B2-A2, 1)*24. MOD wraps a negative result back into a positive one, so a 10 PM to 6 AM shift reads 8, not negative 16. It works for day shifts too, so one formula covers your whole timesheet. To take out a break, subtract the break hours from the result. One warning: MOD treats a shift of exactly 24 hours as zero, so use a date and time together if a shift can run a full day.

How Do You Calculate Hours for a Night Shift?

Six steps, and you have your number. Use your real clock in and clock out times, not the scheduled times, because payroll pays actual hours.

  1. Write down the real clock in and clock out times.

    Note the AM or PM and the date for each one. A 6 AM finish belongs to the next calendar day, and writing the date down stops the most common mistake before it starts.

  2. Convert both times to the 24 hour clock.

    10 PM becomes 22:00 and 6 AM becomes 06:00. The 24 hour clock gives every hour of the day one name, so nothing gets mixed up.

  3. Add 24 hours to the end time when it falls after midnight.

    06:00 becomes 30:00. This is the step that fixes the negative number, and it is the only step a day shift skips.

  4. Subtract the start time from the end time.

    30 minus 22 is 8 hours of elapsed time. That is the full span from clock in to clock out, breaks included.

  5. Subtract unpaid breaks to get paid hours.

    A 30 minute unpaid meal break turns 8 hours into 7.50 paid hours. Short rest breaks of 20 minutes or less stay in, because federal rules count them as paid time.

  6. Put the hours in the right workweek and check the 40 hour line.

    Add the shift to the workweek where the hours were actually worked. Our guide on How Many Work Hours in a Year shows the 2,080 hour full time year, and the overtime example below shows when the extra hours pay time and a half.

3 Worked Examples, With the Math Shown

Three people, three night shifts, one method. Each example states its assumptions up front, so you can swap in your own numbers and run the same steps.

Example 1: Maria, warehouse, 10 PM to 6 AM at $24 an hour

  1. Step 1: Elapsed time is 10 PM to midnight, 2 hours, plus midnight to 6 AM, 6 hours, which is 8.00 hours.
  2. Step 2: Her unpaid meal break is 30 minutes, which is 0.50 hours. Paid hours are 8.00 minus 0.50, which is 7.50 hours.
  3. Step 3: Pay for the shift is 7.50 times $24, which is $180.00.
  4. Step 4: She works 5 nights a week, so the week is 37.50 paid hours and $900.00 in gross pay.
$180.00 a shift

Example 2: James, security guard, 9 PM to 5:30 AM at $19.50 an hour

  1. Step 1: Use minutes. 9 PM is 21:00, which is 1,260 minutes since midnight. 5:30 AM is 05:30, which is 330 minutes.
  2. Step 2: Subtract: 330 minus 1,260 is negative 930. Add 1,440 minutes for the day that passed, which gives 510 minutes, or 8.50 hours elapsed.
  3. Step 3: His unpaid meal break is 30 minutes. Paid time is 510 minus 30, which is 480 minutes, or 8.00 hours.
  4. Step 4: Pay for the shift is 8.00 times $19.50, which is $156.00. In decimal hours his shift is 8.00, not 8.30, because 30 minutes is half an hour.
$156.00 a shift

Example 3: Carlos, nurse aide, 10 PM to 6 AM at $22 an hour, 6 nights a week

  1. Step 1: Each night is 8.00 hours elapsed minus a 30 minute unpaid meal break, which is 7.50 paid hours.
  2. Step 2: Six nights are 45.00 paid hours in the workweek, which is 5 hours over the 40 hour line.
  3. Step 3: Regular pay is 40 times $22, which is $880.00. The overtime rate is $22 times 1.5, which is $33.00 an hour, so 5 overtime hours pay $165.00.
  4. Step 4: The week totals $1,045.00 in gross pay. Our guide on How Is Overtime Calculated walks through the same 1.5 times math for any rate.
$1,045.00 a week

One more wrinkle decides which week those hours land in. Carlos works one Sunday night shift a month, 10 PM to 6 AM, and his workweek runs Monday 12:00 AM to Sunday 11:59 PM. The hours worked crossing midnight split at the boundary: 10 PM to midnight is 2.00 hours in the old workweek, and midnight to 6 AM is 6.00 hours minus the 0.50 hour break, which is 5.50 hours in the new workweek. If the old workweek already held 40 hours, those 2.00 Sunday hours are overtime, even though the shift started on Sunday night. Federal law counts hours in the workweek when they are actually worked, and it never lets an employer average two weeks together to dodge the 40 hour line.

Common Overnight Shifts at a Glance

Look up your shift below. Elapsed time is clock out minus clock in with the midnight fix. Paid time takes out one 30 minute unpaid meal break.

ShiftElapsed hoursPaid hours after a 30 minute break
10 PM to 6 AM8.007.50
9 PM to 5 AM8.007.50
11 PM to 7 AM8.007.50
7 PM to 7 AM12.0011.50
6 PM to 6 AM12.0011.50
10 PM to 2 AM4.003.50

If your break is 45 minutes or an hour, subtract 0.75 or 1.00 instead of 0.50. The minutes to decimal table in the FAQ below covers the values payroll uses most.

Wrong Way vs Right Way

The same shift, done five ways. Four of them cost you hours or pay.

MethodResult for a 10 PM to 6 AM shiftVerdict
Subtract the end from the start with no fix6 minus 22 is negative 16 hoursWrong: the shift crossed midnight, so the end time needs its day back
Add 24 to the end, then subtract30 minus 22 is 8.00 hoursRight: the standard method for any overnight shift
Count the unpaid meal break as work8.00 paid hours instead of 7.50Wrong: 30 unpaid minutes is half an hour of pay too much
Write 45 minutes as 0.45 hours7.55 hours instead of 7.25Wrong: divide minutes by 60, so 45 minutes is 0.75 hours
Split the shift into two days on the timesheetTwo 4 hour days instead of one 8 hour shiftWrong: the calendar day does not decide pay, the workweek does

What Happens When Daylight Saving Time Changes the Clock?

Twice a year the clock itself moves, and an overnight shift on those nights is not 8 hours long. In spring the clock jumps forward: on Sunday, March 8, 2026, 2 AM becomes 3 AM, so a 10 PM to 6 AM shift holds 7 elapsed hours. In fall the clock falls back: on Sunday, November 1, 2026, 2 AM happens twice, so the same shift holds 9 elapsed hours. Paid hours follow the hours actually worked, so check that week twice: once for the hour count and once for the 40 hour overtime line. Most time clocks adjust on their own, but a paper timesheet does not, and this is the night to flag for payroll.

5 Common Mistakes to Avoid

  1. Forgetting to add 24 to the end time.

    This is the mistake that starts the whole problem. A plain subtraction gives a negative number, and a negative number on a timesheet is always a sign the midnight step was skipped. Add 24 to any end time that falls after midnight.

  2. Mixing up AM and PM.

    6 PM and 6 AM are 12 hours apart, and one wrong letter doubles or halves a shift. Write the AM or PM next to every time, and use the 24 hour clock when you do the math, so 6 PM is 18:00 and 6 AM is 06:00.

  3. Counting an unpaid meal break as paid time, or the reverse.

    A genuine meal break of 30 minutes or more can be unpaid when you are fully off duty, so it comes out of the total. But short rest breaks of 20 minutes or less are paid time under federal rules, so they stay in. The Department of Labor breaks and meal periods page explains both rules, and the line between them is whether you were truly free from duty.

  4. Writing minutes as decimals wrong.

    Payroll runs on decimal hours, and minutes divide by 60, not by 100. 15 minutes is 0.25, 30 minutes is 0.50, and 45 minutes is 0.75. Writing 45 minutes as 0.45 quietly steals 18 minutes of pay from an 8 hour shift.

  5. Trusting a rounded punch without checking it.

    Many time clocks round punches to the nearest 15 minutes, and the 7 minute rule decides which way a punch rounds. A 10:07 PM clock in can round to 10:00 PM or 10:15 PM, and the direction changes the shift total. Our Time Clock Rounding guide explains the rule, and the fix is simple: compare the rounded total with the exact total once a week.

Frequently Asked Questions

How do I calculate hours worked crossing midnight?

Add 24 hours to the end time, then subtract the start time, then take out unpaid breaks. For a 10 PM to 6 AM shift, that is 30 minus 22, which is 8 hours elapsed, and 7.50 paid hours after a 30 minute unpaid meal break.

What is the formula for hours worked on an overnight shift?

Paid hours equal the end time plus 24 hours, minus the start time, minus unpaid breaks. In Excel the same math is =MOD(B2-A2, 1)*24, with the start time in A2 and the end time in B2, then subtract the break hours from the result.

How do I calculate hours worked in Excel for a night shift?

Put the start time in cell A2 and the end time in cell B2, then use =MOD(B2-A2, 1)*24. MOD wraps a negative result into a positive one, so 10 PM to 6 AM reads 8, not negative 16. The formula works for day shifts too. To take out a break, subtract the break hours from the result.

Do I subtract my lunch break from an overnight shift?

Subtract it only when it is an unpaid meal break and you were fully off duty. A genuine meal break of 30 minutes or more can be unpaid under federal rules. Short rest breaks of 20 minutes or less are paid time and stay in your total, so check which kind of break you took before you subtract anything.

How do I convert minutes to decimal hours for payroll?

Divide the minutes by 60. 15 minutes is 0.25 hours, 30 minutes is 0.50 hours, and 45 minutes is 0.75 hours. Never write minutes as a decimal directly, because 45 minutes is 0.75 hours, not 0.45.

Does an overnight shift count toward the day it starts or the day it ends?

For pay, the hours count in the workweek when they are actually worked, not on one calendar day or the other. A shift that crosses the workweek boundary splits: the hours before midnight land in the old workweek and the hours after midnight land in the new one. The calendar day on a timesheet is a label, not a pay rule.

Do overnight shifts earn overtime?

Yes, when the workweek total passes 40 hours. Federal law pays time and a half for hours over 40 in a workweek, and the FLSA counts a workweek as a fixed 168 hour period, seven 24 hour days in a row. There is no federal daily overtime rule, but some states add one: California pays daily overtime after 8 hours in a day.

What happens to my hours when daylight saving time starts or ends?

In spring the clock jumps forward, so a 10 PM to 6 AM shift on Sunday, March 8, 2026 holds 7 elapsed hours instead of 8. In fall the clock falls back, so the same shift on Sunday, November 1, 2026 holds 9 elapsed hours. Paid hours follow the hours actually worked, so check that week against the 40 hour line too.

How do I calculate hours worked from 10 PM to 6 AM?

Add 24 to the end time: 6 AM becomes 30:00, and 30 minus 22 is 8 hours elapsed. After a 30 minute unpaid meal break, paid time is 7.50 hours. At $24 an hour that shift pays $180.00.

What if my time clock shows a negative number for a night shift?

The clock subtracted the end time from the start time without adding a day for the midnight crossing. Add 24 hours to the end time and run the subtraction again, and check that the punch carries the right date. If the clock keeps doing it, ask payroll to check the overnight setting, because a time clock that cannot cross midnight will underpay every night shift.

Related Calculators

Run your own numbers with the tools next door.

You now have the full method for hours worked crossing midnight: add 24 to the end time, subtract the start, take out unpaid breaks, and put the hours in the right workweek. Run one real shift through the steps tonight, and the next pay stub will make sense line by line.

Add Up Your Night Shift in Seconds

Enter your clock in and clock out times and let the Time Clock Calculator do the midnight math, breaks, and overtime for you. Free, no signup.

Use the Time Clock Calculator →

These are estimates for planning and learning only, not legal or tax advice. Pay rules vary by state, employer policy, and the terms of your job. Confirm important numbers with the Department of Labor, your state labor agency, or a qualified employment professional before you act on them.

Sources

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *