Headache

An abstract illustration of a headache

Overview

A headache is pain in any part of the head. It is one of the most common causes of pain and a major reason people visit a doctor or miss work or school1. In the United States, about 1 in 6 adults (15.9%) report migraine or severe headache over a 3-month period: 21.0% of women and 10.7% of men, based on 2018 national survey data2. Primary headaches, such as tension-type headache and migraine, happen on their own. Secondary headaches are a symptom of another condition, sometimes a serious one such as a stroke, which needs emergency care1,3.

Emergency warning signs

Doctors group headaches into three types. Primary headaches happen on their own and are not caused by another condition. Secondary headaches are a symptom of another health problem. A third group includes pain from damaged nerves, such as trigeminal neuralgia, and other facial pain1.

Why headaches hurt

The brain itself does not feel pain. Headache pain comes from pain-sensitive nerve endings that respond to triggers or signals in the body, such as stress, certain foods or smells, or some medicines, and send pain messages to the brain. That is why a headache can feel as if it comes from deep inside the head even when the problem is elsewhere1.

How the main types differ

Tension-type headache is the most common type. Migraine affects both children and adults, and women more often than men. Cluster headache is rare but can be the most severe primary headache1.

How the three most familiar primary headaches differ1
TypeWhat the pain feels likeWhereHow longOther signs
Tension-type headacheMild to moderate, steady pressure, often like a tight bandUsually both sides of the head, face, or neck30 minutes to 7 daysNo nausea or vomiting; does not get worse with walking or climbing stairs
MigraineModerate to severe, throbbing or pulsingOne side of the headAttacks that keep coming backMay start with an aura and come with nausea or vomiting; worse with routine activity
Cluster headacheExtremely severe; peaks 5 to 10 minutes after it startsOne side, around or behind one eyeUp to 3 hours; often 1 to 3 attacks a day for weeksRed, teary eye and stuffy or runny nose on the same side; restlessness; often wakes people from sleep

What causes primary headaches

The exact reasons some people get primary headaches are not fully understood. For tension-type headache, research shows that genes, brain signals, and muscle tenderness play important roles, and emotional stress is a key trigger that can tighten muscles in the neck, face, scalp, and jaw. Cluster attacks happen more often at night and at the same time of day, which suggests a link with the body's sleep-wake cycle1.

Triggers are not the same as causes

A trigger does not create the headache condition, but it can set off an attack in someone who has it. Common triggers include emotional stress, too little or poor-quality sleep, changes in eating or sleep patterns, dehydration, alcohol, weather changes, and long periods in postures that strain the head or neck, such as reading or looking at a computer or phone. Alcohol, especially red wine, and smoking can set off cluster attacks1. Triggers differ from person to person, so a headache diary is the best way to find yours (see how to keep a headache diary).

Secondary headaches

A secondary headache is a symptom of another condition that presses on, pulls, or pushes pain-sensitive nerve endings. Possible causes include1:

  • Blood vessel disorders in the brain:

    Including stroke.

  • Giant cell arteritis:

    Inflammation of the arteries, usually in the scalp, neck, and arms, that almost always affects people over 50. It can cause headaches, pain and tenderness over the temples, jaw pain, and double vision or vision loss, and early treatment is important4.

  • Brain tumor
  • Brain injury
  • Infection: Such as meningitis, swelling of the lining of the brain and spinal cord. Its most common symptoms are fever, headache, and a stiff neck, and anyone with them should see a healthcare provider right away5.
  • High blood pressure
  • Seizures
  • Substance misuse or withdrawal
  • Changes in routine:

    Such as air travel or fasting.

Anyone can get headaches, and some headache conditions run in families. Some groups are more likely to have particular types1:

  • Women:

    Tension-type headache and migraine are more common in women.

  • Men and people who smoke:

    Cluster headache is more common in men and in smokers.

  • Teens and younger adults:

    Tension-type headache usually begins around puberty and peaks in a person's 30s.

  • Tiredness and poor sleep:

    People who often feel tired and have trouble sleeping are more likely to have tension-type headache.

  • Depression or migraine:

    People with a history of depression or migraine are more likely to have tension-type headache.

