Cerebral Torque®
  1. How migraine works
Guide

What Causes Migraine, Genes, the Brain and Why Attacks Start

Migraine is an inherited brain disease. Attacks start in the hypothalamus and run through the trigeminal pain system and CGRP, and triggers only tip a sensitive brain over its threshold.

On this pageJump to a section10
  1. Migraine Is an Inherited Brain Disease
  2. Migraine Causes in Your Genes
  3. What Causes a Migraine Attack
  4. Why Attacks Start When They Do
  5. What Causes Migraine in Women
  6. Why Migraine Can Get Worse Over Time
  7. What Does Not Cause Migraine
  8. How the Cause Shapes Treatment
  9. Common questions
  10. References

What causes migraine is an inherited difference in how the brain handles sensory input, energy and pain. Migraine is a neurological disease that runs in families, and each attack starts inside the brain, often in the hypothalamus hours before any pain. Genes set the underlying sensitivity, while hormone shifts, sleep, stress changes and other loads decide when an attack begins.

Migraine Is an Inherited Brain Disease

A headache is one painful episode. Migraine is a lasting condition of the nervous system that is present between attacks and generates them. More than a billion people worldwide have it,1 and in the United States about 17% of women and 6% of men have migraine in a given year.2

The migraine brain is more excitable than average. It responds more strongly to incoming signals, is slower to get used to repeated input, and takes longer to settle afterward. That sensitivity is present every day, including the days without pain, which is why prevention aims at the baseline state of the brain rather than only at individual attacks.

For most of the twentieth century, migraine was taught as a "vascular headache" caused by swollen blood vessels in the head. Imaging studies did not support it. In a Danish study that scanned the head arteries of 19 women during spontaneous attacks, the arteries outside the skull did not widen at all, and the arteries inside it widened only slightly. The authors concluded that research should focus on pain pathways rather than simple arterial dilation.3 Blood vessel changes happen during an attack, but they are a downstream effect of what the brain is doing.

Migraine is not something people bring on themselves through stress, diet or poor self-management. It reflects the nervous system a person was born with. Our guide to how migraine works covers the biology in more depth.

Migraine Causes in Your Genes

Twin studies show how much of migraine is inherited. Across six countries and 29,717 twin pairs, the heritability of migraine ranged from 34% to 57%.4 Heritability is a population figure: it says that roughly a third to a half of the variation in who gets migraine traces to genetic differences, and the rest to environment, hormones and other influences. It cannot tell any one person why they have migraine.

Family risk follows the same pattern. In a Danish population study, first-degree relatives of people with migraine without aura had 1.9 times the general population's risk of migraine without aura, and relatives of people with migraine with aura had nearly four times the risk of migraine with aura.5 A close relative with migraine makes it more likely that you will have it too, but it does not make it certain.

Common migraine is polygenic

For the vast majority of people, there is no single migraine gene. The largest genetic study to date compared 102,084 people with migraine against 771,257 without it and found 123 genetic risk regions, 86 of them new. A few leaned toward migraine with aura and a few toward migraine without aura, but most of the risk is shared between the two. The variants were concentrated in both blood vessel and nervous system tissue, which supports migraine as a disorder of the neurovascular system. Among the new regions were the genes for CGRP (CALCA and CALCB) and for the serotonin 1F receptor, the targets of migraine drugs that had already been developed.6

Because each common variant adds only a sliver of risk, today's consumer gene panels and polygenic scores cannot predict whether a particular person will develop migraine, how severe it will become or which treatment will help. For everyday migraine, a careful family history tells your clinician more.

Rare single-gene forms

A few rare types of migraine are caused by one gene. Familial hemiplegic migraine, in which the aura includes temporary weakness on one side of the body, is linked to three established genes: CACNA1A, ATP1A2 and SCN1A. Changes in these genes are expected to leave more neurotransmitter and potassium in the space between nerve cells, lowering the bar for cortical spreading depression, the brain wave behind aura. Genetic testing can confirm the diagnosis when a variant is found, but a normal result does not exclude hemiplegic migraine, because some people with the condition carry no change in the known genes.7 See is migraine genetic for what testing can and cannot show.

