Why Do We Get Headaches?

The brain itself can't feel pain, so where does a headache actually come from? Here's what's happening in your nerves, blood vessels, and muscles, and how migraine, tension, and cluster headaches differ.

Medical visualization showing headache pain pathways involving the trigeminal nerve and structures surrounding the brain.

You wake up with a dull pain behind your eyes. You try to ignore it, but as the day goes on, the pain grows. Your head feels heavy. Concentration becomes difficult. Light may start bothering you. You might even feel nauseated.

Quick Answers

  • Where the pain comes from: Not from brain tissue itself, which has no pain receptors, but from pain-sensitive structures around it: the meninges, blood vessels, cranial nerves, scalp, and neck muscles.
  • Main types: Migraine, tension-type headache, and cluster headache have different patterns and mechanisms. [1]
  • When to get urgent help: A sudden “thunderclap” headache, or a headache with weakness, numbness, trouble speaking, confusion, fever with a stiff neck, or after a head injury. In the United States, call 911.

You might wonder what is actually happening inside your brain, but the answer is more complicated than saying that your brain hurts. Most brain tissue itself does not contain pain receptors at all. Headache pain instead arises from pain-sensitive structures around the brain, including the meninges, blood vessels, cranial nerves, scalp, and neck muscles. The nervous system then processes signals from these structures and creates the experience you recognize as pain. So why do we get headaches? To understand that, we need to look at how the head’s pain pathways actually work.

Why Do We Get Headaches? Where Does Headache Pain Come From?

Pain is a protective sensory system. Your nervous system detects signals, processes them, and interprets them, and the resulting experience can alert you that something may need attention. Headache is one example of this process. The brain itself is relatively insensitive to pain, while the structures surrounding it are quite different. The meninges are protective layers surrounding the brain and spinal cord, and some of these structures are pain sensitive. Blood vessels and cranial nerves can also participate in headache pain, as can the scalp and the muscles of the head and neck. When these pain-sensitive structures become activated, signals travel through sensory pathways toward the brain, and one of the most important pathways involves the trigeminal nerve.

Why the Trigeminal Nerve Matters

The trigeminal nerve is the fifth cranial nerve. It has three major divisions, provides sensation to much of the face, and plays a central role in transmitting pain signals from structures around the brain, which makes it especially important in headache disorders. Signals from pain-sensitive structures travel through trigeminal pathways toward the brainstem and other regions involved in pain processing, and the brain then processes those signals as pain. This helps explain why headache pain can be felt around the forehead, temples, eyes, or other parts of the head. The pain’s location does not always tell you exactly where the original signal came from. The upper cervical nerves of the neck also communicate with trigeminal pain pathways, creating an important functional connection between the head and neck.

What Happens During a Migraine?

Neurological visualization of migraine involving trigeminal pathways and sensory processing.
Migraine involves complex changes in neural activity and sensory processing. (CAVELYRA Visual Archive)

A migraine is more than a severe headache. It is a neurological condition involving changes in brain and sensory processing. Migraine can cause throbbing or pulsating pain, often on one side of the head (though both sides can be affected), along with nausea, vomiting, sensitivity to light and sound, and increased sensitivity to movement. [1]

Some people experience an aura before or during an attack. Aura consists of reversible neurological symptoms. Visual symptoms are common, and a person may see flashing lights, zigzag patterns, blind spots, or shimmering areas, while sensory or speech symptoms can also occur. One mechanism associated with migraine aura is cortical spreading depression, a wave of altered neuronal and glial activity that travels across the cerebral cortex. The relationship between this process and the pain phase of migraine is complex, but it demonstrates that migraine involves genuine neurological activity rather than simply changes in blood vessels.

How the Trigeminovascular System Causes Pain

The trigeminal system interacts closely with blood vessels and surrounding tissues. During migraine, trigeminal pathways can become activated, and neuropeptides can be released, including calcitonin gene-related peptide, or CGRP. CGRP can promote vasodilation and influence pain signaling, and this pathway has become an important target in modern migraine treatment, including drugs that block CGRP or its receptor. [2] As migraine develops, pain pathways can become increasingly sensitive, amplifying normal sensory signals and contributing to throbbing pain, light sensitivity, sound sensitivity, nausea, and discomfort with movement.

In some people, this sensitization can produce allodynia, in which a normally non-painful stimulus becomes painful. Touching the scalp, brushing your hair, wearing glasses, or resting your head on a pillow can become uncomfortable during an attack, because the nervous system has become unusually sensitive to incoming signals.

Why Stress, Sleep, and Dehydration Can Trigger Headaches

Headache susceptibility can shift with your physical and environmental state. Stress is a common migraine trigger: during stress, nervous system activity, hormonal signaling, muscle tension, sleep, and eating patterns can all change. Interestingly, some people develop a migraine after a stressful period ends, because the transition from high stress to relaxation can sometimes precede an attack. Sleep has a similar relationship. Too little, too much, or irregular sleep timing can trigger migraine in some people, since the brain’s circadian system interacts with migraine biology. Dehydration can also contribute to headache, particularly with significant fluid loss from heat, sweating, vomiting, diarrhea, or inadequate intake, and skipping meals can trigger headaches in susceptible people by affecting glucose regulation.

