Why Do You Get Headaches? Causes and Triggers

Headaches happen because pain-sensing nerves around your brain, skull, and blood vessels get activated by triggers ranging from dehydration to stress to changes in brain chemistry. About 40% of the global population, roughly 3.1 billion people, deals with headache disorders. Despite how common they are, the reasons behind them vary widely depending on the type of headache and what set it off.

How Your Brain Registers Headache Pain

Your brain tissue itself can’t feel pain. It has no pain receptors. Instead, headache pain comes from the network of nerves, blood vessels, and muscles surrounding your brain and skull. The main player is a large nerve called the trigeminal nerve, which branches across your face and head. When something irritates or activates this nerve, it sends pain signals that you experience as a headache.

In migraines, the process is more specific. During an attack, your trigeminal nerve releases a signaling molecule that sensitizes surrounding nerve endings, making them overreact to stimuli that wouldn’t normally cause pain. This is why light, sound, or even gentle touch on your scalp can feel painful during a migraine. People measured during acute migraine attacks have elevated levels of this molecule in their blood and saliva compared to people without migraines. For those with chronic migraines, levels stay elevated even between attacks, which helps explain why frequent migraines can make you increasingly sensitive over time.

Tension Headaches and Muscle Strain

The most common type of headache is the tension headache, which feels like a tight band squeezing around your head. These typically result from sustained contraction of the muscles in your scalp, neck, and shoulders. Sitting at a desk for hours, clenching your jaw, poor posture, or emotional stress can all keep these muscles locked in a contracted state. The sustained tightness irritates surrounding nerve fibers and produces that dull, pressing ache on both sides of your head.

Unlike migraines, tension headaches rarely come with nausea, vomiting, or sensitivity to light. They tend to build gradually rather than hitting suddenly, and they respond well to movement, stretching, or simply taking a break from whatever position you’ve been holding.

Dehydration Shrinks Brain Tissue

When you don’t drink enough water, your brain and surrounding tissues physically contract. As your brain shrinks slightly, it pulls away from the inside of your skull. This tugging puts pressure on the pain-sensing nerves that line the space between your brain and skull, producing a headache that can range from mild to severe.

Dehydration headaches often feel like a dull ache that worsens when you bend over, walk, or move your head. They tend to improve within 30 minutes to a few hours of drinking water, though a severe case may take longer to resolve. Heat, exercise, alcohol, and illness (especially anything involving vomiting or diarrhea) all accelerate fluid loss and raise your risk.

What Caffeine Does to Your Brain

Caffeine works by blocking the receptors for a naturally occurring brain chemical called adenosine. Under normal conditions, adenosine quiets electrical activity in your brain and widens blood vessels. Caffeine blocks those effects, which is why it makes you feel alert and can relieve headaches in the short term by narrowing blood vessels.

The problem comes with regular use. Your brain adapts by changing the number and sensitivity of its adenosine receptors. Once you’ve adjusted to daily caffeine, your brain essentially needs it to function at baseline. When you skip your usual coffee or tea, adenosine floods those receptors unopposed, blood vessels in your brain dilate significantly, and blood flow surges. That rapid expansion triggers a withdrawal headache, usually starting 12 to 24 hours after your last dose. It’s one of the most common and most overlooked causes of recurring headaches.

Medication Overuse Creates a Cycle

If you regularly take pain relievers for headaches (or even for other conditions like arthritis), you can develop medication overuse headaches. The pattern is counterintuitive: the very medicine you take for relief starts causing more frequent headaches as your body grows dependent on it. This applies to most common pain relievers when used more than two or three days per week over several months. The headaches typically improve once the overused medication is reduced, though there’s often a rough withdrawal period of increased pain lasting days to weeks.

Weather and Pressure Changes

Some people reliably get headaches before a storm rolls in, and the mechanism is real. Changes in barometric pressure, the weight of the atmosphere pressing against your body, can trigger headaches in sensitive individuals. During storms, the mixing of cold and warm air creates rapid shifts in pressure and temperature. For some people a drop in pressure is the trigger; for others, a quick rise in temperature does it.

This isn’t limited to dramatic weather. Even a shift from cloudy to bright sun can set off a headache. The sensitivity likely involves the same trigeminal nerve pathways that drive migraines, which is why people with a history of migraines tend to be more weather-sensitive.

Other Common Triggers

Beyond the major categories, a wide range of everyday factors can set off headaches:

  • Sleep disruption: Both too little and too much sleep alter brain chemistry in ways that lower your pain threshold. Irregular sleep schedules are a particularly consistent migraine trigger.
  • Skipped meals: Low blood sugar stresses your body and can trigger headache-related nerve pathways, especially if you’re already prone to migraines.
  • Eye strain: Hours of screen time or reading in poor lighting forces the muscles around your eyes to work harder, which can radiate tension into your temples and forehead.
  • Alcohol: Beyond dehydration, alcohol triggers an inflammatory response and affects blood vessel tone in your brain. Red wine is a particularly common culprit due to compounds that directly influence blood vessel dilation.
  • Hormonal shifts: Fluctuations in estrogen before and during menstruation are a well-established migraine trigger, which is part of why migraines are roughly three times more common in women than men after puberty.

Headache Warning Signs That Need Attention

Most headaches are painful but not dangerous. A small percentage, however, signal something serious. Clinicians use a structured checklist of red flags to identify these, and you should be aware of the key ones:

  • Sudden, severe onset: A headache that reaches maximum intensity within seconds (“thunderclap” headache) can indicate bleeding in the brain.
  • Neurological changes: Confusion, vision loss, weakness on one side of your body, difficulty speaking, or loss of consciousness alongside a headache needs immediate evaluation.
  • Fever and stiff neck: This combination can point to meningitis or another infection affecting the brain.
  • New headache pattern after age 50: A headache type you’ve never had before starting later in life raises the concern for blood vessel inflammation or other structural problems.
  • Headache after head injury: Even if it starts days later, post-traumatic headaches can indicate bleeding between the skull and brain.
  • Positional headache: Pain that dramatically changes when you stand up or lie down may signal abnormal pressure inside your skull.
  • Progressive worsening: A headache that steadily intensifies over days or weeks without responding to usual treatments warrants investigation.

Any of these patterns is worth getting evaluated promptly, especially if the headache feels fundamentally different from anything you’ve experienced before.