FormGenetic basisIs a genetic test useful?
Common migraine, with or without auraMany common variants, each with a small effectNo. Polygenic scores are research tools only
Familial hemiplegic migraineSingle gene: CACNA1A, ATP1A2 or SCN1AYes, targeted testing can confirm it; a negative result does not exclude it
Strong family history aloneUsually polygenicNo. The family history already captures the inherited risk

What Causes a Migraine Attack

An attack is a chain of events that unfolds across several phases and can last days.

The hypothalamus and the prodrome

The prodrome is the first phase of the attack. It can begin up to about three days before the pain, with most symptoms in the final hours, and includes yawning, food cravings, thirst, neck stiffness, mood change, tiredness and sensitivity to light. Brain imaging points to the hypothalamus, the brain's internal clock and regulator of hunger, sleep and hormones. In a PET study of people whose attacks were brought on with nitroglycerin, the hypothalamus and brainstem were already active during the prodrome, before any headache.8 In one person scanned every morning for 30 days, hypothalamic activity changed in the 24 hours before each attack, and its connection with brainstem pain centers shifted.9 This helps explain why migraine follows rhythms of sleep, meals and the menstrual cycle. Our page on the migraine prodrome explains how to recognize it.

Cortical spreading depression and aura

About one in four people with migraine have aura, which is a phase of the attack. Visual aura is produced by cortical spreading depression, a slow wave of electrical activity followed by a lull that moves across the surface of the brain. In a functional MRI study recorded during visual aura, the wave crossed the visual cortex at about 3.5 millimeters per minute, matching the way the aura moved across the person's field of vision.10

How the wave connects to head pain is still being worked out. A 2024 mouse study found that cerebrospinal fluid flows directly into the trigeminal ganglion, the cluster of pain-sensing nerve cells for the head. After a spreading depression, about 11% of the proteins in that fluid changed, and fluid taken from those animals activated trigeminal nerve cells in other mice, partly through the CGRP it carried.11 Whether spreading depression also happens silently in migraine without aura is not known. The cortical spreading depression explainer covers the details.

The trigeminovascular system, CGRP and PACAP

The pain comes from the trigeminovascular system. Branches of the trigeminal nerve wrap around blood vessels in the meninges, the coverings of the brain. When they are activated, they release CGRP (calcitonin gene-related peptide) and other signaling molecules that cause inflammation around the vessels, and the pain signal travels through the brainstem and thalamus to the cortex.

CGRP can start an attack on its own. In a placebo-controlled study, everyone given an infusion of CGRP developed a headache, compared with one person after placebo, and some had delayed attacks that met the criteria for migraine.12 A second molecule, PACAP, behaves in a similar way: an infusion caused migraine-like attacks in 7 of 12 people with migraine, and none after placebo.13 Neither molecule explains every attack, which is one reason no single drug helps everyone. See CGRP and migraine for how this research turned into treatment.

Sensitization

As an attack goes on, the pain pathways themselves become more reactive. First the nerve endings in the meninges become sensitized, causing throbbing that worsens with movement. Then the brainstem and thalamus become sensitized, and ordinary touch on the scalp or skin can hurt, a sign called allodynia. In one study, a triptan made people pain-free within two hours in 93% of attacks without allodynia but in only 15% of attacks with it.14 This is the main scientific reason to treat early.

StageMain brain systemWhat you notice
ProdromeHypothalamus and brainstemYawning, cravings, thirst, neck stiffness, fatigue, mood change
Aura (in some people)Cortical spreading depression in the cortexZigzag lines, blind spots, tingling, speech trouble
HeadacheTrigeminovascular system, CGRP and PACAPThrobbing pain, nausea, light and sound sensitivity
SensitizationBrainstem, thalamus and cortexPain spreading, scalp and skin tenderness
PostdromeRecovery across brain networksFatigue, brain fog, feeling drained

Why Attacks Start When They Do

Each brain can absorb a certain amount of load before it tips into an attack, and in migraine that tipping point is lower than average. It is uncommon for one exposure to start an attack on its own. Attacks usually come when several small loads land within a short time, such as too little sleep, a delayed meal, the premenstrual drop in hormones and a demanding stretch at work. The same glass of wine or sunny afternoon may pass without trouble when you are rested and calm, which explains why a suspected trigger seems to work some weeks and not others.

Many triggers are the attack itself