These factors do not explain every headache, and a trigger is not necessarily the underlying cause. A person with migraine has an underlying biological susceptibility, while a trigger simply helps activate an attack.

What Is a Tension Headache?

Tension-type headache is one of the most common headache disorders. The pain is often described as pressure or tightening, and some people describe it as feeling like a band around the head. Muscle tension can contribute to discomfort around the scalp and neck, and stress, prolonged screen use, poor posture, and sustained muscle contraction can all increase that discomfort. But tension headache is not simply a problem of tight muscles, because the nervous system also plays an important role in pain processing, which is why several factors can contribute at once. You might spend hours at a computer, hold your head in one position, tense your shoulders, become visually fatigued, and forget to drink enough water, and the resulting headache may reflect several interacting influences rather than one isolated cause.

How Cluster Headache Is Different

Cluster headache is very different from migraine. The pain is extremely severe and often occurs around or behind one eye. Attacks are relatively short compared with migraine, but they can occur repeatedly, sometimes in patterns called clusters. The affected eye may become red, tearing can occur, the eyelid may droop, and the nose may become blocked or run. Unlike many people with migraine, someone experiencing a cluster headache may become restless rather than wanting to lie still.

Cluster headache belongs to a group called trigeminal autonomic cephalalgias, because trigeminal pain pathways occur alongside characteristic autonomic symptoms. [1] The hypothalamus also appears to play an important role, and attacks can occur at predictable times, suggesting a strong relationship with biological rhythms.

Why Headaches Can Keep Coming Back

Repeated headaches can involve changes in the sensitivity of the nervous system, a process called sensitization, in which pain pathways become more responsive and normal sensory signals become increasingly uncomfortable. Frequent headaches can also create a cycle involving pain medication. A medication may relieve the headache temporarily, but frequent use of acute headache medicines can contribute to medication-overuse headache, with the exact risk depending on the medication. [1] This is why repeated reliance on acute medication deserves attention. If you need headache medicine frequently, discussing the pattern with a healthcare professional can help address the underlying disorder rather than repeatedly suppressing individual attacks.

Can Daily Habits Help Prevent Headaches?

For people with recurrent headaches, consistency can matter. Regular sleep can reduce variability in migraine susceptibility, regular meals can reduce the effects of skipped meals, and adequate hydration can help prevent dehydration-related headaches. Regular physical activity may reduce migraine frequency for some people, although intense exercise can trigger attacks in others. Stress-management strategies can help too: relaxation training, mindfulness, biofeedback, and cognitive behavioral approaches can influence pain processing and may reduce headache-related disability for some people. None of this means headaches are imaginary. Pain is a real neurological experience, and psychological and behavioral approaches can influence the nervous system without implying that the pain is “all in your head.”

How to Identify Your Headache Triggers

A headache diary can reveal patterns that are difficult to notice otherwise. Record when the headache starts, how long it lasts, how severe it becomes, where the pain occurs, which symptoms accompany it, what you ate, how you slept, your caffeine intake, stress levels, menstrual cycle when relevant, medications, and possible triggers. After several weeks, patterns may become clearer: you may notice headaches repeatedly following irregular sleep, skipped meals, certain hormonal changes, or frequent medication use. The goal is not to eliminate every possible trigger, but to look for consistent personal patterns and discuss them with a healthcare professional when headaches are recurrent or disabling.

When Does a Headache Need Medical Attention?

Most headaches are not caused by dangerous conditions, but certain patterns require urgent evaluation. A sudden headache that reaches maximum intensity within seconds or minutes, often called a thunderclap headache, can be a medical emergency. A headache accompanied by weakness, numbness, difficulty speaking, confusion, loss of consciousness, severe imbalance, or a new seizure can indicate a serious neurological problem. Severe headache with fever and marked neck stiffness can occur with meningitis, and a new or worsening headache after significant head trauma also requires medical assessment. In the United States, call 911 or go to the nearest emergency department for any of these.

New severe headaches during pregnancy or shortly after delivery deserve particular attention, since serious conditions can present with headache. A new headache pattern later in life, or a headache occurring in someone with cancer or significant immune suppression, may also require careful evaluation. Mayo Clinic’s headache overview lists many of these warning signs. [3] The key point is not to panic over an ordinary headache. It is to recognize when the pattern is substantially different from your usual experience.

Why Headache Is More Than “Just Pain”

Medical visualization representing migraine, tension-type headache, and cluster headache mechanisms.
Migraine, tension-type headache, and cluster headache involve different biological patterns. (CAVELYRA Visual Archive)

Different headache disorders involve different biological patterns. Migraine can involve neurological changes, trigeminal activation, CGRP signaling, sensory hypersensitivity, nausea, and aura. Tension-type headache often involves pressure or tightening with contributions from both peripheral tissues and pain-processing systems. Cluster headache produces severe pain with characteristic autonomic symptoms and a strong relationship with biological rhythms. Secondary headaches arise from another condition, such as infection, bleeding, trauma, or other disease.

