Marcus is a warehouse supervisor in Columbus, Ohio. He starts work at 11 at night and finishes at 7 in the morning. For the first month on nights, he slept about four broken hours a day. He would get home as the sun came up, stare at the ceiling while traffic noise leaked through his window, and finally drift off around 10 in the morning. By 2 in the afternoon his alarm dragged him awake for errands, and by midnight he was already fighting to keep his eyes open at work.
The worst moment came on a Thursday. Driving home after a long shift, Marcus caught himself blinking at a green light he had already missed. His head had dipped for a second. He pulled into a gas station, bought a coffee he did not need, and sat in the parking lot until his hands stopped shaking. He was not lazy and he was not weak. He was a good worker running on a sleep plan that fought his body at every step.
If you want to know how to sleep better when working night shifts, Marcus is the right place to start, because his fix was not a miracle product or a perfect routine. It was three simple changes: one protected block of sleep at the same time every day, light and caffeine used on a schedule instead of by habit, and a bedroom turned into a dark, cool cave. Within three weeks he was sleeping close to seven hours most days, and the drive home stopped scaring him.
This guide explains each change in detail, with a sample schedule you can copy, so you can build the same system around your own roster. It is general information, not medical advice. If sleep problems persist or you notice warning signs, see a clinician.
Why Night Shifts Make Sleep So Hard
Your body runs on an internal clock, the circadian rhythm, which expects light in the morning and darkness at night. Night shift work asks that clock to run in reverse. Light at the wrong time pushes the clock the wrong way, meals land at hours when digestion is slow, and sleep has to happen while the rest of the world is loud, bright, and busy.
The numbers explain why willpower alone cannot fix this. The CDC notes that alertness often reaches one of its lowest points between 2 a.m. and 6 a.m., which is the middle of most night shifts. A study by the National Institute for Occupational Safety and Health found that about 62 percent of night workers reported short sleep, meaning less than seven hours, compared with 36 percent of day workers. Research on night workers also finds they average only about 5.7 hours of sleep after night shifts, against 7 hours for day workers, and only about a quarter show strong circadian adaptation to night work without specific help.
That gap is the whole problem. Daytime sleep is shorter, lighter, and more broken than night sleep, because daylight, noise, family activity, and a rising body temperature all fight against it. The goal of this guide is not to force your body into a perfect daytime routine. The goal is to close that gap with timing, light, and a bedroom that works for you instead of against you.
How to Sleep Better When Working Night Shifts With an Anchor Sleep
The single most useful idea in this guide is anchor sleep. An anchor is one fixed block of sleep that you protect at the same time every day, even on days off. Sleep researchers use the term because the block pins your week in place when everything else moves. A stable anchor gives your body a predictable window to prioritize, and it reduces the constant jet lag feeling that comes from sleeping at a different time every day.
For most night shift workers, the anchor looks like this: sleep from about 8 in the morning to noon, or your equivalent post shift window, every single day, including days off. Four hours is the core. Then add extra sleep around it: a nap before your shift, a longer sleep on days off, or an earlier bedtime when the roster allows. The total across 24 hours should reach 7 to 9 hours wherever possible, even if it arrives in two blocks.
Marcus chose 8 a.m. to noon as his anchor. He kept it seven days a week, even on his days off, and it changed everything. His body learned when sleep was coming, and falling asleep stopped taking an hour of tossing and turning. On days off he added a nap in the early evening, which let him enjoy the evening with his family without losing the anchor.
Split sleep: a second option that works for many people
If one long block of daytime sleep feels impossible, split sleep is a proven alternative. Sleep for 4 to 5 hours right after your shift, then take a 2 to 3 hour nap before your next shift. Research on shift workers supports split sleep as a practical way to reach a healthy total, and many nurses and warehouse workers prefer it because it frees up the middle of the day for errands, family, and daylight.
The split only works if both blocks are protected. A nap that gets eaten by chores is not a nap. Treat the second block like a real bedtime: dark room, phone on silent, and a clear agreement with the household that this is sleep, not free time.
Bank sleep before a block of nights
Before a run of night shifts, sleep longer for two or three days. Aim for 9 to 10 hours a night if you can. Research supports banking sleep before shift work as a way to build a reserve that improves alertness, performance, and safety during the shifts that follow. Think of it as filling the tank before a long drive. It does not replace good sleep during the block, but it means you start the block rested instead of already in debt.
On rotating rosters, direction matters too. The American Academy of Sleep Medicine guidance conditionally favors clockwise rotation, day to evening to night, over the opposite direction. You may not control your roster, but if you have any influence over it, forward rotation is the kinder option for your body clock.
Time Light Like Medicine
Light is the strongest signal for your body clock, and for night shift workers it is a tool you use in both directions. Bright light early in your waking period tells your body that the day has started. Bright light late in your waking period, in the last hour before sleep, delays sleep. Getting this one idea right is worth more than any supplement.
During your shift, keep your work area bright during the first half, especially in the early hours when alertness matters most. If your workplace allows it, a bright light box for 20 to 30 minutes can help. The American Academy of Sleep Medicine conditionally recommends bright light exposure for adults with shift work disorder who struggle with excessive sleepiness, although the evidence quality is low. In plain terms, it helps many people, and it is cheap and safe to try.
After about 3 a.m., dim the lights where you can. The last hours of the shift are the highest risk window for sleepiness and mistakes, so this is also the time to take your break, move around, and use the nap strategy below rather than pushing through on coffee alone.

