All calculators

Shift Hours Calculator

Calculate total hours worked across multiple shift segments in one workday, including split shifts and overnight work.

Shift segments

Enter work periods in chronological order. Use h:mm and choose AM or PM.

Total worked

--
Decimal hours--
Total minutes--
Workday span--
Off-duty gap--

Enter a shift segment to calculate your hours.

How split shifts are calculated

Enter each work period on its own row, in chronological order. Choose AM or PM for each time. Add or remove segments as needed; results update as you type.

Total worked = sum of all segment durations

Each segment runs from its start to its end. Equal times give zero duration. Overlapping or out-of-order segments are flagged, and incomplete rows must be corrected before a total is shown.

Workday span

The span runs from the first segment's start to the final segment's end. Working 8:00 AM to noon and 4:00 PM to 8:00 PM gives 8 worked hours over a 12-hour span. The span is not paid hours.

Off-duty gaps

Off-duty gap is the time between shift segments. It is not counted as worked time.

Off-duty gap = workday span - total worked

The calculator does not classify gaps as paid or unpaid breaks. Use the Break Time Calculator for calculating paid or unpaid breaks.

Overnight shift segments

An end earlier than its start crosses midnight. A 10:00 PM to 2:00 AM segment lasts 4 hours; a following 3:00 AM to 6:00 AM segment continues on the next day. Together they give 7 worked hours, an 8-hour span, and a 1-hour gap.

Keep the full span within 24 hours. The day advances only when a segment crosses midnight, including one ending at midnight. If midnight falls only in a gap, the dates are ambiguous without date inputs. Use the Timesheet Calculator for work entries across multiple dates.

Worked examples

8:00 AM to noon; 1:00 PM to 5:00 PM
8h 00m worked (8.00 decimal hours). Span: 9h 00m. Gap: 1h 00m.
8:00 AM to noon; 4:00 PM to 8:00 PM
8h 00m worked. Span: 12h 00m. Gap: 4h 00m.
10:00 PM to 2:00 AM; 3:00 AM to 6:00 AM
7h 00m worked. Span: 8h 00m. Gap: 1h 00m.
9:00 AM to 5:00 PM
8h 00m worked. Span: 8h 00m. Gap: 0h 00m.
8:30 AM to 11:45 AM; 12:30 PM to 5:15 PM
Segments: 3h 15m and 4h 45m. 8h 00m worked. Span: 8h 45m. Gap: 0h 45m.

Frequently asked questions

How do I calculate hours for a split shift?

Find the duration of each work period, then add those durations. For 8:00 AM to noon and 1:00 PM to 5:00 PM, add 4 hours plus 4 hours for 8 worked hours. The gap stays out of the total.

Can I add more than two shift segments?

Yes. Use Add shift segment for another work period. Keep segments in order without overlaps, within one 24-hour span. Blank rows do not count; partially filled rows show an error.

Can a shift segment cross midnight?

Yes. For example, 10:00 PM to 2:00 AM gives 4 hours. Later rows continue on the following day. Enter midnight as 12:00 AM and noon as 12:00 PM.

What is the difference between worked hours and workday span?

Worked hours include only the entered work periods. Workday span includes the time between them too, from the first start to the last end.

What is an off-duty gap?

It is time between segments, not time within a segment. All gaps are added together. Whether any gap is paid depends on your situation; this calculator does not decide that.

How is Shift Hours different from Work Hours Calculator?

Shift Hours combines multiple work periods in one workday. Use the Work Hours Calculator for one continuous shift with an unpaid break.