Best Pillow for Waking Up With Headaches (and Neck Pain)
The short version: if you wake with a headache and a stiff neck, the pillow is a likely suspect. Aim for about 3 to 4 inches (7 to 10 cm) of height on your back and 4 to 5.5 inches (10 to 14 cm) on your side, in medium-firm foam that does not flatten overnight. Our pick is the Derila Ergo, a contoured memory foam pillow with a 3.5 inch (9 cm) center and 4.7 inch (12 cm) side wings, with a 60-day money-back guarantee. But a pillow only fixes one cause. If you snore and wake with headaches, ask your doctor about a sleep apnea test.
Waking up with a headache spoils the day before it starts. You went to bed fine and somehow came out of eight hours worse. It is natural to blame the pillow, and sometimes that is right. A pillow that holds your neck at the wrong angle all night can leave the muscles at the base of your skull tight and sore by morning.
But morning headaches have several common causes, and only one of them is the pillow. This guide helps you work out which one fits you, gives you the pillow height numbers for each sleep position, and is honest about when the answer is a doctor rather than a new pillow.
Short on time? Jump to the pillow selector by sleep position →
Which Morning Headache Is It?
| Likely cause | Typical clues | Will a pillow help? |
|---|---|---|
| Neck strain from the wrong height | Stiff neck, pain at the base of the skull or one side, worse turning your head | Yes. This is the one a pillow fixes. |
| Jaw clenching or grinding | Ache at the temples, sore jaw, worn teeth, a partner hears grinding | A little. See a dentist about a night guard. |
| Sleep apnea | Loud snoring, gasping, dry mouth, tired all day, headache that fades within hours | No. Get a sleep test. |
| Caffeine withdrawal | Eases soon after your first coffee, worse on late-start days | No. Cut down slowly. |
| Alcohol | Only after evenings with a drink or two, often with poor sleep | No. Drink less, earlier, with water. |
| Medication overuse | Taking painkillers on many days a month, headaches getting more frequent | No. Talk to your doctor. |
What a Morning Headache Is
A morning headache is simply a headache that is there when you wake up, or starts soon after. It is common. A large European study of nearly 19,000 adults, published in the Archives of Internal Medicine, found that about 7.6 percent had chronic morning headaches, roughly 1 in 13 people. Women reported them a little more often than men. The study linked them to sleep-related breathing problems, high blood pressure, musculoskeletal problems, anxiety and depression, and heavy drinking.
That list is the key point. A morning headache is a symptom, not a diagnosis. The question is what happened during the night to cause it. For many people the answer is in the neck. For others it is the jaw, the airway, or something in the evening routine.
Pick Your Sleep Position
How do you usually sleep? Tap one and the pillow advice changes.
Back sleeper. The most common mistake is a pillow that is too tall, which pushes your chin toward your chest all night.
- Height: about 3.5 inches (9 cm) under your head, with a slightly higher edge filling the curve of your neck.
- Check: your face should point straight up, not at your toes and not at the headboard.
- Knees: a pillow under your knees takes strain off your lower back.
- Snoring? Back sleeping makes it worse. If you snore and wake with headaches, ask about a sleep test.
See the back sleeper pillow we recommend →
More detail: best pillow for back sleepers with neck pain.
Side sleeper. The usual problem here is a pillow that is too flat, so your head tilts down toward the mattress and the muscles on the top side of your neck stay stretched for hours.
- Height: about 4.7 inches (12 cm), enough to fill the gap between your ear and the mattress.
- Check: your nose should line up with the center of your chest, not dip toward the bed.
- Shoulder: a shape that lets your lower shoulder sit in front of the pillow, not under it.
- Jaw: do not rest your face on your hand or fist. It pushes the jaw sideways.
You switch between back and side. Most people do. A single flat height is always wrong for one of the two positions.
- Height: two zones in one pillow: about 3.5 inches (9 cm) in the center for your back, about 4.7 inches (12 cm) at the sides for your side.
- Firmness: medium firm, so each zone keeps its height when you roll over.
- Avoid: folding or stacking pillows. It creates a hinge right at your neck.
Stomach sleeper. This is the position most likely to give you a morning headache, because your head is turned fully to one side for hours.
- Height: as flat as possible, under 2 inches (5 cm), or no pillow under your head at all.
- Hips: a thin pillow under your hips stops your lower back from arching.
- Better still: try moving to your side. Hug a pillow in front of you so you get the same pressure on your chest without the twist in your neck.
- Note: contoured neck pillows, including our pick, are not made for stomach sleeping.
Is a contoured pillow actually your answer?
Three questions, then a loft number and a straight yes or no — including the times the answer is no.
What Happens at Night: The Six Common Causes
1. Neck strain from the wrong pillow height
Your head weighs about as much as a bowling ball. When the pillow is too high, your neck bends forward or sideways. When it is too low, your head drops back or tilts down. Either way, the muscles and joints at the top of your neck stay under strain for hours, and those upper neck nerves share pathways with the nerves that carry pain from your head. That is why a sore neck can be felt as a headache.
The clues: a stiff neck in the morning, pain that starts at the base of your skull or on one side, and pain that gets worse when you turn your head. When a headache truly comes from the neck, doctors call it a cervicogenic headache, and our guide to the best pillow for cervicogenic headaches goes deeper. Neck strain can also set off a tension-type headache, the tight band feeling across the forehead or around the head. See our guide to the best pillow for tension headaches.
This is the cause a pillow can actually fix.