Because the prodrome starts hours before the pain, its symptoms are easy to mistake for causes. A craving for chocolate, a sudden dislike of bright light, a stiff neck or strong thirst can all be the first signs of an attack that has already begun. In a study of 53 people with migraine, the triggers they reported lined up with their own prodrome symptoms: people who blamed light tended to have light sensitivity as an early symptom, and people who blamed skipped meals or certain foods tended to have food cravings.15

Diary studies also show how personal and inconsistent triggers are. When 326 people tracked 33 possible factors for 90 days, an average of only four factors were linked to any one person's attacks, and the pattern was unique to the individual in 85% of cases.16

What it feels likeWhat people often concludeWhat is often happening
Craving sweets, then an attackChocolate caused itThe craving was part of the prodrome
Light suddenly unbearable, then painLight caused itEarly light sensitivity is a prodrome symptom
Stiff neck, then headacheMy neck caused itNeck symptoms are often part of the attack
Strong thirst, then an attackI was dehydratedThirst can come from the hypothalamus during the prodrome
Attack on the first day of vacationRelaxing caused itA fall in stress, a later wake-up and delayed coffee add up

Stress and the let-down attack

Stress plays a part, but often in an unexpected direction. In a small diary study of 17 people, the level of stress was not generally linked to attacks, but a fall in stress from one evening to the next raised the odds of an attack over the following 6 to 18 hours by about 1.5 to 1.9 times.17 Weekend attacks fit this pattern, along with the later wake-up and delayed coffee of a day off. Stress can push the brain over its threshold, but it is not the root cause of the disease. See stress and migraine.

Steady sleep, meals, hydration and caffeine help more than avoiding a long list out of fear. Our article on the migraine trigger myth goes further.

What Causes Migraine in Women

Migraine is two to three times more common in women than men, close to three to one in the large US survey cited above,2 and women tend to have longer attacks, more recurrence and more disability.18 The gap is driven mostly by sex hormones. Before puberty the rates in boys and girls are similar. In a US survey of more than 40,000 people, girls overtook boys after about age 10, and the female-to-male ratio was highest through the reproductive years.19

Estrogen withdrawal

The key hormonal event is a falling level of estrogen rather than a high or low level on its own. When women tracked their hormones and attacks across three menstrual cycles, attacks clustered in the days of falling estrogen around the start of the period, and rising estrogen seemed to protect against them.20 In a larger study, women with migraine did not have different estrogen levels from women without it, but their estrogen fell faster after its late-cycle peak: by 40% over two days, compared with 30% in women without migraine.21 Progesterone also falls before a period, so the brain meets a combined hormonal withdrawal.

Estrogen acts on almost every part of the migraine chain, including the CGRP system. Animal and human research shows that shifts in estrogen, the main ovarian hormone involved, change how CGRP behaves in the trigeminovascular system.22 That helps explain the course of migraine across a woman's life. It often starts near the first period and tracks the menstrual cycle. Many women improve in the second half of pregnancy, when estrogen is high and steady, and many get worse in perimenopause, when estrogen swings unpredictably. After menopause some women improve, while others continue to have attacks. The guide to menstrual migraine covers timed treatment around the period.

PMOS and other links

In 2026, polycystic ovary syndrome (PCOS) was officially renamed polyendocrine metabolic ovarian syndrome (PMOS) after a global consensus process involving 56 organizations, to reflect that it is a whole-body hormonal and metabolic condition rather than a disease of ovarian cysts.23 In a Finnish birth cohort followed to age 46, migraine was among the diagnoses more common in women with PMOS than in women without it.24 This link is observational and does not show that one condition causes the other.

Migraine in men is real and often missed, partly because of the belief that it is a women's condition.18

Why Migraine Can Get Worse Over Time

Repeated attacks and repeated rounds of sensitization can lower the threshold further, so that attacks come more easily. Chronic migraine, with headache on 15 or more days a month, develops from episodic migraine at a rate of about 3% a year. The most important modifiable risk factors are overuse of acute medication, ineffective acute treatment, obesity, depression and stressful life events. The process can reverse: about 26% of people with chronic migraine go into remission within two years.25 Medication overuse headache is a separate, treatable problem that can sit on top of migraine.

What Does Not Cause Migraine

