Headaches occur because pain-sensitive tissues in and around your skull get irritated, stretched, compressed, or inflamed. The brain itself has no pain receptors. The pain you feel comes from surrounding structures, particularly the meninges (the protective layers wrapping the brain), blood vessels, muscles, and nerves in the head and neck. Roughly 40% of the global population, about 3.1 billion people, experiences an active headache disorder.
Why the Brain Doesn’t Hurt (But Everything Around It Does)
The meninges are the only pain source inside the skull. These thin membranes surround and protect the brain, and they’re packed with sensory nerve fibers, primarily from the trigeminal nerve, the major nerve responsible for sensation across your face and head. The nerve endings in the meninges respond to chemical, mechanical, and thermal signals, much like pain sensors elsewhere in the body.
When these nerve endings detect something harmful, they fire pain signals. What counts as “something harmful” is broad: inflammatory molecules like prostaglandins and histamine, physical compression or stretching of tissue, changes in blood vessel diameter, and shifts in the chemical environment around the brain. Different triggers activate different pathways, which is why headaches feel so different depending on what’s causing them.
Once these meningeal nerve fibers are activated, they release signaling molecules from their own nerve endings, creating a feedback loop. These molecules cause nearby blood vessels to widen and become more permeable, letting fluid and immune cells leak into surrounding tissue. This process, called neurogenic inflammation, amplifies the pain signal and can make the headache worsen over time.
How Tension Headaches Develop
Tension headaches, the most common type, typically feel like a band of pressure around the head. They start with the muscles and soft tissue surrounding the skull. When pericranial muscles (the muscles around your scalp, temples, and neck) contract excessively or develop trigger points, they can become ischemic, meaning blood flow drops below what the tissue needs. This causes the release of pain-producing substances that irritate local nerve endings.
People who get occasional tension headaches tend to have heightened sensitivity in these peripheral nerve endings. But something different happens when tension headaches become chronic. The nervous system itself changes. Repeated pain signals from the muscles train the brain and spinal cord to amplify incoming signals, a process called central sensitization. At that point, stimuli that wouldn’t normally register as painful, like light pressure on the scalp, can trigger a headache. This is why chronic tension headaches can feel like they happen for no reason at all: the pain system has become overly responsive.
What Happens During a Migraine
Migraines involve a more complex chain of events. The trigeminal nerve releases a signaling molecule called CGRP from both its peripheral endings in the meninges and its central connections in the brainstem. At the meninges, CGRP promotes inflammation around blood vessels. In the brainstem, it excites the neurons that relay pain signals to the brain, making them more reactive.
Many migraines also involve a phenomenon called cortical spreading depolarization, a slow wave of intense electrical activity that rolls across the brain’s surface. This wave is what produces the visual disturbances (auras) some people experience before the pain starts. As it passes, it forces brain cells to dump inflammatory chemicals into the surrounding fluid. These chemicals seep through to the meninges and directly activate the pain-sensing nerve fibers there. It’s essentially the brain creating the conditions for its own headache.
CGRP release can be triggered through at least two distinct pathways. One responds to standard nerve signals and can be blocked by common migraine medications. The other is activated by acidic conditions and works through a completely separate channel, which may explain why some migraines don’t respond well to certain treatments.
Cluster Headaches and the Hypothalamus
Cluster headaches are rarer but far more intense, often described as the worst pain a person can experience. They strike on one side of the head, usually around or behind the eye, and come with distinctive autonomic symptoms: a drooping eyelid, tearing, nasal congestion, or facial sweating on the affected side.
Brain imaging studies have identified the posterior hypothalamus as the key driver. The hypothalamus is the brain’s internal clock, regulating sleep cycles, hormone release, and body temperature. This explains the clockwork regularity of cluster headaches, which tend to strike at the same time of day and cluster into weeks-long episodes that recur seasonally. The hypothalamus appears to trigger the trigeminal-autonomic reflex, simultaneously activating pain pathways through the trigeminal nerve and autonomic pathways that produce the distinctive eye and nasal symptoms.
Common Everyday Triggers
Dehydration
When your body loses more fluid than it takes in, blood becomes more concentrated. The brain responds by losing water volume, which pulls it slightly away from the skull. This creates traction on the meninges and the veins that bridge between the brain and skull, stretching pain-sensitive tissue. It’s essentially a mild version of what happens with more serious conditions that reduce brain volume. Rehydrating typically reverses the process, though it can take time.
Caffeine Withdrawal
Caffeine works by blocking adenosine receptors in the brain. Adenosine is a molecule that promotes sleepiness and widens blood vessels. If you drink caffeine regularly, your brain compensates by building more adenosine receptors, increasing its sensitivity to adenosine. When you suddenly stop or significantly cut back on caffeine, all those extra receptors are suddenly flooded with adenosine. Blood vessels in the brain dilate, increasing cerebral blood flow, and the result is a throbbing headache along with fatigue and difficulty concentrating. This is why gradually tapering caffeine works better than quitting abruptly.
Secondary Headaches
Not all headaches originate from the headache system itself. Secondary headaches are caused by another condition: sinus infections, medication overuse, neck injuries, hormonal changes, or more serious problems like bleeds or tumors. The International Headache Society classifies a headache as secondary when it develops in close time relation to a known causative disorder and worsens or improves in parallel with that disorder. Even a headache that feels exactly like a migraine or tension headache can be secondary if it appeared alongside another condition.
Red Flags That Signal Something Serious
Most headaches are uncomfortable but not dangerous. A small percentage, however, point to conditions that need urgent attention. Neurologists use a screening checklist to identify warning signs, including:
- Sudden, explosive onset (thunderclap headache reaching maximum intensity within seconds)
- Neurological symptoms like weakness, vision loss, confusion, or decreased consciousness
- Fever and systemic illness accompanying the headache
- New headache pattern that is distinctly different from your usual headaches
- First significant headache after age 65
- Headache after head trauma
- Positional headache that dramatically changes with standing or lying down
- Progressive worsening over days or weeks without relief
- Headache triggered by coughing, sneezing, or exertion
- Weakened immune system (from HIV or immunosuppressive treatment)
Any of these features, especially a sudden thunderclap headache or neurological changes, warrants immediate medical evaluation. The vast majority of headaches are primary, meaning the headache itself is the condition. But when the pattern changes or the presentation is unusual, it’s worth getting checked.