What Causes a Headache on Top of Your Head?

A headache focused on the top of your head is most commonly caused by tension-type headache, the single most prevalent headache disorder worldwide. But several other conditions can target that specific spot, and the type of pain you feel (pressing, stabbing, shooting) is often the best clue to what’s behind it.

Tension-Type Headache

The most likely explanation for a pressing or tightening sensation across the top of your head is a tension-type headache. The pain is typically bilateral, meaning it wraps around both sides rather than striking one spot. It feels like a band or cap of pressure rather than a throb, and it’s mild to moderate in intensity. You can usually keep going about your day, since walking or climbing stairs won’t make it worse. Nausea and vomiting are absent, and you won’t have both light sensitivity and noise sensitivity at the same time (though one of the two is possible).

Episodes last anywhere from 30 minutes to 7 days. Most people experience them occasionally, but when they become frequent enough to occur on more days than not, the condition is classified as chronic tension-type headache. At that point the pain can last hours, persist all day, or feel nearly constant.

How Poor Posture Feeds Into It

If you spend hours looking at a screen, your head likely drifts forward of your shoulders. This forward head posture overworks a chain of muscles in the neck and upper back: the suboccipital muscles at the base of your skull, the upper trapezius running from your neck to your shoulders, the levator scapulae connecting your neck to your shoulder blades, and the sternocleidomastoid along the side of your neck. At the same time, the deeper stabilizing muscles of the lower neck and upper back become stretched and weak.

The suboccipital muscles are especially relevant. They sit right where the skull meets the spine, and when they tighten or spasm, they can refer pain upward across the crown. The result feels indistinguishable from a classic tension headache, and for many desk workers, posture is the root cause. Correcting the imbalance (strengthening the deep neck flexors, stretching the chest and upper trap) often reduces headache frequency more effectively than medication alone.

Occipital Neuralgia

Two large nerves called the greater occipital nerves carry sensation from the back and top of the head to the brain. When one of these nerves gets irritated anywhere along its path, the pain can shoot from the base of the skull up and over the crown. It tends to feel electric, zapping, or tingling, and it usually hits one side of the scalp rather than both.

The irritation can come from several sources: arthritis in the upper cervical spine pinching a nerve root, tight muscles at the back of the head entrapping the nerve, or prior injury or surgery to the scalp or skull. It can also appear with no obvious trigger. One diagnostic challenge is that migraines can repeatedly affect the back of the head on one side, inflaming the greater occipital nerve in the process and making the two conditions easy to confuse.

Primary Stabbing (Ice Pick) Headaches

If you get brief, sharp jabs at the top of your head that vanish almost as quickly as they arrive, you may be experiencing primary stabbing headaches, sometimes called ice pick headaches. About 80% of these stabs last three seconds or less. Rarely, a single stab stretches to 10 or even 120 seconds, but that’s unusual. They recur at irregular intervals, typically just one to a few times per day, and there’s no consistent trigger.

These headaches are startling but generally harmless. They’re more common in people who also get migraines. The pain can land anywhere on the head, but the vertex (top of the skull) is one of the classic locations.

Exercise Headaches

Intense physical effort, particularly straining, heavy lifting, or vigorous cardio, can produce a headache that affects both sides of the head and often centers on the top. Primary exercise headaches last between five minutes and 48 hours. They tend to come on during or just after peak exertion and feel throbbing or pulsating.

These are usually benign, but the first time you get a severe headache during exercise is worth getting checked out. Secondary exercise headaches, caused by an underlying problem like a blood vessel abnormality, tend to last at least a day and often linger for several days. They may also come with vomiting, neck stiffness, or vision changes, none of which happen with the primary type.

Sleep Position and Muscle Strain

Sleeping in an awkward position can strain the same neck and suboccipital muscles involved in posture-related headaches. You wake up with a dull ache across the crown that improves as you move through the morning and the muscles loosen. Using a pillow that keeps your neck in a neutral position (not cranked forward or tilted sideways) is the simplest fix. If you notice you always wake with top-of-head pain, your pillow height or mattress support is a good place to start troubleshooting.

Managing the Pain at Home

For an occasional tension-type headache at the top of your head, over-the-counter pain relievers are effective. Ibuprofen and acetaminophen are both first-line options. A warm compress on the back of the neck, gentle neck stretches, or a few minutes of self-massage along the base of the skull can also help, especially when muscle tightness is a factor.

The catch is frequency. Using pain relievers more than two or three days a week can itself cause headaches to become more frequent, a well-documented cycle called medication-overuse headache. If you’re reaching for a pill most days, the underlying cause needs attention rather than repeated treatment of individual episodes.

Warning Signs That Need Prompt Attention

Most headaches at the top of the head are not dangerous, but certain features signal something more serious. A screening framework used in urgent care settings flags the following red flags:

  • Sudden onset: A headache that reaches maximum intensity within seconds, sometimes called a thunderclap headache.
  • Neurological changes: Weakness, numbness, confusion, trouble speaking, or decreased consciousness alongside the headache.
  • New headache pattern after age 50: A first-ever headache or a significant change in an existing pattern in someone over 50 raises concern for conditions like giant cell arteritis.
  • Fever with headache: Especially combined with neck stiffness, which can indicate infection.
  • Headache after head trauma: Even if the injury seemed minor.
  • Progressive worsening: A headache that gets steadily worse over days or weeks rather than coming and going.
  • Positional component: Pain that dramatically changes when you stand up or lie down can suggest a problem with cerebrospinal fluid pressure.

Any of these patterns warrants same-day medical evaluation. A straightforward tension headache or ice pick headache won’t produce these features, so their presence is a reliable signal that something else is going on.