The evidence does not support these popular explanations as causes of the disease:

  • Swollen blood vessels. Vessel changes during an attack are small and downstream of the brain events.3 Treatments built on widening or narrowing scalp vessels, such as soaking the feet in hot water, rest on the old vascular model.
  • Personality or weak coping. There is no reliable link between a personality type and migraine. Migraine is a neurological disease, and many people who manage stress well still have disabling attacks.
  • Dehydration or low salt as the root cause. Steady fluid intake is sensible, but thirst before an attack is often prodrome, and migraine is not a salt, potassium or mineral deficiency.
  • Food allergies found on IgG tests. IgG antibodies to foods reflect normal exposure to what you eat and do not show allergy or intolerance.
  • A misaligned neck. Neck pain is common early in an attack and is more often a symptom than the source.
  • Anything you did wrong. An attack after an unavoidable exposure, such as a weather change or a period, is expected for a sensitive brain and is not a personal failure.

Specific foods, alcohol, weather and bright light can be real triggers for some people, but they act on a brain that already has migraine. They do not cause attacks in people without the underlying susceptibility.

How the Cause Shapes Treatment

Knowing that migraine is a brain disease with identifiable chemistry has changed treatment. Medicines that block CGRP or its receptor, including erenumab (Aimovig), fremanezumab (Ajovy), galcanezumab (Emgality), eptinezumab (Vyepti), rimegepant (Nurtec ODT) and atogepant (Qulipta), were designed for this mechanism. In 2024 the American Headache Society stated that these CGRP-targeting therapies should be considered a first-line option for prevention, without first requiring other preventives to fail.26

PACAP is the next target. In a phase 2 trial in people for whom two to four previous preventives had failed, a single infusion of an antibody against PACAP (Lu AG09222) reduced monthly migraine days by 6.2, compared with 4.2 for placebo, over the next four weeks.27 It is not approved and needs larger trials.

The mechanism also points to practical steps: treat at the first sign of an attack, consider prevention when attacks are frequent or disabling, and work on the factors that drive chronic migraine. If you are not sure whether your headaches are migraine, our migraine screener is a starting point for a conversation with your clinician.

When to get urgent care

Most recurring headaches that fit the migraine pattern are not dangerous, but some headaches have a different cause. Get medical care right away for a sudden severe headache that peaks within a minute, a headache with fever and a stiff neck, new weakness, confusion or trouble speaking, an aura that lasts longer than an hour or is your first ever, a headache after a head injury, or a new headache pattern that keeps getting worse. See headaches that are medical emergencies.

Common questions

Is migraine caused by stress or anxiety?

Stress can help push a sensitive brain over its threshold, and a sudden drop in stress after a busy period is a well-known time for attacks. It does not create the disease. Migraine comes from inherited brain biology, and many people with low stress and good coping still have frequent attacks. Anxiety and depression often travel with migraine, partly through shared biology, and deserve treatment in their own right.

If my parent has migraine, will I get it too?

Your chance is higher than average, but it is far from certain. Migraine is inherited through many small genetic effects that add up, and environment, hormones and sleep also shape who develops it. Many children of parents with migraine never have it, and some people with migraine have no known family history. A family history mainly helps your clinician recognize the pattern sooner.

Can chocolate, cheese or wine cause a migraine attack?

Some people do react to particular foods or alcohol, but much less often than commonly believed. A craving for sweets is a classic early symptom of an attack that has already started, so chocolate is often blamed for an attack it did not cause. Keeping a careful diary over several months, and noting cravings as possible early symptoms, is the fairest way to test whether a suspected food is a real trigger for you.

Why does migraine often start around puberty?

Before puberty, boys and girls have migraine at similar rates. Once the menstrual cycle begins, the monthly rise and fall of estrogen starts acting on a brain that is already genetically susceptible, and rates in girls climb steeply. Many women recall their first attacks starting around the time their periods began. The inherited sensitivity is already there, and the hormonal cycle is often what brings it out.

Can migraine be cured if you find the cause?

There is no cure, because the cause is the way the brain is built rather than a single removable factor. Migraine can be controlled very well, though. Preventive treatment lowers the brain's sensitivity, early acute treatment stops attacks before sensitization takes hold, and attention to sleep, mood and medication use keeps attacks from becoming more frequent. Many people reach long stretches with few or no attacks.

