This article is science education about how caffeine affects attention and thinking. It is not medical advice, and it does not recommend that anyone start or increase caffeine.
The claim and where it comes from
Caffeine is the most widely used substance for staying alert. More than 80% of US adults consume it [1]. The common beliefs about it range from the well founded ("coffee wakes me up") to the overstated ("coffee makes you smarter", "caffeine improves memory").
Caffeine works mainly by blocking receptors for adenosine [1], a chemical that builds up in the brain while you are awake and promotes sleepiness. That explains why its clearest effects are on alertness and on the simple, repetitive kinds of attention that sleepiness hurts first. It also explains a complication that shapes the whole research field: regular users adapt, and when they go without caffeine overnight, they feel worse than people who never use it.
What the studies measured
| What is measured | Typical test | Why it matters |
|---|---|---|
| Alertness and sleepiness | Self-rating scales | How awake you feel; can differ from how you perform |
| Vigilance and sustained attention | Long, monotonous tasks where you respond to rare targets | The kind of attention sleepiness affects most |
| Reaction time | Pressing a key as fast as possible when a signal appears | Fast, simple, easy to measure |
| Complex attention and executive function | Tasks that require switching, inhibiting or planning | Closer to demanding real-world thinking |
| Memory | Recall or recognition of studied material | Learning and remembering, which is not the same as being alert |
A further design question runs through all of this. Most experiments ask habitual users to skip caffeine overnight, then give them caffeine or a placebo. If caffeine wins, is that because it improved performance, or because the placebo group was in mild withdrawal? [2] Different researchers answer this differently, as we will see.
What the research found
Alertness, attention and reaction time
A 2016 review, written by researchers who study performance in military and occupational settings, summarised the evidence: after low (about 40 mg, or about 0.5 mg per kg of body weight) to moderate (about 300 mg, or 4 mg/kg) doses, alertness, vigilance, attention and reaction time improve, while effects on memory and higher-order executive functions such as judgement and decision-making are less consistent [1].
A review of double-blind, placebo-controlled studies of attention in healthy adults went further. It concluded that caffeine improves both simple and complex attention tasks, and affects the alerting and executive-control networks of attention [4]. It found the evidence on whether higher doses do more, or whether habitual use changes the effect, inconclusive [4].
A net boost, or relief from withdrawal?
A 2005 review took the opposite view [2]. Its authors argued that ordinary placebo-controlled studies cannot settle the question, because the placebo group is usually in overnight withdrawal. Looking at study designs that avoid this, especially long-term withdrawal studies, they found little evidence that habitual caffeine use improves performance or mood compared with long-term abstinence. Modest effects may occur at first, they argued, but tolerance develops, so most of the apparent benefit in regular users is the reversal of withdrawal effects [2].
A large experiment tested this directly [3]. It compared 212 medium-to-high caffeine consumers with 157 non- or low consumers after overnight abstinence, giving each person either caffeine (100 mg, then 150 mg) or a placebo, double-blind [3]. Withdrawal in regular users brought greater sleepiness, lower mental alertness and poorer reaction time and recognition memory by the afternoon, and caffeine improved these measures in that group [3]. In non- or low consumers, caffeine reduced sleepiness but otherwise did little for alertness and mental performance, because it also raised anxiety and jitteriness, which offset the benefit [3]. It did speed up tapping and reaction times in both groups [3]. The authors' summary is in the title: faster but not smarter [3].
So the honest position is that the debate is not settled. One review finds broad benefits for attention that withdrawal cannot explain [4]; the withdrawal-reversal view finds little net gain for habitual users [2][3]. All of them agree that caffeine makes people faster and less sleepy in the short term.
When you are short of sleep
The clearest benefit is in people who are sleep-deprived or sleep-restricted. A 2020 systematic review and meta-analysis pooled 45 publications with 327 effect estimates [5]. In sleep-deprived people, caffeine improved accuracy on attention tests (g = 0.68), executive function (g = 0.35), reaction time (g = 1.11) and measures of vehicle control in driving tests, and studies typically showed benefits for memory as well [5]. The authors concluded that caffeine is an effective countermeasure to the cognitive and physical impairments of sleep loss [5].
Two cautions. These studies compared caffeine with placebo in people who had already lost sleep; they did not compare caffeine with sleeping. And sleep loss itself has large effects, most of all on lapses of simple attention [8]. Caffeine can take the edge off; it does not give back what sleep provides. Our article on how lack of sleep affects attention covers that side.
Memory
Memory results are more mixed [1]. One often-cited experiment gave 200 mg of caffeine or a placebo to caffeine-naive young adults just after they studied pictures of objects [9]. A day later, the caffeine group was better at telling studied pictures apart from very similar new ones, but not at ordinary recognition, and caffeine given just before the test had no effect [9]. The authors interpreted this as an effect on memory consolidation [9]. It is a single study with a borderline result in non-users, and it does not show that coffee improves everyday memory.
The cost: sleep
Caffeine's main downside for focus is indirect. In a small randomised crossover study, 12 healthy normal sleepers took 400 mg of caffeine or a placebo at home, at bedtime, 3 hours before bed or 6 hours before bed [6]. Every caffeine timing disturbed sleep compared with placebo. On a sleep monitor, total sleep time was more than an hour shorter even when the caffeine was taken 6 hours before bed, although people's own sleep diaries showed a smaller loss [6]. The authors concluded that substantial caffeine should be avoided for at least 6 hours before bedtime [6].
That creates a loop worth knowing about: caffeine late in the day shortens sleep, short sleep impairs attention the next day [8], and more caffeine then masks part of the impairment [5]. 400 mg is a large dose, and the study was small, so the exact numbers will not apply to everyone.
Safety limits
The European Food Safety Authority reviewed caffeine safety in 2015 [7]. For the general healthy adult population, it concluded:
| Group | Intake that raised no safety concerns |
|---|---|
| Healthy non-pregnant adults, single dose | Up to 200 mg (about 3 mg per kg for a 70 kg adult) |
| Healthy non-pregnant adults, habitual daily intake | Up to 400 mg a day |
| Pregnant women | Up to 200 mg a day |
| Breastfeeding women | Single doses and habitual intake up to 200 mg |
| Children and adolescents | Data insufficient; 3 mg per kg per day suggested as a basis |
These are safety thresholds for healthy people, not performance targets and not personal advice [7]. Sensitivity varies, and some conditions and medicines change what is appropriate. If you have a heart condition, anxiety, sleep problems or another medical concern, take regular medication, or are pregnant or breastfeeding, talk to a doctor or pharmacist.
What this means for focus
Putting the evidence together, as science education rather than a prescription:
- Expect alertness, not intelligence. The best-supported effects are on feeling awake, vigilance and speed [1]. Reasoning and memory are not reliably improved.
- Regular users may mostly be getting back to normal. If you drink coffee every morning, part of what it does may be relieving overnight withdrawal [3].
- Sleep comes first. Caffeine helps when you are short of sleep [5], but late caffeine can shorten the next night [6].
- More is not better. Higher doses add jitteriness and anxiety in some people [3], and the evidence that higher doses help attention more is inconclusive [4].
For non-chemical ways to support concentration, see how to focus better, why can't I focus and slow breathing for focus and calm. For how arousal and performance relate more generally, see what is the Yerkes-Dodson law.
What the research says
What this means at LaserMind
We don't give advice on caffeine, and nothing on LaserMind is designed to measure the effect of a drink or a drug. What is useful to know is that your results on any attention exercise will vary with sleep, time of day, and whether you have had your usual coffee. When you compare sessions on Target Watch (Go/No-Go), our response-control exercise, compare like with like: similar time of day, similar sleep, similar routine. Its results show accuracy, false presses, median response time and d′, a measure of how well you tell "press" from "hold" letters. They are practice results with no norms, not a test of alertness.
Try it on LaserMind
▶ Target Watch (Go/No-Go)If you play regularly, note the time of day and how you slept, and compare only sessions played under similar conditions.
What research has not established
- Most caffeine experiments are short, single-dose laboratory studies with healthy adults, often young [1][4].
- The withdrawal-reversal question is unresolved, and it affects how every placebo-controlled study in habitual users should be read [2].
- The sleep study had 12 participants and used a high dose [6]; the memory study is a single experiment [9].
- The sleep-loss meta-analysis pooled very different tasks and doses [5].
- Safety thresholds apply to healthy populations and are not personal recommendations [7].
- This article is not medical advice. If you have health concerns about caffeine, talk to a doctor or pharmacist.
Frequently asked questions
Does caffeine improve focus? It improves alertness, vigilance, attention and reaction time in the short term [1]. For regular users, part of the effect may be reversing overnight withdrawal rather than a net boost [3].
Does caffeine improve memory? The evidence is less consistent than for attention [1]. One study found a specific memory benefit a day after 200 mg in non-users [9], but that is not evidence that coffee improves everyday memory.
Is caffeine a good substitute for sleep? No. It reduces some effects of sleep loss on attention and reaction time [5], but sleep loss itself impairs attention [8], and late caffeine can make the next night shorter [6].
How much caffeine is safe? The European Food Safety Authority found no safety concerns for healthy non-pregnant adults at single doses up to 200 mg and habitual intake up to 400 mg a day, and up to 200 mg a day in pregnancy [7]. Individual needs differ; ask a doctor if you have a medical condition or take medication.
Why does coffee make me jittery but not sharper? In people who rarely use caffeine, it reduced sleepiness but also raised anxiety and jitteriness, which offset the gain in alertness [3].
References
- McLellan, T. M., Caldwell, J. A., & Lieberman, H. R. (2016). A review of caffeine's effects on cognitive, physical and occupational performance. Neuroscience & Biobehavioral Reviews, 71, 294–312. https://doi.org/10.1016/j.neubiorev.2016.09.001
- James, J. E., & Rogers, P. J. (2005). Effects of caffeine on performance and mood: Withdrawal reversal is the most plausible explanation. Psychopharmacology, 182(1), 1–8. https://doi.org/10.1007/s00213-005-0084-6
- Rogers, P. J., Heatherley, S. V., Mullings, E. L., & Smith, J. E. (2013). Faster but not smarter: Effects of caffeine and caffeine withdrawal on alertness and performance. Psychopharmacology, 226(2), 229–240. https://doi.org/10.1007/s00213-012-2889-4
- Einöther, S. J. L., & Giesbrecht, T. (2013). Caffeine as an attention enhancer: Reviewing existing assumptions. Psychopharmacology, 225(2), 251–274. https://doi.org/10.1007/s00213-012-2917-4
- Irwin, C., Khalesi, S., Desbrow, B., & McCartney, D. (2020). Effects of acute caffeine consumption following sleep loss on cognitive, physical, occupational and driving performance: A systematic review and meta-analysis. Neuroscience & Biobehavioral Reviews, 108, 877–888. https://doi.org/10.1016/j.neubiorev.2019.12.008
- Drake, C., Roehrs, T., Shambroom, J., & Roth, T. (2013). Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 9(11), 1195–1200. https://doi.org/10.5664/jcsm.3170
- EFSA Panel on Dietetic Products, Nutrition and Allergies (NDA). (2015). Scientific opinion on the safety of caffeine. EFSA Journal, 13(5), 4102. https://doi.org/10.2903/j.efsa.2015.4102
- Lim, J., & Dinges, D. F. (2010). A meta-analysis of the impact of short-term sleep deprivation on cognitive variables. Psychological Bulletin, 136(3), 375–389. https://doi.org/10.1037/a0018883
- Borota, D., Murray, E., Keceli, G., Chang, A., Watabe, J. M., Ly, M., Toscano, J. P., & Yassa, M. A. (2014). Post-study caffeine administration enhances memory consolidation in humans. Nature Neuroscience, 17(2), 201–203. https://doi.org/10.1038/nn.3623
