Short answer: If brain fog comes with gut symptoms and medical causes are ruled out, a structured elimination diet may help identify culprit foods. Celiac disease has the clearest evidence; evidence for other triggers is mixed or limited (graded Preliminary). Skip IgG food tests, which are unreliable. Remove common triggers for 2-4 weeks, then reintroduce them one at a time.
An elimination diet can help you find out whether a specific food is behind brain fog, poor concentration or mental fatigue. It works best when those symptoms come with digestive problems and your doctor has found no other cause. The evidence is preliminary: celiac disease is the clearest food link to cognitive symptoms, while evidence for other foods is mixed or thin.
The method is simple but takes patience. See a doctor first to rule out medical causes, including celiac disease. Then keep a food and symptom diary for a week and remove the common trigger foods for two to four weeks. Bring them back one at a time while tracking how you feel. Don’t rely on IgG blood tests to decide what to cut.
Elimination and reintroduction is the standard practical approach when standard allergy tests (skin prick tests, serum IgE) come back negative. The gold standard is a double-blind, placebo-controlled food challenge done in a clinic.
When an elimination diet makes sense
An elimination diet shouldn’t be the first thing you try. It makes the most sense when several of these overlap:
- Persistent symptoms without a clear cause: brain fog, poor concentration or mental fatigue for weeks or months. A standard medical workup (thyroid, iron, B12, full blood count, blood glucose) found nothing.
- Gut symptoms at the same time: bloating, abdominal pain, irregular bowel habits, reflux or nausea make a food link more plausible. Digestive and cognitive symptoms often travel together through the gut-brain axis.
- Family history: celiac disease affects about 1% of people, but about 7.5% of first-degree relatives of people with it, in a meta-analysis of more than 10,000 relatives (Singh 2015). A family history of celiac disease, Hashimoto’s thyroiditis, type 1 diabetes or other autoimmune conditions raises the odds that gluten or other food proteins are involved.
- General diet changes haven’t helped: you already eat mostly whole foods, less ultra-processed food, enough omega-3 and in a way that keeps blood sugar steady, and symptoms persist.
For broader changes to try first, see our brain fog diet guide.
When to see a doctor first
An elimination diet is a self-guided tool, but some situations need professional help.
- Before starting, if you have a history of disordered eating. Elimination diets restrict food, and in people with anorexia, orthorexia or other eating disorders this can trigger relapse. Work with a clinician who understands both food sensitivities and eating disorder risk.
- If you suspect celiac disease, get tested before removing gluten. The blood test (tTG-IgA antibodies) needs you to be eating gluten. Once you go gluten-free, the antibodies may disappear, making diagnosis difficult.
- If symptoms are severe or getting worse, including large weight loss, bloody stool, progressive neurological symptoms or severe fatigue. These may point to inflammatory bowel disease, an autoimmune condition or another problem that needs medical investigation.
- If elimination doesn’t help after a full four-week trial. Persistent brain fog then warrants further workup, possibly including hormone tests, a sleep study or neuropsychological testing.
- If you are pregnant, breastfeeding or managing a chronic medical condition, do an elimination diet only under the supervision of a dietitian or physician, to keep it nutritionally adequate.
- For children, only with a doctor or dietitian, to avoid nutritional deficiency and effects on growth.
How to do an elimination diet, step by step
This protocol is for adults with persistent brain fog or cognitive symptoms and a suspected food link. It is not a substitute for medical evaluation: rule out thyroid disease, sleep disorders, anemia, celiac disease and other medical conditions first.
Phase 1: Preparation (1 week)
For seven days, eat normally and keep a detailed food and symptom diary. Record everything you eat and drink, with times, and any symptoms: brain fog, fatigue, headache, bloating, joint pain, skin problems. Rate your mental clarity on a 1-10 scale three times a day (morning, midday, evening).
This gives you a baseline to compare against and may reveal patterns you hadn’t noticed. Use the week to plan meals, shop for alternatives and clear out the foods you’ll be removing.
Phase 2: Elimination (2-4 weeks)
Remove all of these at the same time:
- Gluten grains: wheat, barley, rye, spelt and products made from them.
- Dairy: milk, cheese, yogurt, butter, cream, whey protein.
- Eggs.
- Soy: including soy sauce, tofu, edamame and soy lecithin (check labels; it’s in many processed foods).
- Corn.
- Artificial additives: synthetic colors, flavors, preservatives, MSG and sweeteners.
Some protocols also remove nuts, shellfish and nightshade vegetables, but this adds restriction without strong evidence of benefit for most people. Keep your diary going. There is little research on how long elimination needs to last; many protocols use two to four weeks.
What to eat: rice, potatoes, sweet potatoes, all vegetables except corn, all fruits, legumes except soy, nuts and seeds, olive oil, unprocessed meat and fish. Season with herbs, spices, salt and pepper. Many Thai, Indian and Japanese dishes fit with little change. This is not a low-calorie diet, so eat enough to keep your energy up. Removing dairy cuts a major source of calcium (and, in some countries, vitamin D), so include other sources such as fortified plant milks. A dietitian can help you keep the diet nutritionally complete.
If you see no improvement after four full weeks of strict elimination, a food sensitivity is unlikely to be the main driver of your symptoms, and further restriction isn’t warranted.
Phase 3: Reintroduction (4-8 weeks)
This is the most important phase and the one most people rush. Bring back one food group at a time:
- Day 1: one serving of the test food in the morning and one in the evening.
- Day 2: the test food with each meal (three servings).
- Day 3: eat the test food freely.
- Days 4-5: stop the test food and watch. Some reactions are delayed by 24-48 hours.
If no symptoms return in the five days, the food is likely fine for you; move on to the next. If symptoms return, remove the food and wait until they fully clear (usually 3-5 days) before testing the next one.
A suggested order, from most commonly tolerated to most commonly problematic:
- Rice (if it wasn’t already in your diet)
- Eggs
- Soy
- Corn
- Dairy (butter, then hard cheese, then yogurt, then milk)
- Gluten grains (start with a pure wheat product such as bread)
A reaction during reintroduction that was absent during elimination is the best evidence you can get outside a blinded clinical food challenge. Without blinding, though, expectation can also produce symptoms.
If you react to many foods, stop and get professional help rather than restricting further, because a very narrow diet risks nutritional deficiency. Reactions to many unrelated foods can have other causes, including an underlying gut condition or expectation effects. A gastroenterologist or registered dietitian can help, for example with blinded challenges.
Phase 4: Long term
Build a long-term diet that leaves out confirmed triggers and includes everything else. Keep the rest of your diet varied; fermented foods, fiber, omega-3s and polyphenols are part of a healthy diet, though there is little evidence that they reduce food sensitivities. Every six to twelve months, you may want to re-test excluded foods, because some sensitivities change over time. Celiac disease is the exception: it needs lifelong strict gluten avoidance.
Why IgG food sensitivity tests don’t work
Direct-to-consumer IgG panels claim to find food sensitivities by measuring IgG antibodies to 100 or more foods. They are heavily marketed and can cost several hundred dollars. Allergy and immunology organizations agree they are unreliable for diagnosing food sensitivities.
The problem is biological. IgG antibodies to food are a normal part of immune function and show that you’ve eaten a food, not that you react to it. Anyone who eats eggs regularly will have IgG to egg proteins. A 2008 European Academy of Allergy and Clinical Immunology (EAACI) task force concluded that food-specific IgG4 reflects normal exposure and tolerance, not allergy or intolerance (Stapel 2008). It said the test should not be done for food-related complaints.
A Canadian Society of Allergy and Clinical Immunology position statement (Carr 2012) noted that positive IgG results are expected in healthy adults and children. Using the test increases false diagnoses and unnecessary diet restrictions. The statement supports similar positions from the American Academy of Allergy, Asthma and Immunology and EAACI.
Food sensitivities can be real; these tests just can’t identify them. The most valid method is the least commercial one: structured elimination and reintroduction with careful tracking.
What the research says about specific triggers
Gluten and celiac disease
Celiac disease is an autoimmune condition triggered by gluten, a protein in wheat, barley and rye, in genetically predisposed people. It is known for gut damage, but neurological symptoms are far more common than many clinicians recognize.
In a review, Hadjivassiliou and colleagues (2010) argued that gluten sensitivity is a body-wide autoimmune disease that includes neurological symptoms. In some people, they argued, it shows up only as neurological problems, without gut damage.
A pilot study (Lichtwark 2014) tested 11 newly diagnosed celiac patients at the start of a gluten-free diet, at 12 weeks and at 52 weeks. Four tests of verbal fluency, attention and motor function improved over the 12 months, alongside healing of the gut lining. There was no control group. The mechanism isn’t fully understood; proposed explanations include inflammation from the autoimmune response and antibody effects on nerve tissue.
Non-celiac gluten sensitivity
Non-celiac gluten sensitivity (NCGS) is more controversial. People with it test negative for celiac disease but report repeatable symptoms when they eat gluten. It is hard to separate gluten from other wheat components, especially fructans (a type of FODMAP, fermentable carbohydrates that can cause gut symptoms).
The trials disagree. In a double-blind crossover trial of 37 people with self-reported NCGS and irritable bowel syndrome on a low-FODMAP diet, gluten-specific effects appeared in only 8% (Biesiekierski 2013). In another double-blind crossover trial, 59 people with suspected NCGS took gluten capsules (which contain no FODMAPs) or placebo for a week each (Di Sabatino 2015). Gluten modestly increased overall symptoms, including “foggy mind”, compared with placebo.
In an Italian survey of 486 people with suspected NCGS, “foggy mind” was among the typical symptoms alongside tiredness and headache (Volta 2014). The mechanism may involve the body’s fast, general immune response rather than the targeted response in celiac disease. Uhde and colleagues (2016) found that people reporting wheat sensitivity without celiac disease had raised markers of gut cell damage and body-wide immune activation. These moved toward normal in a subgroup who avoided wheat.
Dairy, eggs and additives
- Dairy: cow’s milk proteins (casein and whey) can trigger reactions. One study found raised IgG antibodies to casein in people with recent-onset psychosis and schizophrenia; in one subgroup, levels correlated with negative symptoms (Severance 2010). This doesn’t show that casein causes these conditions. Lactose intolerance is common, but there is little controlled research on dairy and cognitive symptoms.
- Eggs: one of the most common food allergens in children, but non-allergic egg sensitivity in adults is little studied. There are no controlled data on eggs and cognitive symptoms in adults.
- Colors and preservatives: in the Southampton study (McCann 2007), a mix of artificial colors and sodium benzoate increased hyperactive behavior. This was in a general population sample of children, not just those with ADHD.
- Aspartame: regulators maintain it is safe at approved doses, but some people report headaches or mental cloudiness that clear when they stop. In a small crossover study (Lindseth 2014), healthy adults ate a high-aspartame diet for 8 days. They had more irritable mood and depression and did worse on spatial orientation tests than on a low-aspartame diet. Working memory was not affected.
The few-foods diet for ADHD
The best-known elimination trial for behavior comes from the Netherlands. In a randomized trial (Pelsser 2011), 100 children aged 4–8 with ADHD either ate a restricted “few foods” diet for five weeks under strict supervision or got healthy-diet advice. Children on the diet improved much more on an ADHD rating scale scored by a pediatrician who didn’t know their group (a difference of 23.7 points). Parents were not blinded in this phase.
When foods were reintroduced in a double-blind challenge, symptoms returned in 19 of 30 responders (63%). This happened whether or not the children had high IgG levels to those foods. See ADHD and sugar for more on diet and ADHD.
But a meta-analysis (Sonuga-Barke 2013) found that when only probably blinded assessments were used, the effect of restricted elimination diets on ADHD symptoms was no longer significant. A 2017 review of meta-analyses (Pelsser 2017) reported a large average effect on parent ratings, but a smaller effect on other ratings that may have been due to chance. The lead author has a commercial interest in the diet protocol.
Diet is not a substitute for the ADHD treatment a doctor prescribes. Restrictive diets in children should only be tried with a doctor or dietitian. In the Pelsser trial the diet was strictly supervised and no harms were reported. But children have higher nutritional needs for their size, and restrictive diets can affect growth if not carefully managed.
The “leaky gut” idea
The gut lining lets nutrients through while keeping larger molecules, such as partly digested food proteins and bacterial toxins, out of the blood. In a review, Fasano (2012) described the protein zonulin as a regulator of the seals between gut cells. He proposed that its overactivity contributes to autoimmune diseases in genetically susceptible people. Other proposed causes of a leakier gut include excess alcohol, NSAID painkillers, chronic stress and disrupted gut bacteria.
One hypothesis is that food proteins crossing a leaky gut trigger immune activation, producing inflammatory signals that could affect the brain. This would link a specific food with brain fog hours later, but it hasn’t been shown directly in humans. Whether improving the gut barrier reduces food-related symptoms hasn’t been well tested.
Frequently asked questions
How is a food sensitivity different from a food allergy?
A food allergy involves IgE antibodies, the same mechanism behind anaphylaxis. It is usually fast (minutes to hours), can be life-threatening, and shows up reliably on skin prick or blood IgE tests. A food sensitivity involves other immune pathways or other causes, such as the enzyme shortage in lactose intolerance. Reactions are usually delayed and milder, and standard allergy tests can’t detect them.
Sources
- Biesiekierski, J. R., Peters, S. L., Newnham, E. D., Rosella, O., Muir, J. G., & Gibson, P. R. (2013). No effects of gluten in patients with self-reported non-celiac gluten sensitivity after dietary reduction of fermentable, poorly absorbed, short-chain carbohydrates. Gastroenterology, 145(2), 320-328. doi:10.1053/j.gastro.2013.04.051
- Carr, S., Chan, E., Lavine, E., & Moote, W. (2012). CSACI position statement on the testing of food-specific IgG. Allergy, Asthma & Clinical Immunology, 8(1), 12. doi:10.1186/1710-1492-8-12
- Di Sabatino, A., Volta, U., Salvatore, C., et al. (2015). Small amounts of gluten in subjects with suspected nonceliac gluten sensitivity: a randomized, double-blind, placebo-controlled, cross-over trial. Clinical Gastroenterology and Hepatology, 13(9), 1604-1612. doi:10.1016/j.cgh.2015.01.029
- Fasano, A. (2012). Zonulin, regulation of tight junctions, and autoimmune diseases. Annals of the New York Academy of Sciences, 1258(1), 25-33. doi:10.1111/j.1749-6632.2012.06538.x
- Hadjivassiliou, M., Sanders, D. S., Grunewald, R. A., et al. (2010). Gluten sensitivity: from gut to brain. The Lancet Neurology, 9(3), 318-330. doi:10.1016/S1474-4422(09)70290-X
- Lichtwark, I. T., Newnham, E. D., Robinson, S. R., et al. (2014). Cognitive impairment in coeliac disease improves on a gluten-free diet and correlates with histological and serological indices of disease severity. Alimentary Pharmacology & Therapeutics, 40(2), 160-170. doi:10.1111/apt.12809
- Lindseth, G. N., Coolahan, S. E., Petros, T. V., & Lindseth, P. D. (2014). Neurobehavioral effects of aspartame consumption. Research in Nursing & Health, 37(3), 185-193. doi:10.1002/nur.21595
- McCann, D., Barrett, A., Cooper, A., et al. (2007). Food additives and hyperactive behaviour in 3-year-old and 8/9-year-old children in the community: a randomised, double-blinded, placebo-controlled trial. The Lancet, 370(9598), 1560-1567. doi:10.1016/S0140-6736(07)61306-3
- Pelsser, L. M., Frankena, K., Toorman, J., et al. (2011). Effects of a restricted elimination diet on the behaviour of children with attention-deficit hyperactivity disorder (INCA study): a randomised controlled trial. The Lancet, 377(9764), 494-503. doi:10.1016/S0140-6736(10)62227-1
- Pelsser, L. M., Frankena, K., Toorman, J., & Rodrigues Pereira, R. (2017). Diet and ADHD, reviewing the evidence: a systematic review of meta-analyses of double-blind placebo-controlled trials evaluating the efficacy of diet interventions on the behavior of children with ADHD. PLoS ONE, 12(1), e0169277. doi:10.1371/journal.pone.0169277
- Severance, E. G., Dickerson, F. B., Halling, M., et al. (2010). Subunit and whole molecule specificity of the anti-bovine casein immune response in recent onset psychosis and schizophrenia. Schizophrenia Research, 118(1-3), 240-247. doi:10.1016/j.schres.2009.12.030
- Singh, P., Arora, S., Lal, S., Strand, T. A., & Makharia, G. K. (2015). Risk of celiac disease in the first- and second-degree relatives of patients with celiac disease: a systematic review and meta-analysis. American Journal of Gastroenterology, 110(11), 1539-1548. doi:10.1038/ajg.2015.296
- Sonuga-Barke, E. J., Brandeis, D., Cortese, S., et al. (2013). Nonpharmacological interventions for ADHD: systematic review and meta-analyses of randomized controlled trials of dietary and psychological treatments. American Journal of Psychiatry, 170(3), 275-289. doi:10.1176/appi.ajp.2012.12070991
- Stapel, S. O., Asero, R., Ballmer-Weber, B. K., et al. (2008). Testing for IgG4 against foods is not recommended as a diagnostic tool: EAACI Task Force Report. Allergy, 63(7), 793-796. doi:10.1111/j.1398-9995.2008.01705.x
- Uhde, M., Ajamian, M., Caio, G., et al. (2016). Intestinal cell damage and systemic immune activation in individuals reporting sensitivity to wheat in the absence of coeliac disease. Gut, 65(12), 1930-1937. doi:10.1136/gutjnl-2016-311964
- Volta, U., Bardella, M. T., Calabro, A., Troncone, R., Corazza, G. R., & Study Group for Non-Celiac Gluten Sensitivity (2014). An Italian prospective multicenter survey on patients suspected of having non-celiac gluten sensitivity. BMC Medicine, 12, 85. doi:10.1186/1741-7015-12-85