Important Medical Disclaimer

This article is for educational purposes only and does not replace advice from your physician. Talk with your own clinician before starting, stopping or changing any treatment.

References

  1. GBD 2016 Headache Collaborators. Global, regional, and national burden of migraine and tension-type headache, 1990-2016: a systematic analysis for the Global Burden of Disease Study 2016. The Lancet Neurology. 2018;17(11):954-976. doi:10.1016/S1474-4422(18)30322-3.
  2. Lipton RB, Bigal ME, Diamond M, et al. Migraine prevalence, disease burden, and the need for preventive therapy. Neurology. 2007;68(5):343-349. doi:10.1212/01.wnl.0000252808.97649.21.
  3. Amin FM, Asghar MS, Hougaard A, et al. Magnetic resonance angiography of intracranial and extracranial arteries in patients with spontaneous migraine without aura: a cross-sectional study. The Lancet Neurology. 2013;12(5):454-461. doi:10.1016/S1474-4422(13)70067-X.
  4. Mulder EJ, Van Baal C, Gaist D, et al. Genetic and environmental influences on migraine: a twin study across six countries. Twin Research. 2003;6(5):422-431. doi:10.1375/136905203770326420.
  5. Russell MB, Olesen J. Increased familial risk and evidence of genetic factor in migraine. BMJ. 1995;311(7004):541-544. doi:10.1136/bmj.311.7004.541.
  6. Hautakangas H, Winsvold BS, Ruotsalainen SE, et al. Genome-wide analysis of 102,084 migraine cases identifies 123 risk loci and subtype-specific risk alleles. Nature Genetics. 2022;54(2):152-160. doi:10.1038/s41588-021-00990-0.
  7. de Boer I, Hansen JM, Terwindt GM. Hemiplegic migraine. Handbook of Clinical Neurology. 2024;199:353-365. doi:10.1016/B978-0-12-823357-3.00015-X.
  8. Maniyar FH, Sprenger T, Monteith T, et al. Brain activations in the premonitory phase of nitroglycerin-triggered migraine attacks. Brain. 2014;137(Pt 1):232-241. doi:10.1093/brain/awt320.
  9. Schulte LH, May A. The migraine generator revisited: continuous scanning of the migraine cycle over 30 days and three spontaneous attacks. Brain. 2016;139(Pt 7):1987-1993. doi:10.1093/brain/aww097.
  10. Hadjikhani N, Sanchez Del Rio M, Wu O, et al. Mechanisms of migraine aura revealed by functional MRI in human visual cortex. Proceedings of the National Academy of Sciences of the United States of America. 2001;98(8):4687-4692. doi:10.1073/pnas.071582498.
  11. Kaag Rasmussen M, Møllgård K, Bork PAR, et al. Trigeminal ganglion neurons are directly activated by influx of CSF solutes in a migraine model. Science. 2024;385(6704):80-86. doi:10.1126/science.adl0544.
  12. Lassen LH, Haderslev PA, Jacobsen VB, et al. CGRP may play a causative role in migraine. Cephalalgia. 2002;22(1):54-61. doi:10.1046/j.1468-2982.2002.00310.x.
  13. Schytz HW, Birk S, Wienecke T, et al. PACAP38 induces migraine-like attacks in patients with migraine without aura. Brain. 2009;132(Pt 1):16-25. doi:10.1093/brain/awn307.
  14. Burstein R, Collins B, Jakubowski M. Defeating migraine pain with triptans: a race against the development of cutaneous allodynia. Annals of Neurology. 2004;55(1):19-26. doi:10.1002/ana.10786.
  15. Karsan N, Bose P, Newman J, et al. Are some patient-perceived migraine triggers simply early manifestations of the attack? Journal of Neurology. 2021;268(5):1885-1893. doi:10.1007/s00415-020-10344-1.
  16. Peris F, Donoghue S, Torres F, et al. Towards improved migraine management: determining potential trigger factors in individual patients. Cephalalgia. 2017;37(5):452-463. doi:10.1177/0333102416649761.
  17. Lipton RB, Buse DC, Hall CB, et al. Reduction in perceived stress as a migraine trigger: testing the "let-down headache" hypothesis. Neurology. 2014;82(16):1395-1401. doi:10.1212/WNL.0000000000000332.
  18. Vetvik KG, MacGregor EA. Sex differences in the epidemiology, clinical features, and pathophysiology of migraine. The Lancet Neurology. 2017;16(1):76-87. doi:10.1016/S1474-4422(16)30293-9.
  19. Victor TW, Hu X, Campbell JC, et al. Migraine prevalence by age and sex in the United States: a life-span study. Cephalalgia. 2010;30(9):1065-1072. doi:10.1177/0333102409355601.
  20. MacGregor EA, Frith A, Ellis J, et al. Incidence of migraine relative to menstrual cycle phases of rising and falling estrogen. Neurology. 2006;67(12):2154-2158. doi:10.1212/01.wnl.0000233888.18228.19.
  21. Pavlović JM, Allshouse AA, Santoro NF, et al. Sex hormones in women with and without migraine: evidence of migraine-specific hormone profiles. Neurology. 2016;87(1):49-56. doi:10.1212/WNL.0000000000002798.
  22. Labastida-Ramírez A, Rubio-Beltrán E, Villalón CM, et al. Gender aspects of CGRP in migraine. Cephalalgia. 2019;39(3):435-444. doi:10.1177/0333102417739584.
  23. Teede HJ, Khomami MB, Morman R, et al. Polyendocrine metabolic ovarian syndrome, the new name for polycystic ovary syndrome: a multistep global consensus process. The Lancet. 2026;407(10545):2329-2339. doi:10.1016/S0140-6736(26)00717-8.
  24. Kujanpää L, Arffman RK, Pesonen P, et al. Women with polycystic ovary syndrome are burdened with multimorbidity and medication use independent of body mass index at late fertile age: a population-based cohort study. Acta Obstetricia et Gynecologica Scandinavica. 2022;101(7):728-736. doi:10.1111/aogs.14382.
  25. May A, Schulte LH. Chronic migraine: risk factors, mechanisms and treatment. Nature Reviews Neurology. 2016;12(8):455-464. doi:10.1038/nrneurol.2016.93.
  26. Charles AC, Digre KB, Goadsby PJ, et al. Calcitonin gene-related peptide-targeting therapies are a first-line option for the prevention of migraine: an American Headache Society position statement update. Headache. 2024;64(4):333-341. doi:10.1111/head.14692.
  27. Ashina M, Phul R, Khodaie M, et al. A monoclonal antibody to PACAP for migraine prevention. New England Journal of Medicine. 2024;391(9):800-809. doi:10.1056/NEJMoa2314577.