The distinction matters because treatment depends on identifying the correct headache disorder. A migraine is not the same as a tension-type headache, a cluster headache is not simply an unusually severe migraine, and a new secondary headache requires attention to its underlying cause.

What Is the Practical Approach to Headaches?

For occasional, mild headaches, simple measures may help: protect your sleep, eat regularly, stay adequately hydrated, take breaks from prolonged screen use, move regularly rather than remaining in one position for hours, and manage stress where possible. Use appropriate acute medication when needed and follow recommended dosing. If headaches become frequent, track them and review your medication use. Preventive treatment may be appropriate when headaches occur often or significantly interfere with daily life. Modern migraine treatment includes several options, including CGRP-targeted therapies, while other preventive medications and behavioral approaches may also be appropriate depending on the diagnosis. [2][4] The correct approach depends on the individual.

The Headache Is Real, Even When the Mechanism Is Complex

Factors such as sleep, stress, dehydration, and hormones influencing headache-related pain pathways.
Sleep, stress, hydration, hormones, and other factors can influence headache susceptibility. (CAVELYRA Visual Archive)

A headache can feel simple: your head hurts. But underneath that experience is a complex interaction between sensory nerves, meninges, blood vessels, muscles, brainstem networks, the hypothalamus, and higher brain regions involved in pain processing. The trigeminal system is central to many headache disorders, and migraine can involve neural sensitization, CGRP signaling, aura, and increased sensitivity to light, sound, movement, and touch. Mayo Clinic’s migraine overview gives clinical symptom and warning-sign context. [4] Stress, sleep changes, dehydration, skipped meals, hormones, caffeine, and other factors can influence susceptibility, and frequent medication use can sometimes make recurrent headaches worse.

Anatomical overview of brain surrounding structures, trigeminal pathways, blood vessels, and pain processing.
Headache involves interactions among pain-sensitive structures, sensory pathways, and brain regions involved in pain processing. (CAVELYRA Visual Archive)

Key Takeaways

  • Headache pain usually comes from pain-sensitive structures around the brain rather than from the brain tissue itself. The meninges, blood vessels, cranial nerves, scalp, and neck can all contribute.
  • The trigeminal nerve plays a central role in transmitting pain signals from structures around the brain.
  • Migraine is a neurological disorder involving complex changes in brain and sensory processing. CGRP is an important molecule in migraine pain signaling and a target of several modern migraine therapies.
  • Stress, sleep changes, dehydration, skipped meals, hormones, caffeine, and other factors can trigger headaches in susceptible people.
  • Tension-type headache, migraine, and cluster headache have different patterns and mechanisms, and nervous system sensitization can amplify pain and contribute to symptoms such as allodynia.
  • Frequent use of acute headache medication can contribute to medication-overuse headache.
  • Most headaches are not emergencies, but sudden severe pain, or headache with neurological symptoms, fever and neck stiffness, trauma, pregnancy-related concerns, or a major change in pattern, requires medical evaluation.

Conclusion

A headache can feel as though something is simply hurting inside your brain. The biology tells a different story. Pain-sensitive structures around the brain send signals through sensory pathways, especially the trigeminal system, and the nervous system processes those signals to create the experience of pain. Different headache disorders involve different combinations of neural activity, sensory processing, blood vessels, muscles, hormones, sleep, stress, and other factors. That complexity explains why one person may experience throbbing migraine with nausea and light sensitivity, while another experiences pressure around the head or severe pain around one eye. It also explains why managing recurrent headaches requires more than repeatedly treating the pain itself.

Understanding your pattern matters. So do sleep, hydration, regular meals, appropriate medication use, trigger tracking, and preventive treatment when necessary. And when a headache is sudden, unusually severe, or accompanied by concerning symptoms, recognizing the warning signs matters even more. Headache is common, but it is not simple. It is a real neurological experience produced by an intricate interaction between your nervous system and the structures surrounding your brain.

Explore more evidence-informed explanations of the body and everyday health in CAVELYRA’s Body & Health collection.

References

  1. Headache Classification Committee of the International Headache Society. The International Classification of Headache Disorders, 3rd edition. Cephalalgia. 2018;38(1):1–211. doi:10.1177/0333102417738202
  2. Edvinsson L, Haanes KA, Warfvinge K, Krause DN. CGRP as the target of new migraine therapies: successful translation from bench to clinic. Nature Reviews Neurology. 2018;14(6):338–350. doi:10.1038/s41582-018-0003-1
  3. Mayo Clinic. “Headache: Causes.” mayoclinic.org
  4. Mayo Clinic. “Migraine: Symptoms and causes.” mayoclinic.org

Keep Reading

By CAVELYRA Editorial

Written and researched by the CAVELYRA editorial team. We turn complex ideas about the brain, the body and the universe into clear, everyday explanations — every article researched from trusted scientific sources, with no jargon and no hype.