Guide
Brain Fog With Headaches: What Links Them and What to Track
Why foggy thinking and headaches or migraine often show up together, what studies find, and a simple way to spot your own patterns with small first steps.
Last updated October 18, 2026.
A small first step
- Tonight, add three lines to a note: how you slept, whether you ate regularly, and a 1-to-5 for headache and for fog. Do it again tomorrow. Patterns take a week or two, not a day.

It’s hard enough to think clearly when your head hurts. For many people the thinking trouble also shows up when the pain doesn’t: the day before a bad headache, the day after, or in between. You reread the same line, lose a word mid-sentence, and feel a step behind.
This guide looks at what’s known about how headaches, especially migraine, and foggy thinking go together, what researchers can and can’t say, and how to look for your own patterns. Brain fog isn’t a named condition, and neither this page nor any single study can tell you why you get it.
When the fog shows up
The American Migraine Foundation says brain fog and temporary memory difficulty can come before, during or after a migraine episode, and can also happen between episodes rather than being directly connected to the pain. It describes the usual picture as trouble focusing and finding the right word, feeling distracted, forgetful or less alert, or struggling with simple tasks. The NINDS notes that people with migraine can have a hard time concentrating between episodes as well.
Migraine is described as having phases. According to the foundation, brain fog can occur up to 48 hours before and up to 24 hours after the headache pain. The NINDS says the “postdrome” stage that follows can leave people exhausted or confused, with a hard time concentrating, and that it may last up to two days. Some people notice the fog early and come to read it as one of their first warning signs. The foundation says it is believed that fog may be linked to a wave of altered electrical activity and blood flow that spreads across the brain before an episode, but it also says more research is needed.
What studies find
Researchers have tried to measure thinking in people with migraine on the days they’re not having an episode:
- A 2022 meta-analysis pooled 17 studies and found that people with migraine, compared with healthy controls, showed a moderate negative effect on complex attention, immediate and delayed memory, spatial cognition and executive function. The authors cautioned that missing checks on effort, and limited data on mood and medication use, may have overestimated the size of the effect.
- A 2026 systematic review of 16 studies found no significant difference in short-term memory between people with migraine and healthy controls, but poorer working memory, which is the ability to hold and work on information at once. The authors read this as a difficulty with cognitive efficiency rather than a loss of memory storage, and noted that past results have been inconsistent.
The American Migraine Foundation adds a reassurance: it says studies have shown that migraine does not make you lose your memory (dementia) or lower your thinking skills later in life, and that trouble finishing a puzzle or reply is most likely about focus.
Both reviews describe groups of people in test conditions. They say little about whether a foggy day for you came from a headache, from poor sleep, or from something else, and none of them says that a headache causes fog. Headaches that aren’t migraine are much less studied for thinking effects, so this guide can’t say much about them.
Why the order matters
If fog tends to arrive a day before the pain, that is useful to know, because it gives you a heads-up to go easy on yourself. If it mostly follows a headache, the recovery period may be the part to plan around. If it shows up on days with no headache at all, something else may be playing a larger role, and the other guides on this site become more relevant. None of these patterns is a verdict. They’re clues that make your next experiment more targeted.
Common contributors worth checking
The NINDS lists many things that can trigger a migraine episode or raise a person’s risk of one. They differ from person to person, and include too much or not enough sleep, emotional stress, low blood sugar or skipped meals, drinking too much alcohol, hormonal changes, bright or flashing lights, loud noises, strong smells and sudden changes in weather. The NHS lists similar everyday causes of headaches in general: a cold or flu, stress, too much alcohol, bad posture, eyesight problems, not eating regular meals, not drinking enough fluids, and, for some people, their period or menopause.
Several of those overlap with common fog contributors, which may be why the two can seem inseparable. Sleep is one: the NHLBI says sleep deficiency can cause problems with learning, focusing and reacting. Stress is another: the NIMH lists headaches or body pain among the symptoms that can come with stress or anxiety. Those make good starting points: brain fog and lack of sleep, anxiety, stress and brain fog, blood sugar swings and brain fog, brain fog and dehydration, alcohol and brain fog and hormones and brain fog.
Keep a log that includes the fog
Both the NINDS and the NHS suggest a headache journal. The NINDS lists what to write after each headache: the time of day, how intense it was and how long it lasted, sensitivity to light, smells or sound, the activity just before, the quality and length of the previous night’s sleep, any stress or strong emotion beforehand, the weather or changes in routine, food and drinks in the previous 24 hours, and, for people who menstruate, the days of their period.
Add one thing most headache logs leave out: a 1-to-5 for how foggy you felt, on every day, headache or not. Then you can see whether fog tends to come the day before a headache, after one, or on its own. Our symptom diary has a layout you can adapt.
What the research does and doesn’t show
- Reasonably consistent: Many people with migraine report fog, and test studies tend to find modest differences in attention and working memory between episodes.
- Mixed: The size and the type of differences vary from study to study, and the reviews note limits that could exaggerate them.
- Not shown: That any lifestyle step prevents fog or headaches. The lists above are trigger lists, not trials of fixes.
- Reassuring: The American Migraine Foundation says migraine is not shown to cause memory loss or lower thinking skills later in life.
Small first steps
- Keep the log going for two weeks before drawing any conclusions.
- Eat on a rhythm. The NHS’s advice for headaches includes not skipping meals and drinking plenty of water.
- Keep sleep steady, not more than usual and not less. The NHS says sleeping more than usual can make a headache worse.
- Be gentle on foggy days. The foundation suggests removing time pressure, doing one thing at a time, writing notes, finding a quiet place and avoiding bright light.
- Tell the people around you. The foundation says those close to you may spot fog before you do.
Sources and citations
- Migraine, Brain Fog and Memory Loss: How They Affect You — American Migraine Foundation (leaves this site)
- Migraine — National Institute of Neurological Disorders and Stroke (NINDS), NIH (leaves this site)
- Headaches — NHS (leaves this site)
- Interictal cognitive deficits in migraine sufferers: a meta-analysis (Neuropsychology Review, 2022) — PubMed (leaves this site)
- Investigating the impact of migraine on short-term and working memory: a systematic review and meta-analysis (Journal of Neurology, 2026) — PubMed (leaves this site)
- Sleep Deprivation and Deficiency: How Sleep Affects Your Health — National Heart, Lung, and Blood Institute (NHLBI), NIH (leaves this site)
- I'm So Stressed Out! Fact Sheet — National Institute of Mental Health (NIMH), NIH (leaves this site)