Skip to main content
date

Shift Calculator

Calculate the total duration of a work shift from start time to end time, including overnight shifts that cross midnight. Deducts break time and shows net worked hours. Perfect for nurses, factory workers, retail staff, and anyone tracking shift-based work schedules.

Reviewed by Chase FloiedUpdated

This free online shift calculator provides instant results with no signup required. All calculations run directly in your browser — your data is never sent to a server. Enter your values below and see results update in real time as you type. Perfect for everyday calculations, homework, or professional use.

Shift start hour in 24-hour format

Shift start minute (0-59)

Shift end hour in 24-hour format

Shift end minute (0-59)

Total break time to deduct (minutes)

How to Use This Calculator

1

Enter your input values

Fill in all required input fields for the Shift Calculator. Most fields include unit selectors so you can work in your preferred unit system — metric or imperial, whichever matches your problem.

2

Review your inputs

Double-check that all values are correct and that you have selected the right units for each field. Incorrect units are the most common source of calculation errors and can produce results that are off by factors of 2, 10, or more.

3

Read the results

The Shift Calculator instantly computes the output and displays results with units clearly labeled. All calculations happen in your browser — no loading time and no data sent to a server.

4

Explore parameter sensitivity

Try adjusting individual input values to see how the output changes. This is a quick and effective way to develop intuition about how different parameters influence the result and to identify which inputs have the largest effect.

Formula Reference

Shift Calculator Formula

See calculator inputs for the governing equation

Variables: All variables and their units are labeled in the calculator interface above. Input fields accept values in multiple unit systems — select your preferred unit from the dropdown next to each field.

When to Use This Calculator

  • Use the Shift Calculator when you need accurate results quickly without the risk of manual computation errors or unit conversion mistakes.
  • Use it to verify calculations made by hand or in spreadsheets — an independent check can catch errors before they lead to costly decisions.
  • Use it to explore how changing input parameters affects the output — a quick way to develop intuition and identify the most influential variables.
  • Use it when collaborating with others to ensure everyone is working from the same numbers and applying the same assumptions.

About This Calculator

The Shift Calculator is a free, browser-based calculation tool for engineers, students, and technical professionals. Calculate the total duration of a work shift from start time to end time, including overnight shifts that cross midnight. Deducts break time and shows net worked hours. Perfect for nurses, factory workers, retail staff, and anyone tracking shift-based work schedules. It implements standard formulas and supports both metric (SI) and imperial unit systems with automatic unit conversion. All calculations are performed instantly in your browser with no data sent to a server. Use this calculator as a quick reference and sanity-check tool during design, analysis, and learning. Always verify results against primary engineering references and applicable standards for any safety-critical application.

About Shift Calculator

The Shift Calculator determines the total duration of a work shift from clock-in to clock-out, properly handling overnight shifts that cross midnight. It deducts break time to show both gross (total presence) and net (actual worked) hours, displayed in hours-and-minutes and decimal format. This is essential for shift workers in healthcare, manufacturing, hospitality, security, and transportation, where schedules often span the midnight boundary. Payroll departments rely on accurate shift calculations to process wages correctly.

The Math Behind It

Shift work is any work schedule that falls outside the traditional 9-to-5 daytime window. The Bureau of Labor Statistics reports that approximately 16% of US workers have non-daytime schedules. Common shift patterns include fixed shifts (always the same hours), rotating shifts (cycling through different shifts), and split shifts (working two separate blocks with a long break). Night shifts present a unique calculation challenge because they cross midnight. A shift from 22:00 to 06:30 spans two calendar dates. The standard approach adds 24 hours (1440 minutes) to the end time when it is less than or equal to the start time, then calculates the difference normally. Gross shift time is the total elapsed time from start to finish. Net shift time subtracts scheduled breaks. The distinction matters for payroll: paid break time should remain in gross hours, while unpaid breaks must be deducted. Labor laws vary by jurisdiction on which breaks are paid. Shift differentials are premium pay rates for working undesirable hours, typically nights, weekends, and holidays. US night shift differentials typically range from 5-15% above base pay. Accurate shift hour tracking is essential for calculating these premiums. Occupational health research shows that shift workers face increased risks of sleep disorders, cardiovascular disease, and workplace accidents. The circadian rhythm disruption from rotating shifts is particularly problematic. Many industries now limit consecutive shift hours and mandate minimum rest periods between shifts. The European Working Time Directive limits average work weeks to 48 hours and requires 11 hours of rest between shifts. Three-shift systems divide the 24-hour day into three 8-hour blocks (typically 06:00-14:00, 14:00-22:00, 22:00-06:00). Twelve-hour shift systems use two 12-hour shifts, often with rotating patterns (e.g., 4 on, 4 off). Each system has trade-offs between coverage, employee well-being, and overtime costs.

Formula Reference

Shift Duration

grossMinutes = endTime - startTime (+ 1440 if overnight)

Variables: startTime and endTime in minutes from midnight, 1440 = minutes per day

Worked Examples

Example 1: Night Shift Duration

Calculate net hours for a shift from 22:00 to 06:30 with a 30-minute break.

Step 1:Start: 22*60 + 0 = 1320 minutes
Step 2:End: 6*60 + 30 = 390 minutes (overnight, add 1440) = 1830 minutes
Step 3:Gross: 1830 - 1320 = 510 minutes = 8h 30m
Step 4:Net: 510 - 30 = 480 minutes = 8h 0m

Gross: 8 hours 30 minutes. Net: 8 hours 0 minutes (8.00 decimal).

Example 2: Day Shift Duration

Calculate net hours for a shift from 07:00 to 15:30 with a 45-minute break.

Step 1:Start: 420 minutes, End: 930 minutes
Step 2:Gross: 930 - 420 = 510 minutes = 8h 30m
Step 3:Net: 510 - 45 = 465 minutes = 7h 45m

Gross: 8 hours 30 minutes. Net: 7 hours 45 minutes (7.75 decimal).

Common Mistakes & Tips

  • !Not handling the midnight crossover. A shift from 23:00 to 07:00 is 8 hours, not -16 hours. When end time is less than start time, add 24 hours to the end time before subtracting.
  • !Double-counting paid breaks. If a 15-minute break is paid, do not deduct it from gross hours. Only deduct unpaid breaks (typically meal breaks of 30+ minutes).
  • !Confusing clock time with duration. A shift from 10:00 PM to 6:30 AM lasts 8.5 hours, not 3.5 hours (which would result from naively subtracting 6:30 from 22:00 in 12-hour format).

Related Concepts

Used in These Calculators

Calculators that build on or apply the concepts from this page:

Frequently Asked Questions

How does this handle overnight shifts?

When the end time is earlier than or equal to the start time (e.g., start at 22:00, end at 06:30), the calculator assumes the shift crosses midnight and adds 24 hours to the end time. It does not support shifts longer than 24 hours.

What is a typical night shift differential?

US night shift differentials typically range from 5-15% above the base hourly rate, though they can be higher in healthcare and specialized industries. Federal employees receive a standard 10% differential for regularly scheduled night work (between 6 PM and 6 AM).

Should I include paid breaks in my shift hours?

It depends on your workplace policy and local law. Short rest breaks (5-20 minutes) are usually paid and should be included. Unpaid meal breaks (30-60 minutes) should be deducted. Enter only unpaid break time in the break minutes field to get accurate net hours.