SymptomBones, joints & muscles

Neck Cramps and Spasms

Neck spasms are sudden, involuntary tightening of the muscles in the neck, causing pain, stiffness and difficulty turning the head. Most come from muscle strain, poor posture, sleeping awkwardly or stress, and ease within a few days with heat, gentle movement and over-the-counter pain relief. Less often they signal a pinched nerve, a neck injury, cervical dystonia or, rarely, meningitis, so fever, numbness or weakness need prompt medical attention.

Also called: Neck muscle spasms, cervical muscle cramps, wry neck, acute torticollis, crick in the neck

At a glance

What it is
Sudden involuntary tightening of neck muscles, often with a painful knot and stiffness.
Common causes
Strain, poor posture, awkward sleep position, stress, dehydration.
Serious causes
Pinched nerve, neck injury, cervical dystonia, meningitis, and rarely an artery tear or infection.
Typical duration
A few days to 2 weeks for simple muscle spasm.
Relief
Heat, gentle stretching, staying active and over-the-counter pain relievers.

When to get help

Call 911 or go to the ER

  • Neck stiffness with fever, severe headache, vomiting, confusion or a rash that does not fade when pressed (possible meningitis)
  • Neck pain after a fall, crash or diving accident, especially with numbness, tingling or weakness in the arms or legs
  • Sudden severe neck pain with a headache, vision change, slurred speech or dizziness (possible artery tear or stroke)
  • Neck spasm with trouble breathing or swallowing, or the jaw locking shut
  • Sudden twisting of the neck with the eyes rolling up after a new antipsychotic or anti-nausea medicine

See a doctor within a day or two

  • Pain spreading down an arm with numbness, tingling or weakness in the hand
  • Neck pain with fever, swelling, or a hot tender lump
  • Spasms that keep getting worse despite rest and pain relief over 48 hours

Book a routine appointment

  • Spasms that last more than 2 weeks or keep coming back
  • The head pulling or turning to one side repeatedly, or a head tremor
  • Neck spasms with morning stiffness that eases with movement, especially under age 40

Usually safe to manage at home

  • A stiff, painful neck after sleeping awkwardly, with no injury, fever or arm symptoms
  • Tightness after long periods at a desk, phone or steering wheel

What a neck spasm feels like

A neck spasm is a muscle that contracts and will not let go. You may feel a hard, tender knot, often in the side or back of the neck or where the neck meets the shoulder. The trapezius, levator scapulae and sternocleidomastoid muscles are most often involved. Turning the head may trigger a sharp jolt of pain, so you end up holding your head stiffly or tilted to one side.

A cramp is a brief, very intense spasm that peaks and passes within seconds to minutes. A spasm in everyday use often means longer-lasting tightness over hours or days. Waking with the head stuck to one side is commonly called a wry neck or acute torticollis.

Common causes of neck spasms

Muscle strain and posture

The most common cause is overloading the neck muscles:

  • Hours looking down at a phone or laptop ("tech neck")
  • Sleeping on a high or flat pillow, or on your stomach with the head turned
  • Carrying a heavy bag on one shoulder
  • A sudden awkward movement or lifting with poor form

These cause a neck strain: small injuries to muscle fibers that make the muscle guard itself by tightening.

Stress and tension

Stress makes people hunch their shoulders and clench their jaw, keeping neck muscles contracted. This often comes with a band-like tension headache.

Dehydration and electrolyte imbalance

Heavy sweating, vomiting, diuretics and low magnesium, potassium or calcium make muscles more prone to cramp anywhere, including the neck.

Wear and tear in the neck

Cervical spondylosis, the age-related wear of the neck discs and joints, is very common after 50. Irritated joints and bone spurs make surrounding muscles tighten protectively.

Neck spasms: serious causes to know

Most neck spasms are harmless. These causes need a doctor:

CauseClues
Pinched nerve (cervical radiculopathy)Pain shooting into the shoulder blade, arm or hand, with tingling, numbness or weakness
Neck injury or whiplashStarted after a crash, fall or sports impact. Pain may build over 24 hours
Cervical dystoniaRepeated involuntary pulling or twisting of the head to one side, sometimes with a tremor, lasting months
MeningitisStiff neck with fever, headache, light sensitivity and feeling very unwell. Bending the chin to the chest is painful
Acute dystonic reactionSudden neck twisting, jaw spasm or eyes rolling up within days of starting antipsychotics or anti-nausea drugs such as metoclopramide
Cervical artery dissectionA tear in an artery in the neck. Sudden one-sided neck pain and headache, sometimes after minor neck trauma or manipulation, with stroke symptoms
Infection or abscessFever, swelling, difficulty swallowing or opening the mouth
TetanusJaw stiffness and neck spasms days after a dirty wound in someone not up to date with tetanus shots
Inflammatory diseaseMorning stiffness lasting over 30 minutes, also affecting the lower back or other joints

