Guide · 4 min read

Your last coffee on nights should be at 12:30am. Here is the math.

Caffeine is the night worker's best friend for the first half of a shift and the quiet reason day sleep falls apart in the second. The fix is a clock, not abstinence.

The rule

Last caffeine about eight hours before your planned sleep.Caffeine's half-life is roughly five to six hours, so eight hours gets most of it out of the way by the time you are trying to fall asleep. Note that the rule keys off when you sleep, not when the shift ends, which is why the cutoff moves if you are held late.

Worked examples

Night, 7pm – 7am · sleep at 8:30am · last caffeine 12:30am

Night, 11pm – 7am · sleep at 8:30am · last caffeine 12:30am

Evening, 3pm – 11pm · sleep at 12:30am · last caffeine 4:30pm

Evening, 6pm – 2am · sleep at 3:30am · last caffeine 7:30pm

Early, 6am – 2pm · bed at 9pm · last caffeine 1:00pm

Day, 9am – 5pm · bed at 12:30am · last caffeine 4:30pm

Held late by two hours on the 7pm night? Sleep moves to 10:30am, and the cutoff moves with it to 2:30am. The cutoff follows the sleep, always.

Front-load it

Everything the cutoff takes away from the end of the shift you can spend at the start. Have the strong coffee at 7pm, another at 10pm if you want it, and then switch to water and food. The 3am slump is real, and the honest answers to it are bright light, movement, and a short break, not a fourth coffee.

Why this matters more for day sleepers

A night sleeper fighting a late coffee has their body clock on their side. A day sleeper does not: the clock is already pushing wakefulness in the morning, and residual caffeine stacks on top of it. The same mistake costs a night worker more.

One less thing to work out at 1am

3AM puts the caffeine cutoff on your plan as a timed reminder derived from your actual shift, and moves it when the shift moves. The free calculator shows the cutoff for any shift in ten seconds.

Questions people ask

When should I have my last coffee on a night shift?

About eight hours before your planned sleep. If the shift ends at 7am and you sleep at 8:30am, the last caffeine is around 12:30am. Front-load caffeine into the first half of the shift and let it clear.

How long does caffeine stay in your system?

Caffeine's half-life is roughly five to six hours in most adults, longer for some people and with some medications. Half of a 4am coffee is still active at around 9 or 10am, which is exactly when a night worker is trying to fall asleep.

Does caffeine help on night shift at all?

Yes, early. NIOSH training for nurses on long hours describes caffeine as a useful countermeasure when timed early in the shift and avoided near sleep. The problem is never the first coffee; it is the one at 4am.

What about energy drinks or caffeine pills?

Same rule, same clock. Dose matters more than form: a large energy drink can carry two to three coffees' worth, which pushes the effective cutoff earlier.

General wellness guidance, not medical advice. Caffeine interacts with some conditions and medications; if in doubt, ask a clinician.