Night Shift Sleep Schedule Calculator

Enter your shift times and commute to plan a main sleep block after work and an optional nap before your next shift.

min
hours
min
Plan a pre-shift nap
min
min
min

Result

Main sleep after your shift

7:44 AM–2:44 PM

7 hours after 14 minutes to fall asleep

How it was worked out

Shift ends: 7:00 AM
Commute home: 30 min, so you lie down at 7:30 AM
Time to fall asleep: 14 min, so you are asleep at about 7:44 AM
Sleep target: 7 hours, so the alarm is 2:44 PM
Next shift starts: 7:00 PM; leave home 30 min earlier, at 6:30 PM
Nap: alarm 5:30 PM, then 20 min nap and the fall-asleep time before it, so lie down 5:00 PM

Summary

Shift7:00 PM–7:00 AM
Commute each way30 min
Arrive home and lie down7:30 AM
Asleep at about7:44 AM
Main sleep alarm2:44 PM
Leave home for the next shift6:30 PM
Awake before leaving3 h 46 min
Optional pre-shift napLie down 5:00 PM, alarm 5:30 PM

The times are arithmetic from your entries and assume you go straight to bed on arriving home and work the same shift again the next day. They are not a prediction of how rested you will feel.

Calculation Complete

The night shift sleep schedule calculator turns your shift times and commute into a clock plan: when to lie down after work, when the alarm goes off for a main sleep of the length you choose, and, if you want one, when to lie down and wake for a short nap before you leave for the next shift. It is arithmetic from your entries, not medical advice.

Tips from NIOSH

The U.S. National Institute for Occupational Safety and Health (NIOSH, part of the CDC) publishes shift-work training for nurses. Its night-shift sleep page says to go directly to bed when you arrive home, to sleep as long as possible, and to make the bedroom very dark or wear an eye mask. It notes that night shift workers usually get less sleep, and poorer-quality sleep, than day shift workers, so they should spend as much time in bed as possible. Source: NIOSH, Module 9: Coping with the Night and Evening Shifts, Sleep.

The same page says that if you can take a nap before returning to work, you should: it can increase your overall sleep time and may help you stay alert during the night. This calculator's nap option follows that idea. NIOSH does not give a nap length or an alarm gap, so the 20-minute nap, the 10 minutes to fall asleep and the 60-minute gap before leaving are our editable planning values.

For days off, NIOSH suggests a compromise sleep schedule so your body always has some sleep hours that are the same every 24 hours, for example sleeping as soon as you get home on work nights. Source: NIOSH, Module 9, Sleep (Continued). This calculator plans one repeated shift; it does not plan days off or rotating rosters. See also the full NIOSH shift-work training for nurses.

Enter the time your shift starts and ends (a shift that ends earlier on the clock than it starts is taken to run past midnight), your commute each way in minutes, how long you want to sleep and how long you usually take to fall asleep. Leave the nap on to see when to lie down and set an alarm before you leave for the next shift, or switch it off. Press Calculate. The result gives the main sleep window, the alarm, the time you leave home and any nap.

Examples

A 7 PM to 7 AM shift with a 30-minute commute

The shift ends at 7:00 AM; the 30-minute commute puts you in bed at 7:30 AM. With 14 minutes to fall asleep you are asleep at 7:44 AM, and a 7 hours target sets the alarm for 2:44 PM. You leave home at 6:30 PM, so you are awake for 3 h 46 min first. For the nap: lie down 5:00 PM and set the alarm for 5:30 PM.

An 11 PM to 7 AM shift

The shift ends at the same 7:00 AM, so the main sleep is the same, 7:44 AM–2:44 PM. The later start gives a longer gap before you leave at 10:30 PM: lie down 9:00 PM and set the alarm for 9:30 PM.

A longer commute and a longer sleep

A 7 PM to 7 AM shift with a 120-minute commute gives a main sleep of 9:14 AM–4:14 PM and a leave time of 5:00 PM; there is no room for a nap. With an 8 AM finish, a 9-hour target and the same 30-minute commute, the main sleep is 8:44 AM–5:44 PM against a 7:30 PM leave time, so there is no room for a nap.

Main sleep for a 7 PM to 7 AM shift by commute

Main sleep for a 7 PM to 7 AM shift, 7-hour target
Commute each wayLie downMain sleepLeave home
0 min7:00 AM7:14 AM–2:14 PM7:00 PM
30 min7:30 AM7:44 AM–2:44 PM6:30 PM
60 min8:00 AM8:14 AM–3:14 PM6:00 PM
90 min8:30 AM8:44 AM–3:44 PM5:30 PM

Frequently Asked Questions

When should I sleep after a night shift?
NIOSH advises going directly to bed when you arrive home and getting as much sleep as possible, noting that the more sleep you get before 2 p.m., the better rested you will be. This calculator puts the main sleep right after your commute home, so you can see what time the alarm falls for the length you choose.
How long should I sleep after a night shift?
The CDC lists 7 or more hours for adults aged 18 to 60, and NIOSH tells night shift workers to sleep as long as possible because they usually get less sleep than day shift workers. The calculator starts at 7 hours and lets you change it from 3 to 12 hours.
Should I nap before a night shift?
NIOSH says that if you can nap before returning to work you should, because it can increase your overall sleep time and may help you stay alert during the night. It does not give a nap length. The 20-minute nap here is an editable planning default, not a NIOSH figure.
Does this work for rotating shifts or days off?
No. It plans one repeated shift: you work the same hours again the next day. Rotating rosters, days off and changes between day and night shifts are outside what it calculates.
Is this medical advice?
No. It is clock arithmetic from the times you enter, with general tips from public CDC/NIOSH pages. It cannot tell you how rested you will feel or whether a schedule is safe for you. If you struggle to sleep or stay awake, speak to a doctor.

Related Information

Related sleep tools

Sources and wording checked with Claude (AI-assisted). Not a medical review. Scope and limitations.

Key Terms

Main sleep
The longest block of sleep in your day, planned here to start after you get home from a shift.
Time to fall asleep
The minutes between getting into bed and falling asleep.
Pre-shift nap
A short nap taken before leaving for work, planned here from your leave time.

Sources

  1. NIOSH Training for Nurses on Shift Work and Long Work Hours, Module 9: Coping with the Night and Evening Shifts, Sleep — CDC, National Institute for Occupational Safety and Health
  2. NIOSH Module 9, Sleep (Continued) — CDC, National Institute for Occupational Safety and Health
  3. About Sleep — U.S. Centers for Disease Control and Prevention

Quick Tips

  • •NIOSH advises going directly to bed when you arrive home and making the bedroom very dark or wearing an eye mask.
  • •Treat the nap length, fall-asleep times and gap before leaving as dials: change them to match how you actually sleep.
  • •If the result says the main sleep runs past your leave time, shorten the target or the commute rather than ignoring it.
  • •Use the nap calculator for another nap length, and the caffeine calculator to see how much caffeine from a drink is left when you plan to lie down.