Other conditions such as fibromyalgia cause widespread tender points and muscle tightness, including in the neck, along with fatigue and poor sleep.

Accompanying symptoms and what they suggest

  • Headache at the back of the head: muscle tension or a cervicogenic headache
  • Arm tingling or weakness: nerve root compression
  • Fever and feeling very unwell: infection, including meningitis
  • Jaw pain and teeth clenching: stress or temporomandibular joint problems
  • Shoulder pain and limited arm movement: shoulder problems that refer pain to the neck

How doctors diagnose neck spasms

A doctor will ask how and when the spasm began, about injuries, work and sleep posture, new medicines, and any arm symptoms, fever or headache. The exam checks neck movement, tender areas, reflexes, strength and sensation in the arms, and signs of meningeal irritation.

Simple muscle spasm needs no tests. Imaging is used when there are red flags:

  • X-ray after injury or to look for arthritis
  • MRI for nerve symptoms, suspected spinal cord compression or infection
  • CT angiography if artery dissection is suspected
  • Blood tests if infection or an inflammatory disease is possible

Repeated involuntary head turning is assessed by a neurologist for cervical dystonia.

How to relieve neck spasms at home

  1. Heat: a warm shower, heat pack or warm towel for 15 to 20 minutes relaxes tight muscles. Some people prefer ice in the first 48 hours after an injury.
  2. Keep moving gently: slowly turn and tilt your head within a comfortable range several times a day. Prolonged rest and neck collars slow recovery.
  3. Pain relief: ibuprofen or naproxen, or acetaminophen (paracetamol), following the label dose. Avoid NSAIDs if you have stomach ulcers, kidney disease or take blood thinners.
  4. Gentle stretches: ear toward shoulder, chin toward chest, and turning to each side, holding each for 20 to 30 seconds without forcing.
  5. Massage: firm pressure on the knot or a gentle self-massage with a tennis ball against a wall.
  6. Check your setup: screen at eye level, feet flat, frequent breaks. Use one supportive pillow that keeps your neck level with your spine.
  7. Hydrate if you have been sweating heavily or exercising.

Most simple neck spasms improve noticeably within a few days and settle within 1 to 2 weeks.

Medical treatment

  • Physical therapy: exercises to strengthen deep neck and upper back muscles, posture training and manual therapy
  • Short courses of muscle relaxants prescribed by a doctor for severe spasm, usually only for a few days because they cause drowsiness
  • Botulinum toxin injections every few months for cervical dystonia
  • Treatment of the underlying cause, such as antibiotics for infection or surgery for severe nerve or spinal cord compression

Preventing neck spasms

  • Take breaks every 30 to 60 minutes from screens and driving.
  • Strengthen your upper back and shoulders with regular exercise.
  • Avoid sleeping on your stomach.
  • Manage stress with exercise, relaxation techniques or counseling.
  • Warm up before sport and lifting.

Frequently asked questions

What are the serious causes of neck spasms?

Serious causes include a pinched nerve in the neck, spinal injury, meningitis, a tear in a neck artery, neck infections, tetanus and drug-induced dystonia. Warning signs are fever, severe headache, arm numbness or weakness, trouble swallowing or breathing, and pain after an injury.

How long do neck spasms last?

Simple neck spasms from strain or sleeping awkwardly usually improve within a few days and resolve within 1 to 2 weeks. Spasms that last longer than 2 weeks, keep coming back or come with nerve symptoms should be checked by a doctor.

Can stress cause neck spasms?

Yes. Stress and anxiety make people tense their shoulder and neck muscles for long periods, which can lead to painful knots and spasms, often with tension headaches. Relaxation, exercise, posture changes and treating the source of stress all help.

What is the fastest way to relieve a neck spasm?

Apply heat for 15 to 20 minutes, take an over-the-counter pain reliever as directed, and then gently move and stretch the neck within a comfortable range. Massage of the tight spot also helps. Avoid holding the neck completely still, which prolongs stiffness.

Why does my neck spasm when I turn my head?

Turning stretches a muscle that is already tight or injured, so it reflexively contracts harder, causing a jolt of pain. A strained muscle, an irritated facet joint or a pinched nerve can all do this. Pain that shoots down the arm suggests a nerve is involved.

Can dehydration cause neck cramps?

It can contribute. Losing fluid and salts through heavy sweating, vomiting or diarrhea makes muscles more likely to cramp, including in the neck. Drinking fluids with electrolytes usually helps if dehydration is the trigger.

Sources

This guide was written from current patient and clinical guidance, including:

  • MedlinePlus: Neck pain
  • NHS: Neck pain
  • American Academy of Orthopaedic Surgeons: Neck pain
  • Mayo Clinic: Neck pain
  • National Institute of Neurological Disorders and Stroke: Dystonia
  • American Academy of Family Physicians: Evaluation of neck pain