You went to bed fine. You woke up and the first time you tried to check the clock, your neck caught: a sharp grab on one side, and now you are turning your whole body to look over your shoulder, like a robot reversing out of a parking spot in Hamra. Maybe a dull headache is building at the back of your head too.
Most of the time this is an ordinary, painful, self-limiting stiff neck. But a stiff neck is also a classic warning sign of meningitis, and with a headache it can occasionally mean a hospital today. So the urgent list comes first, then what helps, then the point at which a stiff neck that keeps returning with headaches becomes a pattern.
A stiff neck after sleeping usually eases on its own, with most of the improvement early. Keep it moving gently within comfort, use heat if it feels good, ask a pharmacist about a simple painkiller, and sort out your pillow. Do not crack it forcefully, wear a collar or lie still for days. Get urgent care if it comes with fever, a rash, confusion, a sudden severe headache, an injury, or arm weakness or numbness. If it keeps coming back with headaches, the upper neck is worth assessing.
A stiff neck is usually mechanical, but a few causes are time-critical. Get medical care instead of reading on if:
Everything below is for a stiff neck with none of these, in an adult who otherwise feels well.
The textbook name for the classic version is acute wry neck, or acute torticollis: you wake with the head held slightly turned or tilted, one side sharply painful, and a movement in one direction that simply will not happen. The usual explanation is that one of the small joints at the back of the neck, or the tissue around it, gets irritated after hours in an awkward position, and the muscles around it clamp down to protect it. That guarding is what makes it feel locked.
How much of that is proven? Not much. Research on this exact picture is mostly case reports and small uncontrolled studies. What we do have is decent data on new neck pain in general, which the next section uses. Your grandmother will blame the air conditioner. I have not found good research either way, so I won't argue with her.
The usual suspects are familiar: a night on the sofa, a pillow far too high or too flat, sleeping on your stomach with the head cranked to one side, a stressful week of shoulders up by your ears. A stiff neck with no red flags does not need a scan; it is assessed from the story and an examination.
The good news is that most of the improvement happens early. In a Norwegian population study that screened 9,056 adults and followed 219 with a new episode of neck or low back pain, pain declined fastest within the first month, with little change after that. Only 1 in 5 sought any health care for it.
The less comfortable news: a systematic review of acute neck pain pooled seven studies and found pain fell from 64 to 35 out of 100 by about six and a half weeks, but the pooled score at 12 months was still 42. The authors concluded that the prognosis is worse than people are usually told. That covers all new neck pain, not only the morning-after kind.
So expect it to ease, mostly early, and do not assume "it'll go away" means "it'll never come back". If you are not clearly improving after a week or two, or this is your third stiff neck this year, have it looked at. We go into recovery timelines for neck-related headaches in how long it takes to fix neck-related headaches.
A large clinical guideline on neck pain (the OPTIMa collaboration) starts in the right place: rule out serious causes, then reassure people about the usually benign, self-limiting course, and stress the importance of staying active and moving. That is the backbone of the first two days.
Here is what the box at the top is based on.
Meningitis. In a nationwide Dutch study of 696 episodes of bacterial meningitis in adults, the classic triad of fever, neck stiffness and a change in mental state was present in only 44%. But 95% had at least two of four: headache, fever, neck stiffness and altered mental state. You do not need the full textbook picture: a stiff neck, a headache and a fever is enough to go now. In a study of 448 children and teenagers with meningococcal disease, the classic features (a haemorrhagic rash, signs of meningitis such as a stiff neck, and impaired consciousness) developed late, at a median of 13 to 22 hours, while earlier signs of sepsis such as leg pain and cold hands and feet appeared at a median of 8 hours. Do not wait for the rash.
Bleeding around the brain. A headache that reaches full strength within a minute, often described as the worst ever, can come with a stiff neck. That is an emergency whatever your neck has been doing lately. We cover it in more detail in headache at the base of the skull.
A torn neck artery. New neck pain and headache, especially on one side, with dizziness, double vision, slurred speech, trouble swallowing, unsteadiness or weakness. In the review above, dizziness or vertigo was the most common symptom at 58%. Emergency care. If dizziness is part of your picture, also read neck pain and dizziness.
After an injury. A stiff neck that started after a crash, a fall or a hit needs checking before self-care. After the doctor has cleared it, our whiplash article picks up from there.
One honest caveat for the whole list: an international framework on red flags written for physiotherapists notes that most individual red flags lack high-quality evidence for how accurately they pick out serious disease. They are prompts to get checked, not a diagnosis. If unsure, get checked.
One stiff neck after a bad night is bad luck. A neck that stiffens every few weeks, mostly on the same side, with headaches that start at the back of the head, is a pattern.
Neck pain and headache often travel together. In a Danish population study of 797 people, 85.7% of those with migraine or tension-type headache had neck pain in the past year, against 56.7% of those without headache. That study cannot tell you which comes first, and a migraine can stiffen the neck without the neck being the source (see migraine or neck headache). But for some people the upper neck is part of what drives the headache. That is cervicogenic headache, and the nerves from the top three neck segments share a relay in the brainstem with the nerve that covers the forehead, temples and eyes, which is how a stiff upper neck can be felt as a headache in front.
Signs that the neck may be part of your headaches: they start at the back on one side and do not switch sides; held postures or certain neck movements bring them on; your neck turns less to that side; and pressing at the base of the skull reproduces your familiar headache. We rate each of those signs in is my headache coming from my neck?
The jaw belongs in the same conversation. If you wake with a stiff neck and a tired jaw or sore teeth, night-time clenching and a stiff upper neck converge on the same pain relay, and each can keep the other sensitised. More in toothache with no cavity.
This is where physiotherapy has real evidence. In a randomised trial of 200 people with cervicogenic headache, specific exercise and manipulative therapy each reduced headache frequency and intensity, and the effect held at 12 months. The realistic aim is fewer and milder headache days from the neck's share. A migraine driver stays with your neurologist. The assessment looks at how the top neck joints move and respond, how the deep neck muscles hold up, and the jaw, and much of it can be done online.
If you keep waking up stiff, the night is the obvious suspect. Keep expectations honest, though. A 2021 systematic review and meta-analysis found 35 studies of pillows but only nine of high quality, with 555 participants. In people with chronic neck pain, rubber pillows reduced neck pain and waking pain by small amounts, sleep quality did not change, and the authors suggest the shape and height of a pillow matter more for neck alignment than its material. A 2025 review of five more recent studies found no pillow type clearly better than another. Neither review studied the one-off stiff neck after a bad night.
We go through each position, and the causes of waking with a headache that no pillow will fix, in best sleeping position and pillow for neck pain and headaches.
Write it down. For two weeks, log each morning on your phone: neck stiff or not (which side), headache or not, how you slept, and whether your jaw felt tired. A log turns "it happens sometimes" into something an assessment can use. If the stiff mornings and the headache days line up, run the Source Test: three physical checks, including a press at the base of the skull and a two-week morning pattern, in about two minutes.
This article is general information, not a diagnosis. Painkillers, scans and any other medication are decisions for your pharmacist or doctor, and you should not change any medicine without speaking to them. If anything in the list at the top applies to you, seek medical care rather than booking a physiotherapist. Research cited via PubMed.
If your neck keeps locking up and the headaches keep coming with it, a doctor has ruled out the serious causes, and nobody has examined how your upper neck and jaw move, that is worth one short call. We'll tell you honestly whether it looks like something we can help with, or whether it belongs with your doctor or neurologist. Online, or in person in Beirut.
Not ready for a call? See where yours starts on the Headache Map, or run the Source Test: three physical checks, about two minutes.