Coffee at 3pm feels like a fix. You’re flagging, the cup gives you a lift, and you get through the rest of the afternoon. Then you lie awake a bit longer than usual, sleep a bit worse than you realise, and wake up needing more coffee to feel normal. By the next afternoon you’re flagging again, and the cycle repeats.

Caffeine works, and for most healthy adults moderate amounts are fine. The problem is usually not whether you drink it but when and how much, because caffeine stays in your body far longer than its buzz lasts. Get the timing wrong and the drink you use to fight tiredness quietly becomes one of its causes.

This article is part of our complete guide on how to increase your energy levels naturally. It covers how caffeine actually works, how long it lasts, what the research says about cut-off times, how tolerance and withdrawal distort the picture, and a practical plan for using caffeine without wrecking your sleep. It is general information, not medical advice.

How Caffeine Gives You Energy (and Why It Doesn’t Really)

Caffeine doesn’t add energy to your body the way food does. It works mainly by blocking adenosine, a chemical that builds up in the brain the longer you’re awake and creates “sleep pressure”, the growing feeling that you need to rest. With adenosine’s signal blocked, you feel more alert, even though the underlying need for sleep hasn’t gone anywhere.

Two consequences follow:

  • Caffeine masks tiredness rather than fixing it. If you’re tired because you’re short on sleep, have undiagnosed sleep apnea, or have low iron stores, coffee can hide the symptom while the cause carries on.
  • The sleep pressure is still there when the caffeine wears off. This is part of why the “crash” can feel so sudden.

How Long Caffeine Stays in Your System

The half-life of caffeine in the average adult is about 5 hours, according to the StatPearls clinical reference on caffeine. In other words, around five hours after a cup of coffee, about half of its caffeine is still circulating. Five hours after that, about a quarter is.

In practice, a large coffee with roughly 200 mg of caffeine at 3pm could leave around 100 mg still in your system at 8pm, and about 50 mg at 1am, which is roughly the equivalent of a cup of tea still on board as you try to sleep.

Five hours is an average, though, and people vary a lot. The same reference notes that smoking can cut caffeine’s half-life by up to 50% compared with non-smokers. Other things, including some medications, pregnancy and liver disease, can slow clearance considerably. The FDA also points out that people differ widely in how sensitive they are to caffeine and how fast they break it down. If you’re a “one coffee after lunch and I’m wired at midnight” person, that isn’t in your head.

What the Research Says About Caffeine Timing

The six-hour study

A frequently cited study by Drake and colleagues, published in the Journal of Clinical Sleep Medicine in 2013, gave 12 healthy normal sleepers 400 mg of caffeine (about the amount in a few strong coffees) at bedtime, 3 hours before bed, or 6 hours before bed, and compared each with a placebo night. Sleep was measured at home with a portable monitor and with the participants’ own reports.

All three timings disrupted sleep compared with placebo. The striking finding was the 6-hour dose: it still reduced objectively measured total sleep time by more than an hour. Yet participants didn’t seem to notice the disturbance in their own sleep reports. The authors concluded that their results support advice to avoid substantial caffeine for at least 6 hours before bedtime.

The meta-analysis: think closer to 9 hours

A larger picture comes from a 2023 systematic review and meta-analysis by Gardiner and colleagues in Sleep Medicine Reviews, which pooled 24 studies. On average, caffeine:

  • reduced total sleep time by about 45 minutes
  • reduced sleep efficiency (the share of time in bed actually spent asleep) by about 7%
  • added about 9 minutes to the time it took to fall asleep
  • reduced deep sleep

Based on their analysis, the authors suggested that a standard cup of coffee (around 107 mg) should be drunk at least 8.8 hours before bed to avoid losing sleep time, and that a typical pre-workout supplement serving (around 217.5 mg) needed about 13.2 hours. For someone going to bed at 11pm, that means the last regular coffee around 2pm, and a big pre-workout drink only in the morning.

The Afternoon-Coffee Trap

Put the half-life and the sleep research together and the trap becomes clear:

  1. You sleep a little less well than you should, often without noticing.
  2. You wake up with more sleep pressure, so you feel groggier.
  3. You lean on more caffeine, and more of it later in the day, to get through the afternoon.
  4. That later caffeine trims and lightens the next night’s sleep.

Each step is small, but repeated nightly it adds up to the kind of chronic mild sleep loss that leaves people “tired all the time” with no obvious cause. If you recognise this pattern, it’s worth reading our piece on why you can feel tired even after sleeping 8 hours, and on why sleep duration matters for long-term health.

Tolerance and Withdrawal: Why You Need More to Feel Normal

Regular caffeine users develop some tolerance, so the same cup tends to give less of a lift over time. More importantly, the body adapts to having caffeine around, and taking it away produces withdrawal symptoms.

A widely cited critical review by Juliano and Griffiths, published in Psychopharmacology in 2004, analysed 57 experimental and 9 survey studies of caffeine withdrawal. It found that:

  • symptoms typically began 12–24 hours after stopping caffeine, peaked at 20–51 hours, and lasted 2–9 days
  • headache occurred in about 50% of people in experimental studies
  • fatigue and drowsiness were among the validated withdrawal symptoms, along with low mood and difficulty concentrating

