Skip to content

Posture & Ergonomics

Intermittent pain located inside the head, near the back of the ear — at the base of the skull, above the neck. Often described as:

  • A “cold but not cold” feeling — sharp, electric, but brief
  • Not constant — comes in sudden bursts
  • Deep inside the head, not on the surface

This is precisely where the occipital nerves emerge from the spine and travel up through the scalp.


The greater and lesser occipital nerves run from the top of the spinal cord through the muscles at the base of the skull to the scalp. When these nerves become inflamed, compressed, or irritated, the result is sharp, shooting pain that radiates from the base of the skull upward.

Key markers:

  • Location: Behind the ear, radiating vertically up the back of the head
  • Sensation: Sharp, shooting, electric-shock-like episodes — can also be a persistent dull ache
  • Duration: Brief (seconds to minutes), but can recur frequently

The most common trigger for developers and desk workers is forward head posture (“tech neck”). This position overworks the small suboccipital muscles at the base of the skull, which compress the occipital nerves.

TriggerHow It Contributes
Forward Head PostureCompresses occipital nerves; each inch forward adds ~10 lbs of load to the neck
Phone UsageBending the neck downward repeatedly strains the suboccipital muscles
Sleeping PositionPillows that don’t support the neck’s natural curve keep muscles tense for hours
Stress & Jaw ClenchingTension in the jaw (bruxism) and shoulders radiates upward to the skull base
Cold ExposureCold temperatures can trigger brief, intense nerve episodes

Not all head pain behind the ear is occipital neuralgia. Here’s how to distinguish:

ConditionSensationKey Differentiator
Occipital NeuralgiaSharp, shooting, electricBehind the ear, radiating vertically up
Tension HeadacheBand-like pressureTight band around the entire head
Cervicogenic HeadacheDull ache / stiffnessOriginates from neck movement
Glossopharyngeal NeuralgiaStabbing deep in ear/throatTriggered by swallowing, yawning, cold liquids
Middle Ear (Otitis Media)Deep pressure, “plugged”Follows a cold/sinus infection
Referred Pain (TMJ)Aching near jaw/earRelated to teeth grinding or jaw clicking
MastoiditisIntense throbbing behind earRedness, swelling, fever — complication of ear infection

For persistent but non-emergency symptoms, consult an ENT specialist or neurologist for a personalized assessment.


If poor posture is the likely cause (which it usually is for developers), the fix combines three strategies:

  1. Release — Immediate relief through heat, massage, and stretches
  2. Reposition — Ergonomic workspace adjustments
  3. Strengthen — Build the muscles that hold your head in alignment

👉 See the full Exercise & Relief Guide →