What Causes Headaches? From Triggers to Pain Signals

Headaches begin when sensory nerves in and around the brain detect something threatening and relay pain signals to the brainstem and higher brain centers. The brain itself has no pain receptors, so the ache you feel originates from structures surrounding it: blood vessels, membranes called meninges, muscles, and a vast network of nerve fibers. What sets those nerves off varies enormously depending on the type of headache, from chemical cascades inside the skull to tight muscles in your jaw, and the science behind each type has shifted dramatically in recent decades.

The Nerve That Connects Almost Every Headache

If there is one anatomical structure that ties the headache story together, it is the trigeminal nerve, the fifth cranial nerve. This nerve branches across your face, scalp, jaw, and the membranes lining your brain. It acts as the main sensory highway for the head and face, carrying touch, temperature, and pain information back to the brainstem. Researchers have described it as the “common denominator” for many headache and facial pain conditions currently known.1PubMed Central. The fifth cranial nerve in headaches

The trigeminal nerve’s cell bodies sit in a cluster called the trigeminal ganglion, which connects outward to the blood vessels and tissues of the head and inward to a relay station in the brainstem called the trigeminal nucleus caudalis. When something irritates the nerve endings around the meninges or blood vessels, signals race along this pathway, and you experience pain. This system, sometimes called the trigeminovascular system, is central to migraines, cluster headaches, and many other headache types.2PubMed Central. CGRP and the Trigeminal System in Migraine

The Chemical Cascade Behind Migraine Pain

Once the trigeminal nerve fibers around the brain’s blood vessels become activated, they release a group of signaling molecules. The most important of these is a neuropeptide called CGRP (calcitonin gene-related peptide), now recognized as a critical player in migraine.3PubMed Central. Calcitonin gene-related peptide (CGRP): role in migraine pathophysiology and therapeutic targeting CGRP is released from both the peripheral and central ends of the trigeminal nerve, and it triggers a chain reaction: blood vessels around the brain dilate, nearby tissues swell, and the nerve endings themselves become more sensitive to stimulation.2PubMed Central. CGRP and the Trigeminal System in Migraine

Alongside CGRP, other neuropeptides like substance P and neurokinin A contribute to what researchers call neurogenic inflammation. Activated C and A-delta nerve fibers release these molecules into the surrounding tissue, causing small arteries to widen, plasma proteins to leak from blood vessels, and mast cells to dump their contents into the area.4PubMed Central. Understanding migraine: Potential role of neurogenic inflammation This inflammatory soup makes the nerve endings even more excitable, which is part of why a migraine can build over time rather than arriving all at once. It also explains the throbbing quality many people report: each heartbeat pushes blood through inflamed, dilated vessels, and the sensitized nerves register every pulse as pain.

Understanding CGRP’s role has had real clinical payoff. A newer class of migraine treatments, antibodies and receptor blockers targeting CGRP, grew directly from this research. Clinical trials have confirmed that blocking CGRP can effectively treat migraine, a validation that the science was pointing in the right direction.5PubMed Central. Calcitonin gene-related peptide (CGRP): a new target for migraine

The Old Vascular Theory Got It Backwards

For most of the twentieth century, doctors believed migraines were caused by blood vessels in the head constricting and then dilating. That idea made intuitive sense: migraines often throb with the heartbeat, triptans (the main acute migraine drugs) constrict blood vessels, and some migraines cause visible changes in blood flow. But over the past thirty years, the vascular theory has been essentially overturned. Research has shown that the blood vessel changes seen during migraines are a consequence of trigeminal nerve activation, not the cause of it.6PubMed Central. Neurovascular mechanisms of migraine and cluster headache

The molecules once assumed to work purely through blood vessels, including CGRP and nitric oxide, turned out to have direct effects on pain-signaling neurons throughout the trigeminovascular system. That shift matters because it redirected drug development away from vascular targets and toward neuronal ones, which is how the CGRP-blocking treatments came about. It also explains why some people with migraine experience pain without any detectable change in blood vessel diameter.

What Happens During a Migraine Aura

About a quarter to a third of migraine sufferers experience an aura before the headache hits: visual disturbances like shimmering zigzag lines, blind spots, or tingling in the face and hand. The underlying event is called cortical spreading depression, a slow wave of intense nerve cell activation followed by a period of electrical silence that moves across the brain’s surface at roughly two to three millimeters per minute. The visual symptoms of aura map onto this wave as it crosses the visual cortex.7PubMed Central. Migrainous Infarction and Cortical Spreading Depression

