Shift Work Sleep Calculator

Quick answer

After a night shift, most people sleep best by going to bed soon after getting home. A nurse working 7 PM to 7 AM with a 30-minute commute and 45 minutes to wind down would sleep from 8:15 AM to 4:15 PM for 8 hours, take a short nap around 5:30 PM, and stop caffeine by about 2:15 AM.

Updated October 3, 2026By Shakeel Muzaffar
Try
Shift work
Nights to days: when your next shift starts.
Same as the start for a 24-hour shift. Nights to days: when your last night ends.
Count the day your last night ends as day 1 (1 to 7).
Nights to days only.
0 to 180.
Shower, food, relaxing (0 to 180).
Go to bed at
—
Wake up at—
Pre-shift nap—
Last caffeine by—
Time between shifts—

Calculations run in your browser. Inputs are not sent to our servers; anything you Save stays in this browser only.

Saved results (0)

How To Use The Shift Work Sleep Calculator

  1. Pick a mode, then enter your shift start and end. Night shifts across midnight work automatically. For a 24-hour shift, enter the same time twice. Or tap a preset.
  2. Add your commute and wind-down time. These push your bedtime later after the shift.
  3. Pick how much sleep you need. Most adults need 7 to 9 hours in 24 hours.
ResultWhat it means
Go to bed and wake up atYour main sleep for a work day
Pre-shift napA short nap before a night shift to stay alert
Last caffeine by6 hours before your bedtime
Time between shiftsOff-duty hours from the end of one shift to the start of the next

What Is Shift Work Sleep?

Shift work means working when most people sleep: nights, early mornings, evenings, rotating or 24-hour shifts. Your body clock is set for night-time sleep, so sleeping in the day is harder and often shorter.

When the problem lasts, it can become shift work disorder: heavy sleepiness, trouble falling or staying asleep, low energy and poor concentration, with a higher risk of mistakes and drowsy-driving accidents. For a full routine, see how to sleep after a night shift.

How Does The Shift Work Sleep Calculator Work?

It decides whether your main sleep comes after the shift or before the next one.

Formula: Night and evening shifts: Bedtime = Shift end + Commute + Wind-down; Wake = Bedtime + Sleep need. Day shifts: Wake = Next start - Commute - 60 min; Bedtime = Wake - Sleep need. Last caffeine = Bedtime - 6 h
Shift typeWhen to sleep
Night (starts 6 PM to 4 AM)Straight after the shift, plus a short pre-shift nap
EveningAfter the shift, as a late night
Day or early start (starts 4 AM to noon)The night before, early enough for your full sleep
24 hours or longerRecovery sleep after, then back to night-time sleep

If the gap is too short for full sleep plus an hour to get ready, it warns you and suggests a split sleep.

Worked Example: A Nurse On 12-Hour Nights

StepValue
Shift7:00 PM to 7:00 AM
Home7:30 AM (30 min commute)
Bed8:15 AM (45 min wind-down)
Wake4:15 PM (8 hours)
Pre-shift nap20 to 30 min around 5:30 PM
Last caffeineAbout 2:15 AM

The plan fits, with time for a meal and a short nap before leaving at 6:30 PM.

Switching From Night Shifts Back To Days

After your last night shift, the Sleep Health Foundation suggests a short sleep in the morning, then going to bed earlier than usual that night. Some sunlight after waking helps your body clock line up with day and night again. Choose Nights to days in the calculator to get a day-by-day plan:

WhenWhat the plan does
Morning after the last nightShort recovery sleep: half your sleep need, ending at least 6 hours before bedtime
AfternoonDaylight outside; no long naps in the 6 hours before bed
Each night offThe same bedtime and your full sleep need, then morning daylight
Back to a day shiftBedtime moved earlier if needed, so you wake 60 minutes before leaving
Back to nightsA 20 to 30 minute nap before your first night back

Example: 3 x 12-hour nights ending at 7 AM, 3 days off, then a 7 AM day shift. Sleep 8:15 AM to 12:15 PM, get outside, then go to bed at 9:30 PM every night off. The half-sleep-need length is our own rule to keep the day sleep short; the 6-hour gap follows the advice to avoid long naps in the 4 to 6 hours before your main sleep.

Shift Work Sleep By Role: Nurses, Doctors, Drivers, Pilots And Firefighters

RoleCommon patternMain challengePreset
Nurses12-hour days or nightsShort gaps between back-to-back 12sNurse, 12 h nights
DoctorsLong days, nights and on-callLong hours and irregular callsDoctor, long day
Truck driversNights and early startsDrowsiness at the wheelTruck driver, nights
Pilots and cabin crewEarly reports and time zonesVery early alarms, jet lagPilot, early report
Firefighters24-hour shiftsBroken sleep on shiftFirefighter, 24 h

Flight crews crossing time zones can also plan with the jet lag recovery calculator. Follow your employer and regulator rules on duty and rest times; this calculator does not replace them.

Rest Rules For Pilots And Truck Drivers