Get studies like this by email

Every Friday, the week's migraine studies and news explained in plain language. No ads.

CROWN cooling roller“This is my favorite migraine roll-on that I’ve tried, and I’ve tried quite a few.” Verified Amazon buyerSee it on Amazon
Unraveling Migraine“The ultimate blueprint to navigate migraine care.” Olivia Begasse de Dhaem, MD, headache specialistSee it on Amazon
Cerebral Torque
About the author

Cerebral Torque

Founder of Cerebral Torque and author of Unraveling Migraine, with a medical background. Trained in computational and cellular neuroscience, with research using Hodgkin-Huxley modeling and clamp electrophysiology to study how neurons respond to rhythmic input. Now focused on migraine medicine and education, and has produced CME for clinicians on hormone therapy, migraine, and HRT delivery.

More about the author Editorial standards

This article is for education and is not medical advice. Talk with your own clinician before starting, stopping or changing any treatment.

Enter to openArrow keys to moveEsc to close

You've got this.

This screen is dimmed on purpose. A few things that help most people right now.

  1. 1
    Treat it early. Take your usual acute medicine now, at the dose your clinician gave you. Waiting usually makes it work less well.
  2. 2
    Cut the input. Dim the lights, lower the sound, step away from screens if you can.
  3. 3
    Cold and water. Something cold on the forehead or the back of the neck, and a few sips of water.
  4. 4
    Slow your breathing. Five slow minutes can take the edge off the stress response.

Want something to rest with? A dark screen with a dim green glow and slow, quiet music for 3 hours. Turn your brightness all the way down, or just listen with your eyes closed.

Get emergency care now if this is the worst headache of your life, came on like a thunderclap, or comes with new weakness, numbness, trouble speaking, confusion, fever with a stiff neck, or follows a head injury.