Staying awake through a night shift means working against your body’s internal clock, which is wired to make you sleepy between roughly 2 a.m. and 6 a.m. regardless of how motivated you are. The good news: a combination of timed light exposure, strategic napping, smart caffeine use, and the right food choices can dramatically reduce that overnight fatigue. Here’s what actually works.
Why Night Shifts Feel So Hard
Your circadian rhythm is a 24-hour biological cycle that regulates when you feel alert and when you feel sleepy. The primary signal that sets this clock is light. When you flip your schedule and work through the night, your brain is still releasing melatonin (the hormone that promotes sleep) at the same time it always has, typically peaking in the middle of the night. You’re essentially trying to be productive during your body’s strongest sleep window.
Research shows that 71% of the variation in how well a person’s body adapts to night shifts comes down to two factors: the pattern of light they’re exposed to relative to their internal clock, and whether they’re naturally a morning or evening person. That means your light environment and personal habits matter far more than willpower.
Use Light to Reset Your Clock
Bright light is the single most powerful tool you have. Exposure to bright light during the early part of your night shift tells your brain to delay its sleep cycle, gradually shifting your alertness window to better match your work hours. Light above 1,000 lux (roughly the brightness of a well-lit office or a portable light therapy box) is effective at pushing your sleep period later. Standard overhead fluorescent lighting in most workplaces falls short of this, so a dedicated light therapy lamp at your workstation can make a real difference.
Timing matters as much as brightness. Light exposure in the first half of your shift promotes the delay you want. Light exposure in the early morning, especially during your commute home, works against you by pulling your clock back toward a daytime schedule. Wearing sunglasses on the drive home (even on cloudy days) helps protect the circadian shift you’ve been building all night.
Nap Before Your Shift
A “prophylactic nap” taken before you leave for work is one of the most reliable ways to reduce fatigue overnight. The ideal length is between 90 minutes and 3 hours, taken sometime in the late afternoon or evening before your shift starts. In studies of nurses, a 90-minute nap ending around 5 p.m. produced significantly better alertness during the second half of the night shift compared to no nap. A longer nap of 2.5 to 3 hours provided even more benefit.
If you can only manage a shorter nap, it’s still worth doing. The key is building it into your pre-shift routine rather than treating it as optional. Set an alarm, darken your room, and treat it like a scheduled appointment. Even on your first night shift of a rotation, when you may not feel tired enough to nap easily, lying down in a dark room for 90 minutes gives your body a measurable buffer against the fatigue that will hit hardest between 3 and 5 a.m.
Time Your Caffeine Carefully
Caffeine works for night shift alertness, but the dose and timing determine whether it helps your shift without wrecking your daytime sleep. Most studies on shift workers use doses of 200 to 300 mg, roughly the amount in two standard cups of coffee. That’s enough to meaningfully improve reaction time and reduce errors.
The tricky part is the cutoff. Caffeine has a half-life of about five to six hours, meaning half the stimulant effect is still active that long after you drink it. If your shift ends at 7 a.m. and you need to fall asleep by 9 a.m., your last cup should be no later than around 3 a.m. Studies that gave caffeine late in the shift found it shortened total daytime sleep. In contrast, studies where caffeine was given only in the first half of the shift (before roughly 1 to 2 a.m.) found no significant difference in how long workers slept the next day.
Smaller, more frequent doses spread across the first half of your shift may keep alertness steadier than one large dose at the start. A cup of coffee every couple of hours through midnight or 1 a.m., then switching to water, is a practical approach.
What to Eat (and When)
What you eat during a night shift affects your alertness in ways that shift over the course of hours. Research tracking shift workers’ food intake and reaction times found that the relationship between food and alertness depends on when you measure it relative to the meal.
In the hour after eating, higher carbohydrate intake was associated with slightly faster reaction times, while higher fat intake slowed them down. But two to three hours after eating, the pattern flipped: higher fat intake was linked to fewer attention lapses, while more carbohydrates were associated with more lapses. Protein intake showed no clear effect on objective alertness either way.
The practical takeaway: smaller meals that balance protein, fat, and moderate carbohydrates tend to keep you more consistently alert than a single large, carb-heavy meal. A meal heavy in simple sugars or refined carbohydrates may give you a short burst of focus followed by a dip. Think grilled chicken with vegetables and a moderate portion of rice rather than a plate of pasta or a bag of chips from the vending machine. Eating lighter overall during the shift and saving your larger meal for before or after work also helps avoid the post-meal drowsiness that hits harder at night than it does during the day.
Keep Your Environment Cool and Bright
Temperature plays a subtle but real role in alertness. Research on office workers found that a constant warm environment (around 28°C or 82°F) reduced alertness compared to cooler conditions (around 21°C or 70°F). If you have any control over your workspace thermostat, keeping the temperature on the cooler side helps. When you don’t control the thermostat, splashing cold water on your face or stepping outside briefly into cool air can provide a short-term boost.
Dynamic temperature changes, where the air shifts rather than staying constant, appear to work even better than a steady cool setting. Opening a window periodically, adjusting a fan, or simply moving between different temperature zones in your workplace may help counteract the monotony that deepens fatigue.
Protect Your Daytime Sleep
Staying awake during the shift is only half the equation. If you’re sleeping poorly during the day, every subsequent shift gets harder. Blackout curtains or a sleep mask are non-negotiable for daytime sleep. Your brain responds to even small amounts of light filtering through your eyelids, which suppresses melatonin and fragments sleep.
Melatonin supplements can help if you struggle to fall asleep after a shift. A dose of 5 mg taken about 30 minutes before you plan to sleep has been shown to reduce the time it takes to fall asleep and improve sleep quality in shift workers with insomnia. Start with a lower dose (1 to 3 mg) to see how you respond, since some people find smaller amounts equally effective with fewer side effects like grogginess.
On your days off, the “anchor sleep” strategy can prevent your schedule from completely unraveling. The idea is to keep a block of sleep that overlaps between your work days and your off days. For example, if you normally sleep from about 8 a.m. to 4 p.m. on work days, you might sleep from 4 a.m. to noon on days off. This compromise position means you’re never fully flipping your schedule back and forth, which reduces the jet-lag feeling that comes with every rotation.
The Drive Home Is the Danger Zone
The commute after a night shift is when you’re at your highest risk. If you find yourself rolling down the window, turning up the radio, or pinching yourself to stay awake, you’re already too impaired to drive safely. CDC research is clear that none of those common tricks actually work. Using your phone to stay alert is equally ineffective and adds distraction on top of drowsiness.
The only strategies that reliably prevent a drowsy driving crash are not driving at all or napping first. If your workplace has a break room, sleeping for even 20 minutes before getting behind the wheel can make a significant difference. Arranging a ride home, whether through a partner, rideshare, or coworker carpool, is the safest option on nights when fatigue is severe. Wearing sunglasses during the morning drive also serves double duty: it protects your circadian shift and reduces the glare that makes tired eyes worse.

