How it works: put in when your shift starts and ends and how long your commute is. The planner works out the longest sleep you can protect between shifts, adds a nap if you need one, sets a caffeine cut-off, and gives you a plan for days off. It runs in your browser, stores nothing and is free to use or embed.
Shift-Work Sleep Planner
Enter your shift and commute. You get a sleep window, a nap, a caffeine cut-off and a plan for days off, built on published shift-work research.
General guidance for healthy adults, not medical advice. Follow your employer’s fatigue rules. Planner by Sleep Align.

The rules the planner uses
Every shift worker’s week is different, so the planner does not try to be clever. It applies a handful of rules that come from published research and from the US government’s own training for shift workers, and it shows its working.
| Rule | What the planner does | Where it comes from |
|---|---|---|
| Most adults need 7 hours or more | Defaults to 7.5 hours and warns when your schedule cannot fit what you chose | AASM and Sleep Research Society consensus, 2015 |
| Allow time to get home and wind down | Starts sleep 30 minutes after you get home and ends it an hour before you leave | Practical buffer, adjustable by changing the times |
| Caffeine needs about six hours to stop affecting sleep | Sets your last coffee six hours before sleep; on nights, first half of the shift only | Drake and colleagues, Journal of Clinical Sleep Medicine, 2013 |
| Naps help, but long ones bring grogginess | Suggests a short nap, or a 90-minute one when there is room, ending well before you drive | NIOSH training for nurses on shift work |
| Keep part of your sleep fixed on days off | For nights, keeps about four hours in the usual slot on days off | “Anchor sleep” studies, Minors and Waterhouse, 1981 onwards |
| The drive home after nights is the riskiest part | Adds a drowsy-driving warning to every night-shift plan | NIOSH training for nurses on shift work |
Why caffeine gets a hard cut-off
In a 2013 study, 400 mg of caffeine taken six hours before bedtime still cut objectively measured sleep by more than an hour, and the people taking it mostly did not notice. On a night shift the same rule means caffeine early in the shift helps you, and caffeine near the end costs you the morning’s sleep.
Why the planner warns about sunglasses
Morning light on the drive home tells your body clock it is daytime, which makes the day’s sleep harder. NIOSH’s training for nurses mentions dark or blue-blocking glasses for the trip home, but it also warns that cutting light can make you drowsier at the wheel. The planner passes on both halves of that advice: glasses if someone else is driving, and no pushing through sleepiness if you are.
Why days off are part of the plan
Night workers usually flip back to a normal schedule on days off, and then flip again before the next run of nights. Research on “anchor sleep” in the early 1980s found that keeping about four hours of sleep at the same clock time every day helped keep the body’s daily rhythm steadier when the rest of sleep moved around. It is not a perfect fix, and many people use a version of it without knowing the name. The planner gives you a specific window to try.
How to get the most out of your plan
- Make the bedroom properly dark. Blackout blinds or foil on the glass, and tape over standby lights. Daylight leaking round a curtain is enough to wake you early.
- Keep it cool and quiet. A fan or white-noise app covers daytime sounds. Tell the household your sleep hours and put a sign on the door.
- Use the same routine each time. Shower, dark room, same pillow, phone face down. The routine becomes the signal to sleep, whatever the clock says.
- Protect the nap. A planned nap before a night shift is not laziness. It is part of the sleep you need.
- Eat light before day sleep. A heavy meal just before bed makes daytime sleep lighter and more broken for many people.
Day sleep is short. Get comfortable fast. When your window is five or six hours, tossing around for the first half hour costs a lot. The pillow we recommend for side and back sleepers is the Derila Ergo, a contoured memory foam pillow with a 60-day money-back guarantee. I have slept on it myself.
Guides for specific jobs
The planner covers the timing. These guides cover the rest: the rules, the research and what helps in each job.
- How night shift nurses sleep
- How firefighters sleep
- How paramedics and EMTs sleep
- How police officers sleep
- How truck drivers sleep
- How pilots and flight attendants sleep
- How medical residents and junior doctors sleep
- How soldiers sleep
- How offshore and oil rig workers sleep
- Night shifts with a newborn
When a plan is not enough
If you follow a sensible plan for a few weeks and still cannot sleep in your window, or you are sleepy enough to nod off at work or at the wheel, talk to a doctor. Shift work disorder is a recognized and treatable problem, and loud snoring or pauses in breathing can mean sleep apnea, which is common and also treatable. If your mood is low or you feel unable to cope, in the US call or text 988 at any time.
If you want to try a low-dose melatonin on days off
YU SLEEP is a liquid sleep supplement with 0.9 mg of melatonin plus magnesium glycinate, L-theanine, tart cherry and 5-HTP. That is a lower melatonin dose than many tablets. We have not tested it ourselves. Never take any sleep aid before driving or within the hours before a shift, and follow your employer’s fitness-for-duty rules. It comes with a 60-day money-back guarantee.
See YU SLEEP on the official site →
Do not take it with antidepressants (SSRIs, SNRIs, MAOIs) or other serotonin medicines, because it contains 5-HTP. If you take regular medication, are pregnant or breastfeeding, check with a doctor or pharmacist first.
Frequently Asked Questions
When should I sleep after a night shift?
Most night workers do best going to bed soon after getting home, in a fully dark room, and adding a short nap before the next shift if the main sleep runs short. The planner places the sleep window and the nap for you based on your times.
How long should a nap be before a night shift?
Either short, around 15 to 30 minutes, or long enough to cover a full sleep cycle of about 90 minutes. Middle-length naps are more likely to leave you groggy. Leave time to wake up properly before you drive.
When should I stop drinking coffee on a night shift?
Keep caffeine to the first half of the shift. In a 2013 study, caffeine taken six hours before bed still cut sleep by more than an hour, so a coffee near the end of a night shift eats into the day’s sleep.
How should I sleep on days off between night shifts?
Keep about four hours of sleep in your usual daytime slot and take the rest at night. This “anchor sleep” approach keeps your body clock from swinging all the way back and forth each week.
Can I put this planner on my own website?
Yes. Copy the embed code under the planner and paste it into your page. It is free for any site, including hospitals, unions and trade publications, as long as the credit link stays.
Sources
- Watson NF and colleagues. Recommended amount of sleep for a healthy adult: a joint consensus statement of the AASM and Sleep Research Society. Journal of Clinical Sleep Medicine, 2015.
- Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013. Summary: AASM.
- NIOSH. Training for nurses on shift work and long work hours, modules 7 and 9.
- Minors DS, Waterhouse JM. Anchor sleep as a synchronizer of rhythms on abnormal routines. International Journal of Chronobiology, 1981. Follow-up: Journal of Physiology, 1983.
