Caffeine works, in a specific and limited sense. It makes you feel more awake. What the evidence does not establish is that it replaces sleep rather than postponing the need for it, and its effect on the following night is larger and later than most people assume.

What does it actually do?

MedlinePlus describes caffeine as a substance that "Stimulates your central nervous system, which can make you feel more awake and give you a boost of energy".

Note the careful phrasing there: it can make you feel more awake. That is a real effect and a genuine reason people drink it. It is also a claim about perception, and perception is exactly where caffeine gets interesting.

Does feeling more awake mean performing better?

Not necessarily, and this is where honest reporting matters. We looked for solid evidence in authoritative sources that caffeine substitutes for sleep rather than deferring the need for it, and did not find any that survived checking. So we are not going to tell you it does, and we would be sceptical of anyone who does.

What is well established is the cost side, and it is bigger than the folklore suggests.

How late is too late?

Later than almost anyone thinks. A controlled trial gave participants caffeine at bedtime, three hours before bed, and six hours before bed. Even the six-hour-early dose cut objectively measured total sleep time by more than an hour.

The detail that makes this genuinely useful: at six hours out, the disruption showed up on objective monitoring while participants' own sleep diaries did not clearly register it. In other words, the afternoon coffee was measurably damaging their sleep without them noticing. Our article on caffeine and sleep covers that trial in full.

What people assumeWhat the evidence shows
Effect on alertnessMakes you sharperCan make you feel more awake
Replaces sleep?Gets you throughNot established by any source we could verify
Afternoon coffeeLong gone by bedtimeSix hours before bed still cut measured sleep time by over an hour
Would you notice?YesSleep diaries did not clearly register it at six hours

The loop worth spotting

If your energy problem is poor sleep, and you are treating it with caffeine late enough to damage your sleep, the coffee is part of the mechanism rather than a fix for it. That loop is self-sustaining and largely invisible from the inside, since the very measurement you would use to detect it, your own sense of how you slept, is the one that failed to pick it up in the trial.

Breaking it usually means changing timing rather than quantity, which is a far easier ask than giving it up.

What about hydration and focus?

Thinner and more specific than the advice implies. One study of middle-to-older aged adults found dehydrated participants "performed substantially worse" on a sustained attention task than those who were not dehydrated. The same study found no such association with working memory, inhibition, or cognitive flexibility.

So being genuinely dehydrated may affect sustained attention. There is no good evidence that drinking beyond your needs sharpens a mind that is already adequately hydrated. Drink when thirsty, and do not expect a bigger bottle to buy you focus.

A sensible caffeine policy

  1. Set a cut-off time, not a cup limit. Timing is what protects the night, and it is the easier change to keep.
  2. Count back six hours from your bedtime. That is the distance at which measurable disruption was still found.
  3. Watch the hidden sources. Tea, cola, energy drinks and some painkillers all contribute.
  4. Do not use it to paper over a sleep problem. If you need it to function, the underlying issue is the thing to address.
  5. Change one variable at a time. Move the cut-off, hold it for two weeks, then judge.

When it is not about caffeine at all

If tiredness persists despite adequate sleep, reasonable food and a calmer stretch, MedlinePlus advises having it evaluated by a health care provider. Our guide to when tiredness is worth seeing a doctor about covers that threshold, and our complete energy guide covers the wider picture.