2. Jaw clenching and teeth grinding
Many people clench or grind their teeth in their sleep and have no idea. The jaw muscles run up the sides of your head to the temples, so hours of clenching can leave you with an ache at the temples, a tired or sore jaw, and sometimes clicking when you open your mouth. A partner may hear the grinding. A dentist may spot worn teeth.
A dentist can fit a night guard that protects your teeth and may ease the jaw muscles. Stress, alcohol and caffeine can make clenching worse. Sleep position plays a small part: lying face down or with your jaw pressed into a hand or a hard pillow pushes the jaw sideways. Our guides to jaw pain in the morning and the best pillow for TMJ cover this.
3. Sleep apnea
This is the one not to miss. In obstructive sleep apnea, the airway closes again and again during sleep. Oxygen dips and the brain wakes you briefly, often without you knowing. Mayo Clinic lists morning headaches among the main symptoms, along with loud snoring, gasping or choking in your sleep, a dry mouth on waking and feeling tired during the day.
The International Headache Society describes sleep apnea headache as one present when you wake up, usually on both sides and pressing rather than throbbing, that goes away within a few hours. Untreated sleep apnea is also linked to high blood pressure and heart problems, which is why it matters.
4. Caffeine withdrawal
If you drink a lot of coffee, your body notices when it has gone hours without it, and overnight is exactly that. The International Headache Society describes caffeine withdrawal headache in people who have had more than 200 mg of caffeine a day for over two weeks, about two regular cups of coffee. It starts within 24 hours of the last dose and clears up within a week of stopping completely. A big clue: the headache fades soon after your morning coffee, and is worse on days you have it late.
The fix is to cut down slowly over a week or two rather than stopping suddenly, and to avoid a big jump between weekday and weekend habits.
5. Alcohol
Alcohol can trigger a headache the next morning, even after a modest amount for some people. It also breaks up sleep in the second half of the night, relaxes the throat muscles so snoring gets worse, and can make teeth grinding worse. If your morning headaches cluster after evenings with a drink, that is your answer. Drinking less, earlier in the evening and with water helps.
6. Medication overuse
This one surprises people. Taking pain relievers for headaches too often can itself cause more headaches, often present on waking. The International Headache Society uses these thresholds: simple pain relievers such as acetaminophen, ibuprofen or aspirin on 15 or more days a month, or triptans and combination pain relievers on 10 or more days a month, for more than three months. If that sounds like you, do not stop suddenly on your own. Talk to your doctor, who can help you cut down safely and find a better plan.
And if you have migraines
Migraines often strike in the early morning, and poor sleep, skipped meals and changes to routine can all set them off. A pillow will not prevent a migraine, but neck strain can be one more trigger in the mix. Our guide to the best pillow for migraines covers what helps.
The Loft Numbers, in One Place
“Loft” is the height of the pillow with your head on it, not the height printed on the box.
| Sleeping position | Target loft | How you know it is wrong |
|---|---|---|
| On your back | 3 to 4 in (7 to 10 cm) | Chin pointing at the ceiling means too low. Chin pressed toward your chest means too high. |
| On your side | 4 to 5.5 in (10 to 14 cm) | Ear dropping toward the mattress means too low. Head pushed up away from your shoulder means too high. |
| Switching between both | Two zones, lower center and higher sides | You fold, punch or flip the pillow every time you turn over. |
| On your stomach | Under 2 in (5 cm), or none | Your head is turned hard to one side all night. |
Two things move you within those ranges. A softer mattress lets your shoulder sink in, so you need a little less height. Broader shoulders need a little more. For a number fitted to your own build and mattress, try our pillow height calculator. It takes about thirty seconds.
Positions to Use and Avoid
Back sleeping: good for the neck, not for snorers
On your back, your head is centered and your neck needs the least height. It is often the easiest position for neck-related headaches. The catch is snoring and sleep apnea, which are usually worse on your back. If you snore, side sleeping is the better choice.
Side sleeping: good for most people
Side sleeping keeps the airway more open and suits most people with morning headaches, as long as the pillow is tall enough. A pillow that is too flat is the most common side sleeper mistake. Put a pillow between your knees to keep your hips and lower back level.
Stomach sleeping: the one to avoid
Lying face down forces your neck to turn fully to one side for hours. It loads the joints at the top of the neck, the same area that drives cervicogenic headaches, and presses one side of your jaw into the pillow. If you wake with a headache on one side and a stiff neck on the same side, this position is worth changing first.
Small habits that matter
- Do not sleep with your arm under the pillow. It raises your head and can numb your arm.
- Keep the pillow under your head and neck, not under your shoulders.
- If you read or watch TV in bed, do not do it propped on stacked pillows with your chin on your chest.
What to Look for in a Pillow for Morning Headaches
1. The right height for your position
This is the most important feature. Use the table above. If you sleep in more than one position, choose a pillow with two heights so you do not have to rearrange it half asleep.
2. Support for the curve of your neck
A contoured pillow has a raised edge that fills the hollow behind your neck and a lower area for your head. That keeps the top of your neck supported instead of hanging.
3. Foam that holds its height all night
Down and cheap fiber fill flatten as you sleep, so by morning the pillow may be an inch lower. Medium-firm memory foam keeps its height.
4. Not too firm
A rock-hard pillow puts pressure on the back of the head and on the jaw when you lie on your side. Medium firm is the sweet spot.
5. A trial period
Your neck needs a week or two to adjust to a new shape. A long money-back guarantee lets you find out whether the headaches fade.

