Hours Calculator OnlineEvery minute, where it actually went.

Calculating hours for overnight shifts

Guide · last reviewed 1 November 2026 · Hours Calculator Online

Skip the arithmetic: the Time Duration Calculator does the hours for overnight shifts sums on this page for you, with the same tested formulas used in the worked examples below.

In short

When a shift ends on a later calendar day than it began, subtracting clock times produces a negative result. Add 24 hours — 1440 minutes — to the end time, then subtract and take off the unpaid break. A 10:00 PM to 6:00 AM shift is (6:00 + 24:00) − 22:00 = 480 minutes, which is 8:00, or 7:30 after a half-hour meal period.

Night work breaks the one piece of arithmetic everybody trusts. On a day shift, end minus start always gives a sensible answer. Cross midnight and the same subtraction tells you that you worked negative sixteen hours. Spreadsheets return ########, hand-written sheets get a guess written in the total column, and the guess is usually wrong by a quarter of an hour.

The fix is a single rule, and once you see why it works you will never mis-total a night shift again. Below: the rule, three worked examples, how to decide which calendar day the shift belongs to, what happens on the two daylight-saving nights a year, and how to put the whole thing on a timesheet so payroll does not query it.

Why end minus start goes negative

Clock time is a 24-hour loop, not a number line. Midnight resets the count to zero. So when your shift starts at 22:00 and ends at 06:00, the end value is numerically smaller than the start value even though more time has passed.

Converted to minutes past midnight the problem is plain:

Start 10:00 PM = 22:00 = 1320 minutes past midnight. End 6:00 AM = 06:00 = 360 minutes past midnight.

360 − 1320 = −960 min = −16:00

The real answer, 480 minutes, is exactly 1440 minutes away from −960.

That gap is not a coincidence. The end time belongs to the next day, so its true position on a continuous timeline is 360 + 1440 = 1800 minutes from the start of the first day. Subtract properly and 1800 − 1320 = 480 minutes. Eight hours, which is what the clock on the wall would have told you.

The add-24-hours rule

Written as a procedure you can run on paper:

  1. Convert both times to minutes past midnight.
  2. If the end value is less than or equal to the start value, add 1440 to the end value.
  3. Subtract: end − start gives elapsed minutes.
  4. Subtract the unpaid break in minutes.
  5. Divide by 60 for hours and minutes, or by 60 as a decimal for payroll.

Step 2 says "less than or equal to" deliberately. A shift from 7:00 PM to 7:00 PM is not zero minutes — it is a 24-hour shift. Treating equal times as zero is a classic off-by-a-day bug in home-made spreadsheets.

Every calculator on this site implements exactly that rule. When the end time is earlier than the start, the shift is treated as crossing midnight by adding 24 hours, with no checkbox to tick and nothing to configure. The whole computation stays in whole minutes, so there is no floating-point drift; decimal hours are produced only at the end, rounded to two decimals. And if you enter a break longer than the shift, you get an explicit error instead of a negative total. The time duration calculator is the quickest way to check a single overnight span; the hours calculator adds the break and an optional pay rate.

Worked example: 10:00 PM to 6:00 AM

A warehouse night shift with a 30-minute unpaid meal period.

In 10:00 PM Tuesday, out 6:00 AM Wednesday, 30-minute unpaid meal.

Start 22:00 = 1320 min · End 06:00 = 360 min

360 ≤ 1320, so end = 360 + 1440 = 1800 min

1800 − 1320 = 480 min elapsed = 8:00

480 − 30 = 450 min = 7:30 = 7.50 h

Nothing subtle here, but note the discipline: the break comes off after the span is resolved, never before. Mixing the order on a split meal period is where people lose minutes.

Worked example: 11:30 PM to 7:15 AM with a break

A hospital support shift with a 45-minute unpaid meal period.

In 11:30 PM, out 7:15 AM, 45-minute unpaid meal.

Start 23:30 = 1410 min · End 07:15 = 435 min

435 + 1440 = 1875 min

1875 − 1410 = 465 min elapsed = 7:45

465 − 45 = 420 min = 7:00 = 7.00 h

The decimal conversion is where this one usually goes wrong. Before the break the span is 7:45, which is 7.75 decimal hours — not 7.45. If somebody writes 7.45 on the sheet and then deducts 0.45 for the break, they end up at 7.00 by coincidence and never notice the two errors cancelled. Next week, with a 30-minute break, they will be out by 18 minutes. Convert minutes to decimal hours explains the division, and the hours to decimal converter does it both ways.