How does cortical spreading depression start? Research has identified specific ion channels as gatekeepers. Both a type of glutamate receptor and certain calcium channels must be activated together for the wave to begin. The trigger likely involves a buildup of glutamate, the brain’s main excitatory chemical, in the space between cells. Once glutamate reaches a tipping point, it kicks off the spreading wave, and that wave in turn activates trigeminal nerve endings in the meninges, launching the pain cascade.8PubMed Central. Mechanisms of initiation of cortical spreading depression This connection between aura and pain is important: it means the aura is not just a warning sign but part of the mechanism that triggers the headache itself.

Tension-Type Headaches Are a Different Animal

If migraines are driven by an inflammatory cascade inside the skull, tension-type headaches, the most common headache in the world, seem to originate in a different place: the muscles and soft tissues around the skull. People with tension-type headaches consistently show increased tenderness in the muscles of the head, neck, and jaw compared to people without headaches. A meta-analysis of fifteen studies found that this tenderness was significantly elevated in both episodic and chronic forms, with the chronic sufferers showing the greatest increase.9PubMed. Pericranial Total Tenderness Score in Patients with Tension-type Headache and Migraine. A Systematic Review and Meta-analysis

One study found that every single person with chronic tension-type headache had tenderness in at least one of the muscles tested, compared to just over half of headache-free controls.10Pain. Central and peripheral mechanisms in chronic tension-type headache The tenderness appears to show up early in the disorder, which raises a provocative question: does the muscle tenderness cause the headaches, or is it already a sign that the central nervous system is becoming oversensitive? Researchers have proposed that in the chronic form, what starts as irritation in the muscles eventually rewires the brainstem’s pain-processing centers, making them amplify ordinary sensations into pain.11PubMed Central. Pericranial tenderness in chronic tension-type headache: the Akershus population-based study of chronic headache That process, called central sensitization, is also implicated in chronic migraine, which is one reason the boundary between the two headache types can blur in people who have had them for years.

Cluster Headaches and the Brain’s Clock

Cluster headaches are rarer than migraines or tension-type headaches, but they rank among the most painful experiences in medicine. They arrive in bouts, often at the same time of day (frequently waking people from sleep), and last weeks to months before disappearing, sometimes for years. The clockwork regularity has long pointed researchers toward the hypothalamus, a tiny brain region that regulates circadian rhythms, body temperature, and hormonal cycles. Brain imaging studies have found abnormal activity in the hypothalamus during cluster attacks, specifically a decrease in how the hypothalamus communicates with the brain’s salience network, a set of regions involved in pain control and autonomic regulation.12PubMed. Abnormal coactivation of the hypothalamus and salience network in patients with cluster headache

Cluster headaches also come with vivid autonomic symptoms on the affected side: a watery eye, a drooping eyelid, nasal congestion, facial sweating. These point to dysfunction in the autonomic nervous system, which controls involuntary functions. Research has found that this autonomic imbalance persists even between attack periods. One study documented orthostatic intolerance, changes in pupil function, and increased sweating complaints in cluster headache patients during remission, suggesting that the autonomic disruption is not limited to the attacks themselves but is a more permanent feature of the condition.13Archives of Current Medical Research. Autonomic dysfunction in cluster headache patients in remission Separate research found that heart rate variability was significantly reduced and norepinephrine levels trended upward during remission, reinforcing the idea of a baseline imbalance in the nervous system.14PubMed Central. Autonomic dysfunction in patients with episodic cluster headache during remission period

Common Triggers and Why They Work

Most people with recurring headaches can name their triggers: stress, poor sleep, red wine, skipped meals, weather changes. But the relationship between triggers and headaches is less straightforward than it appears, and at least one popular assumption has it exactly backwards.

Stress is the most frequently reported migraine trigger, yet a diary-based study found something unexpected. It was not peak stress that brought on migraines but the drop in stress afterward. A decline in perceived stress from one evening to the next was associated with increased migraine onset over the following six to eighteen hours, with the odds roughly one and a half to two times higher compared to stable-stress periods.15PubMed Central. Reduction in perceived stress as a migraine trigger: testing the “let-down headache” hypothesis This “let-down headache” pattern helps explain why migraines so often strike on weekends or the first day of vacation rather than during the most stressful moments of the work week.

