MemoryProof home Track your brain health Try our memory testing app

What diet is best for memory and focus?

The Mediterranean diet has the best evidence for memory and thinking [1]: in its longest trial, older adults at high risk of heart attacks and strokes who ate it with extra olive oil or nuts had better memory, attention or overall thinking after 4 to 6.5 years than those told to eat less fat [2] [3]. But in three shorter trials of 6 months to 3 years, older adults who switched to a Mediterranean-style diet gained no more in memory and thinking than those who kept their usual diet [4] [5] [6]. In healthy young adults, 4 to 7 days of fast food or fatty, sugary breakfasts made memory for a word list worse [7] [8]. Keto diets brought no more gain in memory than diets with more carbs in adults without memory problems [9] [10], and the evidence is mixed for older adults with mild memory problems: one small trial found better memory on keto [11], another the same gain on a low-fat diet [12].

What do scientific studies say about diet's impact on memory and focus?

Who took partWhat they ate, and what happened
Mediterranean-style diets
447 adults, on average 67 years old, at high risk of heart attacks and strokes; 334 retested after about 4 yearsA Mediterranean diet with extra olive oil (1 liter a week) or extra nuts (30 g a day), or advice to eat less fat. Better memory with nuts; better attention, planning and overall thinking with olive oil. Kept to it: yes, by a diet questionnaire, and urine and blood tests in some people. Weight: barely changed [2] [13].
522 other adults from the same trial, on average 75 years oldThe same diets for 6.5 years, tested only at the end. Better overall thinking with both Mediterranean diets. Weight: changed as little as in the 4-year study [3] [14] [13].
604 adults aged 65 and over with overweight, a poor diet and a close relative with dementia3 years of a Mediterranean-style diet with extra berries and leafy greens (MIND) or their usual diet, both with 250 fewer calories a day. Overall thinking improved in both alike. Kept to it: yes, by a diet questionnaire and blood tests. Weight: about 5 kg lost in both groups [4].
137 healthy adults, on average 72 years old6 months of a Mediterranean diet with 1 to 3 tablespoons of olive oil a day, or their usual diet. Memory, planning and speed of thinking came out the same. Kept to it: 91% of planned servings. Weight: 1 kg more lost on the diet [5] [15] [16].
1,279 adults aged 65 to 791 year of Mediterranean-style diet advice plus 10 µg of vitamin D a day, or their usual diet. Memory and overall thinking improved in both alike. Kept to it: by food records, the diet group ate closer to the diet than the usual-diet group. Weight: not reported [6] [17].
Fast food and ultra-processed food
110 healthy, lean adults aged 17 to 35Waffles on 4 days and fast food on 2 days within one week, or their usual diet. Memory for a word list got worse and had recovered 3 weeks later. Kept to it: 88% of the waffles and 93% of the fast food. Weight: unchanged [7].
102 healthy, lean students4 days of a lab breakfast high in saturated fat and sugar, or a healthier one. Memory for a word list got worse only after the fatty, sugary breakfasts. Kept to it: eaten in the lab. Weight: not reported [8].
10,775 adults aged 35 to 74, followed for 8 years; no diet assignedTheir usual diet, by questionnaire. Those who got over a fifth of their calories from ultra-processed food declined 28% faster in overall thinking than those who got less. Weight: taken into account [18].
Keto and low-carb diets, compared with diets with more carbs
11 healthy adults of normal weight, on average 30 years old3 weeks each of keto (15% of calories from carbs) and a high-carb diet (55%), same calories. Attention, memory and planning came out the same. Kept to it: yes, by blood tests [9].
106 adults with overweight, on average 50 years old1 year of a very low-carb or a low-fat diet, same calories. Working memory (holding words and numbers in mind while using them) improved equally; mood improved more on low-fat. Weight: 13.7 kg lost on average, with no clear difference between the diets [10] [19].
93 adults with overweight, on average 50 years old8 weeks of a low-carb or a high-carb diet, same calories. Same working memory, but speed of thinking improved less on low-carb. Weight: more lost on low-carb, 7.8 against 6.4 kg [20].
21 women with obesity4 weeks of a keto or a non-keto liquid diet, same very low calories. Same attention, but worse at switching between numbers and letters on keto, mainly in the first week. Weight: 8.1 kg lost on average, about the same on both [21].
23 adults with mild memory problems, on average 70 years old6 weeks of a very low-carb or a high-carb diet. Better memory for word pairs on very low-carb. Kept to it: 34 g of carbs a day on very low-carb, by diet diaries. Weight: more lost on very low-carb, but not linked to the better memory [11].
20 adults, on average 64 years old, who felt their memory had got worse or had mild memory problems6 weeks each of a Mediterranean-style keto diet (40 g of carbs a day) and a low-fat diet. Memory improved after both. Kept to it: food records matched 90% and 95% of the plans. Weight: 3.9 kg lost on keto, 2.2 kg on low-fat [12].
26 people with Alzheimer's disease, the most common form of dementia12 weeks each of keto and their usual diet with low-fat advice. Daily functioning and quality of life improved more on keto, but memory and thinking did not clearly. Kept to it: 18 of the 26, by blood tests. Weight: 2.6 kg more lost on keto, not taken into account [22] [23].
Intermittent fasting
40 adults aged 55 to 70 with overweight and a poor response to insulin8 weeks of 5:2 fasting (two shakes with 480 calories in total on 2 days a week) or healthy eating. Memory and planning improved in both; the 5:2 group was ahead only at recalling words when given hints. Kept to it: food not recorded. Weight: both lost, the 5:2 group more [24].
A diet to lower blood pressure (DASH)
124 middle-aged adults with overweight and raised blood pressure4 months of the Dietary Approaches to Stop Hypertension (DASH) diet, the DASH diet with cardio and fewer calories, or their usual diet. The DASH diet alone made people faster at a timed attention task; with cardio, a combined measure of planning, memory and learning also improved. Kept to it: 92% of diet classes attended. Weight: 0.8 kg lost with the DASH diet alone, 8.9 kg with cardio [25].
160 adults over 55 with mild memory or thinking problems6 months of the DASH diet, cardio, both, or health classes. Planning improved with cardio, but not clearly with the DASH diet; memory came out the same. Kept to it: 99.6% of diet classes attended. Weight: 1.8 kg more lost with the DASH diet [26].
Diet and dementia
48,835 women aged 50 to 79; 1,606 of them, aged 65 and over, had a yearly test of memory and thinking8.5 years of a low-fat diet with more fruit, vegetables and grains, or their usual diet. Among the 1,606, those on low-fat less often scored low on the test. Among all 48,835, deaths from dementia over 20 years were not lower. Kept to it: fat 24% of calories after 1 year (target 20%). Weight: 2.1 kg lost on low-fat, not taken into account; the authors name it as one possible reason for the better memory and thinking [27] [28].
923 older adults, followed for 4.5 years; no diet assignedTheir usual diet, by questionnaire. The third closest to the MIND diet developed Alzheimer's disease at a 53% lower rate than the third furthest from it. Weight: taken into account, the rate was 50% lower [29].
8,225 adults, on average 50 years old, followed for 25 years; no diet assignedTheir usual diet, by questionnaire up to three times. Diet quality in midlife was not linked to dementia later [30].

