The nutrition habits with the best evidence for focus and mental performance are simple: protect your sleep, use caffeine in moderate amounts and stop it well before bed, eat breakfast if you have a demanding morning, and stay hydrated. Creatine is a newer area of research with small, mixed results. No food or supplement replaces a full night's sleep.
Key Takeaways
- Short-term sleep loss has its largest effect on simple attention. Adults are advised to sleep 7 to 9 hours a night and teens 8 to 10 hours.
- Low to moderate caffeine doses (about 40 to 300 mg) improve alertness, vigilance, attention and reaction time, with less consistent effects on memory and complex decisions.
- The FDA cites 400 mg of caffeine a day as an amount not generally associated with negative effects for most adults. In a small controlled study, 400 mg taken 6 hours before bed still cut sleep by more than an hour.
- Eating breakfast rather than fasting gives children a same-morning boost on attention, executive function and memory tasks. In adults the clearest benefit is a small one for memory.
- Creatine trials are small. Memory improvements appeared mainly in older adults, not in younger people.
- A 2018 meta-analysis linked water loss above 2% of body weight with poorer attention and executive function.
Evidence grade: Moderate. Caffeine's short-term effects on alertness and the effects of sleep loss rest on many controlled studies and meta-analyses, but the breakfast and creatine research is smaller, shorter and more mixed.
This guide covers short-term performance at school and work. For the long-term picture of eating patterns, fish, berries and B vitamins, see our companion article on nutrition and brain health. For individual vitamins and supplements marketed for memory and focus, see the best vitamins for memory and brain health.
Sleep Comes First
A meta-analysis of 70 studies looked at what happens to thinking after less than 48 hours without sleep. The effects ranged from small and not significant for reasoning accuracy to large for lapses in simple attention, the moments when your mind briefly goes blank [10].
The National Heart, Lung, and Blood Institute recommends these amounts of sleep, including naps for younger children [11]:
- Children 6 to 12 years: 9 to 12 hours a day
- Teens 13 to 18 years: 8 to 10 hours a day
- Adults: 7 to 9 hours a night
For students, that means an all-night study session is likely to cost more in attention than it gains in review time.
Breakfast and School or Work Performance
Children and teens
A 2016 systematic review of 45 studies found that eating breakfast, compared with fasting, had a short-term, same-morning benefit on tasks that need attention, executive function and memory. The effects were more apparent in undernourished children [3]. The authors could not draw firm conclusions about which breakfast foods work best or about long-term school breakfast programs, because those studies were few and inconsistent. They also noted small samples and very little research in teenagers. The review was funded by a grant from a breakfast-cereal company [3].
Adults
A companion review of 38 studies in adults found a small but consistent advantage for memory, especially delayed recall, after eating breakfast. Results for attention and executive function were largely equivocal. The 16 studies on breakfast composition were too different from each other to show which foods are best [4].
What this means in practice
If you skip breakfast and feel fine, the research does not say you must eat it. If you have an exam, a demanding morning or a child heading to school, a breakfast is a reasonable choice. Pair a whole grain or fruit with a protein, such as oatmeal with nuts, eggs on whole-grain toast, or yogurt with berries. Our list of breakfast foods for sustained energy has more ideas.
Caffeine: What It Does and Does Not Do
More than 80% of U.S. adults consume caffeine. It works by blocking adenosine receptors in the brain. A 2016 review found that low (about 40 mg) to moderate (about 300 mg) doses improve alertness, vigilance, attention and reaction time. Effects on memory and higher-order thinking, such as judgment and decision making, are less consistent [5]. In other words, caffeine helps you stay alert and on task more than it helps you learn or reason better.
Caffeine content varies a lot between drinks [2]:
| Drink (12 fluid ounces) | Typical caffeine |
|---|---|
| Brewed coffee | 113 to 247 mg |
| Energy drink | 41 to 246 mg |
| Caffeinated soft drink | 23 to 83 mg |
| Black tea | 71 mg |
| Green tea | 37 mg |
| Decaf coffee (8 fluid ounces) | 2 to 15 mg |
How much is reasonable
For most adults, the FDA cites 400 mg a day, about two to three 12-ounce cups of coffee, as an amount not generally associated with negative effects. Sensitivity varies widely, and some medicines and health conditions make people more sensitive [2]. Medical experts advise against energy drinks for children and teens [2]. Caffeine is also added to many supplements sold in the nootropics category, and the same daily limits apply to every source.
Timing matters
In a placebo-controlled study, 12 healthy normal sleepers took 400 mg of caffeine at bedtime, 3 hours before bed or 6 hours before bed. All three timings disturbed sleep compared with placebo, and even the 6-hour dose cut sleep by more than an hour. Based on the size of the effect, the researchers supported avoiding substantial caffeine for at least 6 hours before bedtime [6]. For a 10 p.m. bedtime, that means finishing caffeine by about 4 p.m., or earlier if you are sensitive. Read more about caffeine and sleep patterns.
Creatine and Thinking
Creatine helps cells regenerate ATP, the body's short-term energy currency. The liver and kidneys make about 1 g a day, and beef, pork and salmon contain about 2 g per pound [1]. Most creatine research is about exercise, but the brain also uses creatine, so researchers have tested it for thinking.
- 2018 systematic review: six randomized trials with 281 healthy people. Short-term memory and reasoning may improve, but results for attention, executive function, reaction time and mental fatigue conflicted. Performance stayed unchanged in young people. Vegetarians responded better than meat-eaters on memory tasks [7].
- 2023 meta-analysis: eight trials pooled. Creatine improved memory scores overall by a small amount. The effect was larger in adults aged 66 to 76 and absent in people aged 11 to 31. Doses ranged from about 2.2 to 20 g a day [8]. Other researchers later questioned whether some data were counted twice, which could overstate the result [9].
So creatine is a reasonable research question, not a proven study aid, especially for students and young adults.
Hydration
A 2018 meta-analysis of 33 studies found that dehydration had a small overall effect on thinking. Attention, executive function and motor coordination were most affected, and the impairment was greater when water loss exceeded 2% of body weight [12]. Keep water at your desk, drink with meals, and drink more in hot weather or after exercise.
A Sample Study or Work Day
| Time | What to eat or drink |
|---|---|
| Morning | Oatmeal with walnuts and berries, or eggs on whole-grain toast; coffee or tea if you use caffeine; a glass of water |
| Mid-morning | Water; fruit and a few nuts if hungry |
| Lunch | A grain bowl with beans, vegetables and chicken or tofu |
| Early afternoon | Last caffeinated drink, if any, at least 6 hours before bed |
| Late afternoon | Yogurt with berries, or vegetables with hummus |
| Evening | A balanced dinner a few hours before bed; water or herbal tea; a consistent bedtime |
Safety and Interactions
- Too much caffeine can cause a fast heart rate, palpitations, raised blood pressure, sleep problems and anxiety [2]. Caffeine also turns up in energy bars, gum, dietary supplements and over-the-counter medicines, so count all sources [2].
- Pure and highly concentrated caffeine products are dangerous. The FDA estimates that toxic effects, such as seizures, can occur with rapid intake of around 1,200 mg, less than half a teaspoon of pure powder [2].
- Pregnancy and breastfeeding: the FDA recommends talking to your healthcare provider about whether to limit caffeine [2].
- Children and teens should avoid energy drinks [2].
- Medications: some medicines change how sensitive you are to caffeine [2]. Talk to your doctor or pharmacist if you take prescription medicines and use caffeine or caffeine-containing supplements.
- Creatine: few safety concerns have been reported at typical doses, such as 20 g a day for up to 7 days or 3 to 5 g a day for up to 12 weeks. Weight gain from water retention is common, and nausea, diarrhea and muscle cramps have been reported anecdotally [1]. People with kidney problems should talk to their doctor before using it.
- Ongoing tiredness or trouble concentrating that does not improve with better sleep deserves a visit to a doctor rather than more caffeine.
Frequently Asked Questions
Does eating breakfast improve school performance?
Breakfast, compared with skipping it, gives children a short-term boost on attention, executive function and memory tasks that same morning, with larger effects in undernourished children. Long-term effects of school breakfast programs on grades are less clear because the studies are few and inconsistent.
How much caffeine is safe for studying or work?
For most healthy adults, the FDA cites up to 400 mg a day, about two to three 12-ounce cups of coffee, as an amount not generally associated with negative effects. Doses of about 40 to 300 mg are enough to improve alertness in studies. Children and teens should avoid energy drinks, and pregnant people should ask their provider.
When should I stop caffeine before bed?
A small placebo-controlled study found that 400 mg of caffeine taken 6 hours before bed still reduced sleep by more than an hour. Stopping substantial caffeine at least 6 hours before bedtime is a reasonable rule, and earlier if you are sensitive.
Does creatine help memory?
Possibly, mainly in older adults. A 2023 meta-analysis found a small overall improvement in memory scores, with a larger effect in adults aged 66 to 76 and no effect in people aged 11 to 31. The trials were small and the analysis has been questioned, so the evidence is still early.
How much sleep do students need?
The NHLBI recommends 9 to 12 hours for children aged 6 to 12, 8 to 10 hours for teens aged 13 to 18, and 7 to 9 hours for adults. Sleep loss hits attention hardest, which is why late-night cramming often backfires.
What should I eat before an exam?
Eat a familiar breakfast or meal rather than skipping it, drink water, and use your usual amount of caffeine, if any, rather than more. Research supports a same-morning benefit from breakfast for attention and memory tasks, but no specific food has been shown to be best.
Sources
- NIH Office of Dietary Supplements. Dietary Supplements for Exercise and Athletic Performance: Fact Sheet for Health Professionals.
- U.S. Food and Drug Administration. Spilling the Beans: How Much Caffeine Is Too Much?
- Adolphus K, Lawton CL, Champ CL, Dye L. The Effects of Breakfast and Breakfast Composition on Cognition in Children and Adolescents: A Systematic Review. Adv Nutr. 2016.
- Galioto R, Spitznagel MB. The Effects of Breakfast and Breakfast Composition on Cognition in Adults. Adv Nutr. 2016.
- McLellan TM, Caldwell JA, Lieberman HR. A review of caffeine's effects on cognitive, physical and occupational performance. Neurosci Biobehav Rev. 2016.
- Drake C, Roehrs T, Shambroom J, Roth T. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. J Clin Sleep Med. 2013.
- Avgerinos KI, Spyrou N, Bougioukas KI, Kapogiannis D. Effects of creatine supplementation on cognitive function of healthy individuals: A systematic review of randomized controlled trials. Exp Gerontol. 2018.
- Prokopidis K, Giannos P, Triantafyllidis KK, et al. Effects of creatine supplementation on memory in healthy individuals: a systematic review and meta-analysis of randomized controlled trials. Nutr Rev. 2023.
- Eckert I, Pascher E. Letter to the Editor: Double-counting due to inadequate statistics leads to false-positive findings in "Effects of creatine supplementation on memory in healthy individuals". Nutr Rev. 2023.
- Lim J, Dinges DF. A meta-analysis of the impact of short-term sleep deprivation on cognitive variables. Psychol Bull. 2010.
- National Heart, Lung, and Blood Institute. How Much Sleep Is Enough?
- Wittbrodt MT, Millard-Stafford M. Dehydration Impairs Cognitive Performance: A Meta-analysis. Med Sci Sports Exerc. 2018.
Disclosure: OPA Nutrition sells supplements, including products mentioned in this article. This content is for education only and is not medical advice. Statements about dietary supplements have not been evaluated by the Food and Drug Administration. These products are not intended to diagnose, treat, cure, or prevent any disease. Talk to your healthcare provider before using any supplement, especially if you take medication or have a medical condition.
Written and reviewed by Michael Gonzales, Founder, OPA Nutrition · Last reviewed: · How OPA researches and writes
