Headaches start in the nervous system, not in the brain itself. Your brain tissue has no pain receptors. Instead, headaches originate from pain-sensitive structures surrounding the brain: the network of nerves, blood vessels, and membranes that wrap around it. What triggers those structures, and how quickly the pain builds, depends on the type of headache.
The Nervous System, Not the Brain, Feels Pain
For decades, doctors believed headaches were purely a blood vessel problem. The theory, developed in the 1940s and 1950s, proposed that blood vessels inside the skull would first constrict, then rebound and dilate, stretching pain-sensitive nerve endings and producing that throbbing ache. But this vascular theory had gaps. It couldn’t explain why many headache sufferers never experience an aura, or why some effective headache medications have no effect on blood vessels at all.
The current understanding treats most headaches as primarily a neurological event with secondary vascular changes. In other words, the nervous system fires first, and blood flow shifts follow. A massive network of nerve fibers called the trigeminal system acts as the final common pathway for headache pain. These fibers thread through the membranes surrounding your brain, and when they become activated or sensitized, they relay pain signals that you experience as a headache. What activates them varies enormously, from inflammation and muscle tension to chemical imbalances and dehydration.
How a Migraine Builds Over Hours or Days
Migraines don’t start when the pain hits. They often begin with a prodrome phase that can last several hours to several days before you feel any head pain at all. During this phase, waves of excitable brain cells fire in sequence, triggering chemical changes that cascade through the brain. Prodrome symptoms vary, but common ones include mood changes (irritability or sudden low mood), fatigue, neck and shoulder stiffness, sensitivity to light or sound, nausea, and difficulty concentrating. Some symptoms are surprisingly specific to migraine: excessive yawning, cravings for particular foods, and frequent urination.
As the process continues, these waves of brain cell activity trigger the release of serotonin, a chemical messenger involved in nerve communication. Serotonin causes blood vessels in and around the brain to narrow. This narrowing is followed by dilation and inflammation around the trigeminal nerve endings in the membranes covering the brain. Those nerve endings then release a powerful signaling molecule called CGRP, which further inflames the surrounding tissue and amplifies the pain signal. This is why newer migraine treatments work by blocking CGRP: they interrupt the process at one of its key escalation points.
Tension Headaches and Muscle-Driven Pain
Tension-type headaches, the most common kind, typically start with sustained contraction of muscles in your scalp, neck, and shoulders. Stress, poor posture, jaw clenching, and eye strain are frequent culprits. When these muscles stay tight for extended periods, they irritate the surrounding nerve endings. The pain usually feels like a band of pressure around your head rather than the pulsing of a migraine. Unlike migraines, tension headaches generally don’t involve nausea, visual disturbances, or sensitivity to light, though severe episodes can overlap with migraine features.
How Food and Drink Trigger Headaches
Certain chemicals in food can kick off the headache process through several routes at once: by altering serotonin and norepinephrine levels, by directly changing blood vessel diameter, or by stimulating the trigeminal nerve pathway. Tyramine, found in aged cheeses and fermented foods, is a well-known trigger. Some people have lower levels of the enzyme that breaks tyramine down, allowing it to enter the bloodstream and disrupt the balance of brain chemicals that regulate blood vessel tone.
Chocolate contains several compounds that can initiate headaches, including phenylethylamine (a naturally occurring stimulant), caffeine, and theobromine. These chemicals can alter blood flow in the brain and trigger norepinephrine release from nerve cells. Processed meats and certain vegetables high in nitrates are another common trigger. Your body converts nitrates into nitrites in the saliva and gut, and nitrites cause blood vessels to dilate, which can set off pain in susceptible people.
Dehydration Headaches and Brain Shrinkage
When you don’t drink enough water, your brain physically shrinks. As the brain contracts from fluid loss, it pulls away slightly from the skull. This tugging puts pressure on the pain-sensitive nerves and membranes surrounding it, producing a headache that often worsens when you stand up, bend over, or move quickly. The fix is straightforward (rehydrate), but the mechanism is striking: you’re essentially feeling your brain tissue temporarily pulling on its own protective lining.
Sleep Loss and Chemical Buildup
Sleep deprivation is one of the most reliable headache triggers, and the mechanism involves a chemical called adenosine. Adenosine naturally accumulates in your brain the longer you stay awake. It’s part of your body’s sleep pressure system, the signal that makes you feel progressively drowsier. During sleep, adenosine clears. But when you don’t sleep enough, adenosine levels stay elevated, and the receptors that respond to it may become imbalanced. This imbalance can affect pain-signaling pathways in the brainstem, contributing to the headache many people feel after a poor night’s sleep or when they first wake up.
Cluster Headaches and the Body’s Clock
Cluster headaches are rarer but among the most painful headache types. They start in a fundamentally different place: the hypothalamus, a small region deep in the brain that runs your internal body clock. Cluster headaches strike in cyclical patterns, often at the same time of day (frequently waking people from sleep), and come in bouts lasting weeks or months before going into remission.
Brain imaging studies published in The Lancet showed activation in the hypothalamus during acute cluster attacks, and this activation was absent when patients were between bouts. Patients with cluster headache also show disrupted circadian markers: blunted nighttime melatonin peaks, altered testosterone levels during active cluster periods, and irregular responses to hormones controlled by the hypothalamus. The body clock region appears to be the origin point, the structure that fires the starting gun for each attack cycle. This is why cluster headaches have such predictable timing, a signature that sets them apart from every other headache type.
Warning Signs That a Headache Is Something Else
Most headaches start through the mechanisms above and, while painful, aren’t dangerous. But some headaches signal a serious underlying problem. Clinicians use a set of red flags to distinguish these secondary headaches from ordinary ones, and they’re worth knowing.
- Sudden, maximum-intensity onset. A headache that reaches its worst within seconds, sometimes called a thunderclap headache, can indicate a ruptured blood vessel or aneurysm. This is probably the single most concerning feature of any headache.
- Neurological symptoms. New weakness in an arm or leg, numbness you haven’t experienced before, or sudden vision changes alongside a headache suggest something beyond a primary headache disorder.
- Systemic symptoms. Fever, night sweats, or unexplained weight loss accompanying new headaches point toward an infection or inflammatory condition.
- New headaches after age 50. A person who develops a new headache pattern for the first time after 50 is more likely to have a secondary cause that needs investigation.
Primary headaches, including migraines, tension headaches, and cluster headaches, all start from within the nervous system itself. Secondary headaches are symptoms of something else: an infection, a vascular problem, a tumor, or another condition putting pressure on pain-sensitive structures. The distinction matters because the treatment and urgency are completely different.