Does the Mediterranean diet improve memory?

The Mediterranean diet is built on vegetables, fruit, whole grains, beans and lentils, fish and olive oil, with little red meat, few eggs and few sweets [31]. It is also the diet that most of the research on diet and memory has tested [1]. No single food has been shown to prevent the decline in memory and thinking that comes with age, not even blueberries or leafy greens [31].

Reviews that pooled studies of up to about 3 years found small gains in overall thinking and speed of thinking with the Mediterranean diet, and little or no gain in planning. The evidence was moderately certain for the Mediterranean diet and less certain for the other diets [1].

The clearest gains come from a large Spanish trial on the Mediterranean diet (PREDIMED) in older adults at high risk of heart attacks and strokes. It had three groups: one ate a Mediterranean diet with extra olive oil, one the same diet with extra nuts, and one was told to eat less fat. Of the 447 adults, 334 were tested again after about 4 years. The nut group had better memory than the low-fat group, and the olive oil group had better attention, planning and overall thinking [2]. In 522 other adults from the same trial, tested after 6.5 years, overall thinking was better with both Mediterranean diets [3].

The researchers handed out the olive oil or the nuts at no cost. A diet questionnaire showed that both Mediterranean groups kept to their diet, and urine and blood tests in some participants confirmed it [2]. Nobody was asked to eat less, and across the whole trial, the Mediterranean groups lost at most 0.4 kg more than the low-fat group in 5 years, so weight loss cannot explain their better memory and thinking [2] [13].