The practical point: if you drink coffee every day, part of what you experience as “caffeine giving me energy” may simply be caffeine keeping withdrawal-related tiredness at bay. And if you want to cut back, doing it gradually over a week or two is usually gentler than stopping abruptly.

How Much Caffeine Is Too Much?

The U.S. Food and Drug Administration has cited 400 mg a day, roughly two to three 12-ounce cups of coffee, as an amount not generally associated with dangerous or negative effects for most healthy adults. The FDA is clear that this is not a universal limit: individual sensitivity, body weight, medications and medical conditions all matter. If you’re pregnant, breastfeeding, or have a heart rhythm problem, anxiety, high blood pressure or another relevant condition, ask your doctor what’s right for you. Concentrated caffeine powders and liquids can be dangerous.

A Smarter Caffeine Plan for All-Day Energy

1. Set a cut-off time and work backwards from bedtime

Based on the research above, a reasonable starting point is no caffeine within about 8–9 hours of bed, and earlier for large doses like pre-workout drinks. If you sleep at 11pm, that means your last coffee around 2pm. If you’re especially sensitive, move it earlier.

2. Front-load your caffeine

Have your caffeine in the morning and around lunchtime rather than spreading it into the late afternoon. You get the alertness benefit when you most need it, and give your body time to clear it before bed.

3. Try a “coffee nap” for an afternoon slump (early afternoon only)

Caffeine takes a little while to kick in, so drinking a coffee and immediately taking a short nap can combine the benefits of both. In a study of sleepy drivers by Reyner and Horne, published in Psychophysiology in 1997, 200 mg of caffeine followed by a nap of under 15 minutes reduced driving incidents in a simulator to 9% of placebo levels, compared with 34% for caffeine alone. Keep the nap short and early in the afternoon, and don’t use this as a substitute for proper sleep, or as a reason to keep driving when you’re drowsy.

4. Use non-caffeine energy tools in the afternoon

After your cut-off, try a brisk 10-minute walk outside, some daylight, or a glass of water instead of another cup. They’re less dramatic than caffeine, but they don’t cost you sleep.

5. Run a two-week experiment

Because people often don’t notice caffeine’s effect on their sleep, the best test is a personal one. For two weeks, move your cut-off to early afternoon and keep everything else the same. Note how quickly you fall asleep, how rested you feel in the morning, and how bad the afternoon slump gets.

When Caffeine Isn’t the Real Problem

If you need large amounts of caffeine just to function, or you’re exhausted even with a sensible caffeine routine and enough time in bed, that’s a signal worth taking seriously rather than a coffee problem to solve. Persistent tiredness can come from sleep disorders, low iron, thyroid problems, diabetes, depression and other conditions. The NHS advises seeing a GP if tiredness lasts for weeks without an obvious reason or affects daily life. Our complete guide to increasing your energy naturally covers the bigger picture.

Frequently Asked Questions

What time should I stop drinking coffee?

Research suggests avoiding substantial caffeine for at least 6 hours before bed, and a 2023 meta-analysis suggested about 8.8 hours for a standard cup of coffee. For an 11pm bedtime, that means having your last coffee around 2pm.

How long does caffeine last in your body?

Caffeine’s half-life in the average adult is about 5 hours, so about half is still present five hours after a cup and about a quarter after ten. This varies widely; smoking speeds clearance, while some medications, pregnancy and liver disease slow it.

Can caffeine make you more tired?

Indirectly, yes. Caffeine taken too late can shorten and lighten your sleep, often without you noticing, which leaves you more tired the next day. Regular users can also feel tired, foggy and headachy when caffeine wears off or when they skip their usual dose.

How much caffeine is safe per day?

The FDA has cited 400 mg a day, about two to three 12-ounce cups of coffee, as generally not associated with negative effects for most healthy adults. People who are pregnant, breastfeeding, sensitive to caffeine, or have certain medical conditions should ask their doctor.

This article is for general information and is not medical advice. Talk to a qualified healthcare professional about your own caffeine intake, especially if you are pregnant, take medication, or have a medical condition.

Sources

  • Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013;9(11):1195–1200.
  • Gardiner C, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Medicine Reviews, 2023.
  • Juliano LM, Griffiths RR. A critical review of caffeine withdrawal: empirical validation of symptoms and signs, incidence, severity, and associated features. Psychopharmacology, 2004;176(1):1–29.
  • Reyner LA, Horne JA. Suppression of sleepiness in drivers: combination of caffeine with a short nap. Psychophysiology, 1997.
  • U.S. Food and Drug Administration. Spilling the Beans: How Much Caffeine Is Too Much? (fda.gov consumer update).
  • StatPearls. Caffeine. NCBI Bookshelf.
  • NHS. Tiredness and fatigue (nhs.uk).


avatar
About Author

Sazid Ahmad Khan researches and writes the health and wellness content on Stay Young Healthy. Every article is built from primary sources — peer-reviewed studies, systematic reviews, and clinical guidelines — with each claim traced back to where it actually comes from, not repeated secondhand from other blogs. Where the evidence is limited or mixed, that's stated directly rather than smoothed over.

This is a research-based resource, not a substitute for medical care: articles are written for general education, and any topic involving a medical condition or treatment includes a reminder to consult a qualified healthcare provider for diagnosis and treatment decisions.

Leave a Reply

Your email address will not be published. Required fields are marked *