A headache is produced when nociceptors in the meninges, blood vessels, and cranial muscles send danger signals through the trigeminal nerve to the brainstem, and higher brain circuits then interpret that input as pain. The brain tissue itself feels nothing. The pain arises from the protective layers and plumbing around it, plus the neural system that decides how much those signals matter.
That distinction matters because it explains why headaches vary so much. A hangover, a migraine, and a tension headache all use overlapping machinery but different triggers and different degrees of nerve sensitization. Understanding the pathway also clarifies which symptoms are routine and which require urgent medical attention.
The trigeminal pain pathway
The head's pain sensors cluster along the trigeminal nerve, which has three main branches serving the forehead, midface, and jaw. These nerve endings wrap around meningeal blood vessels and sit embedded in the scalp and neck muscles. When they detect stretch, inflammation, or chemical irritation, they fire.
The signal travels to the trigeminal nucleus caudalis in the brainstem, an area that also receives input from the upper neck. That convergence is why neck strain and head pain often travel together. From the brainstem, second-order neurons carry the signal to the thalamus, which acts as a relay station, and onward to the somatosensory cortex, where the location and intensity of pain become conscious.
The brain does not passively receive this signal. It runs the input through expectations, attention, and emotional state, which is why the same level of nerve activation can feel mild in one context and disabling in another. Pain is constructed, not merely transmitted.
Why migraine happens: the sensitization cascade
Migraine involves a wave of altered electrical activity called cortical spreading depression that moves across the brain's surface at roughly 3 to 5 millimeters per minute. This wave can produce the visual aura some people experience before pain begins. It also activates meningeal nerve endings.
Once activated, those nerve endings release calcitonin gene-related peptide (CGRP), a signaling molecule that dilates meningeal blood vessels and promotes inflammation. CGRP levels rise during migraine attacks, and drugs that block CGRP or its receptor have proven effective for prevention and acute treatment, which confirmed the molecule's central role.
Repeated activation sensitizes the pathway. Peripheral sensitization makes nerve endings respond to stimuli that normally would not hurt. Central sensitization then amplifies signals within the brainstem and thalamus, which is why light, sound, and touch become unbearable during an attack and why the pain can outlast the original trigger.
Quantified context: how common and how costly
Headache disorders are among the most prevalent conditions worldwide. Tension-type headache and migraine each affect roughly a billion people globally at some point in their lives, according to World Health Organization estimates. Migraine alone ranks among the leading causes of years lived with disability, disproportionately affecting women.
In the United States, migraine affects about 1 in 6 adults over a 3-month period, and roughly 1 in 5 women compared with about 1 in 16 men, based on CDC survey data. The sex difference reflects hormonal, genetic, and possibly inflammatory factors rather than toughness or pain tolerance.
Frequency drives clinical classification. Episodic migraine means fewer than 15 headache days per month. Chronic migraine means 15 or more headache days monthly, with at least 8 meeting migraine criteria. That 15-day threshold recurs across guidelines because it marks a shift in treatment strategy.
How the common headache types differ
| Feature | Tension-type | Migraine | Cluster | Medication overuse |
|---|---|---|---|---|
| Typical pain | Pressing, both sides | Pulsing, often one side | Severe, around one eye | Daily, variable |
| Duration | 30 min to days | 4 to 72 hours | 15 min to 3 hours | Most days |
| Associated symptoms | None or mild | Nausea, light and sound sensitivity | Tearing, nasal congestion, restlessness | None specific |
| Triggers | Stress, posture, sleep loss | Hormones, weather, foods, stress | Alcohol, sleep changes, seasonal | Frequent acute drug use |
| Key mechanism | Muscle and fascia sensitization | Trigeminovascular activation, CGRP | Hypothalamic and autonomic activation | Rebound sensitization |
| Typical approach | Lifestyle, simple analgesics | Acute and preventive drugs, CGRP blockers | Oxygen, specific prescriptions | Withdraw the overused drug |
Cluster headache is far rarer than migraine but far more intense. It strikes in attacks and often follows a circadian pattern, which points to hypothalamic involvement rather than the meningeal pathway alone. The restlessness during attacks, with pacing or rocking, contrasts sharply with the stillness migraine sufferers often seek.
Timeline: from trigger to resolution
| Phase | Typical timing | What happens |
|---|---|---|
| Prodrome | Hours to 2 days before | Hypothalamic changes; mood, appetite, or yawning shifts |
| Aura | 5 to 60 minutes before pain | Cortical spreading depression; visual or sensory changes |
| Pain onset | Minutes to hours | Trigeminal activation; CGRP release; vessel dilation |
| Peak | 1 to 4 hours in | Central sensitization; nausea; sensitivity to light and sound |
| Resolution | Hours to 2 days | Gradual desensitization; lingering fatigue |
| Postdrome | Up to 1 to 2 days after | Exhaustion, cognitive fog, neck soreness |
Not every headache follows this arc. Tension-type headaches often skip prodrome and aura entirely. Medication overuse headaches can blur the phases together into a near-continuous state.
Counterintuitive detail and professional caveat
The brain contains no pain receptors, so the organ generating the experience of pain cannot feel injury itself. Head pain always originates in surrounding tissue or in the nerve pathways serving it. This is why surgeons can operate on the brain while the patient is awake and why the source of a headache is rarely where the pain seems to be.
A caveat clinicians emphasize: headache intensity alone is a poor guide to seriousness. A mild but new and progressive headache in an older adult can signal something dangerous, while a severe recurrent headache matching a familiar pattern is usually benign. Pattern, timing, and accompanying symptoms carry more diagnostic weight than the pain score.
Misconceptions worth correcting
One common belief is that sinus pressure explains most facial headaches. True sinusitis does cause headache, but studies of people with self-diagnosed sinus headache often find migraine instead. Nasal congestion and facial pressure can accompany migraine through autonomic activation.
Another myth holds that headaches come from the brain swelling or from high blood pressure. Routine blood pressure fluctuations rarely cause headache, and brain swelling produces additional neurological signs, not isolated pain. The pain machinery sits around the brain, not inside it.
A third is that pain relievers are harmless if taken often. Overuse paradoxically increases headache frequency, a phenomenon called medication overuse headache. The threshold commonly cited is use on 10 or more days per month for certain combination drugs or triptans, and 15 or more days per month for simple analgesics, sustained over roughly 3 months.
Practical actions and thresholds
Keeping a headache diary for 4 to 6 weeks is the highest-yield first step. Record timing, duration, triggers, and what helped. Patterns that are invisible day to day become obvious across a month, and clinicians rely on this record far more than on a single visit's description.
Track the days per month you use acute pain medication. If you cross roughly 10 to 15 days per month depending on drug class, raise it with a clinician before the pattern becomes entrenched. That conversation prevents a treatable episodic problem from becoming a chronic one.
For known triggers, address sleep regularity, hydration, and skipped meals first. These are low-cost, low-risk levers with measurable benefit. Caffeine deserves specific attention: regular intake above roughly 200 milligrams daily, about two cups of coffee, is associated with higher headache frequency in some studies, though the relationship is not uniform.
For recurrent migraine with a consistent pattern, ask a clinician about preventive options rather than relying only on acute drugs. Prevention targets the sensitization cascade described above. It is a different strategy from pain relief, and mixing them up is a common source of frustration.
Red-flag warnings
Sudden severe headache reaching maximum intensity within seconds, often called thunderclap headache. Headache with fever and stiff neck, or with new confusion, weakness, or vision loss. New headache after age 50, or a headache pattern that steadily worsens over weeks. Headache after head trauma, or one that wakes you from sleep or worsens with coughing or straining. Headache during pregnancy or the postpartum period that is new or unusual.
These features do not confirm a serious cause, but they change the urgency of evaluation. Clinicians use them to decide who needs imaging or same-day assessment.
Limits of current understanding
The pathway above is well established, but the trigger-to-attack conversion remains incompletely mapped. Why one person's migraine begins after a poor night's sleep while another's begins after a hormonal shift is not fully explained by current models. Cortical spreading depression, CGRP, and hypothalamic signaling are all supported by evidence, yet their relative weight varies by person and by attack.
Treatment evidence evolves faster than mechanism evidence. Individual responses to preventive drugs vary widely, and some patients respond to one class and not another for reasons researchers are still working out. This means the mechanism explanation informs strategy but cannot predict which treatment will work for a given person.
What can be concluded with confidence is structural: head pain is generated by nerve endings around the brain, relayed through the trigeminal and thalamic pathways, and shaped by sensitization and by the brain's own interpretation. That framework explains the major headache types, justifies the emphasis on frequency tracking, and clarifies why some symptoms demand urgent care while most do not.