Worked example: a long night with a split break

Security cover, 7:45 PM to 8:00 AM, with two unpaid 20-minute meal breaks and a paid 15-minute rest break.

In 7:45 PM, out 8:00 AM. Unpaid: 20 + 20 = 40 min. Paid rest break: 15 min (not deducted).

Start 19:45 = 1185 min · End 08:00 = 480 min

480 + 1440 = 1920 min → 1920 − 1185 = 735 min elapsed = 12:15

735 − 40 = 695 min = 11:35 = 11.58 h

Short rest breaks are generally treated as compensable hours worked, which is why the 15 minutes stays in the total. A bona fide meal period of 30 minutes or more during which the employee is completely relieved of duty generally is not compensable — but these two were 20 minutes each, so under the general federal principle they would normally count as worked time. State rules on meal and rest breaks vary widely, and some states mandate paid rest periods and unpaid meal periods of specific lengths, so check your state labor agency or your employer's policy before assuming. The reasoning is unpacked in lunch breaks: paid or unpaid?.

Which calendar day does the shift belong to?

The arithmetic gives you 450 minutes. It does not tell you whether those minutes are Tuesday's or Wednesday's, and that choice matters in three places.

Where day assignment changes the answer
SituationWhy the day matters
Weekly 40-hour totalA shift placed on the wrong side of the workweek boundary moves hours into a different week and can create or erase overtime.
Daily overtime statesWhere a daily threshold applies, splitting one shift across two dates can make an 11-hour shift look like two short days with no premium.
Shift differentialsPremiums often attach to hours falling within a defined window, so the hours have to be placed on the clock correctly.

The common convention is to assign the entire shift to the calendar day on which it started. It keeps one shift on one timesheet line, keeps the daily total equal to the shift length, and makes auditing straightforward. The alternative — splitting the hours at midnight — is sometimes required where a daily premium or a differential window depends on the actual clock hours.

Same shift, two conventions. 10:00 PM Tuesday to 6:00 AM Wednesday, 30-minute meal.

Shift-start method: Tuesday 7:30, Wednesday 0:00

Split-at-midnight method: Tuesday 2:00, Wednesday 5:30

Both total 7:30 for the week. Only the second one tells you how many hours fell after midnight.

Pick one and never mix them inside a pay period. Mixing is how a night shift gets counted in two weeks at once, or in neither.

The Sunday-to-Monday boundary

Under the FLSA the workweek is a fixed, recurring 168-hour period chosen by the employer — commonly Sunday 12:00 AM through Saturday 11:59 PM, but it can start on any day and at any hour. A Sunday-night shift that runs into Monday morning straddles that boundary, and the consequence is real money.

Workweek runs Monday 12:00 AM to Sunday 11:59 PM. Week A: Monday–Saturday nights total 38:00. The Sunday night shift runs 10:00 PM Sunday to 6:00 AM Monday with a 30-minute meal — 7:30.

Shift-start method: all 7:30 lands in Week A → 38:00 + 7:30 = 45:30 → 5:30 of overtime

Split at midnight: 2:00 in Week A, 5:30 in Week B → Week A = 40:00, no overtime at all

Five and a half overtime hours appear or vanish depending on a convention nobody wrote down. If you work nights near your workweek boundary, find out in writing when your workweek starts and which method your employer uses. The overtime calculator lets you test both arrangements in a minute, and overtime rules explained covers the 40-hour rule and the regular rate in detail. Remember that the FLSA sets no federal daily overtime requirement, though some states do impose one.

Daylight saving: the 7-hour and 9-hour nights

Twice a year, in jurisdictions that observe daylight saving time, one night is not 24 hours long. In the spring the clocks jump forward and a scheduled eight-hour overnight shift elapses in seven actual hours; in the autumn they fall back and the same shift takes nine.

Spring forward night. Scheduled 11:00 PM to 7:00 AM. At 2:00 AM the clock jumps to 3:00 AM.

Clock arithmetic: (7:00 + 24:00) − 23:00 = 480 min = 8:00

Actual elapsed time = 480 − 60 = 420 min = 7:00 = 7.00 h

Fall back night. Scheduled 11:00 PM to 7:00 AM. At 2:00 AM the clock returns to 1:00 AM.

