Energy, sleep and recovery
Getting the timing of your coffee right
Covers caffeine's half-life, ideal timing, sensible daily limits and how to cut down without headaches.

Coffee is one of life's small pleasures, and for many of us it's also how the day starts. Caffeine genuinely helps with alertness, concentration and reaction times. It's not the enemy. But how much you have, and when, can make the difference between a helpful boost and a broken night.
How caffeine works
Through the day, a chemical called adenosine builds up in the brain. It's part of what makes you feel sleepy by the evening. Caffeine works by blocking adenosine from doing its job. It masks tiredness for a while rather than removing it.
When the caffeine wears off, the adenosine that's built up in the meantime is still there, which is why you can feel a sudden crash later in the day.
It lasts longer than you think
Caffeine has a half-life of around five to six hours in most adults, although it varies a lot between people. That means if you have a coffee at 4pm, around half of the caffeine is still in your system at 10pm, and a quarter at around 4am.
Sleep scientist Matthew Walker, at the University of California, Berkeley, often points out that even when people fall asleep easily after an evening coffee, the quality of their sleep can suffer. In a 2013 study, researchers at Wayne State University gave people caffeine at bedtime, three hours before bed or six hours before bed. Even the six-hour group lost more than an hour of sleep, measured objectively, often without noticing.
A sensible cut-off
For most people, having your last caffeinated drink around eight hours before you plan to sleep works well. If you go to bed at 11pm, that means finishing by about 3pm. If you're sensitive to caffeine or having trouble sleeping, try making it earlier.
Remember that caffeine isn't only in coffee. Tea, cola, energy drinks, dark chocolate and some painkillers contain it too.
How much is sensible?
The European Food Safety Authority considers up to 400mg of caffeine a day safe for most healthy adults. The NHS advises no more than 200mg a day during pregnancy.
As a rough guide, from NHS figures:
- a mug of instant coffee: about 100mg
- a mug of filter coffee: about 140mg
- a mug of tea: about 75mg
- a can of cola: about 40mg
- a 250ml can of energy drink: about 80mg
Coffee shop drinks can be much stronger than home-made, so a large one may contain more than you expect.
What about waiting until mid-morning?
You may have seen advice to wait 90 minutes after waking before your first coffee, because of the natural rise in the stress hormone cortisol in the morning. There's not much good evidence behind it. If you like your coffee first thing and you're sleeping well, there's no strong reason to change.
Cutting down without the headache
If you regularly have a lot of caffeine, stopping suddenly can cause headaches, tiredness and irritability for a few days. Cutting down gradually helps.
- Reduce by about one drink every few days.
- Swap one regular coffee for a half-caff or decaf.
- Switch an afternoon coffee for herbal tea.
Habit researcher Wendy Wood suggests adding a bit of friction to habits you want to change. If your afternoon coffee comes from a machine down the corridor, keep a bottle of water and some decaf tea bags on your desk, so the easier option is the one you want.
This week
Work out your cut-off time by counting back eight hours from when you want to be asleep. Stick to it for a week and see whether your sleep, and your mornings, feel different.
Where to get support If you rely on large amounts of caffeine to get through the day, it may be a sign you're not getting enough sleep. Speak to your GP if you're constantly tired despite rest, or if caffeine causes palpitations or anxiety.