Three shorter trials compared a Mediterranean-style diet with people's usual diet, and none of them found a clear gain in memory or thinking. They were the 3-year trial of a Mediterranean-style diet with extra berries and green leafy vegetables (MIND) in 604 older adults with overweight [4], a 6-month trial in 137 healthy older adults [5], and a 1-year trial in 1,279 older adults who also took a daily vitamin D tablet [6]. In the first two, the researchers handed out foods such as olive oil, nuts and blueberries at no cost [4] [15]. Both groups filled in the same 14-question survey, which scores how closely anyone's eating matches the MIND diet, from 0 to 14 points. It gives points for eating often the foods the diet stresses, such as leafy greens, nuts, berries, fish and olive oil, and for eating rarely the foods it limits, such as red meat, butter, cheese, sweets and fried food. Everyone scored 8 points or less when they joined. Within 6 months, the MIND group rose from 7.7 to 11 points and stayed there, while the usual-diet group rose from 7.8 to 8.5, so the MIND group did eat much closer to the diet [4].

The long Spanish trial differs from the shorter ones in three ways: it lasted 4 to 6.5 years [2] [3], it took only people at high risk of heart attacks and strokes, and its comparison group, told to eat less fat, declined in memory and thinking [2]. In the MIND diet trial, both groups were asked to eat 250 fewer calories a day, and the comparison group lost as much weight and improved its overall thinking too. The authors say that this group probably ate better as well, and that practice at the tests can explain part of the gain in both groups [4].

Does a Western diet or fast food harm memory?

A Western-style diet has more red meat, saturated fat and sugar than a Mediterranean diet [31]. In two trials, healthy young adults remembered less of a word list after only a few days of such food. In one, 110 young adults ate two Belgian waffles a day on 4 days and a fast-food meal on 2 days within one week, and their memory had recovered 3 weeks later [7]. In the other, 102 students ate a breakfast high in saturated fat and sugar on 4 days in a row [8]. People's weight did not change during the waffle week, so weight gain cannot explain the worse memory [7].

Ultra-processed foods are ready-to-eat industrial products made with ingredients rarely used at home, such as flavorings, colorings, emulsifiers and sweeteners [32]. In 10,775 adults aged 35 to 74 who reported their usual diet once and were followed for 8 years, those who got more than a fifth of their calories from ultra-processed food declined 28% faster in overall thinking than those who got less, also after taking weight, exercise and education into account [18].

Does a keto diet help memory and focus?

A keto diet cuts carbs so far, often to 50 g a day or less, that the liver turns fat into ketones, which brain cells can use as fuel in place of blood sugar [11] [22].

In adults without memory problems, keto and other low-carb diets brought no more gain in memory than diets with more carbs. In 11 healthy adults, 3 weeks of keto left attention, memory and planning the same as 3 weeks of a high-carb diet [9]. In 106 adults with overweight, working memory improved equally over a year on a very low-carb and on a low-fat weight-loss diet, and on the low-fat diet, mood improved more and feelings of confusion eased more [10].

In two trials, people did worse on some thinking tasks with fewer carbs. In 93 adults with overweight, speed of thinking improved less over 8 weeks on a low-carb diet than on a high-carb one [20]. In 21 women with obesity, those on a keto liquid diet did worse at switching between numbers and letters than those on a liquid diet with more carbs, mainly in the first week, while their attention came out the same [21]. Weight loss cannot explain this: in the liquid-diet trial, both groups lost a comparable amount of weight, and in the 8-week trial, the low-carb group even lost more [21] [20].

Mild memory problems here means more forgetfulness than is usual for one's age, without real trouble managing daily life [11]. For older adults with mild memory problems, the evidence is mixed. In one trial of 23 adults with mild memory problems, one group ate a very low-carb diet for 6 weeks, the other a high-carb diet. The very low-carb group did better at remembering word pairs. Diet diaries showed that it ate far fewer carbs, 34 g a day against 197 g, and urine tests confirmed this. It also lost more weight, but its better memory went with higher ketone levels, not with the weight loss [11]. In another trial, 20 adults who felt their memory had got worse, or had mild memory problems, ate a keto diet for 6 weeks and a low-fat diet for 6 weeks. Memory improved after both diets alike, and the authors say that practice at the tests may explain this [12].