In the US, airline pilots must be given at least 10 consecutive hours of rest before a flight duty period, including at least 8 uninterrupted hours of sleep opportunity (14 CFR 117.25). Property-carrying truck drivers must take 10 consecutive hours off duty before driving, may drive up to 11 hours within a 14-hour window, and need a 30-minute break after 8 hours of driving (49 CFR 395.3). These are minimums: plan your real sleep inside the rest period with the calculator.

What Is A Good Night Shift Sleep Schedule?

A good night shift sleep schedule protects one main sleep at the same time after every shift, adds a short nap before work, and stops caffeine about 6 hours before bed. Here is how that looks for two common night shifts, using the calculator defaults (30 minute commute, 45 minute wind-down, 8 hours of sleep):

8-hour nights (11 PM to 7 AM)12-hour nights (7 PM to 7 AM)
Home7:30 AM7:30 AM
Main sleep8:15 AM to 4:15 PM8:15 AM to 4:15 PM
Pre-shift napOptional, 20 to 30 min early evening20 to 30 min around 5:30 PM
Last caffeineAbout 2:15 AMAbout 2:15 AM

On a run of nights, keep the same main sleep window every day.

Sleep Straight After vs Split Sleep: Which Is Better?

Straight after the shiftSplit sleep
PatternOne long sleep soon after getting homeA shorter main sleep plus a longer nap before the next shift
Best whenYou fall asleep easily after nights and have a long gap between shiftsYou wake early in the day, or the gap is too short for one long sleep

Either works if the total reaches your sleep need and the timing stays the same each work day.

Factors That Change Your Shift Work Sleep

Light

Bright light at work and sunglasses on the way home make daytime sleep easier.

Naps

A planned nap before or during a night shift improves alertness, according to sleep medicine practice parameters; the nap calculator helps you choose a length.

Caffeine

Caffeine helps alertness on the shift, but taken within 6 hours of bed it can cut sleep by more than an hour. The caffeine calculator works out what is left at bedtime.

Your Bedroom

Blackout curtains, earplugs and a cool room protect daytime sleep.

Who Should Use A Shift Work Sleep Calculator?

  • Night workers in healthcare, transport, security, manufacturing and emergency services.
  • Early starters, such as pilots, bakers and delivery drivers.
  • People on rotating rotas planning each week as it comes.
  • Families of shift workers planning quiet hours.

Common Mistakes On Shift Work

Running Errands Before Bed

Staying up after a night shift shortens the easiest sleep.

Late Caffeine

A coffee near the end of a night shift lands just before bedtime.

No Nap Before Nights

A short pre-shift nap is a simple way to stay alert.

Driving Drowsy

If you are very sleepy, nap first or get another way home.

Accuracy And Limitations

The times follow sleep medicine guidance and simple rules, but every rota and household is different.

What It Does Well

  • Bed, wake, nap and caffeine times for one shift pattern
  • Day, evening, night and 24-hour shifts
  • A day-by-day plan from nights back to days

What It Cannot Do

  • Plan a whole rotating month at once
  • Replace duty and rest rules from your employer or regulator
  • Diagnose shift work disorder

How We Calculate Your Shift Work Sleep

Night shifts
Sleep straight after, plus a pre-shift nap (AASM practice parameters)
Day shifts
Wake 60 min before leaving; sleep need counted back from there
Caffeine
Last dose 6 hours before bed (Drake et al. 2013)
Nights to days
Short morning sleep, earlier bedtime, daylight (Sleep Health Foundation); recovery length is our rule
Sleep need
7 to 9 hours in 24 hours (Sleep Health Foundation)

Shift Work Sleep Calculator FAQs

When should I sleep after a night shift?

For most people, soon after getting home, in a dark, quiet, cool room. The calculator adds your commute and wind-down time.

How much sleep do shift workers need?

The same 7 to 9 hours in 24 hours as other adults, from one main sleep or a main sleep plus a nap.

Should I nap before a night shift?

Yes. A planned nap before or during a night shift improves alertness. A 20 to 30 minute nap avoids grogginess.

When should I stop caffeine on a night shift?

At least 6 hours before you plan to sleep. For a bedtime of 8:15 AM, that is about 2:15 AM.

How do I sleep before an early shift?

Count back from the time you need to wake, allowing an hour to get ready, and go to bed early enough for your full sleep.

How should I sleep after a 24-hour shift?

Take a recovery sleep after the shift, then try to go to bed at a normal time that night to reset.

What if there is not enough time between shifts?

Split your sleep into a main sleep after the shift and a longer nap before the next one.

What is shift work disorder?

Ongoing trouble sleeping or heavy sleepiness because of a work schedule, usually for a month or more. A sleep doctor can help.

Sources

Related Calculators

For bedtimes and wake-up times in both directions, use the main sleep calculator. Explore every sleep timing, sleep need and shift work tool in one place.

All sleep tools

This calculator gives general sleep timing guidance for shift workers. It does not replace duty and rest rules from your employer or regulator, or medical advice. Do not drive if you feel very sleepy. Spotted an error? Let us know.