Caffeine Science 4 April 2026

Best Time to Drink Coffee on Night Shift: A Caffeine Timing Guide

Coffee is the night shift worker's best friend. But drink it at the wrong time and it becomes your worst enemy. Here is how to use caffeine strategically.

Most night shift workers drink coffee. That is not the problem. The problem is that most night shift workers drink coffee at the wrong time, in the wrong amount, and without any understanding of what it is actually doing inside their body. The result: they stay wired when they should be sleeping, or they crash at the worst possible point in their shift.

Caffeine is a powerful tool. But like any tool, it works best when you use it with precision. This guide explains the pharmacology in plain English and gives you a practical timing protocol for your night shifts.

How caffeine actually works

Throughout the day, a chemical called adenosine accumulates in your brain. Adenosine binds to specific receptors and promotes sleepiness. The longer you are awake, the more adenosine builds up, and the sleepier you feel. This is called sleep pressure.

Caffeine works by blocking those adenosine receptors. It does not eliminate the adenosine. It simply prevents your brain from detecting it. You feel alert, not because adenosine has gone away, but because caffeine is sitting in the receptor like a key that fits the lock but does not turn it.

This is an important distinction. When the caffeine eventually clears, all the accumulated adenosine rushes in at once. That is the "caffeine crash," and it is particularly dangerous during a night shift if it hits at the wrong time.

The half-life problem

Caffeine has a half-life of approximately 5 to 6 hours in the average adult. This means that if you drink a cup of coffee containing 100mg of caffeine at midnight, roughly 50mg is still active in your system at 5 to 6am.

But here is what most people miss: the half-life is not the full story. After two half-lives (10 to 12 hours), 25mg would still remain. Research by Bonnet and Arand (1992) in Psychopharmacology demonstrated that even low residual caffeine levels can measurably disrupt sleep architecture, reducing slow-wave sleep and increasing the number of awakenings.

Drake et al. (2013) published one of the most cited studies on this topic in the Journal of Clinical Sleep Medicine (PMID: 24235903). They gave participants caffeine at three time points: immediately before bed, 3 hours before, and 6 hours before. Even caffeine consumed 6 hours before bed reduced total sleep time by over one hour. Six hours. That finding alone should change how every shift worker thinks about their last cup.

Individual variation matters

The 5-to-6-hour half-life is an average. Your actual half-life depends on several factors:

The optimal caffeine strategy for night shifts

Based on the research, here is a practical timing protocol. We will use a standard 19:00 to 07:00 night shift as our example, with a planned sleep time of 08:00.

Phase 1: The strategic boost (19:00 to 20:00)

Have your first coffee at the start of your shift. Caffeine reaches peak blood concentration roughly 30 to 60 minutes after consumption (Fredholm et al., 1999, Pharmacological Reviews, PMID: 10049999). Timing your first cup to the start of your shift means peak alertness hits during the first couple of hours, when you are settling into the work.

A standard dose is 100 to 200mg, which is roughly one to two cups of filter coffee or one to two espresso shots. There is no benefit to exceeding 200mg in a single dose. Above that level, you get diminishing returns on alertness and increasing side effects like jitteriness and increased heart rate.

Phase 2: The maintenance dose (22:00 to 00:00)

If you need a second coffee, have it during this window. The circadian nadir, the point when your body most wants to sleep, typically falls between 03:00 and 05:00 for night workers. Caffeine consumed around midnight will reach peak levels around 01:00 and still provide meaningful receptor occupancy through the worst of the nadir.

Keep this dose moderate. 100mg is usually sufficient. You want enough to take the edge off the 3am slump without flooding your system with caffeine that will linger until mid-morning.

Phase 3: The hard cutoff (01:00 to 02:00)

This is the most important rule. No caffeine after 02:00 at the absolute latest. If you plan to sleep at 08:00, caffeine consumed at 02:00 gives you a 6-hour clearance window, which is the minimum recommended by the Drake et al. research. Earlier is better. 01:00 is ideal.

After the cutoff, switch to:

Phase 4: Ride it out (02:00 to 07:00)

The last few hours of a night shift without caffeine can feel difficult, especially between 03:00 and 05:00. This is normal. Strategies that help during this window include:

Common mistakes shift workers make with caffeine

Mistake 1: The 4am desperation coffee

You feel terrible at 4am. You reach for the coffee. It helps you get through the last three hours of your shift, but now you have 100mg of caffeine peaking in your blood at 5am, and half of it is still there at 10am while you are trying to sleep. You have traded two hours of alertness for two hours of lost sleep. Over a block of four night shifts, that adds up to a serious sleep debt.

Mistake 2: Drinking energy drinks throughout the shift

A single can of a typical energy drink contains 80 to 160mg of caffeine, but many people drink two or three across a shift. That is 240 to 480mg of caffeine, often consumed at irregular intervals, with no strategic timing. The result is a chaotic caffeine profile that neither maximises alertness nor protects sleep.

Mistake 3: Thinking tolerance makes you immune

Regular caffeine users do develop tolerance to some of caffeine's effects, particularly the subjective "buzz." But tolerance to caffeine's sleep-disrupting effects is incomplete. Beaumont et al. (2004) in Neuropsychobiology found that even habitual caffeine consumers showed measurable disruption to sleep architecture when caffeine was consumed in the afternoon, despite reporting that they "slept fine."

Mistake 4: Forgetting about hidden caffeine

Coffee is not the only source. Tea (40 to 70mg per cup), cola (30 to 40mg per can), dark chocolate (20 to 60mg per bar), and some medications (particularly cold and flu remedies and migraine tablets) all contain caffeine. If you are tracking your cutoff time, you need to account for all sources.

What about caffeine naps?

A caffeine nap involves drinking a coffee immediately before a short 15 to 20 minute nap. The idea is that caffeine takes about 20 minutes to reach peak effect, so you wake up just as the caffeine kicks in, getting the benefit of both the nap and the stimulant.

Reyner and Horne (1997) in Psychophysiology (PMID: 9262488) studied this and found that caffeine naps reduced driving incidents in a simulator more effectively than either caffeine or napping alone. If you have a break during your shift and a safe, quiet place to rest, a caffeine nap taken before midnight can be remarkably effective.

The key constraint: do not do this after your caffeine cutoff time. A caffeine nap at 4am defeats the purpose of the cutoff entirely.

A quick-reference caffeine protocol

For a 19:00 to 07:00 night shift with planned sleep at 08:00:

  1. 19:00 to 20:00: First coffee (100 to 200mg).
  2. 22:00 to 00:00: Optional second coffee (100mg max).
  3. 01:00 to 02:00: Hard cutoff. No more caffeine from any source.
  4. 02:00 to 07:00: Water, decaf, or nothing. Use light and movement for alertness.

Adjust these windows if your shift times differ. The principle stays the same: at least 6 hours of caffeine clearance before your planned sleep.

If you are a slow metaboliser, on oral contraceptives, or find that caffeine lingers in your system, add an extra 1 to 2 hours to the cutoff. If you smoke and metabolise caffeine quickly, you may have slightly more flexibility, but err on the side of caution.

Zeitgeber calculates your caffeine cutoff automatically

Enter your shifts and Zeitgeber tells you exactly when to drink caffeine and when to stop, personalised to your rota, your shift times, and your chronotype. No guesswork.

Get Notified When We Launch

Coming soon to iOS. No credit card required. Works entirely offline.