Sleep

Caffeine for Night Shift Work: When to Drink It and When to Stop

Caffeine for night shift works best early in the shift and stopped well before daytime sleep, which it disrupts more. Timings and worked examples.

The short answer

  • Use caffeine for night shift work early: at the start of the shift and before the 2–5 am low point, not in the last few hours.
  • Stop at least 6 hours before you plan to sleep, and earlier for big drinks. On a 7 pm–7 am shift with sleep at 8 am, a regular coffee after about 2 am is pushing it.
  • Be stricter than on day shifts: in a lab study, caffeine hurt daytime recovery sleep more than normal night sleep, cutting sleep time and REM only in the daytime group.
  • A short nap before the shift plus caffeine beat either one alone in a night-shift lab study.

If you work nights, caffeine is probably part of how you get through them. That's reasonable: a Cochrane review found caffeine improves attention and reduces errors in shift workers. But shift work caffeine comes with a catch that day workers don't face. You have to sleep in the daytime, against your body clock, and caffeine makes that sleep even more fragile. This guide covers how to time caffeine for night shift work so it keeps you sharp at 4 am without wrecking the sleep you need at 8 am.

Why caffeine is different on night shifts

Two forces decide how well you sleep. One is sleep pressure, which builds while you're awake and is driven by adenosine, the chemical caffeine blocks. The other is your body clock, which pushes you to be awake during the day no matter how tired you are.

At night, both work in your favour: you're tired and your body clock says "sleep". After a night shift, only one does. You're tired, but your body clock is telling you to be awake. Your sleep depends heavily on that built-up sleep pressure, and caffeine is precisely the thing that blocks it.

A 2007 study tested this directly. People got 200 mg of caffeine split across the 3 hours before bed, either before normal night sleep or before daytime recovery sleep after a night awake. Caffeine made it take longer to fall asleep and cut deep sleep in both groups. But only in the daytime group did it also reduce total sleep time and REM sleep, and it hurt sleep efficiency more. The authors concluded the results "have implications for individuals using caffeine during night time".

So the usual advice of "under 50 mg at bedtime" matters even more after a night shift. If anything, aim lower.

Caffeine for night shift: worked timings

Here's what different patterns leave in your system for a 7 pm to 7 am shift with sleep at 8 am, using the same caffeine model as our app and a typical 5.5-hour half-life:

Pattern during the shiftTotalLeft at 8 am
Drip coffee, 8 oz (95 mg) at midnight only95 mg36 mg
200 mg (energy drink or large coffee) at 7 pm only200 mg40 mg
Two-shot latte (126 mg) at 7 pm, drip coffee (95 mg) at 11 pm221 mg57 mg
Two-shot latte at 7 pm, drip coffee at midnight221 mg61 mg
Two-shot latte at 7 pm and again at 11 pm252 mg67 mg
Two-shot latte at 7 pm, drip at 11 pm, espresso at 2 am284 mg87 mg

The lesson: one well-timed dose early in the shift leaves you in far better shape at 8 am than several smaller top-ups through the night. That small 2 am espresso adds about 30 mg to your bedtime total by itself. And if you're a slower metaboliser (7.5-hour half-life), even the single 200 mg at 7 pm still leaves about 62 mg at 8 am. (Why half-lives vary so much is covered in how long caffeine lasts.)

A simple rule for 12-hour nights: have most of your caffeine in the first half of the shift, and make the halfway point your last caffeinated drink. For a 7 pm start, that means nothing after about 1 am. If you need something after that, make it small (a single espresso or a cup of tea) and have it before 2 am.

A shift work caffeine plan

Before the shift

If you can, take a nap in the late afternoon or early evening before your first night. In a lab study of 68 people on simulated night shifts, an evening nap plus caffeine during the shift improved alertness more than either one alone. In a follow-up with 53 real night-shift workers, the same combination improved reaction times and reduced sleepiness compared with placebo. A coffee nap before you leave for work combines the two neatly.