Headaches vary in how often they happen and how much they hurt. Some come and go (episodic); others last for days or weeks at a time (chronic). The pain ranges from mild to severe and may come with nausea or extra sensitivity to noise or light1. The table in What Is Headache? shows how the main types usually feel.

When a headache is not typical

A headache that is very different from your usual pattern deserves attention: one that starts suddenly and severely, keeps getting worse over days or weeks, appears for the first time after age 50, or comes with fever, confusion, weakness, or vision problems. These features are listed with the right action under When to Seek Medical Care. Talk with a doctor whenever headaches affect your daily life1.

Emergency

Emergency warning signs

Call 911 right away if a headache comes with any of these signs of a stroke3:

  • A sudden, severe headache with no known cause
  • Sudden numbness or weakness in the face, arm, or leg, especially on one side of the body
  • Sudden confusion, trouble speaking, or difficulty understanding speech

Call 911

Contact your health care professional

What to do

Call or see a doctor right away if you or someone you are with has1:

  • A sudden, severe headache, possibly with a stiff neck
  • A severe headache with fever, nausea, or vomiting that is not related to another illness
  • A first or "worst" headache with confusion, weakness, double vision, or loss of consciousness
  • A headache that gets worse over days or weeks or changes in pattern
  • A headache after a brain injury
  • A headache with seizures (shaking) or trouble breathing
  • A new, constant headache, especially after age 50
  • New headaches in someone with a history of cancer or HIV
  • Headaches in a child that keep coming back
  • Two or more headaches a week

Frequent headaches can take a real toll: headache is a major reason people miss work or school1.

Medication overuse headache

Taking headache medicines too often can make attacks worse or cause new headache symptoms1. For this reason, the American Headache Society advises against frequent or long-term use of over-the-counter pain relievers for headache6. If you need pain relievers often, a doctor can help you make a plan for safe use and consider preventive treatment1.

Most headaches are diagnosed from your history and an examination rather than from tests. Your doctor will ask about your headaches, review your medical history, and do physical and neurological exams1.

When tests are needed, and when they are not

Brain scans do not help people whose headaches are stable and meet the criteria for migraine, and the American Headache Society recommends against them in that situation. When imaging is needed outside an emergency, MRI is preferred over CT6. If your history or exam suggests another cause, your doctor may order blood, urine, or other fluid tests, a CT scan, or an MRI1.

Your headache diary helps

Notes about when headaches happen, what came before them, and what you took for them help your doctor tell the type of headache apart and choose treatment1. See what to record in a headache diary.

The first step is to find and treat any condition that could be causing the headaches. Finding the treatment that works for you can take time and works best as a partnership with your doctor1.

Main headache treatment options1,7,8,9
OptionUsed forHow well it worksMain caution
Over-the-counter pain relieversMild to moderate headache and migraine attacksOne dose of acetaminophen stops migraine pain within 2 hours in about 1 in 5 people (19%), versus 1 in 10 (10%) with a placebo; aspirin and ibuprofen help more people7Frequent use can make headaches worse1
Migraine-specific medicines (triptans, gepants, ditans)Moderate to severe migraine attacksRecommended by experts for these attacks8Triptans need caution in people with coronary artery disease8
Preventive medicines, including CGRP-targeting medicinesFrequent migraineCGRP-targeting medicines are a first-line option9Oral preventive medicines are tried for at least 8 weeks before judging whether they work8
Behavioral therapiesMigraine; stress linked to headacheSupported by strong evidence for migraine8—
Oxygen, triptans, and verapamilCluster headacheOxygen and triptans treat attacks; verapamil is usually the first choice to prevent cluster periods1—

Treating an attack

For migraine, experts recommend over-the-counter pain relievers such as NSAIDs or acetaminophen for mild to moderate attacks, and migraine-specific medicines such as triptans, gepants, or ditans for moderate to severe attacks. Taking treatment at the first sign of pain improves the chance of becoming pain-free8.

Preventing frequent attacks