The drive home is part of the sleep plan
The commute home after a night shift is one of the most dangerous parts of the job, because alertness is at its lowest and morning sunlight tells your brain to wake up just as you need to wind down. Wear sunglasses on the drive home if the sun is up, even on a cloudy morning. Choose lenses that still allow safe visibility, especially at dawn, in rain, or in low light. Do not check your phone in bright sun on the way home, and do not run errands that can wait until after sleep.
If you feel drowsy while driving, pull over. A 20 minute nap in a safe parking spot is worth far more than pushing on. Drowsy driving after a night shift is a real risk, not a sign of weakness, and the workers who take it seriously are the ones who get home safely. Marcus now treats the drive home as the first step of his sleep routine, not the last step of his workday, and that change of mind alone made his mornings calmer.
Caffeine Rules That Protect Your Sleep
Coffee is not the enemy. Bad timing is. Caffeine has a half life of roughly five to six hours in most adults, which means half of it is still active five to six hours after you drink it. A coffee taken four hours before daytime sleep can still be working when you lie down. The practical rule is simple, and it is the one Marcus says made the biggest difference after the anchor sleep itself.
Set a caffeine cutoff six to eight hours before your planned sleep, and make it part of your daily plan. Early in your waking period, caffeine is a useful tool. It improves alertness and mood at the start of a shift. Late in your waking period, it is a loan taken out against the next sleep. If you need a lift near the end of a shift, a short nap where your workplace allows it, or a brief walk and bright light, will serve you better than another coffee.
Front load your caffeine instead of spreading it across the shift. Have your main coffee in the first four hours of the shift, then switch to water, sparkling water, or herbal tea without caffeine. Watch hidden caffeine too. Energy drinks, some teas, chocolate, and some pain relief products all contain caffeine, and energy drinks deserve extra caution because they combine high caffeine with sugar and other stimulants, which makes the cutoff harder to judge. If you use them, count them as caffeine and apply the same cutoff.
There is also a neat trick worth knowing: the caffeine nap. Drink a coffee immediately before a 15 minute break, then nap for 15 minutes. The caffeine peaks as you wake, and the combination can restore alertness better than either one alone. Use it only early in the shift, and never within six hours of planned sleep. For more on how caffeine timing shapes the whole workday, see our guide on how to stop feeling tired after lunch at work, which explains the afternoon dip and the same cutoff idea for day workers.
Naps That Help Instead of Hurt
Naps are the most misunderstood tool in night shift sleep. Used well, they are powerful. Used badly, they steal from the main sleep block and leave you groggy. The rules are simple once you know them.
First, nap before your shift. A nap of about 90 minutes, two to three hours before a night shift, can improve alertness at work, and the American Academy of Sleep Medicine conditionally recommends a nap before a night shift for workers struggling with excessive sleepiness. A 2026 review of trials found that a two hour nap in the afternoon, combined with a 30 minute nap during the night shift, significantly reduced sleepiness and performance problems compared with no nap strategy at all.
Second, keep on shift naps short. A 20 minute nap before 2 a.m. can restore alertness without the deep sleep grogginess that follows a longer nap. Avoid naps of 60 minutes or more during the shift, because they steal sleep pressure from the post shift sleep block and can leave you waking up disoriented. If your workplace does not allow naps, a 20 minute rest break with your eyes closed in a quiet room is still better than nothing.