Clock arithmetic: 480 min = 8:00

Actual elapsed time = 480 + 60 = 540 min = 9:00 = 9.00 h

The general principle for non-exempt employees is that you are paid for hours actually worked, so the autumn night is nine hours on the clock and the spring night is seven. Plain clock subtraction cannot see this, because it has no idea the local offset changed — and that includes every calculator on this site, which works in local wall-clock minutes by design. On those two nights, adjust the total by hand or log the shift as two lines around the transition, and make a note on the timesheet explaining why the figure differs from the roster.

Some employers pay the scheduled eight hours on both nights as a matter of policy, which is more generous in spring and less so in autumn. If that is your situation, ask for it in writing — and if the autumn shortfall is not made up, raise it with your employer or your state labor agency.

Shift differentials in general terms

A shift differential is extra pay for working less desirable hours: a flat amount per hour, a percentage uplift, or a fixed sum per shift. It is a contractual or policy matter rather than a federal requirement — there is no general federal rule obliging an employer to pay more for night work.

Where a differential does exist, two mechanical points matter. First, a non-discretionary differential generally has to be included in the regular rate used to compute overtime, which means your overtime premium is calculated on a slightly higher base than your nominal hourly rate. Second, differentials usually attach to a window — say 6:00 PM to 6:00 AM — so you need to know how many of your hours fell inside that window, which is precisely the split-at-midnight breakdown from earlier.

Shift 9:00 PM to 5:30 AM, 30-minute unpaid meal taken 1:00 AM–1:30 AM. Differential window 10:00 PM–6:00 AM.

Elapsed = (5:30 + 24:00) − 21:00 = 510 min → 510 − 30 = 480 min = 8:00

Hours before 10:00 PM = 9:00 PM → 10:00 PM = 60 min at base rate only

Hours inside the window = 480 − 60 = 420 min = 7:00 differential-eligible

Rates, windows and eligibility differ from employer to employer, so treat the structure above as the shape of the calculation, not as your entitlement. Your handbook or collective agreement is the authority.

Recording a night shift on a timesheet

Put the shift on one line, dated by its start day, with both clock times and an AM/PM marker or 24-hour notation that cannot be misread. 22:00 and 06:00 remove all doubt; 10:00 and 6:00 with no marker will be read wrongly by somebody eventually.

The time card calculator and the timesheet calculator both handle overnight rows automatically and keep the week in your own browser via localStorage, never uploading it. For the broader mechanics of a weekly sheet — cost codes, travel time, paid leave lines, approvals — see how to fill out a timesheet. If you want to add a duration to a clock time rather than subtract two times, the add time calculator does that, and the work time calculator covers the common payroll cases in one place.

Quick reference

Overnight spans and their totals
InOutElapsedBreakPaid h:mmDecimal
10:00 PM6:00 AM8:00307:307.50
11:30 PM7:15 AM7:45457:007.00
7:45 PM8:00 AM12:154011:3511.58
9:00 PM5:30 AM8:30308:008.00
11:00 PM7:30 AM8:3008:308.50
6:00 PM6:00 AM12:006011:0011.00
11:50 PM8:05 AM8:15307:457.75

Check any row by hand: convert both times to minutes past midnight, add 1440 to the smaller end value, subtract, then take off the break. The arithmetic is dull, which is the point — a dull rule applied the same way every night is what keeps a night-shift paycheck correct.

This is general guidance on time arithmetic and recordkeeping, not legal or payroll advice. Overtime thresholds, break requirements, differentials and daylight-saving handling differ by state and by country; your employer's policy and your state labor agency are the authorities for your own situation.

Frequently asked questions

Common questions

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

Convert both clock times to minutes past midnight. If the end value is less than or equal to the start value, add 1440 minutes (24 hours) to it, then subtract the start from the end. Finally take off any unpaid break.

For a 10:00 PM to 6:00 AM shift: start is 1320 minutes, end is 360 minutes, so the end becomes 360 + 1440 = 1800. Then 1800 minus 1320 is 480 minutes, or 8:00. Deduct a 30-minute meal period and the paid total is 450 minutes, which is 7:30 or 7.50 decimal hours.

Why does my spreadsheet show a negative number for a night shift?

Because clock time wraps around at midnight. The end time of an overnight shift is numerically smaller than the start time even though time moved forward, so a plain subtraction returns a negative value. A 10:00 PM to 6:00 AM shift computes as 360 minus 1320, which is minus 960 minutes.

