Short answer: No study has tested a diet for brain fog itself, so the evidence is preliminary. In studies of cognition, mostly in older adults, fatty fish, berries and leafy greens are linked to better outcomes, and ultra-processed food to faster decline. Eat mostly whole foods and cut sugary drinks. If the fog persists, see a doctor.

Diet may affect brain fog, but the evidence is indirect. Researchers have studied diet and cognition, mostly cognitive decline in older adults, not the day-to-day haze of poor focus and forgetfulness that people call brain fog. Those studies point to the same pattern: more fish, berries, leafy greens and whole foods, less ultra-processed food, sugar and alcohol.

Brain fog is not a medical diagnosis, and it can be a sign of a medical problem. Thyroid disease, anemia, sleep disorders, depression and medication side effects can all cause it. If it persists, see a doctor before assuming diet is the answer.

This page covers brain fog in general. If yours started after COVID, see our post-COVID brain fog diet. If it came with perimenopause, see the perimenopause brain fog diet.

What to eat for brain fog

No single food clears brain fog. The foods below are linked to better cognitive outcomes, mostly in observational studies of older adults.

FoodPractical target
Fatty fish (salmon, mackerel, sardines)Two to three servings a week
BerriesA handful a day; frozen is fine
Leafy greensOne generous serving a day
EggsSeveral times a week, unless your doctor has told you to limit cholesterol
Fermented foods (yogurt, kefir, sauerkraut, kimchi)One to two servings a day, varied

Fatty fish

Salmon, mackerel, sardines, anchovies and herring are the best food sources of the long-chain omega-3 fats EPA and DHA. DHA is part of the membranes of brain cells, and EPA has anti-inflammatory effects.

In the MIDAS trial (Yurko-Mauro 2010), 485 healthy older adults with age-related memory decline took 900 mg of DHA a day for 24 weeks. It improved a learning and memory test, but not working memory or executive function. In a meta-analysis of 21 cohort studies (Zhang 2016), each extra weekly serving of fish was linked to a 5% lower risk of dementia. That is observational evidence.

If you are thinking about a fish oil or algal oil supplement, ask a doctor or pharmacist first. Fish oil can increase bleeding risk with anticoagulant or antiplatelet drugs. In trials, doses above about 1 g a day have been linked to a higher risk of atrial fibrillation. Our fish oil guide covers this in more detail.

Berries

Blueberries, strawberries and blackberries are rich in anthocyanins and other polyphenols, plant compounds with antioxidant and anti-inflammatory effects.

In the Nurses’ Health Study (Devore 2012), women aged 70 and over who ate the most blueberries and strawberries had slower cognitive decline. The difference was equal to up to 2.5 years of delayed cognitive aging. That study was observational. In a 6-month trial of 122 adults aged 65–80 (Whyte 2018), a blueberry extract improved delayed word recognition at 3 months. Whole blueberry powder did not.

Leafy greens

Spinach, kale, collard greens and Swiss chard provide folate, lutein, vitamin K and nitrates. In a study that followed 960 older adults (Morris 2018), those in the top fifth of leafy green intake (about 1.3 servings a day) had slower cognitive decline. The gap was equal to being 11 years younger. This is observational evidence. See our page on leafy greens for ways to eat more.

Nitrates may also affect blood flow in the brain. In a study of older adults (Presley 2011), a high-nitrate diet did not change overall brain blood flow. It did increase blood flow in white matter of the frontal lobe, a region involved in planning and attention.

Eggs and other choline foods

Choline is a nutrient the body uses to make acetylcholine, a brain chemical involved in memory and attention. Most adults do not meet the adequate intake for choline (Zeisel & da Costa 2009).

One large egg provides about 150 mg, which is about 27% of the adequate intake for men and 35% for women. Liver, soybeans and cruciferous vegetables also supply it. Eggs several times a week fit a healthy diet for most people. If you have been told to limit dietary cholesterol for a medical reason, follow your doctor’s advice.

Fermented foods

Yogurt, kefir, sauerkraut, kimchi, miso and kombucha supply live microbes. In a 17-week trial of 36 healthy adults (Wastyk 2021), a diet high in fermented foods increased the variety of gut bacteria and reduced markers of inflammation. No study has shown that fermented foods improve mental clarity.

What to avoid for brain fog

Ultra-processed foods

Ultra-processed foods are industrial products made mostly from substances extracted from foods, with little whole food left. They include most packaged snacks, soft drinks, instant noodles, reconstituted meats and mass-produced baked goods.

In a Brazilian study of over 10,000 adults (Gonçalves 2023), people who ate more ultra-processed food had faster cognitive decline, especially in executive function. In UK Biobank data from 72,083 people (Li 2022), each 10% increase in the share of ultra-processed food in the diet was linked to a 25% higher rate of dementia. Neither study can show that the food caused the difference.

You do not need to cut ultra-processed food to zero. Start with the items you eat most often and replace those. More on this in ultra-processed food and the brain.

Added sugar