What to do when a nap makes you feel worse
If you wake from a nap feeling groggy, you probably slept too long or woke from deep sleep. Shorten the nap to 15 or 20 minutes, or set two alarms. A short nap should leave you feeling clearer within ten minutes of waking. If grogginess lasts longer than half an hour most days, your main sleep block is probably too short, and that is the problem to fix first, not the nap.
Marcus naps from 8 p.m. to 9.30 p.m. before his 11 p.m. shift. He sets a loud alarm across the room so he has to stand up to switch it off, then drinks a glass of water and steps outside for a few minutes of fresh air. The nap plus the light plus the movement is his start of shift ritual, and it replaced the extra large coffee that used to keep him wired until 4 in the morning and then ruin his sleep.
Build a Daytime Sleep Cave
No sleep strategy works well in a bad sleep environment, and for night shift workers the bedroom is the foundation of everything. Your bedroom setup is not a nice extra. It is the main tool that turns a bright, noisy day into something your body can sleep through.
Start with darkness. Blackout curtains are the single best purchase a night shift worker can make. If curtains alone do not block enough light, add an eye mask as a second layer. Cover small lights in the room, such as charger lights and standby lights, with tape or a cloth. The goal is a room so dark you cannot see your hand clearly when you wake. A darker bedroom also supports melatonin, the hormone that signals sleep, and recent research links light exposure during sleep with poorer heart health markers, which is one more reason to take darkness seriously.
Next, cool the room. Most people sleep best around 60 to 67 Fahrenheit, which is 15 to 19 Celsius. A cool room helps your body temperature fall, which is part of how sleep starts. Use a fan for both cool air and steady background noise. If your home is warm during the day, close the curtains before you leave for your shift so the room never heats up in the first place.
Then handle noise. Earplugs, a white noise machine, or a fan all work. Pick the one you will actually use every day. Tell the household your sleep hours and put a simple sign on the bedroom door. Ask delivery drivers and visitors to knock quietly, or leave a note asking them not to ring the bell during your sleep block. Small courtesies add up when sleep is fragile.