Hormonal fluctuations are another well-documented trigger, particularly the drop in estrogen that occurs just before menstruation. Estrogen influences the trigeminovascular system, and the premenstrual withdrawal of estrogen appears to lower the threshold for a migraine attack.16PubMed Central. Menstrual migraine is caused by estrogen withdrawal: revisiting the evidence This is why menstrual migraines tend to cluster in the two days before and the first three days of a period, and why some people find their migraines improve after menopause.

Weather changes, particularly drops in atmospheric pressure, have a real if modest effect. One study found that migraine rates increased when atmospheric pressure fell to certain ranges, and the highest migraine frequency occurred when pressure dropped by six to ten hectopascals relative to the local standard.17PubMed Central. Examination of fluctuations in atmospheric pressure related to migraine The mechanism is not fully understood, but changes in pressure may affect the sinuses and intracranial fluid balance.

Dehydration occupies a complicated place in the trigger list. It can provoke headaches on its own, but it more often worsens an underlying headache condition. Interestingly, intravenous fluids given in the emergency department for acute migraine attacks have not been shown to improve pain outcomes, suggesting that simple fluid replacement is not enough once a migraine is underway. However, maintaining normal hydration can help manage certain secondary headaches related to fluid balance, and preventing dehydration may reduce the frequency of attacks in susceptible people.18PubMed Central. Dehydration and Headache

Some researchers have proposed that many of these diverse triggers share a common downstream pathway: oxidative stress. Alcohol, certain foods, bright light, and hormonal shifts all generate reactive oxygen species as a byproduct of how the body processes them. This oxidative burden may lower the threshold for trigeminal activation in people already predisposed to headaches.19PubMed. Migraine Triggers and Oxidative Stress: A Narrative Review and Synthesis

When Painkillers Become the Cause

One of the cruelest ironies in headache medicine is that the drugs people take for headaches can, if used too often, become a headache trigger themselves. Medication overuse headache develops when acute headache treatments (over-the-counter painkillers, triptans, or combination analgesics) are used frequently enough that the brain adapts to their regular presence. Several mechanisms have been proposed: repeated activation of pain pathways may sensitize the central nervous system, the drugs may directly impair the brain’s built-in ability to suppress pain, and chronic use may alter serotonin signaling and produce structural changes in brainstem regions that regulate pain.20PubMed. Medication overuse headache from antimigraine therapy: clinical features, pathogenesis and management The general guideline is that using acute headache medication more than two or three days per week for an extended period increases the risk. Withdrawal from the overused medication typically worsens headaches for a few weeks before things improve.

Genetics and the Excitable Brain

Why do some people get frequent migraines while others never have one? Genetics clearly plays a role, though common migraine involves dozens or hundreds of small genetic contributions rather than a single gene. The clearest genetic insights come from a rare inherited form called familial hemiplegic migraine, where single gene mutations cause the entire syndrome. Mutations in genes encoding calcium channels (CACNA1A on chromosome 19) and sodium channels (SCN1A on chromosome 2) have both been identified in affected families.21PubMed. Familial hemiplegic migraine: a ion channel disorder22The Lancet. Mutations in SCN1A, encoding a neuronal sodium channel, in familial hemiplegic migraine

These mutations affect how ions flow across nerve cell membranes, making neurons more excitable than normal. In the case of the SCN1A mutation, the sodium channel recovers from inactivation two to four times faster than usual, which would allow nerve cells to fire more rapidly.22The Lancet. Mutations in SCN1A, encoding a neuronal sodium channel, in familial hemiplegic migraine Although most people with migraine do not carry these specific mutations, the finding established migraine as a disorder of neuronal excitability. The common forms likely involve many genes that individually nudge the brain’s threshold for triggering cortical spreading depression or trigeminal activation just a little lower. Sleep, hormones, and environmental triggers push the system the rest of the way over the edge.

The Gut Connection

An emerging line of research connects the gut’s microbial community to headache susceptibility. In animal models, mice whose gut bacteria were wiped out with broad-spectrum antibiotics showed prolonged migraine-like facial pain when exposed to a chemical migraine trigger, along with increased inflammation in the brainstem’s trigeminal relay station. Germ-free mice (raised without any gut bacteria at all) showed the same exaggerated pain response, and transplanting normal gut bacteria into these mice reversed the effect.23PubMed Central. Gut microbiota and migraine These are animal studies, so direct translation to humans requires caution. But they suggest that the bacterial population in your gut may influence how your brain processes pain signals, possibly through effects on inflammation and immune function.

