How Do Migraines Work? The Brain Science Explained

Migraine is a neurological disorder rooted in abnormal activation of a pain-signaling network called the trigeminovascular system, combined with waves of unusual electrical activity across the brain’s surface. For decades, the throbbing pain was blamed on dilating blood vessels, but the current understanding places the brain’s own nerve circuits at the center of the problem. The cascade involves specific chemical messengers, shifts in brain blood flow, and a sensitization process that can make ordinary sensations like light and touch feel unbearable.

The Trigeminovascular System

The trigeminal nerve is the largest cranial nerve, and one of its jobs is to relay sensory information from the face, head, and the membranes surrounding the brain (the meninges). Nerve fibers from the trigeminal ganglion extend to the blood vessels lining the meninges. When these fibers become activated, they release inflammatory signaling molecules at those nerve endings, which in turn irritate the surrounding tissue and send pain signals back toward the brainstem. This loop between the trigeminal nerve and the meningeal blood vessels is the trigeminovascular system, and it is now widely accepted as having a fundamental role in migraine.

1PubMed Central. Migraine and the trigeminovascular system-40 years and counting

The pain signals travel from those meningeal nerve endings to a relay station in the lower brainstem called the trigeminal nucleus caudalis. From there, second-order neurons carry the signal up to the thalamus and then to the cortex, where the brain registers the experience as a headache. Along the way, higher brain regions including the hypothalamus and parts of the brainstem can either amplify or dampen the signal, which helps explain why stress, sleep disruption, and mood changes can influence whether a migraine fires.

2PubMed Central. Migraine pathophysiology: anatomy of the trigeminovascular pathway and associated neurological symptoms, cortical spreading depression, sensitization, and modulation of pain

Cortical Spreading Depression and Aura

About a quarter to a third of people with migraine experience aura: visual disturbances like shimmering zigzag lines, blind spots, or tingling that creeps across the hand or face. The mechanism behind aura is a phenomenon called cortical spreading depression, first described in the 1940s by the Brazilian physiologist Aristides Leão. It is a slow wave of intense nerve cell firing followed immediately by a prolonged period of electrical silence that rolls across the cortex at roughly two to three millimeters per minute.

The gradual march of aura symptoms matches the speed of this wave remarkably well. As the wave crosses the visual cortex, you see the expanding arc of light. As it moves into somatosensory areas, you get the spreading tingling. Changes in brain blood flow observed during aura attacks in humans closely mirror what happens in animal experiments during cortical spreading depression, which is a strong line of evidence connecting the two.

3PubMed. Pathophysiology of the migraine aura. The spreading depression theory

Cortical spreading depression does more than produce aura symptoms. It also appears to activate the trigeminovascular system itself, essentially lighting the fuse for the headache phase. As the wave of depolarization moves through the cortex, it releases molecules that can stimulate trigeminal nerve endings in the meninges, linking the aura to the pain that typically follows.

2PubMed Central. Migraine pathophysiology: anatomy of the trigeminovascular pathway and associated neurological symptoms, cortical spreading depression, sensitization, and modulation of pain

CGRP, Serotonin, and Other Chemical Players

The most important chemical messenger in migraine science right now is calcitonin gene-related peptide, or CGRP. It is a small signaling molecule abundant in trigeminal nerve fibers. When the trigeminovascular system is activated, CGRP is released from the peripheral nerve endings at the meninges, from the central terminals in the brainstem, and even within the trigeminal ganglion itself. At the meningeal blood vessels, CGRP triggers a cascade that includes increased production of nitric oxide and sensitization of the surrounding nerve fibers, making them more reactive to further stimulation.

4PubMed Central. CGRP and the Trigeminal System in Migraine

Within the trigeminal ganglion, released CGRP interacts with neighboring neurons and the satellite glial cells that surround them. This internal signaling can perpetuate and amplify the pain signal, essentially creating a feedback loop where the nerve keeps telling itself to stay activated. The result is both peripheral sensitization (nerve endings at the meninges becoming hyper-responsive) and central sensitization (the relay neurons in the brainstem becoming hyper-responsive).

4PubMed Central. CGRP and the Trigeminal System in Migraine

