Why Does the Back of My Head Hurt When I Touch It?

Pain at the back of your head when you press on it usually comes from either irritated nerves, tight muscles, or an inflamed scalp. The most common culprits are tension in the small muscles at the base of your skull, a condition called occipital neuralgia, or neck problems that send pain signals upward. Less often, a skin condition on the scalp itself is to blame. The cause matters because each one responds to different treatment.

Tight Muscles at the Base of Your Skull

This is the most likely explanation for most people. A group of small muscles called the suboccipital muscles attach right where your skull meets your neck, and they develop tender knots (trigger points) from prolonged sitting, forward head posture, or stress. When you press on these spots, the pain can feel sharp and localized, or it can spread across the side of your head toward your temples.

Research on people with episodic tension headaches found that every single participant had trigger points in these suboccipital muscles. In 60% of those cases, pressing on the trigger point reproduced their usual headache pattern exactly. So if the back of your head hurts when touched and you also get dull, band-like headaches, the two are likely connected. Tender points in the neck and shoulder muscles often accompany this kind of pain.

Hours at a desk, sleeping in an awkward position, or holding your phone between your ear and shoulder can all tighten these muscles enough to make the back of your head sore to the touch.

Occipital Neuralgia

If the pain feels more like a sharp, electric, or zapping sensation rather than a dull ache, the problem may be an irritated occipital nerve. Two large nerves emerge from between the bones of the upper neck, travel through the muscles at the back of the head, and fan out across the scalp. Irritation anywhere along that path can cause intense, shooting pain on one side of the back of the head.

In some people the scalp becomes so sensitive that even light touch is unbearable, making it painful to wash your hair or rest your head on a pillow. The pain sometimes shoots forward toward one eye. Others experience numbness in the affected area instead of (or alongside) the sharp pain. Occipital neuralgia can develop from arthritis in the upper neck compressing a nerve root, from a prior head or neck injury, or from chronically tight muscles physically trapping the nerve. Sometimes it appears with no obvious cause at all.

This condition is relatively uncommon, affecting roughly 3.2 per 100,000 people per year, with an average age of diagnosis around 54. A doctor can often identify it during a physical exam by pressing along the path of the occipital nerve and finding a very specific, reproducible tender spot.

Neck Problems That Refer Pain Upward

Your upper cervical spine (the top three vertebrae in your neck) shares nerve pathways with the back of your head. When joints, ligaments, or nerve roots in this area are irritated, you can feel the pain in your skull even though the actual problem is in your neck. This is called a cervicogenic headache.

The telltale sign is one-sided head pain that starts at the base of your skull and radiates upward or forward behind your eye. It often worsens with certain neck movements or sustained postures. If pressing the back of your head reproduces the pain and you also have neck stiffness or reduced range of motion, a cervical spine issue is worth investigating.

Scalp Skin Conditions

Sometimes the pain is literally skin-deep. Scalp folliculitis, an infection of the hair follicles, produces small, itchy, sore pustules that hurt when touched or brushed. These tend to cluster along the hairline but can appear anywhere on the scalp, including the back. They often become crusted and are difficult to leave alone because of the itch.

Cysts under the skin of the scalp can also cause localized tenderness. If you feel a firm lump under the sore spot, that points toward a cyst rather than a nerve or muscle issue. Sunburn on a part-line or on areas with thinner hair coverage is another overlooked cause of scalp pain that worsens with touch.

What You Can Do at Home

For muscle-related tenderness, which accounts for most cases, a few strategies can help:

  • Scalp and neck massage: Use your fingertips in slow circular motions at the base of your skull. This targets the suboccipital muscles directly and can release trigger points over several minutes.
  • Heat or cold packs: Apply to the back of your head and upper neck in 10-minute intervals. Heat works better for chronic muscle tightness, while cold can help if there’s acute inflammation.
  • Stretching: Gently tuck your chin toward your chest and hold for 20 to 30 seconds. This lengthens the suboccipital muscles. Repeating this several times a day, especially during long stretches of desk work, helps prevent the tightness from building up.
  • Posture adjustments: If your screen is too low, your head juts forward, which overworks the muscles at the base of your skull. Raising your monitor to eye level and keeping your ears aligned over your shoulders reduces the load on these muscles significantly.
  • Release tight hairstyles: Ponytails, buns, and braids that pull on the scalp for hours can cause tenderness that lingers even after you take your hair down. Let your hair down slowly and massage the affected area.

Medical Treatment for Persistent Pain

If home care doesn’t resolve the problem within a couple of weeks, or if the pain is sharp and electric rather than dull and achy, a medical evaluation can help pinpoint the cause. For occipital neuralgia, one of the most effective options is a nerve block, where a doctor injects a local anesthetic (sometimes with a small amount of anti-inflammatory medication) near the occipital nerve. This both confirms the diagnosis and provides relief, often for weeks or longer.

For cervicogenic headaches and nerve-related pain, physical therapy targeting the upper neck can address the underlying biomechanical problem. A therapist can mobilize stiff cervical joints, release the surrounding muscles, and teach you exercises to prevent recurrence. Combining hands-on treatment with a home exercise program tends to produce the best long-term results.

Signs That Need Prompt Attention

Most causes of tenderness at the back of the head are not dangerous, but certain features signal something more serious. A headache that reaches maximum intensity within 60 seconds (often called a thunderclap headache) can indicate bleeding around the brain and requires emergency evaluation. The same applies if the pain comes with fever, seizures, confusion, vision changes, weakness on one side of your body, or a significant change in a headache pattern you’ve had for years. A new headache that worsens with coughing, straining, or physical activity also warrants a closer look.

Tenderness that stays in one spot, gets gradually worse over weeks, or is accompanied by a visible lump that keeps growing should be evaluated by a doctor to rule out structural causes like cysts or, rarely, something that needs imaging.