The true answer is exactly 1440 minutes away from that negative figure, because the end time belongs to the following day. Add 24 hours to the end before subtracting and the result comes out right. Spreadsheets that show ###### are displaying the same problem, not a formatting fault.

How many hours is 11:30 PM to 7:15 AM?

Seven hours and forty-five minutes of elapsed time, which is 7.75 decimal hours. Start 23:30 is 1410 minutes past midnight; end 07:15 is 435, which becomes 1875 after adding 1440; the difference is 465 minutes.

With a 45-minute unpaid meal period you are paid for 420 minutes, which is 7:00 or exactly 7.00 decimal hours. Watch the conversion: 7:45 is 7.75 hours, never 7.45. Writing the minutes after a decimal point is the single most common night-shift payroll error.

Which day does an overnight shift count toward?

Most employers assign the whole shift to the calendar day it started on. That keeps one shift on one timesheet line and makes the day's total equal to the shift length, which is easy to audit.

The alternative is to split the hours at midnight, which is sometimes necessary where a daily overtime threshold applies or where a shift differential attaches to a specific window of clock hours. Either convention is workable; mixing them inside a pay period is not, because hours end up counted twice or lost. Ask your employer which method they use.

Can a Sunday night shift change my weekly overtime?

Yes, and substantially. The FLSA workweek is a fixed, recurring 168-hour period chosen by the employer, so a shift that straddles that boundary can land in either week depending on the convention used.

Say a week already has 38:00 and the Sunday night shift adds 7:30. Assign the whole shift to its start day and the week reaches 45:30, generating 5:30 of overtime. Split it at midnight and 2:00 stays in the week while 5:30 moves to the next, leaving exactly 40:00 and no premium at all. Find out in writing when your workweek starts.

How do daylight saving time changes affect an overnight shift?

On the spring-forward night the clock jumps ahead an hour, so a shift scheduled 11:00 PM to 7:00 AM elapses in seven actual hours rather than eight. On the fall-back night the clock repeats an hour and the same shift takes nine.

For non-exempt employees the general principle is payment for hours actually worked, so the autumn night is nine and the spring night is seven. Plain clock subtraction cannot detect the offset change, so adjust the total by hand on those two nights and add a note on the timesheet explaining the difference from the roster.

Is night work paid at a higher rate?

There is no general federal requirement to pay extra for night hours. Shift differentials — a flat amount per hour, a percentage uplift, or a per-shift sum — come from employer policy or a collective agreement.

Where one does apply, two things follow. A non-discretionary differential generally has to be included in the regular rate used to compute overtime, so your premium is based on a slightly higher figure than your nominal rate. And differentials usually attach to a defined window, so you need to know how many hours fell inside it. Check your handbook for the actual rates.

Does the break still come off an overnight shift the same way?

Yes, but the order matters. Resolve the overnight span first by adding 24 hours, then subtract the unpaid break from the elapsed minutes. Doing it the other way round on a split meal period is where minutes quietly disappear.

Only genuinely unpaid time comes off. Short rest breaks are generally treated as compensable hours worked, while a bona fide meal period of 30 minutes or more during which you are completely relieved of duty generally is not. State meal and rest break rules vary widely, so confirm with your employer or your state labor agency.

How should I write a night shift on my timesheet?

Use one line, dated by the day the shift started, with unambiguous times: 22:00 and 06:00, or 10:00 PM and 6:00 AM with the markers written out. Add a short note such as "out 6:00 AM Wed" so no reviewer mistakes it for a day shift.

Record meal periods with their actual start and end times rather than just a minute count, so an interrupted night meal is visible later. Flag daylight-saving nights explicitly, since a nine-hour total against an eight-hour roster otherwise reads as a mistake.

What happens if the start and end times are identical?

Identical times mean a full 24-hour span, not zero. A shift logged 7:00 PM to 7:00 PM is 1440 minutes. The rule has to add 24 hours when the end is less than or equal to the start, which is why home-made spreadsheets that test only for "less than" return zero and lose an entire day.

In practice a genuine 24-hour entry is almost always a typo, so query it before submitting. The calculators on this site apply the equal-or-less test and will also reject a break longer than the shift with an error rather than showing a negative total.

Last reviewed 1 November 2026. Corrections welcome at our contact page.

Read next

Guides that explain the numbers