High sugar intake has been linked to poorer cognition. In a cross-sectional study (Pase 2017), people who drank more sugary drinks had lower total brain volume, poorer episodic memory and more markers of early Alzheimer’s disease. Proposed reasons include insulin resistance in the brain and damage to proteins from high blood sugar.

Even within the normal range, blood sugar may matter. In 210 healthy adults aged 68–73 without diabetes (Mortby 2013), higher fasting glucose was linked to smaller frontal brain regions, which were in turn linked to poorer cognitive performance. See blood sugar and brain function for more.

Keep added sugar below 25 grams a day. Sugary drinks, fruit juice and sweetened coffee drinks are the easiest place to start.

Seed oils: less important than the food they come in

Some commentators blame seed oils (soybean, canola, sunflower, safflower, corn) for many modern health problems. The evidence is mixed. Western diets now contain far more omega-6 fat relative to omega-3, and too much omega-6 can promote inflammatory signaling (Simopoulos 2002). But the American Heart Association holds that replacing saturated fat with polyunsaturated fat, including from seed oils, lowers cardiovascular risk (Sacks 2017).

A reasonable reading is that seed oils matter mostly as the vehicle for fried and ultra-processed food. A little canola oil on a salad is not the same as deep-fried snacks several times a day. Cut down on fried and ultra-processed food, and use extra virgin olive oil as your main oil where you can. It has an anti-inflammatory profile (Valls-Pedret 2015).

Alcohol

Daviet 2022 looked at brain scans of over 36,000 UK Biobank participants. Lower gray and white matter volume was already visible in people averaging one to two UK alcohol units a day. The link grew stronger with higher intake. Alcohol also disrupts sleep and depletes B vitamins.

If you drink, drink less. If you have brain fog, stopping alcohol for 30 days is one of the simplest experiments you can run.

Why diet might affect brain fog

Several overlapping mechanisms may be involved, though none has been tested as a cause of brain fog.

  • Inflammation: Diets high in refined carbohydrates, trans fats and ultra-processed food are linked to higher blood markers of inflammation, such as C-reactive protein (CRP). A review of inflammation in depression (Berk 2013) listed poor diet among its sources, and inflammatory signals can affect the brain.
  • Blood sugar: As above, higher fasting glucose has been linked to poorer cognition even without diabetes.
  • Gut bacteria: The gut and brain communicate through the vagus nerve, short-chain fatty acids and immune signals. A review (Cryan & Dinan 2012) of evidence, mostly from animal studies, concluded that gut bacteria influence brain function and behavior.
  • Missing nutrients: Low B12, folate, iron, vitamin D, magnesium and omega-3 fats can impair cognition. Some deficiencies are common, such as low B12 in older adults and vegans or low iron in menstruating women. A blood test can check for them.

A simple meal framework

This is a template, not a strict plan.

MealOptions
BreakfastTwo eggs scrambled with spinach and a side of sauerkraut; Greek yogurt with blueberries, ground flaxseed and walnuts; oatmeal (not instant) with berries and olive oil or nut butter
LunchA large salad with canned sardines or salmon, avocado, olive oil and lemon; lentil and vegetable soup with fermented vegetables; a quinoa bowl with roasted vegetables, greens and tahini
DinnerBaked salmon with roasted broccoli and sweet potato; stir-fried vegetables with tofu or chicken, ginger, garlic and a little brown rice; mackerel with a large salad and miso dressing
SnacksWalnuts or almonds; apple slices with almond butter; carrot sticks with hummus; a small square of dark chocolate (70%+ cacao)

A six-week plan

If changing everything at once feels like too much, add one step a week.

  1. Week 1: Track your ultra-processed food for seven days. Pick the three items you eat most often and find whole-food swaps.
  2. Week 2: Eat two servings of fatty fish. Keep canned sardines or mackerel in the cupboard.
  3. Week 3: Eat leafy greens every day. A handful of spinach in eggs, soup or a smoothie is the easiest route.
  4. Week 4: Add one fermented food a day, starting with one you already like.
  5. Week 5: Halve your added sugar, starting with sweetened drinks.
  6. Week 6: Take stock. Some people notice a difference; others do not. If brain fog persists, see a doctor to look for other causes.

Frequently Asked Questions

How quickly can diet changes improve brain fog?

No studies have measured how quickly diet changes affect brain fog. Correcting a diagnosed deficiency such as low B12 or iron can take weeks to months to have an effect.

Can supplements replace diet changes?

Mostly not. Supplements help correct specific deficiencies, such as B12 in vegans, but they don’t replace whole foods. Supplements can interact with medicines, so ask a doctor or pharmacist first, especially if you are pregnant, breastfeeding, take medication or have a health condition.

Do I need a named diet like keto or Mediterranean?

No. The Mediterranean diet is the most studied pattern for cognition in older adults. A meta-analysis (Loughrey 2017) found small links with better global cognition in cohort studies and some benefit in two trials, including Valls-Pedret 2015. Keto evidence for cognition in the general population is limited and inconsistent. Keto is dangerous with insulin, sulfonylureas or SGLT2 inhibitors without medical supervision.