Serotonin has a long history in migraine research. People with migraine tend to have lower baseline levels of serotonin, and serotonin receptors sit on both trigeminal nerve fibers and cranial blood vessels. Triptans, the most widely used class of migraine-specific medications, work by activating specific serotonin receptors. When they bind to those receptors on the trigeminovascular system, they reduce the elevated CGRP levels and dampen the inflammatory signaling.

5PubMed Central. Serotonin and CGRP in migraine

Dopamine plays a quieter but interesting supporting role. People with migraine appear to be hypersensitive to dopamine, which may explain some of the premonitory symptoms that show up hours before the headache: yawning, nausea, food cravings, and mood changes. Dopamine receptors are present within the trigeminovascular system, and drugs that block dopamine receptors (like certain anti-nausea medications) can help with migraine symptoms.

6PubMed. Dopamine and migraine: biology and clinical implications

How the Old “Blood Vessel” Theory Fell Apart

For centuries, migraine was thought to be fundamentally a vascular problem. The throbbing quality of the pain seemed to track with the pulse, and many effective migraine treatments affect blood vessels. The classic story was that arteries in the head dilated excessively, stretching pain-sensitive nerve endings and causing the pounding headache. Over the past two decades, though, the emphasis shifted decisively toward neural mechanisms. Researchers came to see vascular changes as a side effect of the neurological process rather than the cause.

7PubMed Central. Vascular Contributions to Migraine: Time to Revisit?

The cleaner version of the story is that the old vascular and neuronal theories have merged. Neuronal excitation modulates both the pial and meningeal blood vessels through the trigeminal nerve, so the vascular changes are real but they are downstream of the neural events. Some researchers argue this integration should go further. A 2025 review made the case for a “vessel-to-neuron” hypothesis, suggesting that intracranial blood vessels may themselves initiate some migraine pain signals rather than merely responding to them. The debate is far from settled, but the emerging picture is one where nerves and vessels are deeply intertwined rather than one driving the other unilaterally.

8PubMed Central. The vessel-to-neuron trigeminovascular hypothesis of migraine pathogenesis – the ‘pro’ argument

The Four Phases of an Attack

A migraine attack is not just a headache. It unfolds in up to four distinct phases, though not everyone experiences all of them.

The prodrome, or premonitory phase, can begin a day or two before the headache. Symptoms include fatigue, irritability, food cravings, neck stiffness, and frequent yawning. Brain imaging during spontaneous migraine attacks has shown activation not only in the midbrain and pons (brainstem structures known to modulate pain) but also in the hypothalamus. The hypothalamic activation persisted even after the headache was treated with sumatriptan, suggesting that the hypothalamus is an early driver of the attack rather than just a bystander.

9PubMed. Hypothalamic activation in spontaneous migraine attacks

The aura phase, when it occurs, typically lasts five to sixty minutes and involves the cortical spreading depression described above. Then comes the headache phase, which can last four to seventy-two hours. The pain is usually one-sided and pulsating, accompanied by nausea, sensitivity to light and sound, and sometimes cognitive difficulty.

The postdrome, sometimes called the “migraine hangover,” follows the headache and can last another day or two. People describe feeling drained, foggy, or off-balance. Functional imaging shows a widespread reduction in brain blood flow during the postdrome, which helps explain the range of lingering symptoms that patients experience even after the pain itself has stopped.

10PubMed. The Migraine Postdrome

Why Light and Touch Become Unbearable

Photophobia during a migraine is not just discomfort with bright light; even dim ambient light can become painful. Research in both blind and sighted patients with migraine led to the discovery of a previously unknown visual pathway. Specialized retinal ganglion cells, including melanopsin-containing cells that do not contribute to image formation, send signals to the thalamus. During a migraine, these thalamic neurons become hyperactive and project to multiple cortical areas involved in generating pain, mood, and other migraine symptoms. This pathway explains why even completely blind patients who retain these retinal cells can experience light-worsened migraine pain.

11PubMed Central. Neurobiology of Photophobia