Preventive treatment may be considered when attacks are frequent, from as few as 2 headache days a month with severe disability to 4 or 5 headache days a month8. Options include certain blood pressure medicines, anticonvulsants, antidepressants, and medicines that target CGRP1, which the American Headache Society considers a first-line option9. Behavioral therapies such as cognitive behavioral therapy, biofeedback, and relaxation training are supported by strong evidence for migraine and suit people who prefer not to take medicine8.

Cluster and tension-type headache

Breathing pure oxygen through a mask and triptans can treat cluster attacks, and verapamil is usually the first choice to prevent cluster periods. For frequent tension-type headaches, antidepressants can help1.

What to avoid

The American Headache Society advises against opioid- or butalbital-containing medicines as a first treatment for recurring headaches and against surgery on migraine "trigger points" outside a clinical trial6.

Lowering your risk

Not every headache can be prevented, but these steps help many people have fewer attacks1:

  • Keep a regular sleep schedule: Too little or too much sleep can make headaches worse; see how sleep affects headaches.
  • Exercise and eat a healthy diet
  • Drink enough fluids
  • Manage stress:

    Relaxation training, meditation, or cognitive behavioral therapy can help.

  • Learn your triggers:

    A headache diary can show patterns.

Medical prevention and screening

If attacks are frequent, preventive medicines are an option8; see Treatment.

Many people manage their headaches well once the type is clear and the right treatment is found, though finding it can take time. Headaches that begin in childhood can develop into migraine as a child grows older. Most cluster headache attacks come in periods separated by months without symptoms, but a small group of people develop a chronic form with only short pain-free periods1.

  • Children:

    Headaches are common in children and teens, and headaches that begin early in life can develop into migraine later. Children may find it hard to describe their pain, and drawing where it hurts can help. Treatment usually starts with fluids, a better diet, daily exercise, and better sleep. Always talk with a doctor before giving headache medicine to a child, and get care quickly for a headache after a head injury or with a rash, fever, or unusual sleepiness1.

  • Pregnancy:

    During pregnancy and in the year after delivery, seek medical care immediately for a headache that won't go away or gets worse over time, feels like the worst headache of your life, lasts even after medicine and fluids, or starts suddenly with severe pain, like a clap of thunder. These can be signs of a life-threatening condition10.

As of October 2026, based on sources checked October 30, 2026. See References

What we know

  • Recommended by guidelines

    Experts recommend treating a migraine attack at the first sign of pain.

    Why it matters:

    Early treatment improves the chance of becoming pain-free and lowers disability from the attack8.

  • Well established

    Behavioral therapies such as cognitive behavioral therapy, biofeedback, and relaxation training help people with migraine.

    Why it matters:

    They are an option if you prefer not to take medicine or have side effects from it8.

  • Recommended by guidelines

    Medicines that target CGRP are a first-line option to prevent migraine.

    Why it matters:

    You do not have to try older preventive medicines first before using them9.

  • Recommended by guidelines

    Brain scans are not needed for stable headaches that meet the criteria for migraine.

    Why it matters:

    Scans in this situation add cost and, with CT, radiation, without changing care6.

What we don't know yet

  • Uncertain

    It is not known how helpful more involved treatments, such as surgery and nerve stimulation, are for headache conditions.

    Why it matters:

    More research is needed before their benefit is clear1.

  • Uncertain

    Why some people get tension-type headache, the most common type, is not fully known.

    Why it matters:

    Researchers are studying the roles of genes, brain signals, and muscle tenderness1.

  • Uncertain

    The long-term balance of benefits and risks of the newest migraine medicines (gepants and ditans) for people with heart disease is still being worked out.

    Why it matters:

    They appeared safe in trials for people with stable heart disease, but experts advise weighing benefits and risks for each person as real-world data grow8.

Does caffeine help a headache?

It can make a pain reliever work a little better. In a Cochrane review of trials in headache and other acute pain, adding at least 100 mg of caffeine, about a mug of coffee, to a standard dose of paracetamol or ibuprofen helped a small extra share of people get good pain relief, about 1 in every 14 treated. No serious side effects were linked to the added caffeine11.

