Time Cards and Timesheets

Night Shift Hours Calculator

Count a shift past midnight and see how many hours fall in your night window.

Your numbers

An end time earlier than the start time means the shift ends the next day.

Example window. Use the hours your employer or contract treats as night hours.

Add a rate and a night differential to see pay.

Use the amount from your pay policy.

Result

Paid hours per shift

8.5 hours

8 night hours and 0.5 regular hours

Paid hours per shift
8.5
Night hours per shift
8
Regular hours per shift
0.5
Paid time per shift (h:mm)
8:30
How this was calculated
  1. The shift runs 10:00 PM to 6:30 AM (+1), 8:30 on the clock.
  2. Night hours are the time inside the window 10:00 PM to 6:00 AM: 8:00. The rest, 0:30, is regular time.
  • The night window and the differential are numbers you enter. Employers and contracts define night hours and differentials differently, and some rules count whole shifts rather than hours. Overtime, breaks required by law and taxes are not modeled. This is not legal or payroll advice.

Calculated using SumPanda.com · https://sumpanda.com/night-shift-hours-calculator/

Results are estimates for general information. Verify important figures before relying on them.

Next step

How to use the night shift hours calculator

  1. Enter when your shift starts and ends. If the end time is earlier than the start time, the shift ends the next day.
  2. Enter when night hours begin and end. The example window is only a starting point, so use the window your employer or contract defines.
  3. Enter any unpaid break and choose whether it comes out of regular hours or night hours first. Add the number of shifts if you work the same one several times.
  4. Optionally add your base hourly rate and the night differential, as dollars per hour or a percent of base, to see the pay.

Formula

Shift length = end - start, plus 24 hours if the end is earlier than the start

Night hours = the part of the shift that falls inside the night window

Regular hours = shift length - night hours

Pay = base rate x paid hours + differential x night hours

The night window can cross midnight. The tool counts overlap with the window on both sides of midnight, so a shift that starts before the window and ends after it is handled correctly.

A 22:00 to 06:30 shift

The shift is 8 hours 30 minutes long. With night hours from 22:00 to 06:00, 8 hours are night hours and the last 30 minutes, 06:00 to 06:30, are regular hours. With a 30 minute unpaid break taken out of regular hours first, the paid time is 8 hours, all of it night time.

At $20 an hour with a $2 an hour night differential, the pay for the unbroken 8.5 hours is 8.5 x $20 + 8 x $2 = $186.00. A shift from 20:00 to 04:00 has 6 night hours and 2 regular hours.

Shifts that cross midnight

Counting hours across midnight is where mistakes happen, because the clock resets. The tool treats the end time as the next day when it is earlier than the start, then measures the overlap with the night window, which may itself cross midnight.

A shift of exactly 24 hours cannot be entered, because the same start and end time looks like zero. Enter a shift as two parts if you need to.

Different definitions of night

Employers and contracts define night hours in many ways. Some pay a differential for each hour inside a window, some for the whole shift if a share of it falls inside the window, and some by clock time of the start. This tool uses the hour by hour overlap, so check that it matches your own policy.

For the pay side of differentials, use the shift differential pay calculator. To total hours across a week, the hours calculator and the time card calculator are useful, and the time duration calculator measures any span.

Assumptions and limits

  • The night window is a starting example that you change to match your own policy.
  • The break is taken out of the hours you choose first, and the rest from the other kind.
  • Overtime and legally required breaks are not modeled.
  • Rules vary by employer and contract. This is not legal or payroll advice.

Formulas reviewed October 10, 2026. See the calculation methodology for how SumPanda rounds, tests and sources its formulas.

Frequently asked questions

How do I calculate hours for a shift that crosses midnight?

Add 24 hours to the end time if it is earlier than the start time, then subtract. A shift from 22:00 to 06:30 is 8 hours 30 minutes, which is 8.5 hours.

How many of my hours count as night hours?

It depends on the window your employer defines. The tool counts the minutes of the shift that fall inside the window you enter. For a 22:00 to 06:30 shift and a window from 22:00 to 06:00, that is 8 hours.

Does the unpaid break reduce night hours?

You choose. Taking the break out of regular hours first keeps your night hours intact, and taking it out of night hours first lowers them. Use whichever your policy states.

Can I use this for several shifts?

Yes, for identical shifts. Enter the number of shifts and the tool multiplies the hours and the pay.