Our Pick: Derila Ergo
The Derila Ergo is a contoured memory foam pillow in a butterfly shape. The center is about 3.5 inches (9 cm) high, which suits back sleeping. The side wings rise to about 4.7 inches (12 cm) for side sleeping. Both sit inside the ranges in our table, so you can turn over in the night without the height going wrong.
Why it suits people who wake with neck-related headaches:
- Two heights in one pillow. Most of us change position many times a night. The Ergo handles back and side without folding, flipping or stacking.
- Neck support. The contour fills the curve of your neck instead of leaving it hanging.
- Medium-firm foam. It keeps its shape through the night, so your neck is at the same angle at 5am as at 11pm.
- Shoulder room. The butterfly shape lets your shoulder sit in front of the pillow on your side.
- Washable cover. The cover is removable and washable.
I have slept on it myself. At the brand level, Derila holds a 4.1 out of 5 rating on Trustpilot.
Price and guarantee
At the time of writing the official page lists $59.99 for one pillow, $99.98 for two ($49.99 each) and $149.96 for four (three plus one free, which works out at $37.49 each). Shipping is calculated at checkout, and US delivery usually takes 8 to 12 business days. Every order has a 60-day money-back guarantee, enough time to see whether your mornings change.
It is not for stomach sleepers, and it will not help a headache caused by sleep apnea, caffeine, alcohol or medication.
We earn a commission if you buy through this link, at no extra cost to you. Full details in our Derila pillow review.
What a Pillow Cannot Do
A pillow cannot open a blocked airway, stop you clenching your jaw, or undo the effects of caffeine, alcohol or too many painkillers. It cannot cure migraine or repair worn joints in your neck. If your morning headaches come from one of those causes, a new pillow will not change them, however good it is.
What a pillow can do is remove one cause: a neck held at the wrong angle for hours. If your headaches come with a stiff neck and start at the base of your skull, that may be enough to make a real difference. If they do not ease within a few weeks of getting the height right, look at the other causes.
When a Pillow Is Not the Answer
See a doctor, rather than trying another pillow, if:
- You snore loudly, gasp or stop breathing in your sleep, or feel very tired during the day. Ask about a sleep apnea test.
- You take pain relievers for headaches on many days each month.
- Your headaches are new, especially if you are over 50, or they are getting more frequent or changing in pattern.
- Headaches regularly wake you from sleep, or are worse lying down, coughing or straining.
Get urgent medical help, or call 911, for:
- A sudden, severe headache that peaks within a minute, often described as the worst headache of your life.
- Headache with fever, stiff neck, confusion or a rash.
- Headache with weakness, numbness, slurred speech, vision loss or trouble walking.
- Headache after a blow to the head.
Frequently Asked Questions
Can the wrong pillow cause morning headaches?
Yes. A pillow that is too high or too low keeps the muscles and joints at the top of your neck under strain for hours, and that strain can be felt as a headache, often at the base of the skull. Getting the height right, about 3 to 4 inches on your back and 4 to 5.5 inches on your side, often helps within a couple of weeks.
What is the best pillow for headaches and neck pain?
A contoured, medium-firm memory foam pillow that supports the curve of your neck and matches your sleep position. Our pick is the Derila Ergo, with a 3.5 inch (9 cm) center for back sleeping, 4.7 inch (12 cm) side wings for side sleeping and a 60-day guarantee.
How do I know if my headache is from my pillow?
Pillow-related headaches usually come with a stiff or sore neck, start at the base of the skull or on one side, and ease as you move around during the morning. If your neck feels fine but you snore, drink coffee heavily or take pain relievers often, look at those causes too.
Is a memory foam pillow good for headaches?
For neck-related headaches, often yes, because memory foam keeps the same height all night while down and fiber fill flatten. Choose medium firm rather than very hard, and a contoured shape rather than a flat block.
How long does it take a new pillow to help with headaches?
Most people need one to two weeks for their neck to adjust to a new shape. Give it at least two weeks before judging. If headaches have not eased after three or four weeks at the right height, look at other causes and talk to your doctor.
Can sleeping position cause headaches?
Yes. Stomach sleeping is the most likely to cause them, because your neck is twisted to one side all night. Side sleeping with a pillow tall enough to fill the space between your ear and the mattress, or back sleeping with a lower pillow, is easier on the neck.
The Bottom Line
Waking up with a headache has several possible causes, and it pays to check them in order. Snoring and morning headaches together mean a sleep apnea test. Heavy coffee, evening drinks and frequent pain relievers are worth a look. Jaw ache points to a dentist. And if your headache comes with a stiff neck, the pillow is the place to start: about 3.5 inches (9 cm) on your back and about 4.7 inches (12 cm) on your side, in foam that holds its height until morning.
The Derila Ergo gives you both heights in one medium-firm pillow, and the 60-day guarantee gives you time to see whether your mornings get better.
Get the Derila Ergo with the 60-day guarantee →
Sources
- Ohayon MM. Prevalence and risk factors of morning headaches in the general population. Archives of Internal Medicine, 2004.
- Mayo Clinic: Obstructive sleep apnea: symptoms and causes.
- International Headache Society, ICHD-3: 10.1.4 Sleep apnoea headache.
- International Headache Society, ICHD-3: 8.3.1 Caffeine-withdrawal headache.
- International Headache Society, ICHD-3: 8.2 Medication-overuse headache.
More Pillow Guides
Recommended for Pain-Free Sleep
🛌 Derila Ergonomic Memory Foam Pillow
Contoured design that holds your cervical spine in neutral for the full night. Works for side and back sleepers. Backed by a 60-day money-back guarantee on the official store.
- ✓ Memory foam contour
- ✓ Side & back sleeper design
- ✓ 60-day money-back guarantee

