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.
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.
Range: 0 – 23
Shift start hour in 24-hour format
Range: 0 – 59
Shift start minute (0-59)
Range: 0 – 23
Shift end hour in 24-hour format
Range: 0 – 59
Shift end minute (0-59)
Range: 0 – 240
Total break time to deduct (minutes)
Results
Gross Hours
8
Gross Minutes
30
Net Hours
8
Net Minutes
0
Decimal Net Hours
8
How to Use This Calculator
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.
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.
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.
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.
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.
Related Calculators
Pomodoro Calculator
Plan your Pomodoro Technique sessions by specifying work duration, short break, long break interval, and total desired work time. Calculates how many pomodoros you need, total break time, and the overall session duration including all breaks for effective time management.
Work Hours Calculator
Calculate total work hours for a period based on daily hours, days per week, and number of weeks. Accounts for break time deductions. Essential for payroll estimation, freelancer billing, project time budgeting, and labor cost planning across any work schedule.
Add Time Calculator
Add hours, minutes, and seconds together to get a total time duration.
Countdown Calculator
Calculate the exact time remaining until a future event in days, hours, minutes, and seconds. Enter any future date and get a precise countdown breakdown. Perfect for tracking deadlines, event planning, vacation countdowns, and goal-setting milestones.
Time Duration Calculator
Calculate the elapsed time between a start time and end time in hours, minutes, and seconds.
Age in Days Calculator
Calculate your exact age in days from your birth date to today or any target date. Includes total days lived, accounting for leap years. Perfect for milestone celebrations, fun facts about your age, and understanding the passage of time in daily increments.
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
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.
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.
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.
Embed this calculator on your site
Paste this snippet into your blog, course page, or documentation to drop a live, interactive Shift Calculator into your page.
Free to embed — includes a link back to MegaCalc.