How to Get Rid of a Headache on Top of Your Head

A headache focused on the top of your head is almost always a tension-type headache, caused by tightened muscles in your scalp, neck, and shoulders pulling on the tissue that covers your skull. The good news: most of these headaches respond well to a combination of over-the-counter pain relief, targeted stretching, and simple changes to your environment. Here’s how to tackle the pain and keep it from coming back.

Why the Top of Your Head Hurts

Your scalp is covered by a thin sheet of muscle and connective tissue that stretches from your forehead to the base of your skull. When the muscles in your neck, shoulders, or jaw tighten from stress, poor posture, or fatigue, they pull on this tissue and create a band-like pressure that often settles right at the crown. That’s why the pain can feel like a cap pressing down on you rather than a sharp, localized sting.

Dehydration is another common trigger. When your body is low on fluids, the brain can temporarily shrink slightly and pull away from the skull lining, producing a dull ache that you may feel across the top of your head or all over. Other triggers include eye strain from screens, skipped meals, poor sleep, and clenching your jaw during the day or while you sleep.

Quick Relief With Over-the-Counter Pain Relievers

Standard pain relievers are the first-line treatment for tension headaches. Ibuprofen, aspirin, and naproxen sodium all work by reducing the inflammation signals that amplify head pain. Acetaminophen works differently, blocking pain processing in the brain rather than targeting inflammation, but it’s equally effective for most tension headaches. Pick whichever you tolerate best.

One important limit to know: never exceed 4,000 milligrams of acetaminophen in a 24-hour period, and avoid combining it with alcohol (three or more drinks significantly raises the risk of liver damage). If you find yourself reaching for pain relievers more than two or three days a week, that pattern can actually cause a new type of headache called medication-overuse headache, which makes the original problem worse.

Stretches That Target the Right Muscles

Because top-of-head tension headaches originate in tight neck and shoulder muscles, loosening those muscles can relieve the pain directly. Massage is especially effective for the tight, tender muscles at the back of the head, neck, and shoulders. You can do this yourself by pressing your fingertips into the muscles where your skull meets your neck and making slow circles for 30 to 60 seconds per side.

If your headaches happen regularly, forward head posture (the position you drift into after hours at a desk or phone) is likely a major contributor. These exercises help correct it:

  • Chin tucks: Keep your head straight and chin parallel to the floor. Pull your chin back toward your chest like you’re making a double chin, then move the back of your head away from your neck. Hold for three deep breaths, release, and repeat.
  • Standing wall chin tucks: Stand with your shoulders, head, and back flat against a wall. Tuck your chin in, hold for a few seconds, then release. For extra benefit, place both arms against the wall with palms out and slide them up and down.
  • Forward neck stretch: Tuck your chin using two fingers. Place your other hand on top of your head and gently push as you pull your head toward your chest until you feel a stretch. Hold for 20 seconds and repeat three times.

These stretches take under five minutes and work best when done two or three times throughout the day, not just when you already have a headache.

Hydration, Environment, and Other Quick Fixes

If dehydration is contributing to your headache, drinking water can resolve it, though it typically takes 30 minutes to two hours before you feel relief. Aim for six to eight glasses of water per day (roughly 1.5 to 2 liters). If you’ve been sweating, add something with electrolytes.

A few other tactics that help in the moment:

  • Apply a warm or cold compress to the top of your head or the back of your neck. Warmth relaxes tight muscles; cold numbs pain signals. Try both and use whichever feels better.
  • Rest in a cool, dark room. Reducing sensory input lets your nervous system dial down the pain response.
  • Release your jaw. Place your tongue on the roof of your mouth and let your teeth separate slightly. Many people clench without realizing it, and the jaw muscles connect directly to the muscles running over the top of the skull.

When the Pain Feels Different

Not every headache on the top of your head is a tension headache. Two other types can show up in that location, and they feel noticeably different.

Ice pick headaches (also called primary stabbing headaches) cause sudden, sharp stabs that feel like something is literally poking into your skull. Each stab lasts less than three seconds, though you might get several in a row over a few minutes. These headaches disappear on their own so fast that pain relievers don’t have time to work. They’re usually harmless but unsettling. If they happen frequently, a doctor can prescribe preventive options.

Occipital neuralgia involves irritation of the nerves that run from the upper neck up over the scalp. It produces shooting, electric-shock-like pain that can radiate to the top of the head. Diagnosing it can be tricky because it mimics migraines and other headache types. If your pain is sharp, shoots from the base of your skull upward, and doesn’t respond to typical tension headache treatments, a neurologist can use nerve block injections to confirm whether the occipital nerve is the source.

Red Flags That Need Immediate Attention

Most headaches at the top of the head are benign, but certain patterns signal something more serious. Seek emergency care if your headache:

  • Came on suddenly and severely, reaching maximum intensity within seconds (sometimes called a “thunderclap” headache)
  • Is accompanied by fever, stiff neck, confusion, or a rash
  • Follows a head injury
  • Comes with neurological changes like vision loss, slurred speech, weakness on one side of your body, or difficulty staying conscious
  • Is a brand-new type of headache that started after age 50
  • Represents a dramatic change from your usual headache pattern

These warning signs are part of a screening framework clinicians use to rule out dangerous causes like bleeding in the brain, infection, or tumors. The vast majority of headaches are not emergencies, but these specific combinations warrant fast evaluation.

Preventing Recurrent Top-of-Head Headaches

If this headache keeps coming back, the fix is almost always about addressing what’s causing your muscles to tighten in the first place. The most effective long-term strategies target your daily habits rather than treating each headache individually.

Check your workstation setup. Your screen should be at eye level so you’re not tilting your head forward or down. If you use a laptop, a separate keyboard and a laptop stand make a significant difference. Take a break from screens every 30 to 45 minutes, even if it’s just standing up and rolling your shoulders for a minute.

Stress management matters more than most people expect. Chronic stress keeps your neck and shoulder muscles in a low-grade state of contraction for hours at a time, which is the single most common driver of recurring tension headaches. Regular exercise, consistent sleep schedules, and even brief daily relaxation practices (slow breathing, progressive muscle relaxation) reduce how often these headaches show up. The chin tuck and neck stretching routine described above, done consistently, can also serve as prevention rather than just treatment.