The Brain’s Waste Clearance System

Sleep has long been connected to headaches. Both too little and too much sleep can trigger migraines, and the brain regions that generate headache attacks overlap with regions that regulate sleep architecture.24PubMed. Clinical, anatomical, and physiologic relationship between sleep and headache A newer piece of this puzzle involves the glymphatic system, the brain’s fluid-based waste clearance network that is most active during sleep. Researchers have found that impaired glymphatic function may allow inflammatory molecules, metabolic waste, and vasoactive peptides to accumulate in the spaces around blood vessels and between brain cells. This buildup could promote trigeminal activation, increase neuronal excitability, and contribute to the progression from occasional migraines to chronic ones.25Advanced Neurology. The glymphatic system in migraine: A narrative review of emerging mechanisms, glial biomarkers, and diagnostic imaging approaches Studies using specialized brain imaging have confirmed that glymphatic impairment is associated with several neurological conditions, including migraine.26PubMed Central. The glymphatic system in migraine and other headaches If this line of research holds up, it would provide a mechanistic explanation for why disrupted sleep is such a reliable headache trigger: poor sleep means poor waste clearance, which means the brain sits in its own inflammatory debris.

When Headaches Appear in the Belly

One of the stranger manifestations of headache biology shows up in children who do not have headaches at all. Abdominal migraine and cyclic vomiting syndrome are conditions in which children experience recurrent episodes of severe abdominal pain, nausea, and vomiting lasting hours to days, with complete relief between attacks.27PubMed. Abdominal migraine and cyclical vomiting syndrome The attacks respond to migraine medications, run in families with migraine history, and the children often go on to develop typical migraine headaches later in life. Abdominal migraine affects roughly one to four percent of children.28PubMed Central. Review of Abdominal Migraine in Children These “migraine equivalents” are considered pediatric precursors of migraine, suggesting that the brain wiring that produces migraines is present long before the headaches themselves appear, and that it sometimes expresses itself through the gut-brain axis rather than through head pain.29PubMed Central. Brain to Belly: Abdominal Variants of Migraine and Functional Abdominal Pain Disorders Associated With Migraine

Secondary Headaches and Red Flags

Everything discussed so far concerns primary headaches, conditions where the headache itself is the disorder. Secondary headaches, by contrast, are symptoms of some other problem: an infection, a blood vessel abnormality, a head injury, a tumor, or elevated pressure inside the skull. The causes range widely across infectious, inflammatory, vascular, traumatic, and structural origins.30PubMed Central. Secondary headaches – red and green flags and their significance for diagnostics Most headaches are primary and benign, but certain features should prompt a visit to a doctor: a sudden, explosive onset (sometimes described as the worst headache of your life), headaches that change dramatically in character, a new headache after age fifty, headaches with fever and a stiff neck, or headaches accompanied by neurological symptoms like weakness, confusion, or vision loss that do not follow a familiar aura pattern. These “red flags” help clinicians distinguish routine headaches from emergencies like bleeding inside the skull or meningitis.

Why Evolution Kept Headaches Around

Given how common and disabling migraines are, affecting roughly one in seven adults worldwide, it seems odd that natural selection has not weeded them out. Several evolutionary explanations have been proposed. One view frames migraine as a defense mechanism: the nausea, sensitivity to light and sound, and withdrawal behavior during an attack resemble a “sickness behavior” response that forces the individual to disengage from their environment and rest, potentially allowing recovery from whatever stressor triggered the episode.31PubMed. What is the evolutionary advantage of migraine? Other explanations include the idea that migraine-prone nervous systems carry benefits in other domains (a genetic trade-off), or that modern environments with artificial lighting, processed food, and chronic psychological stress push an ancient system past its design limits.

Cluster headaches, interestingly, may represent the opposite behavioral strategy. Whereas migraine drives you to lie still in a dark room, cluster headaches drive agitation and restless pacing, more consistent with a fight-or-flight response. Researchers have suggested these contrasting patterns reflect two distinct but equally ancient defensive programs: one aimed at disengagement from the environment and the other at mobilizing for emergency action.32PubMed. Pain as an evolutionary necessity Whether these evolutionary stories are correct is difficult to prove, but they offer a useful frame for understanding why headaches are not simply “broken” pain systems. They may be functional systems misfiring in contexts they were never designed for.