Does intermittent fasting improve memory?

In a trial that compared 5:2 fasting with healthy eating, the fasting did little more for memory. In 40 adults aged 55 to 70 with overweight and a poor response to insulin, one group did 5:2 fasting for 8 weeks, with only two shakes on 2 days a week, and the other ate healthily every day. Memory and planning improved in both groups, and the 5:2 group came out ahead only at recalling words when given hints. The trial did not record what people ate. Both groups lost weight, the 5:2 group more, and the authors read this as a sign that people kept to their diets. The analysis did not take the weight loss into account [24].

Does the DASH diet help memory?

The Dietary Approaches to Stop Hypertension (DASH) diet was designed to lower blood pressure. It cuts salt, added sugar and saturated fat, and adds fruit, vegetables, whole grains, beans, nuts and low-fat dairy [1]. In one of two trials, the DASH diet on its own made people faster at a timed attention task [25]. Neither trial found a clear gain in memory or planning from the diet alone, while cardio did help planning [25] [26].

In 124 middle-aged adults with overweight and raised blood pressure, the group that added cardio and fewer calories to the DASH diet for 4 months also improved on a combined measure of planning, memory and learning, a gain that came with better fitness rather than with its 8.9 kg weight loss [25]. In 160 adults over 55 with mild memory or thinking problems, four groups did the DASH diet, cardio, both, or health classes for 6 months: planning improved with cardio, but not clearly with the DASH diet, and memory came out the same in all four groups [26].

Does diet lower the risk of dementia or Alzheimer's disease?

In 923 older adults followed for 4.5 years, the third whose diet came closest to a Mediterranean-style diet with extra berries and leafy greens (MIND) developed Alzheimer's disease at a 53% lower rate than the third furthest from it [29]. But in 8,225 adults followed for 25 years from midlife, the quality of their diet was not linked to dementia [30]. The difference can come from the length: the diseases behind dementia start years before the diagnosis and can make a person's diet worse, so in a shorter study a worse diet can be an early sign of the disease rather than its cause [33] [30]. People who eat close to a Mediterranean or MIND diet are also on average better educated, more active and less often overweight, which can explain part of such links [33] [29].

Trials decide by chance who eats what, so such differences cannot explain what a trial finds [31]. In a trial of 48,835 women, 1,606 aged 65 and over had a yearly test of memory and thinking, and those on a low-fat diet less often scored low on it [27], but the low-fat diet did not lower deaths from dementia over 20 years [28]. No diet trial has yet shown fewer cases of dementia [1] [14].

Q&A

Does keto cause brain fog?

The trials did not measure brain fog as such. Women on a keto liquid diet did worse at switching between numbers and letters than women on one with more carbs, mainly in the first week [21], and over a year, feelings of confusion eased more on a low-fat diet than on a very low-carb diet [10]. In healthy adults, 3 weeks of keto left attention and memory the same as 3 weeks of a high-carb diet [9].

