โฑ WorkHourHub
  • Calculators โ–พ
    • Time Card with Breaks
    • 7-Day Weekly Timesheet
    • 14-Day Bi-Weekly Timesheet
    • Daily Hours Worked
    • Monthly Timesheet
    • Overtime Pay
    • California Overtime
    • Master Work Hour
  • Converters โ–พ
    • Time to Decimal Hours
    • Decimal to Minutes
    • Minutes to Decimal Chart
    • Military Time (24h)
    • Time Duration Calculator
  • Labor Laws
  • Guides
--:--:-- UTC
โฑ Time Card with Breaks ๐Ÿ“… Weekly Timesheet ๐Ÿ“† Bi-Weekly Timesheet ๐Ÿ’ฐ Overtime Pay Calculator ๐Ÿ”ข Time to Decimal Converter โš–๏ธ Labor Law Compliance ๐Ÿ“š Payroll Guides

Night Shift Calculator

Night Shift Hours Calculator

WorkHourHub.com's Night Shift Hours Calculator handles overnight shifts crossing 12:00 AM midnight, automatically applying modulo-24 mathematics and shift premiums.

๐ŸŒ™ Night Shift & Overnight Differential Calculator

Overnight Shift Pay
Total Overnight Earnings
$212.00
8.00 hrs
Paid Hours (Midnight Crossing)
$26.50 / hr
Effective Night Rate
$192.00
Base Wages
$20.00
Night Premium
โšก Timecard Actions:
KEY TAKEAWAYS

Essential Overview & Quick Rules

  • WorkHourHub.com's Night Shift Hours Calculator eliminates negative hour errors on overnight shifts crossing 12:00 AM midnight.
  • Uses automated modulo-24 elapsed time mathematics: adds 24 hours (1,440 minutes) when clock-out time is earlier than clock-in.
  • Deducts unpaid meal breaks of 30+ minutes accurately from overnight working spans under 29 CFR ยง 785.19.
  • Supports hourly shift differential add-ons and daily/weekly overtime thresholds seamlessly.
  • Part of our free suite of payroll hour calculators and overnight shift tools.
๐Ÿ“‘ On This Page:
โšก Calculator ๐Ÿ“– Complete Guide ๐Ÿ“ Worked Example โ“ FAQs ๐Ÿ”— Related Tools

How Do You Calculate Overnight Night Shift Hours Crossing Midnight?

To calculate overnight night shift hours crossing midnight, add 24 hours (1,440 minutes) to the clock-out timestamp if it is numerically earlier than the clock-in timestamp, subtract the clock-in timestamp to find gross elapsed duration, deduct unpaid meal breaks, and divide by 60 to obtain net decimal hours.

What Is the Modulo-24 Mathematical Formula for Overnight Shifts?

Overnight calculation follows The Modulo-24 Overnight Elapsed Time Algorithm:

Clock-In Min = (Clock-In Hour ร— 60) + Clock-In Minute
Clock-Out Min = (Clock-Out Hour ร— 60) + Clock-Out Minute
Adjusted Clock-Out Min = IF(Clock-Out Min < Clock-In Min, Clock-Out Min + 1,440, Clock-Out Min)
Net Decimal Hours = (Adjusted Clock-Out Min - Clock-In Min - Unpaid Lunch Min) รท 60
Overnight Earnings = Net Decimal Hours ร— (Base Wage + Shift Differential)

Worked Example: How Do You Calculate a 10:00 PM to 6:30 AM Graveyard Shift?

Consider an employee earning $22.00 base wage with a $2.50/hr night differential working 10:00 PM to 06:30 AM with a 30-minute unpaid lunch break:

Step 1 โ€“ Convert Timestamps to Elapsed Minutes

10:00 PM = 22:00 = 1,320 minutes. 06:30 AM = 06:30 = 390 minutes.

Step 2 โ€“ Apply Midnight Crossing Adjustment

Since 390 < 1,320, add 1,440: Adjusted Clock-Out = 390 + 1,440 = 1,830 minutes.

Step 3 โ€“ Compute Net Payable Decimal Hours

Gross elapsed minutes = 1,830 - 1,320 = 510 minutes (8 hours 30 minutes). Net payable minutes = 510 - 30 (lunch) = 480 minutes. 480 รท 60 = 8.00 decimal hours. Use our Time to Decimal Converter for instant conversions.

Step 4 โ€“ Compute Shift Wages With Differential

