How to sleep with a migraine: a dark, quiet room, a comfortable pillow, and the warning signs that are urgent
Hi, we’re John and Mimi. When a migraine hits, light hurts, every sound is too loud, and all you want is to lie down and sleep it off. Below is what MedlinePlus and the NHS say helps during an attack, how to set up your bedroom so it’s ready when you need it, the sleep habits both sources mention, where a pillow fits in, and the warning signs that mean you should get help right away.
A sincere note: we’re a family business, not doctors, and this is general comfort guidance, not medical advice. Migraine needs a proper diagnosis from your doctor, and their advice comes first. No bed, mattress, pillow or adjustable base treats or prevents migraine.
The short answer
- Lie down in the dark. The NHS says to try sleeping or lying down in a darkened room during a migraine attack. MedlinePlus suggests resting with your eyes closed in a quiet, darkened room.
- Take your medicine early. The NHS says if you’re taking painkillers, take them as soon as your headache starts. MedlinePlus says the sooner you take the medicine, the more effective it is.
- Cool cloth and fluids. MedlinePlus lists placing a cool cloth or ice pack on your forehead and drinking fluids.
- Keep a steady sleep schedule. MedlinePlus lists too much or not enough sleep among migraine triggers and suggests going to bed at the same time each night. The NHS says to get plenty of sleep.
- There’s no “best” sleeping position in the sources. Neither MedlinePlus nor the NHS names one, so we won’t either. Lie however feels least painful.
- Know the emergency signs. The worst headache of your life, or a headache that starts suddenly, needs emergency care. The full list is below.
Why migraine and sleep are so tangled up
MedlinePlus describes migraine as a recurring type of headache with moderate to severe throbbing or pulsing pain, often on one side of the head, sometimes with nausea, vomiting and sensitivity to light and sound. The NHS adds that the headache can be worse when you move around, and that attacks usually last between 4 hours and 3 days. MedlinePlus gives 4 to 72 hours.
Sleep shows up on both sides of the story. MedlinePlus says migraines are more common in the morning and that people often wake up with them. It lists too much or not enough sleep as a trigger, and the NHS lists stress and tiredness. Some people get early signs before the pain, which the NHS says can include feeling very tired and yawning a lot, and a stiff neck. After an attack, MedlinePlus says you may feel exhausted, and the lingering “migraine hangover” can include needing more sleep and neck pain.
What MedlinePlus and the NHS say helps during an attack
- Rest in a dark, quiet room with your eyes closed, or try to sleep (MedlinePlus, NHS).
- A cool cloth or ice pack on your forehead (MedlinePlus).
- Fluids. MedlinePlus says hydration is often helpful, with or without medicines.
- Medicine at the first sign. The NHS lists painkillers such as ibuprofen and paracetamol, triptans and gepants, and medicines for feeling or being sick. MedlinePlus lists acetaminophen, naproxen, ibuprofen or aspirin for mild attacks, and triptans by prescription. Your doctor or pharmacist can tell you which is right for you.
- Don’t lean on painkillers too often. The NHS says try not to take them for more than 2 days a week, because that can cause more headaches. MedlinePlus says more than 3 days a week may lead to rebound headaches.
Getting your bedroom ready before the next attack
These are practical tips that go along with what MedlinePlus and the NHS say about a dark, quiet room. None of them is a treatment, and it’s easier to set them up on a good day than in the middle of an attack.
- Make it truly dark. Blackout curtains or an eye mask, and cover or turn away glowing chargers, clocks and TV lights. The NHS says migraine can make you very sensitive to light, and MedlinePlus lists bright or flashing lights as a trigger.
- Make it quiet. Earplugs or a closed door. Loud noises are on the MedlinePlus trigger list, and the NHS mentions sensitivity to sound.
- Keep a migraine kit on the nightstand. Your medicine, a glass or bottle of water, and a cool cloth or ice pack ready to go, so you don’t have to walk to the kitchen with the lights on. If nausea is part of your attacks, a small bin and tissues within reach help too.
- Go easy on strong smells. MedlinePlus lists odors and perfumes, and strong smells, among triggers. If scents bother you, skip scented candles and sprays in the bedroom. If you’ve just unboxed a new foam mattress, our new mattress smell guide shows how to air the room out.
- Get the temperature comfortable. Neither source says a cool room helps migraine, but a cool cloth is on the MedlinePlus list, and a stuffy, overheated room is hard to rest in. If you sleep warm, see our best cooling pillow guide.
- Charge the phone across the room. A bright screen in a dark room is the last thing you want during an attack.
Sleep habits both sources mention
MedlinePlus lists healthier sleep habits among the lifestyle changes for migraine, such as getting enough sleep and going to bed at the same time each night, and suggests keeping a log of your triggers, which can help you settle on a consistent sleep schedule. The NHS says to get plenty of sleep and to keep a migraine diary to work out what might trigger your attacks.
- Same bedtime, same wake time. MedlinePlus lists too much sleep as well as too little among triggers, and says some people get migraines on weekends after a stressful week. Keeping weekend wake times close to weekday ones is one way to keep your schedule steady.
- Write it down. Note when you went to bed, when you woke up, and whether a migraine followed. Both sources suggest a diary or log.
- Other habits from the NHS list: eat meals at regular times, stay well hydrated, limit caffeine and alcohol, get regular exercise, try to manage your stress, and try to avoid things you know trigger your attacks.
If trouble sleeping has become a problem on its own, see how to sleep better with insomnia.
Is there a pillow for migraine?
No pillow treats or prevents migraine, and neither MedlinePlus nor the NHS recommends one. What we can say honestly is this: neck stiffness and neck pain appear in both sources’ symptom descriptions, and when you’re lying in the dark for hours, a pillow that keeps your head level with your spine is simply more comfortable than one that’s gone flat or is too tall. The right height depends on how you sleep. Our best mattress and pillow for neck pain guide explains loft by sleep position, and how to choose a pillow lists every pillow we carry.
| Pillow | From the listing | Why it may suit you |
|---|---|---|
| Reactive Shredded Memory Foam Pillow | Shredded foam you can remove to set the height, 5" loft, zip-off cover with cooling fibers | If you’re not sure what height you need, you can adjust it until it feels right |
| Cryo-Chill Phase Change Pillow | Cooling memory foam core with a phase change coating, 4.5" loft, zip-off cover | A medium height for back sleepers who also sleep warm |
| Low Profile Memory Foam Pillow | 2.95" loft, made for stomach and back sleepers, zippered washable cover | If taller pillows push your head up |
| Contoured Side Sleeper Shoulder Pillow | Shoulder cutout, 22" x 16" x 5", ventilated foam core, cooling cover | For side sleepers who want the head and neck supported while the shoulder tucks in |
Does a mattress or adjustable bed help migraine?
No bed treats migraine, and neither MedlinePlus nor the NHS mentions a mattress or an adjustable base. A comfortable bed in a dark, quiet room is just a better place to do what they do suggest, which is rest and sleep. Some people like to rest propped up a little, and if you already have an adjustable base, a slight head lift is a matter of comfort and nothing more. One thing to know: MedlinePlus says to contact your provider if your headaches are more severe when lying down. That’s a reason to call your doctor, not to buy a bed. For how the head lift works in general, see how to sleep on an adjustable bed.
If dizziness and spinning are what keep you up, that’s a different problem; see how to sleep with vertigo.
When to see a doctor, and when it’s an emergency
Call 911 if, as MedlinePlus says:
- You are having the worst headache of your life.
- You have speech, vision or movement problems or loss of balance, especially if you haven’t had these with a migraine before.
- A headache starts suddenly.
The NHS (UK) emergency list also includes a sudden, extremely painful headache, problems speaking or remembering things, losing your vision or having blurred or double vision, feeling drowsy or confused, a seizure, a very high temperature with symptoms of meningitis, weakness in the arms or legs on one side of the body or one side of the face, or a recent head injury. The NHS says to get urgent help if an attack has lasted longer than 72 hours, if aura symptoms last longer than 1 hour at a time, or if you’re pregnant or just had a baby.
Contact your doctor if your headache pattern or pain changes, treatments that once worked no longer help, you have side effects from your medicine, you’re taking birth control pills and have migraines, or your headaches are more severe when lying down (MedlinePlus). The NHS adds attacks that are severe or getting worse, attacks more than once a week, migraine you’re finding hard to control, and attacks that regularly come before or during your period.
Shop this guide
If your pillow has gone flat or never fit how you sleep, these are where most people start.
- Reactive Shredded Memory Foam Pillow with Adjustable Loft Height, from $77. Shredded memory foam pillow you can set to your height.
- Cryo-Chill Cooling Phase Change Memory Foam Pillow, from $75. Medium-height cooling pillow for back sleepers who run warm.
Questions we hear a lot
What is the best sleeping position for a migraine?
MedlinePlus and the NHS do not name a best sleeping position for migraine, so we don’t either. The NHS says to try sleeping or lying down in a darkened room during an attack, and MedlinePlus suggests resting with your eyes closed in a quiet, darkened room. Lie however feels least painful, with a pillow that keeps your head level.
Why do I wake up with a migraine?
MedlinePlus says migraines are more common in the morning and people often wake up with them. It lists too much or not enough sleep among triggers and suggests going to bed at the same time each night. The NHS suggests a migraine diary to work out your triggers. Your doctor can help you find the cause.
Does sleeping help a migraine?
The NHS says to try sleeping or lying down in a darkened room during a migraine attack. MedlinePlus also lists a cool cloth or ice pack on your forehead and drinking fluids. The NHS says to take painkillers as soon as your headache starts, but not on more than 2 days a week.
Is there a pillow that helps migraine?
No pillow treats or prevents migraine, and neither MedlinePlus nor the NHS recommends one. Neck stiffness and neck pain do show up in their symptom lists, so a pillow at the right height for how you sleep is simply more comfortable to rest on. Questions? Text John at 818-924-3744.
When is a migraine an emergency?
MedlinePlus says to call 911 if you have the worst headache of your life, a headache that starts suddenly, or speech, vision or movement problems or loss of balance, especially if they are new. The NHS adds confusion, a seizure, weakness on one side, or a recent head injury.
Text John before you buy anything
Text John how you sleep, what pillow you have now and how old it is. He’ll tell you honestly whether a different pillow is worth it or whether what you have is fine. Text or call 818-924-3744, 6 AM to 9 PM Pacific.
Written by John & Mimi Venti, MimiJohn. Product details are from our listings. The rest is general comfort guidance, not medical advice. No mattress, pillow or adjustable base treats or prevents migraine. Health information is from MedlinePlus, U.S. National Library of Medicine (Migraine, last updated November 20, 2025; Migraine medical encyclopedia, reviewed February 11, 2025) and the NHS (Migraine, last reviewed March 10, 2026), all checked December 4, 2026. Always follow your doctor’s advice first. Prices are read live from our catalog and update automatically.