Caffeine helps you study mainly by keeping you alert and focused, especially when you're tired, but it does little for memory itself. What you eat and drink around it matters just as much: sugary snacks leave people more tired within an hour, and dehydration dulls attention.
That makes caffeine and studying a question of dose and timing, and food a question of routine rather than superfoods. This guide covers what caffeine does in your brain, how much is safe for adults and teens, when to stop, what sugar, water, and omega-3s really do, and a simple plan for eating and drinking through exam week.
Does caffeine help you study?
Yes, for staying awake and paying attention. Through the day your brain builds up adenosine, a molecule that makes you feel sleepy. Caffeine blocks the receptors adenosine binds to, so the "time to rest" signal doesn't land. You aren't less tired; you just feel it less.
A 2016 review by McLellan, Caldwell, and Lieberman pulled together decades of research. Low (about 40 mg) to moderate (about 300 mg) doses consistently improved:
- alertness and vigilance (staying on task through boring material)
- attention
- reaction time
Long sessions of flashcards, problem sets, or late-afternoon lecture notes are exactly the vigilance tasks where that helps. Just don't confuse "I feel sharp" with "I'm learning more." Test yourself to find out; active recall shows how.
Does coffee improve memory?
Not reliably. The same review found less consistent effects on memory and on higher-level thinking such as judgment and decision making. Caffeine helps you stay at the desk with your eyes on the page. It does not make the material easier to understand or guarantee it sticks. Spaced self-testing and a full night's sleep do far more for what you remember.
The habit catch: tolerance and withdrawal
In a 2010 study of 379 adults, Rogers and colleagues asked people to skip caffeine for 16 hours, then gave them caffeine or a placebo. Regular consumers who got the placebo felt less alert and had more headaches; caffeine simply brought them back to normal. Among people who rarely had caffeine, it didn't raise alertness at all, and they were more prone to caffeine-induced anxiety than regular drinkers.
The authors' conclusion: with frequent use, you develop tolerance, and caffeine mostly reverses the dip caused by not having it. Daily coffee drinkers aren't gaining extra focus so much as avoiding withdrawal. That's also why exam week is a bad week to quit.
How much caffeine is safe for studying?
For healthy adults, both the US Food and Drug Administration (FDA) and the European Food Safety Authority (EFSA) treat up to 400 mg a day as an amount not generally linked to harm. EFSA adds that single doses up to 200 mg don't raise safety concerns. The FDA puts 400 mg at about two to three 12-ounce cups of brewed coffee, but drinks vary a lot:
How much caffeine is in a 12 oz drink?
Typical caffeine range per 12 fluid ounces. Tea values are single typical amounts.
- Low end
- High end
View data
| drink | Low end | High end |
|---|---|---|
| Brewed coffee | 113 mg | 247 mg |
| Energy drink | 41 mg | 246 mg |
| Soft drink (caffeinated) | 23 mg | 83 mg |
| Black tea | 71 mg | 71 mg |
| Green tea | 37 mg | 37 mg |
A single 12-ounce brewed coffee can already reach the 200 mg single-dose level, and energy drinks span such a wide range that you need to read the can.
People differ a lot in how sensitive they are and how fast they clear caffeine; body weight, medications, and medical conditions all change it. If you're pregnant, trying to become pregnant, or breastfeeding, EFSA's limit is 200 mg a day, and the FDA advises checking with your doctor. Very high doses are dangerous: the FDA estimates that about 1,200 mg taken quickly can cause seizures, and it warns against pure powdered or liquid caffeine, where a safe dose is hard to measure.
Teens and under-18s
Younger students should stay much lower. EFSA proposes about 3 mg per kg of body weight per day for children and adolescents. For a 50 kg (110 lb) teenager, that's about 150 mg, roughly one regular coffee. The FDA notes that medical experts, including the American Academy of Pediatrics, advise against energy drinks for children and teens because of their caffeine and sugar.
Signs you've had too much
The FDA lists a racing or pounding heart, jitters, anxiety, trouble sleeping, upset stomach, nausea, and headache. If you notice them, cut back gradually rather than stopping all at once.
Get urgent medical help if someone has taken a lot of caffeine quickly, for example from pills, powder, or several energy drinks, and has chest pain, a very fast or irregular heartbeat, repeated vomiting, confusion, or a seizure.
When should you drink coffee for studying?
At the start of a study block, not in the middle of a slump you could fix with a break. Caffeine is absorbed quickly and its effects last for hours, so a coffee as you sit down covers the whole session. If you're already fading after two hours, a proper study break with a walk often does more than another cup.
Set a cutoff of at least 6 hours before bed. In a 2013 home sleep study, Drake and colleagues gave 12 healthy adults 400 mg of caffeine at bedtime, 3 hours before, or 6 hours before. All three disrupted sleep compared with placebo. Even at 6 hours, the sleep monitor showed total sleep cut by more than an hour. Participants' own sleep diaries showed a smaller drop, so they didn't fully notice the damage.
That was a big dose in a small study, but EFSA also notes that as little as 100 mg close to bedtime can affect sleep in some adults. If you sleep at 11 p.m., your last coffee should be by about 5 p.m.; earlier if you're sensitive.
This matters because sleep is when your brain consolidates what you studied, so trading two hours of sleep for two hours of caffeinated cramming is usually a bad deal. Our guide to sleep and memory consolidation explains why, and the best time to study covers how to schedule around it.
Do sugar and energy drinks help you study?
No. The "sugar rush" is a myth. A 2019 meta-analysis by Mantantzis and colleagues pooled 31 studies with 1,259 participants and found that eating or drinking carbohydrates, such as sugar, did not improve any aspect of mood at any point afterwards. Within the first hour, people who'd had them actually reported more fatigue and less alertness than people given a placebo.
That's the opposite of what you want before a study block or an exam. A cookie won't ruin a session, but candy and sugary drinks aren't a focus tool. If you need a lift, a short walk or a movement break works without the slump.
Energy drinks stack both problems. The FDA's figures range from 41 to 246 mg of caffeine per 12 ounces, and larger 16-ounce cans can hold up to 328 mg. Two cans in an evening can put you past 400 mg, late in the day, often with a lot of sugar. If you use them:
- check the caffeine per can, not per "serving"
- count them toward your daily total along with coffee, tea, and soda
- don't stack them with pre-workout powders or caffeine pills
- if you're under 18, skip them, per the pediatric advice above
A coffee or tea gives you the same alertness effect with fewer surprises.
Does dehydration affect concentration?
Yes, and it's one of the easiest things to fix. A 2018 meta-analysis by Wittbrodt and Millard-Stafford pooled 33 studies in which people were dehydrated by 1–6% of their body weight. Dehydration impaired thinking overall, and attention suffered most:
Which tasks dehydration hurts most
Size of the impairment after dehydration, by type of task (standardized effect size)
The paper reports these as negative effect sizes; shown here as positive impairment sizes. The reaction-time effect was not statistically significant.
Source: Wittbrodt & Millard-Stafford (2018), Medicine & Science in Sports & Exercise
View data
| task | Size of impairment |
|---|---|
| Attention | 0.52 |
| Motor coordination | 0.4 |
| Executive function | 0.24 |
| Reaction time | 0.1 |
The impairment was larger when people had lost more than 2% of their body weight in fluid. For a 60 kg (132 lb) student, that's about 1.2 kg, or 1.2 liters, of water.
The practical version: keep a filled water bottle on your desk, drink from it at every break, and have a glass with each meal. If you notice a dry mouth, thirst, or a creeping headache late in a session, drink before you reach for more caffeine.
Is there such a thing as brain food for studying?
Not in the sense of a food that sharpens your memory on demand. Your brain runs on a steady supply of energy and nutrients from your whole diet, not from a handful of blueberries before a lecture. Most "brain food" lists pick items from an ordinary healthy diet, such as oily fish, berries, nuts, eggs, whole grains, and pulses, and give them extra credit. They're good foods; the benefit comes from eating that way most days.
Do omega-3 supplements help memory?
Omega-3 fats, especially DHA, matter for brain function, which is why oily fish tops every brain-food list. The trial evidence for pills is modest. The study most relevant to students gave 176 healthy adults aged 18–45 who ate little DHA either 1.16 g of DHA a day or a placebo for six months. The DHA group's memory responses got slightly faster, and women's episodic memory improved, by small amounts.
Two details matter: the people in the trial were low fish eaters to begin with, and the gains were measured after six months of daily pills. Eat oily fish such as salmon, sardines, or mackerel regularly, and don't expect a bottle bought in exam week to help with exam week.
When tiredness isn't about food choices
If you're exhausted all the time despite sleeping and eating reasonably, ask a doctor to look for causes such as iron deficiency rather than guessing with supplements. The same goes if exam stress is changing how you eat: skipping meals for days, bingeing, or feeling out of control around food are worth raising with a doctor or your campus health service, not fixing with a meal plan.
What to eat and drink before an exam
The goal on exam day is simple: not hungry, not stuffed, not jittery.
- Eat a familiar meal, early enough that you're not still full when you sit down. Porridge with fruit, eggs on wholegrain toast, yogurt with nuts, or rice with vegetables and chicken or beans all work. Exam morning is not the time to try a new food.
- Don't swap breakfast for something sugary. Given the sugar findings above, a pastry and a soda is a good way to feel more tired within the hour.
- Drink water with breakfast and bring a bottle if your exam allows it.
- Have a small snack ready for long or afternoon exams, if the rules allow: a banana, a handful of nuts, or a cereal bar.
- Daily caffeine drinker? Have your usual amount at your usual time. Skipping it risks a withdrawal headache and fogginess right when you need to think clearly.
- Rarely drink caffeine? Exam day isn't the day to start. In Rogers' study, caffeine didn't make low consumers more alert, and they were the group most prone to caffeine-related anxiety.
- Don't double up. Extra caffeine adds jitters and a racing heart, with little extra focus. If nerves are already the problem, the strategies in how stress affects learning help more.
- Never use caffeine to replace the night's sleep. An all-nighter followed by three energy drinks is the worst of both.
The night before, eat a normal dinner, stop caffeine on your usual schedule, and save any celebrating for after the exam. A good night's sleep will do more for tomorrow's recall than anything on your plate.
An exam-week plan for caffeine, food and water
You don't need special foods or supplements. You need a few cheap staples and a routine so you aren't making decisions when you're tired. If you have a medical condition, food allergies, or a history of disordered eating, follow your own care team's advice over general tips like these.
| Time | Caffeine | Food and water |
|---|---|---|
| Breakfast | Your usual coffee or tea, under 200 mg | Porridge with banana or frozen berries, eggs on toast, or yogurt with nuts; a glass of water |
| Late morning | None needed | Water bottle on the desk for your hardest block: practice questions, not rereading |
| Lunch | Optional smaller cup, if you're under 400 mg and it's more than 6 hours before bed | Wholegrain wrap with tuna or beans, leftovers, or soup with bread |
| Afternoon | Last caffeine at least 6 hours before bed; then water or decaf | Fruit, carrot sticks and hummus, nuts, or plain popcorn instead of candy |
| Dinner | None | Rice or pasta with vegetables and chicken, eggs, tofu, or beans |
| Evening | None | Lighter review: flashcards and earlier mistakes; same bedtime every night |
| Exam morning | Same as every other day | Familiar breakfast, water, and a small snack if allowed |
Three habits make it stick:
- Batch cook once. A big pot of chili, curry, or soup on the weekend covers several exam-week dinners.
- Keep frozen vegetables and fruit. They're cheap, they don't go off, and they make a balanced meal a five-minute job.
- Eat at regular times. Fix meals into your day the same way you fix study blocks, so long sessions don't slide into skipped lunches.
To see whether caffeine helps you at all, try a week where you keep it identical every day and change nothing else, then compare your self-test scores rather than how energetic you felt. Food and caffeine support studying; they don't replace it. Pair this plan with a clear exam preparation plan, and use the rest of a focus routine for studying (phone away, timed blocks, a quiet room) to put the energy to work.
Frequently asked questions
Is it better to study with or without coffee?
If you're a regular coffee drinker, study with your usual amount, since going without can leave you less alert and give you a headache. If you rarely drink caffeine, you don't need to start. Caffeine improves alertness and attention, but evidence that it improves learning itself is weak, and good sleep and self-testing matter far more.
How long before an exam should I drink coffee?
Drink it at your normal time, usually with breakfast, which for most morning exams means an hour or two beforehand. Caffeine is absorbed quickly and its effects last for hours, so you don't need to time it to the minute. Avoid adding extra cups right before the exam, which mostly adds jitters.
Is 200 mg of caffeine a lot?
For a healthy adult, 200 mg in one go is the most EFSA considers free of safety concerns, and half the 400 mg daily limit. One strong 12-ounce brewed coffee can contain that much. For a teenager it can be too much: EFSA's guide of 3 mg per kg means a 50 kg teen should have about 150 mg in a whole day.
Is tea better than coffee for studying?
Tea has less caffeine per cup, about 37 mg (green) to 71 mg (black) per 12 ounces versus 113–247 mg for brewed coffee, by the FDA's figures. That makes it easier to stay in a moderate range and sip it through a session without overshooting. Low doses around 40 mg still improve alertness, so tea is a good choice if coffee makes you jittery.
What should I eat before an exam?
A familiar meal that keeps you full without feeling heavy, such as porridge with fruit, eggs on wholegrain toast, or yogurt with nuts, eaten early enough that you're not still full when the exam starts. Skip sugary breakfasts, which can leave you more tired within an hour, drink some water, and keep your caffeine at your usual level.
Is it bad to study on an empty stomach?
Studying for a short while before a meal is fine, but long sessions on an empty stomach usually go badly: hunger is distracting, and skipping meals makes it tempting to grab sugary snacks later. Eat regular meals and keep a simple snack nearby for long sessions. Drinking water matters too, since dehydration impairs attention.
Sources and further reading
Start with the primary research and official guidance below. Links open in a new tab so you can compare the evidence with the article.
- Read source
Spilling the Beans: How Much Caffeine Is Too Much?
U.S. Food and Drug Administration, 2024
- Read source
Caffeine (EFSA topic page and scientific opinion on the safety of caffeine)
European Food Safety Authority, 2015
- Read source
A review of caffeine's effects on cognitive, physical and occupational performance
McLellan, Caldwell & Lieberman, Neuroscience & Biobehavioral Reviews, 2016
- Read source
Association of the anxiogenic and alerting effects of caffeine with ADORA2A and ADORA1 polymorphisms and habitual level of caffeine consumption
Rogers et al., Neuropsychopharmacology, 2010
- Read source
Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed
Drake et al., Journal of Clinical Sleep Medicine, 2013
- Read source
Sugar rush or sugar crash? A meta-analysis of carbohydrate effects on mood
Mantantzis et al., Neuroscience & Biobehavioral Reviews, 2019
- Read source
Dehydration Impairs Cognitive Performance: A Meta-analysis
Wittbrodt & Millard-Stafford, Medicine & Science in Sports & Exercise, 2018
- Read source
DHA supplementation improved both memory and reaction time in healthy young adults: a randomized controlled trial
Stonehouse et al., American Journal of Clinical Nutrition, 2013
