Caffeine on night shift: when to stop

Caffeine is the most useful tool on a night shift and the most common reason for bad sleep afterwards. The difference is almost entirely timing.

The rule: stop about six hours before you plan to sleep

Caffeine takes hours to wear off. You may still fall asleep with it in your system, but your sleep is lighter and you wake more often, which is the last thing you need when you're sleeping in the daytime. So work backwards from when you'll be in bed:

  • Night shift 7 PM to 7 AM, asleep by 8 AM.
  • Same shift, but you stay up a little longer and sleep at 9 AM.
  • Recovery day after nights, bed at 9 PM.
  • Day shift, bed at 10:30 PM.

If you're sensitive to caffeine, or you're on days and sleep poorly, try stopping earlier still: some guidance suggests eight to ten hours before bed for day workers.

Use it early, not late

  • Front-load it. Have caffeine at the start of the shift and in the first half of the night, when it helps most, alongside bright light.
  • Don't save it for the 4 AM slump. That's when it feels most needed, and when it does the most damage to your sleep. A short walk or a few minutes of fresh air is a better pick-me-up at that point.
  • Small amounts, spread out, work better than one huge cup.

It isn't just coffee

Energy drinks, pre-workout, many teas, cola and some painkillers all contain caffeine. Check the label of anything you're having late in the shift.

Get this worked out for your own shifts

Restplan turns this advice into a day-by-day plan for the shifts you actually work, with times for every step. Free for 7 days, no account needed, and your schedule stays on your phone.

Build my free plan

Related guides