What should I write down in a headache diary?

After each headache, note the time of day; how intense it was and how long it lasted; any sensitivity to light, smells, or sound; what you were doing before it started; any medicines you took, including over-the-counter ones; how well and how long you slept the night before; any stress or strong emotions; weather or routine changes; food and drinks in the previous 24 hours; and other health conditions. People who menstruate can also record their periods. A diary helps your doctor identify the type of headache and find the best treatment1.

Can certain foods trigger headaches?

In some people, yes, especially migraine attacks. Possible triggers include aged cheeses, aspartame, caffeine or caffeine withdrawal, chocolate, cured or processed meats, monosodium glutamate (MSG), salted nuts, and wine and other alcohol. A food diary can help show which foods, if any, affect you1.

Can too little or too much sleep cause headaches?

Yes. Oversleeping can bring them on too, and daytime naps may reduce deep sleep at night and trigger them in some adults1.

Sources checked

  1. National Institute of Neurological Disorders and Stroke. Headache (NIH Publication No. 25-158-Z) (opens in a new tab)
    ninds.nih.gov · 2025 · Health agency · Accessed October 24, 2026 · Back: a b c +30
  2. Burch R, Rizzoli P, Loder E. The prevalence and impact of migraine and severe headache in the United States: updated age, sex, and socioeconomic-specific estimates from government health surveys (opens in a new tab)
    Headache. 2021;61(1):60-68 · Study · Accessed October 24, 2026 · Back: a
  3. Centers for Disease Control and Prevention. Signs and symptoms of stroke (opens in a new tab)
    cdc.gov · May 19, 2026 · Health agency · Accessed October 24, 2026 · Back: a b
  4. MedlinePlus, U.S. National Library of Medicine. Giant cell arteritis (opens in a new tab)
    medlineplus.gov · September 29, 2026 · Health agency · Accessed October 24, 2026 · Back: a
  5. Centers for Disease Control and Prevention. About meningitis (opens in a new tab)
    cdc.gov · September 9, 2025 · Health agency · Accessed October 24, 2026 · Back: a
  6. Loder E, Weizenbaum E, Frishberg B, Silberstein S. Choosing wisely in headache medicine: the American Headache Society's list of five things physicians and patients should question (opens in a new tab)
    Headache. 2013;53(10):1651-1659 · Recommendation · Accessed October 24, 2026 · Back: a b c +1
  7. Derry S, Moore RA. Paracetamol (acetaminophen) with or without an antiemetic for acute migraine headaches in adults (opens in a new tab)
    Cochrane Database Syst Rev. 2013;(4):CD008040 · Study · Accessed October 24, 2026 · Back: a b
  8. Ailani J, Burch RC, Robbins MS. The American Headache Society consensus statement: update on integrating new migraine treatments into clinical practice (opens in a new tab)
    Headache. 2021;61(7) · Guideline · Accessed October 24, 2026 · Back: a b c +9
  9. Charles AC, Digre KB, Goadsby PJ, Robbins MS, Hershey A. Calcitonin gene-related peptide-targeting therapies are a first-line option for the prevention of migraine: an American Headache Society position statement update (opens in a new tab)
    Headache. 2024 · Guideline · Accessed October 24, 2026 · Back: a b c +1
  10. Centers for Disease Control and Prevention. Urgent maternal warning signs and symptoms (opens in a new tab)
    cdc.gov · May 15, 2024 · Health agency · Accessed October 24, 2026 · Back: a
  11. Derry CJ, Derry S, Moore RA. Caffeine as an analgesic adjuvant for acute pain in adults (opens in a new tab)
    Cochrane Database Syst Rev. 2014;(12):CD009281 · Systematic review · Accessed October 30, 2026 · Back: a

The information on this site is provided for informational purposes only and is not medical advice. It does not replace professional medical consultation, diagnosis, or treatment. Do not self-medicate based on the information presented on this site. Always consult with a doctor or other qualified healthcare professional before making any decisions about your health.