Early in the shift

Have your main caffeine dose at or soon after the start. It will carry you into the small hours and has the most time to clear before you sleep.

The 2–5 am low

Your body clock hits its lowest point in the early hours, and that's when most people feel worst. If you plan your caffeine well, the dose from earlier is still working. If you need more, keep it small and early in that window. Bright light, moving around and cold water on your face all help without adding to your bedtime total.

The last few hours

Switch to decaf, herbal tea or water. Avoid energy drinks and large coffees completely here: a 16 oz Monster (160 mg) at 3 am would leave more than 70 mg at 8 am.

The drive home

This is the risky part. You're at your most tired, and the temptation is a coffee for the road. If you're too sleepy to drive safely, a short nap before leaving is safer than more caffeine, and it won't block the sleep you're about to get. Never rely on caffeine alone to stay awake behind the wheel.

After you get home

Make the room as dark and quiet as you can, and go to sleep as soon as possible, while sleep pressure is still high.

Other shift patterns

How much caffeine is too much on a night shift?

The same daily limit applies: for most healthy adults, the U.S. FDA says up to 400 mg a day is not generally associated with negative effects. On a long shift it's easy to go past that without noticing: a large coffee, an energy drink and a couple of refills can easily add up to 500 mg or more. Our guide to how much caffeine is too much has the details, and anyone who is pregnant, has a heart condition or takes regular medication should check their own limit with a doctor.

If you find you need more and more caffeine to get through, or you can't sleep after shifts even without it, talk to your doctor. Shift work sleep problems are common and treatable, and caffeine can mask them rather than solve them.

Caffeine vs Water also runs on Apple Watch, so you can log a drink mid-shift from your wrist and check what you've still got room for without taking your phone out.

Frequently asked questions

When should I stop drinking caffeine on a night shift?

Aim to stop at least 6 hours before you plan to sleep, and earlier for large drinks. On a 7 pm to 7 am shift with sleep at 8 am, try to make your last caffeinated drink around the halfway point, about 1 am.

Does caffeine affect daytime sleep more than night sleep?

Yes, according to a 2007 lab study. The same 200 mg dose reduced total sleep and REM sleep only when people slept during the day after a night awake, and it lowered sleep efficiency more than it did for night sleep.

Does caffeine for night shift work actually help?

A Cochrane review found caffeine improved attention and reduced errors in shift workers, though no trials measured injuries directly. It works best combined with a nap before the shift and timed early enough not to disrupt sleep afterwards.

How much caffeine can I have on a 12-hour night shift?

Most healthy adults should stay under about 400 mg in 24 hours. Having most of it at the start of the shift, and none in the last few hours, matters as much as the total.

Should I have coffee before driving home after a night shift?

Ideally not. It will be in your system when you try to sleep. If you're too drowsy to drive, a short nap before leaving is safer. Don't rely on caffeine alone to stay awake at the wheel.

Sources

  1. Carrier J, et al. Effects of caffeine are more marked on daytime recovery sleep than on nocturnal sleep. Neuropsychopharmacology, 2007.
  2. Ker K, et al. Caffeine for the prevention of injuries and errors in shift workers. Cochrane Database Syst Rev, 2010.
  3. Schweitzer PK, et al. Laboratory and field studies of naps and caffeine as practical countermeasures for sleep-wake problems associated with night work. Sleep, 2006.
  4. Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med, 2013.
  5. U.S. FDA. Spilling the Beans: How Much Caffeine is Too Much?

General wellness information, not medical advice. If you're pregnant, have a heart condition, or take medication that affects caffeine, check your limits with a doctor.

Caffeine vs Water app icon

Know before you drink.

Caffeine vs Water shows what your next coffee will do to your sleep, and keeps your water on pace. For iPhone and Apple Watch. No account, no ads.

Coming soon to the App Store