Sources

  1. World Health Organization. Risk reduction of cognitive decline and dementia: WHO guidelines, second edition. 15 July 2026. who.int/publications/i/item/9789240123557
  2. Valls-Pedret C, Sala-Vila A, Serra-Mir M, et al. Mediterranean diet and age-related cognitive decline: a randomized clinical trial. JAMA Internal Medicine. 2015;175(7):1094–1103. Corrected 5 November 2018. doi.org/10.1001/jamainternmed.2015.1668
  3. Martínez-Lapiscina EH, Clavero P, Toledo E, et al. Mediterranean diet improves cognition: the PREDIMED-NAVARRA randomised trial. Journal of Neurology, Neurosurgery & Psychiatry. 2013;84(12):1318–1325. doi.org/10.1136/jnnp-2012-304792
  4. Barnes LL, Dhana K, Liu X, et al. Trial of the MIND diet for prevention of cognitive decline in older persons. New England Journal of Medicine. 2023;389(7):602–611. doi.org/10.1056/NEJMoa2302368
  5. Knight A, Bryan J, Wilson C, Hodgson JM, Davis CR, Murphy KJ. The Mediterranean diet and cognitive function among healthy older adults in a 6-month randomised controlled trial: the MedLey study. Nutrients. 2016;8(9):579. doi.org/10.3390/nu8090579
  6. Marseglia A, Xu W, Fratiglioni L, et al. Effect of the NU-AGE diet on cognitive functioning in older adults: a randomized controlled trial. Frontiers in Physiology. 2018;9:349. doi.org/10.3389/fphys.2018.00349
  7. Stevenson RJ, Francis HM, Attuquayefio T, et al. Hippocampal-dependent appetitive control is impaired by experimental exposure to a Western-style diet. Royal Society Open Science. 2020;7(2):191338. doi.org/10.1098/rsos.191338
  8. Attuquayefio T, Stevenson RJ, Oaten MJ, Francis HM. A four-day Western-style dietary intervention causes reductions in hippocampal-dependent learning and memory and interoceptive sensitivity. PLoS ONE. 2017;12(2):e0172645. doi.org/10.1371/journal.pone.0172645
  9. Iacovides S, Goble D, Paterson B, Meiring RM. Three consecutive weeks of nutritional ketosis has no effect on cognitive function, sleep, and mood compared with a high-carbohydrate, low-fat diet in healthy individuals: a randomized, crossover, controlled trial. American Journal of Clinical Nutrition. 2019;110(2):349–357. doi.org/10.1093/ajcn/nqz073
  10. Brinkworth GD, Buckley JD, Noakes M, Clifton PM, Wilson CJ. Long-term effects of a very low-carbohydrate diet and a low-fat diet on mood and cognitive function. Archives of Internal Medicine. 2009;169(20):1873–1880. doi.org/10.1001/archinternmed.2009.329
  11. Krikorian R, Shidler MD, Dangelo K, Couch SC, Benoit SC, Clegg DJ. Dietary ketosis enhances memory in mild cognitive impairment. Neurobiology of Aging. 2012;33(2):425.e19–425.e27. doi.org/10.1016/j.neurobiolaging.2010.10.006
  12. Neth BJ, Mintz A, Whitlow C, et al. Modified ketogenic diet is associated with improved cerebrospinal fluid biomarker profile, cerebral perfusion, and cerebral ketone body uptake in older adults at risk for Alzheimer's disease: a pilot study. Neurobiology of Aging. 2020;86:54–63. doi.org/10.1016/j.neurobiolaging.2019.09.015
  13. Estruch R, Martínez-González MA, Corella D, et al. Effect of a high-fat Mediterranean diet on bodyweight and waist circumference: a prespecified secondary outcomes analysis of the PREDIMED randomised controlled trial. Lancet Diabetes & Endocrinology. 2019;7(5):e6–e17. doi.org/10.1016/S2213-8587(19)30074-9
  14. Radd-Vagenas S, Duffy SL, Naismith SL, Brew BJ, Flood VM, Fiatarone Singh MA. Effect of the Mediterranean diet on cognition and brain morphology and function: a systematic review of randomized controlled trials. American Journal of Clinical Nutrition. 2018;107(3):389–404. doi.org/10.1093/ajcn/nqx070
  15. Davis C, Hodgson J, Bryan J, Garg M, Woodman R, Murphy K. Older Australians can achieve high adherence to the Mediterranean diet during a 6 month randomised intervention; results from the MedLey study. Nutrients. 2017;9(6):534. doi.org/10.3390/nu9060534
  16. Murphy KJ, Dyer KA, Hyde B, et al. Long-term adherence to a Mediterranean diet 1-year after completion of the MedLey study. Nutrients. 2022;14(15):3098. doi.org/10.3390/nu14153098
  17. Jennings A, Cashman KD, Gillings R, et al. A Mediterranean-like dietary pattern with vitamin D3 (10 µg/d) supplements reduced the rate of bone loss in older Europeans with osteoporosis at baseline: results of a 1-y randomized controlled trial. American Journal of Clinical Nutrition. 2018;108(3):633–640. doi.org/10.1093/ajcn/nqy122
  18. Gomes Gonçalves N, Vidal Ferreira N, Khandpur N, et al. Association between consumption of ultraprocessed foods and cognitive decline. JAMA Neurology. 2023;80(2):142–150. doi.org/10.1001/jamaneurol.2022.4397
  19. Brinkworth GD, Noakes M, Buckley JD, Keogh JB, Clifton PM. Long-term effects of a very-low-carbohydrate weight loss diet compared with an isocaloric low-fat diet after 12 mo. American Journal of Clinical Nutrition. 2009;90(1):23–32. doi.org/10.3945/ajcn.2008.27326
  20. Halyburton AK, Brinkworth GD, Wilson CJ, et al. Low- and high-carbohydrate weight-loss diets have similar effects on mood but not cognitive performance. American Journal of Clinical Nutrition. 2007;86(3):580–587. doi.org/10.1093/ajcn/86.3.580
  21. Wing RR, Vazquez JA, Ryan CM. Cognitive effects of ketogenic weight-reducing diets. International Journal of Obesity and Related Metabolic Disorders. 1995;19(11):811–816. pubmed.ncbi.nlm.nih.gov/8589783
  22. Phillips MCL, Deprez LM, Mortimer GMN, et al. Randomized crossover trial of a modified ketogenic diet in Alzheimer's disease. Alzheimer's Research & Therapy. 2021;13(1):51. doi.org/10.1186/s13195-021-00783-x
  23. World Health Organization. Dementia. Fact sheet, 26 October 2026. who.int/news-room/fact-sheets/detail/dementia
  24. Kapogiannis D, Manolopoulos A, Mullins R, et al. Brain responses to intermittent fasting and the healthy living diet in older adults. Cell Metabolism. 2024;36(8):1668–1678.e5. doi.org/10.1016/j.cmet.2024.05.017
  25. Smith PJ, Blumenthal JA, Babyak MA, et al. Effects of the Dietary Approaches to Stop Hypertension diet, exercise, and caloric restriction on neurocognition in overweight adults with high blood pressure. Hypertension. 2010;55(6):1331–1338. doi.org/10.1161/HYPERTENSIONAHA.109.146795
  26. Blumenthal JA, Smith PJ, Mabe S, et al. Lifestyle and neurocognition in older adults with cognitive impairments: a randomized trial. Neurology. 2019;92(3):e212–e223. doi.org/10.1212/WNL.0000000000006784
  27. Chlebowski RT, Rapp S, Aragaki AK, et al. Low-fat dietary pattern and global cognitive function: exploratory analyses of the Women's Health Initiative (WHI) randomized Dietary Modification trial. EClinicalMedicine. 2020;18:100240. doi.org/10.1016/j.eclinm.2019.100240
  28. Chlebowski RT, Rapp S, Aragaki AK, et al. Low-fat dietary pattern and dementia mortality: a secondary analysis of the Women's Health Initiative dietary modification randomized clinical trial with long-term follow-up. Menopause. 2026. doi.org/10.1097/GME.0000000000002808
  29. Morris MC, Tangney CC, Wang Y, Sacks FM, Bennett DA, Aggarwal NT. MIND diet associated with reduced incidence of Alzheimer's disease. Alzheimer's & Dementia. 2015;11(9):1007–1014. doi.org/10.1016/j.jalz.2014.11.009
  30. Akbaraly TN, Singh-Manoux A, Dugravot A, Brunner EJ, Kivimäki M, Sabia S. Association of midlife diet with subsequent risk for dementia. JAMA. 2019;321(10):957–968. doi.org/10.1001/jama.2019.1432
  31. US National Institute on Aging. What do we know about diet and prevention of Alzheimer's disease? Content reviewed 20 November 2023. nia.nih.gov/health/alzheimers-and-dementia/what-do-we-know-about-diet-and-prevention-alzheimers-disease
  32. Monteiro CA, Cannon G, Levy RB, et al. Ultra-processed foods: what they are and how to identify them. Public Health Nutrition. 2019;22(5):936–941. doi.org/10.1017/S1368980018003762
  33. Shannon OM, Ranson JM, Gregory S, et al. Mediterranean diet adherence is associated with lower dementia risk, independent of genetic predisposition: findings from the UK Biobank prospective cohort study. BMC Medicine. 2023;21(1):81. doi.org/10.1186/s12916-023-02772-3

Updated 30 November 2026. Reviewed by Dr.-Ing. Simon Bechtel, founder of MemoryProof. This page reports what studies found and is not medical advice.