Why Do Headaches Occur? Causes, Types and Triggers

Headaches occur because pain-sensitive structures in your head, including blood vessels, membranes surrounding the brain, and muscles of the scalp and neck, become irritated, stretched, compressed, or inflamed. Your brain tissue itself has no pain receptors. Every headache you’ve ever felt originated in the surrounding structures: the network of nerves, blood vessels, and muscles that encase your brain. In 2023, an estimated 2.9 billion people worldwide experienced headache disorders, making this one of the most common forms of pain humans deal with.

Your Brain Can’t Feel Pain

This is the central paradox of headaches. The organ that processes all pain signals contains no pain sensors of its own. Brain tissue lacks nociceptors, the specialized nerve endings that detect painful stimuli. The structures that do feel pain sit around and outside the brain: the scalp, the thin tissue covering the skull bones, the meninges (membranes wrapping the brain), and the blood vessels running through and around these layers.

These pain-sensitive structures are wired primarily through the trigeminal nerve, the largest nerve in your head, and the upper cervical nerves in your neck. When something irritates these structures, signals travel along these nerves to your brainstem and up to pain-processing areas in the brain. That’s why headache pain can show up in your forehead, temples, behind your eyes, or the back of your head, depending on which branch of the nerve system is activated.

Primary vs. Secondary Headaches

Headaches fall into two broad categories. Primary headaches are conditions in their own right, not symptoms of something else. Tension headaches, migraines, and cluster headaches are all primary headaches, each driven by a distinct biological mechanism. Secondary headaches are symptoms of another condition: dehydration, infection, medication overuse, a head injury, or rarely something more serious like a bleed or tumor. Most headaches people experience are primary.

How Tension Headaches Develop

Tension headaches, the most common type, feel like a band of pressure squeezing around your head. They start with increased sensitivity in the muscles and soft tissues of the scalp, jaw, and neck. Stress, poor posture, eye strain, or clenching your jaw can all trigger this heightened sensitivity in peripheral nerves.

When these irritated nerves fire repeatedly, they send a barrage of pain signals to the central nervous system. Over time, this bombardment can change how your spinal cord and brain process pain, making them more reactive to stimuli that wouldn’t normally hurt. This is called central sensitization, and it helps explain why tension headaches can become chronic. What begins as sore muscles gradually rewires pain processing, so the headache persists even after the original muscle tension has eased. Research shows that medications targeting this sensitization process are effective in relieving tension headache pain, which supports the idea that this central nervous system change is a key driver of the condition.

What Happens During a Migraine

Migraines involve a more complex chain of events. The process centers on the trigeminovascular system, a network where trigeminal nerve fibers wrap around the large blood vessels of the brain and its surrounding membranes. When this system activates, the nerve endings release signaling molecules into the walls of blood vessels. The most important of these is CGRP (calcitonin gene-related peptide), a protein that dilates blood vessels and triggers inflammation in the tissue around them.

This inflammation isn’t like the swelling you get from a sprained ankle. It’s a neurogenic inflammation, meaning it’s driven by the nerve itself rather than by an infection or injury. The inflamed blood vessels become swollen, surrounding tissues leak fluid, and nearby nerve fibers become even more sensitive. This creates a feedback loop: inflammation activates more nerve fibers, which release more inflammatory molecules, which worsens the inflammation. That’s why migraines can intensify over hours and persist for days.

Serotonin plays a complicated role. While it dampens pain signals inside the brain, it has the opposite effect on trigeminal nerve endings in your head. Research published in The Journal of Pain found that serotonin directly stimulates the release of CGRP from trigeminal pain neurons, essentially amplifying the inflammatory cascade. Interestingly, this effect was observed in female but not male nerve tissue, which may be one reason migraines affect women at roughly twice the rate of men.

Why Cluster Headaches Follow a Clock

Cluster headaches produce some of the most intense pain known to medicine, typically striking on one side of the head around the eye. They earn their name because attacks arrive in clusters, often at the same time of day for weeks or months, then disappear for long stretches.

Brain imaging research published in The Lancet revealed why they’re so clock-like. During an attack, a small region deep in the brain called the hypothalamus lights up on the same side as the pain. The hypothalamus is the body’s master timekeeper, regulating sleep-wake cycles, hormone release, and body temperature. This activation was present only during active cluster periods and disappeared when patients were between bouts. The hypothalamus appears to be the trigger that initiates the attack, which then activates the trigeminal nerve and blood vessel changes that produce the pain. This is why cluster headaches often wake people from sleep at a predictable hour.

Common Triggers and Why They Cause Pain

Many everyday headaches have straightforward physical explanations. Dehydration headaches occur because when your body loses fluid, your brain slightly shrinks and pulls away from the skull. This tugging puts pressure on the pain-sensitive membranes and nerves surrounding the brain, producing an aching pain that typically improves within an hour or two of drinking water.

Caffeine withdrawal headaches have a different mechanism. Caffeine works by blocking adenosine receptors in your brain. Adenosine normally dilates blood vessels and promotes sleepiness. When you drink coffee regularly, your brain compensates by creating more adenosine receptors. If you then skip your usual coffee, all those extra receptors are suddenly available, and adenosine floods in, dilating blood vessels in and around the brain more than normal. That excess dilation triggers pain.

Other common triggers include alcohol (which causes both dehydration and blood vessel changes), disrupted sleep, skipped meals leading to drops in blood sugar, strong smells, bright or flickering lights, and hormonal shifts during the menstrual cycle. In each case, the end result is the same: something irritates or activates the pain-sensitive structures in your head.

Headache Red Flags Worth Knowing

Most headaches are uncomfortable but not dangerous. A few patterns, however, signal something that needs prompt medical evaluation. The American Headache Society uses a set of warning signs to distinguish potentially serious headaches from routine ones:

  • Sudden, explosive onset. A headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache, can indicate a vascular emergency like a brain aneurysm.
  • Neurological symptoms. New weakness in an arm or leg, numbness, vision changes, or difficulty speaking alongside a headache point toward a secondary cause.
  • Fever or systemic illness. A headache paired with fever, night sweats, or weight loss may reflect an infection or inflammatory condition.
  • New headaches after age 50. A first-time headache pattern appearing later in life is more likely to have a secondary cause.
  • Progressive worsening. A headache that steadily becomes more severe or more frequent over days to weeks, rather than coming and going, warrants investigation.
  • Position-dependent pain. Pain that dramatically changes when you stand up, lie down, or strain (coughing, bearing down) can suggest a pressure problem inside the skull.
  • New headaches during or after pregnancy. These can indicate vascular or hormonal complications that need evaluation.

Outside of these red flags, headaches are generally driven by the same basic biology: pain-sensitive structures in your head responding to chemical, mechanical, or inflammatory signals. The type of headache you experience depends on which structures are involved and what set off the process.