Sources

  • Berk, M., Williams, L. J., Jacka, F. N., et al. (2013). So depression is an inflammatory disease, but where does the inflammation come from? BMC Medicine, 11, 200. doi:10.1186/1741-7015-11-200
  • Cryan, J. F., & Dinan, T. G. (2012). Mind-altering microorganisms: the impact of the gut microbiota on brain and behaviour. Nature Reviews Neuroscience, 13(10), 701-712. doi:10.1038/nrn3346
  • Daviet, R., Aydogan, G., Jagannathan, K., et al. (2022). Associations between alcohol consumption and gray and white matter volumes in the UK Biobank. Nature Communications, 13, 1175. doi:10.1038/s41467-022-28735-5
  • Devore, E. E., Kang, J. H., Breteler, M. M. B., & Grodstein, F. (2012). Dietary intakes of berries and flavonoids in relation to cognitive decline. Annals of Neurology, 72(1), 135-143. doi:10.1002/ana.23594
  • Gomes Gonçalves, N., Vidal Ferreira, N., Khandpur, N., et al. (2023). Association between consumption of ultraprocessed foods and cognitive decline. JAMA Neurology, 80(2), 142-150. doi:10.1001/jamaneurol.2022.4397
  • Li, H., Li, S., Yang, H., et al. (2022). Association of ultraprocessed food consumption with risk of dementia: a prospective cohort study. Neurology, 99(10), e1056-e1066. doi:10.1212/WNL.0000000000200871
  • Loughrey, D. G., Lavecchia, S., Brennan, S., Lawlor, B. A., & Kelly, M. E. (2017). The impact of the Mediterranean diet on the cognitive functioning of healthy older adults: a systematic review and meta-analysis. Advances in Nutrition, 8(4), 571-586. doi:10.3945/an.117.015495
  • Morris, M. C., Wang, Y., Barnes, L. L., Bennett, D. A., Dawson-Hughes, B., & Booth, S. L. (2018). Nutrients and bioactives in green leafy vegetables and cognitive decline: prospective study. Neurology, 90(3), e214-e222. doi:10.1212/WNL.0000000000004815
  • Mortby, M. E., Janke, A. L., Anstey, K. J., Sachdev, P. S., & Cherbuin, N. (2013). High “normal” blood glucose is associated with decreased brain volume and cognitive performance in the 60s: the PATH through life study. PLoS ONE, 8(9), e73697. doi:10.1371/journal.pone.0073697
  • Pase, M. P., Himali, J. J., Jacques, P. F., et al. (2017). Sugary beverage intake and preclinical Alzheimer’s disease in the community. Alzheimer’s & Dementia, 13(9), 955-964. doi:10.1016/j.jalz.2017.01.024
  • Presley, T. D., Morgan, A. R., Bechtold, E., et al. (2011). Acute effect of a high nitrate diet on brain perfusion in older adults. Nitric Oxide, 24(1), 34-42. doi:10.1016/j.niox.2010.10.002
  • Sacks, F. M., Lichtenstein, A. H., Wu, J. H. Y., et al. (2017). Dietary fats and cardiovascular disease: a presidential advisory from the American Heart Association. Circulation, 136(3), e1-e23. doi:10.1161/CIR.0000000000000510
  • Simopoulos, A. P. (2002). The importance of the ratio of omega-6/omega-3 essential fatty acids. Biomedicine & Pharmacotherapy, 56(8), 365-379. doi:10.1016/s0753-3322(02)00253-6
  • Valls-Pedret, C., Sala-Vila, A., Serra-Mir, M., et al. (2015). Mediterranean diet and age-related cognitive decline: a randomized clinical trial. JAMA Internal Medicine, 175(7), 1094-1103. doi:10.1001/jamainternmed.2015.1668
  • Wastyk, H. C., Fragiadakis, G. K., Perelman, D., et al. (2021). Gut-microbiota-targeted diets modulate human immune status. Cell, 184(16), 4137-4153. doi:10.1016/j.cell.2021.06.019
  • Whyte, A. R., Cheng, N., Fromentin, E., & Williams, C. M. (2018). A randomized, double-blinded, placebo-controlled study to compare the safety and efficacy of low dose enhanced wild blueberry powder and wild blueberry extract (ThinkBlue) in maintenance of episodic and working memory in older adults. Nutrients, 10(6), 660. doi:10.3390/nu10060660
  • Yurko-Mauro, K., McCarthy, D., Rom, D., et al. (2010). Beneficial effects of docosahexaenoic acid on cognition in age-related cognitive decline. Alzheimer’s & Dementia, 6(6), 456-464. doi:10.1016/j.jalz.2010.01.013
  • Zeisel, S. H., & da Costa, K.-A. (2009). Choline: an essential nutrient for public health. Nutrition Reviews, 67(11), 615-623. doi:10.1111/j.1753-4887.2009.00246.x
  • Zhang, Y., Chen, J., Qiu, J., Li, Y., Wang, J., & Jiao, J. (2016). Intakes of fish and polyunsaturated fatty acids and mild-to-severe cognitive impairment risks: a dose-response meta-analysis of 21 cohort studies. American Journal of Clinical Nutrition, 103(2), 330-340. doi:10.3945/ajcn.115.124081