The last hour before daytime sleep
Build a short wind down routine for the hour before sleep, and keep it the same every day. Dim the lights at home, put screens down or use a night mode, and keep the bedroom cool and dark. Avoid a large meal, alcohol, and late caffeine close to sleep. Alcohol is a common trap: it can make you feel drowsy, but it fragments sleep later in the night and lowers sleep quality. A light snack such as toast, yogurt, or soup, an hour or more before bed, is a better choice than a heavy meal.
Keep your phone out of the bedroom if you can, or at least face down and on silent, with only genuine emergency contacts allowed through. Scrolling in bed is the fastest way to lose an hour of anchor sleep, and the bright screen tells your body clock that the day is starting. A short routine, reading, stretching, or a warm shower, repeated nightly, tells the body that sleep is coming far better than a perfect routine used once.
Food, Movement, and the Rest of the Day
Food timing matters as much as food choice. Eat your main meal in the middle of your waking period, and keep the meal before sleep small and light. A heavy, fatty, or spicy meal right before daytime sleep can cause discomfort and reflux, especially when you lie down soon after eating. The American Academy of Sleep Medicine guidance conditionally recommends not eating a full meal during the night shift itself, so keep overnight eating light: a small sandwich, fruit, yogurt, or soup, rather than a large hot meal at 3 a.m.
Hydration follows the same pattern. Drink steadily through your waking period, then taper fluids in the last hour before sleep so bathroom trips do not break the sleep block. This is a small detail that makes a real difference to daytime sleep, which is already fragile.
Movement helps too. A 2026 systematic review found that structured exercise shows promise for sleep and thinking outcomes in shift workers. Keep it gentle near sleep: a walk, stretching, or a short bodyweight routine during the waking period. Save hard training for the middle of your waking period, not the first hour and not the last hour, because very hard exercise right before daytime sleep can make falling asleep harder.
Plan the whole day like it matters, because it does. Your sleep block is the most important appointment in your day, so put it in your calendar before anything else and plan errands, meals, and social time around it. Our guide on how to prioritize tasks using the eisenhower matrix shows a simple way to sort the day so the important work, including sleep, gets protected time instead of whatever is left over. When sleep is treated as the top priority, the rest of the day gets easier, not harder.
A Simple Night Shift Sleep Schedule You Can Copy
Here is a full day built around an 11 p.m. to 7 a.m. shift, using everything in this guide. Adjust the times to your own roster, but keep the order and the gaps the same.
8 p.m. to 9.30 p.m.: pre shift nap, 90 minutes, in a dark room with an alarm across the room. 9.30 p.m.: wake, water, a small meal, and a few minutes of fresh air or bright light. 10.30 p.m.: leave for work. 11 p.m. to 3 a.m.: work, with bright light and your main coffee in the first half of the shift. 3 a.m.: switch to water and herbal tea, dim the lights where you can, and take a 20 minute break if your workplace allows it. 6 a.m.: stop caffeine completely if you have not already. 7 a.m.: finish work, put on sunglasses, and drive home without errands. 7.30 a.m.: light snack, wind down routine, and into the dark, cool bedroom. 8 a.m. to noon: anchor sleep, four hours, phone on silent. Noon to 2 p.m.: wake, daylight, main meal, errands, and time with family. 2 p.m. to 6 p.m.: free time, gentle movement, and preparation for the next shift. 6 p.m.: start winding down toward the pre shift nap again.
On days off, keep the anchor sleep at the same hours and add a longer sleep or a nap in the early evening. The anchor is what keeps your body clock from swinging wildly between workdays and days off, and it is the habit that makes all the others work. If you are building a fuller routine around your waking hours, our guide on how to build a morning routine when you work night shifts gives you three versions of a first hour routine, five minutes, twenty minutes, and forty minutes, that fit a night shift life.
When to Get Medical Help
Most night shift sleep problems improve with the changes in this guide, but some need professional care. Shift work sleep disorder is a recognized condition, and it is more than ordinary tiredness. Get medical help if you notice any of the following.
First, insomnia that does not improve after a few weeks of a steady anchor sleep, a dark bedroom, and a caffeine cutoff. Second, severe sleepiness that keeps happening despite naps and good sleep habits, especially if you have had near miss driving incidents or you fall asleep without meaning to during your shift. Third, loud snoring, gasping, or pauses in breathing during sleep, which can point to sleep apnea. Fourth, low mood, anxiety, or trouble concentrating that grows worse over months of shift work.
A doctor may suggest a sleep study, a short course of treatment, or a review of your roster. Cognitive behavioral therapy for insomnia and timed melatonin may help some people, but only under professional guidance, because timing and dose matter and the wrong timing can make things worse. Bring a simple sleep diary to the appointment: your shift times, your sleep times, your caffeine times, and how you felt each day. That detail helps a clinician far more than a vague report of being tired.
This guide is general information, not medical advice. It cannot replace an examination, and it cannot diagnose a sleep disorder. If you are unsure, err on the side of getting checked. Early care is usually simpler than care after months of pushing through worsening sleep.
Conclusion: How to Sleep Better When Working Night Shifts
Marcus did not fix his sleep in one night. He picked an anchor, 8 a.m. to noon, and kept it for three weeks. He set a caffeine cutoff and moved his main coffee to the start of the shift. He bought blackout curtains, put his phone on silent, and started napping before work instead of after it. Within a month he was sleeping close to seven hours most days, his mood at home improved, and the drive home stopped feeling like a risk.
Remember the three main points. First, protect one anchor block of sleep at the same time every day, and build the rest of your sleep around it in naps or split blocks. Second, time light and caffeine like medicine: bright light and coffee early, dim light and water late, with a firm cutoff six to eight hours before sleep. Third, build a daytime sleep cave that is dark, cool, and quiet, and treat the drive home as the first step of sleep, not the last step of work.
Start tonight with one change. Pick your anchor hours and write them down. Put blackout curtains or an eye mask on your shopping list. Set a caffeine cutoff for your next shift. Small steps, repeated daily, are how to sleep better when working night shifts, not by pushing through tiredness, but by giving your body the timing and the darkness it needs to do its job.
Frequently Asked Questions
How many hours of sleep do night shift workers need?
Most adults need 7 to 9 hours of sleep in each 24 hour period, even if it arrives in two blocks. An anchor block of 4 hours plus a nap before your shift, or a split of 4 to 5 hours after work plus a 2 to 3 hour nap, can reach that total. Consistency matters as much as the total, so keep the same anchor hours every day.
What is the best time to sleep after a night shift?
Sleep as soon as you can after getting home, ideally within 30 to 60 minutes. Waiting too long lets morning light and errands wake your body clock up again, which makes falling asleep harder. Go straight home, eat a light snack, run a short wind down routine, and get into your dark bedroom.
Should I nap before a night shift?
Yes. A nap of about 90 minutes, two to three hours before your shift, improves alertness at work, and sleep medicine guidance supports it for workers who struggle with sleepiness. Keep on shift naps short, around 20 minutes, and avoid long naps late in the shift because they steal from your main sleep block.
When should I stop drinking coffee on a night shift?
Stop caffeine six to eight hours before your planned sleep. Caffeine has a half life of roughly five to six hours, so a coffee late in the shift is still active when you lie down. Front load your coffee into the first four hours of the shift, then switch to water or herbal tea without caffeine.
Do blackout curtains really help night shift sleep?
Yes. Darkness is the strongest signal for sleep after timing itself. Blackout curtains plus an eye mask turn a bright day into a dark room, which helps you fall asleep faster and sleep more deeply. Pair them with a cool room, around 60 to 67 Fahrenheit, and earplugs or white noise for the best result.
