Can't sleep after a night shift?
Your shift ends at 7 a.m. You’re wiped out, eyes burning. You get into bed, and three hours later you’re wide awake and can’t get back to sleep. It’s incredibly common, and it rarely comes down to one thing. Your body clock knows it’s daytime, and the morning sun on the drive home confirms it. At home there’s noise, light, the family’s schedule, a meal at a strange hour, and the stress of the shift that hasn’t worn off yet. And there’s one cause almost nobody mentions, because it’s what got you through: caffeine. The end-of-shift coffee, the one that carries you through the pre-dawn slump, is often still going strong when your head hits the pillow.
Why is it so hard to sleep during the day?
Sleep runs on two forces. Sleep pressure, carried by a molecule called adenosine, builds the longer you stay awake: after a night shift it’s sky-high, which is why you often crash fast. Your body clock, meanwhile, follows the sun: in the morning, it pushes you toward being awake, harder and harder as the day goes on.
Once enough of that sleep pressure has drained, the clock takes over, and you wake up late in the morning feeling like you barely slept. That’s why daytime sleep is usually shorter and lighter than nighttime sleep.
What keeps you from sleeping after a night shift?
- Daylight on the way home, the strongest signal your clock gets: it says “it’s morning” at exactly the wrong time.
- A bedroom that isn’t built for daytime: light around the blinds, traffic, neighbors, a leaf blower, a phone that keeps buzzing.
- Your family’s schedule. School drop-off, lunch together: your sleep window gets squeezed from both ends.
- Eating at odd hours, like a full breakfast right before bed: digestion follows you into sleep.
- Stress from the shift. A rough night on the floor, an incident, a coworker who called out: your mind keeps running after you get home.
- The drink to unwind. It helps you fall asleep but lightens the second half of your sleep, already the most fragile part during the day.
- Caffeine, covered below.
Night work is known to be hard on sleep. If you’re sleeping poorly despite good habits, if drowsiness catches you at the wheel or at work, or if your mood is taking a hit, talk to your doctor.
What if your end-of-shift coffee follows you to bed?
It’s easy to rule out: after a night like that, you fall asleep anyway. But falling asleep isn’t the problem. On a night shift, caffeine tends to come late: a coffee when you clock in, then the pre-dawn slump, when alertness hits bottom, and that’s when you grab another one, or an energy drink, to make it to the end.
Caffeine works by blocking adenosine, the tiredness signal. Its half-life is about 5 hours, often anywhere from 3 to 7 depending on the person, and longer on the pill, during pregnancy, or for slow metabolizers. And it doesn’t care what the clock says: to your body, an end-of-shift coffee before a morning bedtime is an evening coffee.
One example: a regular cup of drip coffee, about 100 mg, at 4 a.m. to get through the slump still leaves more than half, close to 60 mg, in your system at 8 a.m., when you go to bed. Make it a 16-oz can of Monster, 160 mg, and close to 90 mg is left.
That leftover won’t necessarily keep you from falling asleep; you’re too tired. But it lightens the sleep that follows and trims deep sleep, the most restorative kind. And it masks part of your sleep pressure, the very thing that keeps you asleep once your clock starts nudging you awake, so that late-morning wake-up is more likely to come early. The total matters too. A 12-hour shift makes it easy to sip all night, and four regular cups already reach the 400 mg a day the FDA cites for healthy adults. The more you drink, the more is left at bedtime.
If you clear caffeine fast, this may not be your lead. But if you sleep noticeably worse after the nights you needed a coffee late in the shift, it’s a serious one.
When should you have your last coffee on a night shift?
Standard advice pins your cutoff to the afternoon, which means nothing when you go to bed in the morning. Count back from your bedtime instead: aim for your last coffee at least six hours before you sleep, more for a big dose. In one study, 400 mg of caffeine taken six hours before bed still measurably reduced sleep (Drake et al., 2013). The full math is in how long after coffee can you sleep.
In practice:
- Front-load your caffeine in the first half of the shift, and taper off by the middle: that’s your real caffeine cutoff, the one that protects your morning sleep.
- For the pre-dawn slump, switch tools: bright light, a few minutes of walking, a short nap on your break if your job allows it. A coffee nap early in the shift stacks both effects; late in the shift, it carries its caffeine straight into your morning sleep.
- Rotating shifts and days off: your cutoff moves with your sleep. What counts is the gap between your last coffee and your sleep, the same rule that applies to a split shift that ends late.
What about the drive home?
Cutting caffeine early runs into a real safety problem: driving home drowsy after a night shift. Your safety comes before your sleep. If you’re fading, a short nap before you leave often does more than a big coffee, and a small coffee right before a 15- to 20-minute nap combines the two. For a long commute, see coffee on long drives too.
How can you tell if caffeine is part of it?
Run the test over a stretch of shifts, a week if your schedule allows:
- All your caffeine in the first half of the shift, then decaf or water. Keep your first coffee: going cold turkey would just add a headache.
- Change nothing else: same commute, same room, same bedtime.
- Each day, note how long you slept in one stretch and how you felt when you got up, from 1 to 5.
- Compare with your last stretch. If you sleep longer in one block, the end-of-shift coffee was part of it. If not, look at light, noise, or the household. And keep the small coffee for the drive if you need it: the road comes first.
How can you sleep better during the day?
- Sunglasses on the way home, even on gray days. In a study of simulated night shifts, volunteers wore dark sunglasses outside, got bright light during their shifts and slept in the dark on a fixed schedule. Those whose body clock shifted had mood, fatigue and performance close to daytime levels (Smith et al., 2009).
- A truly dark bedroom: blackout curtains, an eye mask, earplugs, your phone on Do Not Disturb.
- A regular sleep block, at about the same time after every shift, rather than whenever the day allows.
- A short nap before your shift if your sleep came up short. If it won’t come, see why you can’t nap even when you’re exhausted.
Take back your daytime sleep
CaffIQ helps you see where you stand and take back control of your sleep, even when it happens during the day. Set your bedtime to when you actually go to bed, even if that’s in the morning. Based on what you drink and your profile, it estimates how much caffeine will be left at that point and gives you a personal cutoff: mid-shift, you’ll know whether one more coffee still fits, or whether it’ll follow you to bed.
No need to work nights without coffee: the one you have when you clock in is part of the routine, so keep it. Usually, all it takes is not letting the last one slide toward the end of the shift.
CaffIQ provides general estimates, not medical advice. For any health question, consult a qualified professional.
Want this worked out for your body, in real time?
Download on the App Store