Touch sensitivity, or allodynia, is another hallmark of migraine. During an attack, many people find that brushing their hair, wearing glasses, or even resting their head on a pillow becomes painful. This happens because of central sensitization: the second-order neurons in the brainstem that relay pain signals have become so excitable that they interpret ordinary touch as pain. Allodynia is a clinically useful marker because its presence tells you the central sensitization process is already underway, and it has practical implications for treatment timing.

12PubMed. Central sensitization theory of migraine: clinical implications

Hormones and Why Migraine Hits Women Harder

Before puberty, boys and girls get migraines at roughly equal rates. That ratio shifts to about two-to-one in favor of girls once adolescence begins, and adult women are affected roughly three times as often as men.

13PubMed. Age- and sex-related differences in the presentation of paediatric migraine: A retrospective cohort study

Fluctuating estrogen levels are the primary driver of this disparity. It is not simply high or low estrogen that causes problems; it is the drop. Many women experience menstrual migraine in the days surrounding menstruation, when estrogen levels fall sharply. Estrogen influences cellular excitability and cerebral blood vessels, and its fluctuations mediate the increased vulnerability to migraine seen in women.

14PubMed Central. Migraine in women: the role of hormones and their impact on vascular diseases

At the molecular level, estradiol appears to act on estrogen receptors in the central trigeminovascular system in ways that increase excitatory neurotransmission and decrease inhibitory signaling. It can also affect potassium and calcium ion channels, which lowers the activation threshold for pain-transmitting neurons. This is part of why estrogen withdrawal may prime the brain for cortical spreading depression and central sensitization.

15Frontiers in Pain Research. Molecular mechanisms of hormones implicated in migraine and the translational implication for transgender patients

Genetic Susceptibility

Migraine is strongly hereditary, but common migraine is not caused by a single gene. It is a polygenic condition shaped by many genetic variants, each contributing a small amount of risk. The clearest genetic picture comes from a rare subtype called hemiplegic migraine, which causes temporary paralysis on one side of the body along with aura. Hemiplegic migraine is caused by mutations in genes (CACNA1A, ATP1A2, and SCN1A) that encode ion channels and transport proteins. These mutations result in impaired signaling at nerve synapses and cortical hyperexcitability, making the brain more susceptible to cortical spreading depression.

16PubMed Central. Advances in genetics of migraine

While ordinary migraine does not follow such neat genetic patterns, the hemiplegic migraine mutations illustrate a core principle: the migraine-prone brain is one that is easier to excite and harder to quiet down. Genome-wide association studies have identified dozens of common genetic variants linked to migraine risk, many of which involve ion channels, neurotransmitter pathways, and vascular function. You do not “inherit migraine” from a single parent through a single gene. You inherit a brain architecture that sits closer to the threshold for triggering an attack.

How Treatments Work on These Pathways

Understanding the trigeminovascular system and CGRP has directly translated into medication design. Triptans, introduced in the 1990s and still the first-line acute treatment for many people, work by activating serotonin receptors on meningeal arteries and trigeminal nerve endings. The effect is twofold: constricting the dilated blood vessels and inhibiting the inflammatory signaling from the nerve endings.

17PubMed. Current and emerging second-generation triptans in acute migraine therapy: a comparative review

The newer wave of treatments targets CGRP directly. Monoclonal antibodies that bind either CGRP itself or its receptor were developed for migraine prevention, and small-molecule CGRP receptor blockers (gepants) work for both prevention and acute treatment. These drugs alleviate migraine symptoms in roughly half of patients, which is a meaningful success but also a reminder of how much remains unknown about the other pathways that sustain migraine in the remaining half.

18PubMed Central. Calcitonin gene-related peptide (CGRP): role in migraine pathophysiology and therapeutic targeting

Beyond drugs, several non-invasive neuromodulation devices have gained regulatory clearance for migraine. These include devices that stimulate nerves in the forehead, a single-pulse magnetic stimulator placed at the back of the head, a device that combines stimulation at the back of the head and over the forehead, and remote electrical neuromodulation applied to the upper arm. Each targets a different access point in the pain-processing circuitry. Emerging techniques being explored include transcranial direct current stimulation and different forms of vagus nerve stimulation.

19PubMed Central. Update on Neuromodulation for Migraine and Other Primary Headache Disorders: Recent Advances and New Indications

