Brain fog isn’t a medical diagnosis on its own, but it describes something very real: difficulty concentrating, slow thinking, forgetfulness, and a feeling that your mind just isn’t sharp. It can have dozens of causes, ranging from poor sleep and chronic stress to thyroid problems, nutritional deficiencies, and lingering effects of viral infections. The good news is that most causes are identifiable and treatable once you know where to look.
What Brain Fog Actually Is
When people say “brain fog,” they’re usually describing some combination of trouble focusing, word-finding difficulty, mental fatigue, and feeling like thoughts are moving through mud. These symptoms map onto specific cognitive functions: working memory, processing speed, sustained attention, and executive function. The foggy feeling happens when something disrupts the normal signaling between brain cells, whether that’s inflammation, low oxygen, hormonal shifts, or simply not enough sleep.
At the biological level, many causes of brain fog share a common thread: inflammation in the brain. Immune signaling molecules like IL-1, IL-6, and TNF-alpha can interfere with the way neurons strengthen connections during learning and memory. At normal levels, these molecules actually help with memory formation. But when they’re chronically elevated, whether from infection, autoimmune disease, gut problems, or prolonged stress, they impair the brain’s ability to process and retain information.
Chronic Stress and High Cortisol
This is one of the most common and most overlooked causes. Prolonged psychological stress raises cortisol, your body’s primary stress hormone, which directly affects two brain regions critical for clear thinking: the hippocampus (memory and learning) and the prefrontal cortex (focus, planning, and decision-making). Chronically elevated cortisol reduces synaptic density in both areas, essentially thinning out the connections your brain needs to think clearly.
There’s an evolutionary logic to this. Under sustained stress, the brain shifts from slow, deliberate thinking to fast, automatic processing. That’s useful if you’re in physical danger, but in modern life it means you lose access to the careful, focused cognition you need for work, conversations, and complex tasks. The result feels exactly like brain fog: you can’t hold information in mind, you lose your train of thought, and everything takes more effort. Reducing chronic stress, through better boundaries, sleep, exercise, or therapy, can reverse these changes because the brain’s synaptic connections are plastic and can rebuild.
Sleep Problems and Low Oxygen
Poor sleep is the single fastest way to create brain fog, and it doesn’t take a sleep disorder to do it. Consistently getting fewer than seven hours, waking frequently, or sleeping at irregular times all degrade memory consolidation and attention the following day.
Obstructive sleep apnea deserves special mention because it combines two problems at once: fragmented sleep and repeated drops in blood oxygen. Both independently cause cognitive deficits. The repeated oxygen dips can even cause measurable loss of gray matter in the hippocampus and other areas tied to memory and learning. Many people with sleep apnea don’t know they have it. If your brain fog is worst in the morning, you snore, or a partner has noticed you stop breathing during sleep, this is worth investigating. A sleep study can confirm or rule it out.
Post-Viral Brain Fog
Viral infections, most notably COVID-19, can trigger persistent cognitive problems that last months or longer. In a large cross-sectional study published in The Lancet, over 53% of people with long COVID had response speeds more than two standard deviations below the control group average. That’s not subtle. Affected individuals show deficits in sustained attention, cognitive flexibility, and memory.
The mechanism appears to involve persistent neuroinflammation. Elevated levels of inflammatory molecules have been detected in the spinal fluid of patients with neurological symptoms after viral infections, including influenza. Activated immune cells in the brain (microglia) release compounds that disrupt normal synaptic function. This kind of brain fog often improves gradually over months, but the timeline varies widely from person to person.
Thyroid Problems
Your thyroid hormones regulate the metabolic rate of every cell in your body, including brain cells. When thyroid function drops, even mildly, thinking slows down. In a study of over 5,000 people being treated for hypothyroidism, most reported experiencing brain fog very frequently or all the time. About half said the cognitive symptoms had started before they were even diagnosed.
What makes thyroid-related brain fog frustrating is that it often persists even after thyroid hormone levels are brought back to normal with medication. The most commonly reported symptoms were fatigue, forgetfulness, and difficulty focusing. A small number of patients in the study reported improvement when a second type of thyroid hormone was added to their treatment, with those over 50 seeing slightly more benefit. If you suspect your thyroid, a simple TSH blood test is the starting point.
Nutritional Deficiencies
Several nutrient shortfalls can directly cause foggy thinking. Vitamin B12 is the most well-established. The standard minimum serum level is 200 pg/mL, but metabolic signs of deficiency have been observed in patients with levels between 200 and 300 pg/mL at the same frequency as those below 200. In other words, you can be technically “normal” on a lab report and still be functionally deficient. B12 is essential for maintaining the myelin sheath around nerve fibers, and deficiency leads to slowed neural signaling, poor memory, and in severe cases, cognitive decline that mimics dementia.
Iron deficiency (even without full-blown anemia) and low vitamin D are also linked to impaired cognition. Iron carries oxygen to the brain, and vitamin D plays a role in regulating inflammation. If you eat a restricted diet, are vegetarian or vegan, have heavy periods, or get limited sun exposure, these deficiencies are worth checking.
Gut Health and the Brain
The connection between your gut and your brain is more direct than most people realize. Your gut bacteria produce short-chain fatty acids that help maintain both the intestinal lining and the blood-brain barrier, the membrane that protects your brain from circulating toxins. When gut bacteria are out of balance, harmful metabolites like ammonia, hydrogen sulfate, and a compound called TMAO can damage that barrier and allow inflammatory molecules to reach the brain.
Researchers have found that specific gut-derived toxins, including p-cresol sulfate and indoxyl sulfate, are chronically neurotoxic to cultured neurons. These metabolites have been detected at elevated levels in people with neurological conditions. This helps explain why some people notice their brain fog improves with dietary changes, particularly when they increase fiber intake (which feeds beneficial bacteria) or reduce highly processed foods.
Depression and Anxiety
Cognitive symptoms are a core feature of depression, not just a side effect. Difficulty concentrating, indecisiveness, and mental sluggishness are part of the diagnostic criteria. Anxiety has a similar effect: when your brain is constantly scanning for threats and running worst-case scenarios, there’s less bandwidth available for focused thinking and memory.
Both conditions involve elevated inflammatory markers in the brain and disrupted signaling in the prefrontal cortex. If your brain fog comes alongside persistent low mood, loss of interest in things you usually enjoy, excessive worry, or disrupted sleep, these conditions may be driving it. Cognitive behavioral therapy has shown meaningful results, with one Stanford study finding that a third of patients with treatment-resistant depression saw their symptom severity drop by half or more.
Getting Tested
If brain fog is persistent, your doctor will typically start with a focused set of blood tests: a complete blood count, ferritin (iron stores), TSH (thyroid function), and vitamin B12. Screening questionnaires for depression and anxiety are also standard. If you’re at high risk for sleep apnea based on symptoms like snoring, daytime sleepiness, or observed breathing pauses, a sleep study may be ordered.
These tests won’t catch every possible cause, but they rule out the most common and treatable ones. If results come back normal, the conversation shifts toward lifestyle factors: sleep quality, stress levels, diet, exercise, and screen habits. In many cases, brain fog results from a combination of several mild contributors rather than one dramatic problem, which is why it can take some detective work to resolve.