Effective Wage = $22.00 + $2.50 = $24.50 per hour. Total Shift Gross Pay = 8.00 hrs ร— $24.50 = $196.00.

Why Do Standard Time Formulas Fail on Overnight Shifts?

Standard subtraction (06:30 - 22:00) produces a negative duration (-15.50 hours), causing payroll software errors. Modulo-24 math corrects this seamlessly. For multi-rate shifts, use our Shift Differential Calculator or track 7-day night schedules with the Weekly Timesheet Calculator.

'

โš–๏ธ Regulatory Compliance Disclaimer: This tool provides estimates, not legal/tax advice. Always consult with certified payroll specialists or state labor departments regarding specific collective bargaining agreements and regional wage orders.

โ“ Frequently Asked Questions (PAA)

Authoritative answers to common questions regarding work hours, break rules, overtime laws, and payroll math.

How do I calculate hours for a shift from 11:00 PM to 7:00 AM? โ–พ

11:00 PM to 7:00 AM is exactly 8 hours gross. If a 30-minute unpaid lunch is taken, total net payable time equals 7.50 decimal hours (7 hours 30 minutes).

Why does simple subtraction fail for overnight shifts? โ–พ

Because the clock-out time (e.g. 06:00) is numerically lower than the clock-in time (e.g. 22:00). Adding 24 hours (1,440 minutes) to clock-out resolves the negative result.

Are meal breaks mandatory on overnight shifts? โ–พ

Federal law does not mandate meal breaks, but state laws (e.g., California, New York) require a 30-minute unpaid meal break for shifts over 6 hours regardless of shift timing.

Which workweek does an overnight shift belong to for payroll? โ–พ

Under FLSA 29 CFR ยง 778.105, an employer must establish a consistent rule: either assign the entire shift to the day it begins, the day it ends, or split hours at midnight.

How do I calculate shift differential pay on a graveyard shift? โ–พ

Add the hourly differential (e.g. +$2.00) to the base wage before multiplying by total shift hours worked.

โšก Recommended Related Calculators & Converters

Explore complementary timecard tracking tools, wage estimators, and payroll converters.

โฑ๏ธ Calculator

Shift Differential Calculator

Calculate percentage premiums or hourly dollar add-ons for night and weekend shifts.

Calculate Now โ†’
โฑ๏ธ Calculator

Hours Between Two Times

Calculate elapsed hours, minutes, and seconds between any two clock times.

Calculate Now โ†’
โฑ๏ธ Calculator

Master Work Hour Calculator

Calculate daily shift hours, meal breaks, and overtime with decimal precision.

Calculate Now โ†’
โฑ๏ธ Calculator

Time Card with Lunch Breaks

Deduct unpaid meal periods and track rest breaks under FLSA 29 CFR ยง 785.19.

Calculate Now โ†’
โฑ๏ธ Calculator

Weekly Timesheet Calculator

Track 7-day weekly work hours with automatic 40-hour FLSA overtime calculation.

Calculate Now โ†’
โฑ๏ธ Calculator

Military Time Converter

Convert standard 12-hour AM/PM timestamps into 24-hour military time format.

Calculate Now โ†’
โฑ WorkHourHub

The enterprise standard for wage calculation, timesheet tracking, and statutory labor compliance. Free, private, client-side, and verified under FLSA & CA Labor Code.

โœ“ FLSA 29 U.S.C. ยง 207 โœ“ CA LC ยง 510 ๐Ÿ”’ 100% Client-Side

Timesheet Calculators

  • Time Card with Breaks
  • 7-Day Weekly Timesheet
  • 14-Day Bi-Weekly Timesheet
  • Daily Hours Worked
  • Monthly Timesheet
  • Printable Timesheet

Overtime & Pay

  • Overtime Pay Calculator
  • California Daily Overtime
  • Shift Differential Pay
  • Night Shift Pay
  • Meal Break Penalty
  • Gross Paycheck Calculator
  • Salary to Hourly

Time Converters

  • Time to Decimal Hours
  • Decimal to Minutes
  • Minutes to Decimal Chart
  • Military Time (24h)
  • Hours Between Two Times
  • Time Duration Calculator
  • 7-Minute Rounding (FLSA)

Legal & Compliance

  • Labor Law Compliance Hub
  • Payroll & Timekeeping Guides
  • About WorkHourHub
  • Contact & Support
  • Privacy Policy
  • Terms of Service

ยฉ 2026 WorkHourHub.com. All rights reserved. For informational purposes only; not official legal or tax advice.

Privacy Terms Sitemap