Disclosure: Asendify publishes this page and makes some of the options mentioned here; ours are named as ours. Every option is described from its own official page, and prices and features can change, so check before you buy.
Take small doses early in the shift and around the hours when you usually feel worst, then stop caffeine in the last several hours of the shift so you can sleep when you get home. Think of caffeine as a tool for the first half of the night, not something to sip all the way through. It helps alertness, but it does not replace sleep, and it is not a fix for being too tired to drive.
Work out a cut-off that matches your daytime sleep with the free Caffeine Cutoff Calculator (enter the time you plan to go to bed after your shift), and see a sample plan in the free 2-page preview.
This page is education for healthy adults aged 18 and over. It is general information, not medical advice.
What the evidence says
A Cochrane systematic review of caffeine in shift workers (Ker and colleagues, 2010) found that caffeine improved performance and reduced errors compared with no caffeine or placebo. The authors rated the evidence as low quality, and the included studies did not measure injuries directly. So caffeine is a reasonable aid for night-shift alertness, but it should sit alongside proper sleep, breaks and your workplace's fatigue rules, not replace them.
The main risk with night-shift caffeine is not the shift itself; it is the sleep afterwards. Caffeine stays in the body for hours. On average about half a dose is still in a healthy adult several hours later, and the range between people is wide. Coffee at 5am can easily still be working when you try to sleep at 9am.
Step 1: Fix your sleep window first
Decide when you will sleep after the shift and protect it: blackout curtains or an eye mask, earplugs, phone on silent, and people at home who know not to disturb you. Then count backwards to set your caffeine cut-off. Your "bedtime" is when you get into bed after the shift, not 11pm.
Step 2: Use the first half of the shift
- Start of shift: a moderate dose, such as a regular mug of coffee or a tea, as you begin. This covers the hours when you are still adjusting.
- Before the low point: many people feel worst in the early hours of the morning. A second small dose shortly before that point can help you get through it.
- Keep each serving at or below 200 mg. The European Food Safety Authority (EFSA) says single doses up to 200 mg and daily intakes up to 400 mg from all sources do not raise safety concerns for healthy adults. Count the whole 24 hours, including anything you drink before your shift.
Step 3: Stop in the last part of the shift
For a typical cup, a cut-off several hours before your planned sleep is sensible. A 2023 meta-analysis in Sleep Medicine Reviews (Gardiner and colleagues) suggested finishing a typical coffee at least about 9 hours before bed, and larger doses earlier still. For a night shift ending at 7am with sleep at 8am, that points to stopping regular coffee before midnight, or switching to small amounts of tea in the early hours if you must have something. Use the calculator to test your own times.
After the cut-off, rely on other alertness tools: water, a short walk, brighter light at your workstation, talking to colleagues and changing tasks.
Step 4: Consider a short nap
If your workplace allows it, a nap before a night shift or a brief nap on a break can reduce sleepiness. Keep break naps short, ideally 10 to 20 minutes, so you don't wake up groggy. Some people combine a small coffee with a short nap, but only do this early in the shift, never close to your cut-off.
Step 5: Get home safely
Drowsy driving after a night shift is a real hazard, and caffeine is not a reliable fix for it. If you feel too sleepy to drive, don't. Use public transport, get a lift, or nap before you set off. Keep work-time caffeine aimed at doing the job well, not at "staying awake to drive home".
Step 6: Plan your days off
On days off, many shift workers swing back to a daytime schedule. Keep caffeine moderate, drink it in the morning, and avoid using large doses to "catch up" after poor sleep. Watch for a daily total that creeps towards 400 mg across long shift runs.
Who should avoid caffeine or ask first
Some people should avoid or limit caffeine and check with a GP, occupational health team or pharmacist first: anyone pregnant or breastfeeding (the NHS advises no more than 200 mg a day in pregnancy), anyone under 18, people with heart conditions or high blood pressure, people with anxiety or panic disorders, people with insomnia or other sleep disorders, and anyone taking medicines that may interact with caffeine.
Never use caffeine powders or highly concentrated liquid caffeine, and never mix caffeine with alcohol, including an "unwinding" drink after a shift.
Key takeaways
- Use caffeine in the first half of the night shift, not all the way through.
- Keep each serving at or below 200 mg and the 24-hour total at or below 400 mg.
- Set your cut-off from your post-shift bedtime, not a normal night-time one.
- Protect your daytime sleep with a dark, quiet room.
- Caffeine does not make it safe to drive when you are too tired.
FAQ
Is it better to have one big coffee or several small ones on a night shift?
Several small ones, spread across the first half of the shift, usually give steadier alertness than one big dose and are easier to keep inside the 200 mg single-dose limit.
Can energy drinks replace coffee on night shifts?
They can contain similar or larger amounts of caffeine, often with a lot of sugar, and large cans make it easy to overshoot. If you use them, read the label and count them in your total.
What if I can't sleep after my shift even without late caffeine?
Daytime sleep is hard for many shift workers. If poor sleep continues, talk to your GP or occupational health team, as there may be other causes worth checking.
Should I drink caffeine on rotating shifts?
Yes, the same rules apply, but recalculate your cut-off each time your sleep time changes.
If you want a full plan for timing caffeine around unusual hours, our book Secrets to Using Caffeine to Win (formerly Caffeine Leverage) covers it for healthy adults inside the 400 mg and 200 mg limits; it costs £82.80 one-time as an instant PDF: Secrets to Using Caffeine to Win. You can read the free 2-page preview first.
This is general information, not medical advice.
Last updated: 28 October 2026
More playbooks on other topics: https://www.asendify.co/books/