What Happens to the Brain Over Time

Migraine is not just an episodic event for everyone. Some people progress from episodic migraine (fewer than fifteen headache days per month) to chronic migraine (fifteen or more). This transformation, called chronification, appears to leave structural footprints in the brain. Imaging studies have found that people with chronic migraine have smaller volumes of gray matter in certain regions, including the anterior cingulate cortex and parts of the frontal lobe, compared to those with episodic migraine.

20PubMed Central. Structural and Functional Brain Changes in Migraine

One study found that chronic migraine patients had a larger left thalamus and smaller frontal regions compared to episodic patients, and that headache frequency was negatively correlated with the volume of several frontal areas. In other words, the more frequent the attacks, the more pronounced the volume reduction in parts of the brain involved in pain processing and executive function. Whether these changes are a cause or a consequence of frequent attacks is still unclear, but the finding suggests that the brain remodels itself in response to repeated migraine episodes.

21PubMed Central. Regional volume changes of the brain in migraine chronification

Migraines in Children and Adolescents

Children get migraines too, and the underlying mechanism appears largely the same, but the presentation differs. Pediatric migraines tend to be shorter, more often bilateral rather than one-sided, and children are more likely to report nausea and vomiting as dominant symptoms. Girls and boys are affected equally until puberty, after which the sex gap widens sharply.

13PubMed. Age- and sex-related differences in the presentation of paediatric migraine: A retrospective cohort study

Treatment responses also differ. Psychological interventions, such as cognitive behavioral therapy and biofeedback, appear somewhat more effective in children than in adults, while some medications that work well for adults are not as effective in children and may carry more risk than benefit in younger patients. Differences in presentation and treatment response may reflect the ongoing development of the nervous system during childhood and adolescence, including maturation of pain-processing circuits.

22PubMed Central. Similarities and Differences Between Migraine in Children and Adults: Presentation, Disability, and Response to Treatment23PubMed. Migraine Pathophysiology in Children and Adolescents: A Review of the Literature

The Evolutionary Puzzle

If migraine is so disabling, why have the genes that predispose to it survived natural selection? One compelling theory reframes migraine as an extreme version of an ancient protective response. The migraine-prone brain has a lower threshold for detecting energy imbalances, such as when metabolic demand outstrips supply. Multiple triggers (stress, skipping meals, poor sleep, sensory overload) share a common feature: they can push the brain past its energy budget. In response, the brain launches a coordinated shutdown: severe pain that forces rest, nausea that discourages eating, light and sound sensitivity that drives the person into a dark, quiet space. All of this amounts to sickness behavior, an evolutionarily conserved pattern aimed at disengaging from the environment to allow energy restoration.

24PubMed. The evolutionary meaning of migraine

Under this framework, the trigeminovascular activation is not a malfunction. It is the brain’s alarm system firing in an overly sensitive individual. The severe pain and associated behaviors serve the same basic purpose as fever or inflammation in other contexts: forcing the organism to stop what it is doing and recover. The problem is that in modern life, the triggers are relentless and the “recovery” response is disproportionately costly.

25PubMed. Pain as an evolutionary necessity

The Gut-Brain Connection

An increasingly active area of migraine research is the gut-brain axis. People with migraine have higher rates of gastrointestinal conditions like irritable bowel syndrome, and the vagus nerve provides a direct physical link between the gut and the brainstem. Animal studies have shown that disruptions in gut bacteria can influence the trigeminal pain system through inflammatory signaling pathways, and that gut microbiota perturbation may contribute to migraine by regulating an inflammatory molecule called TNF-alpha in the trigeminal nociceptive system.

26PubMed Central. Gut microbiota and migraine

Research into the brain’s waste-clearance system, known as the glymphatic system, adds another layer. This network of fluid channels clears metabolic waste from the brain, primarily during sleep. Impaired glymphatic function has been linked to several neurological disorders, and early evidence suggests it may play a role in migraine as well. Given that poor sleep is one of the most reliable migraine triggers, the connection between compromised waste clearance and migraine susceptibility is an area researchers are watching closely.

27PubMed Central. The glymphatic system in migraine and other headaches