How to Sleep With a Migraine When It Feels Impossible
Sleep is one of the most effective tools for recovering from a migraine — and one of the hardest things to actually do when you're in pain, nauseous, and sensitive to every sound and flicker of light. Here's how to make it more possible.
For a lot of people, sleep is the single most effective "treatment" for a migraine that's already underway — sometimes more effective than anything else available. And yet sleep is often exactly what a migraine takes away from you. Pain that throbs with your pulse, nausea that makes lying flat uncomfortable, sensitivity to light and sound that turns a normal bedroom into a minefield, and the anxious, wired feeling that can come with a bad attack all work against the thing that would actually help most.
Here's how to tilt the odds back in your favor.
Why Sleep Helps So Much
Sleep gives the nervous system a chance to downregulate. The trigeminovascular system — the network of nerves and blood vessels behind migraine pain — tends to be in an activated, inflamed state during an attack, and sleep appears to help that activation settle, even partially. Many people report waking up from even a short period of sleep with an attack noticeably reduced or fully resolved, particularly if medication was taken beforehand and had time to work while the body was at rest.
Set Up the Environment First
Before getting into bed, deal with the sensory environment as completely as you can. Make the room as dark as possible — blackout curtains if you have them, or a well-fitting sleep mask if you don't. Even small amounts of light, including from device standby lights or gaps in curtains, can be enough to keep a sensitive nervous system engaged.
For sound, earplugs or noise-canceling headphones can help, but for some people, total silence feels worse — every small sound (a creaking floor, traffic outside) becomes startling against a silent backdrop. If that's you, a consistent low-level white noise or fan sound can mask unpredictable noises without being stimulating itself.
Temperature matters too. A room on the cooler side — many people find somewhere around 65-68°F (18-20°C) comfortable — tends to be easier to fall asleep in generally, and a cool environment can feel soothing if you're also using a cold compress.
Find a Position That Doesn't Fight the Pain
Lying flat can sometimes increase the sensation of pressure for people with migraine, particularly if sinus-type pressure is part of the picture. Propping yourself up slightly with an extra pillow — enough to elevate your head a little without straining your neck — is worth experimenting with. If nausea is significant, lying flat can also make that worse; a slight incline can help with both.
If you tend to carry tension in your neck and shoulders during an attack, a small rolled towel or pillow under the neck for support, or a warm compress on the back of the neck before settling in, can reduce some of the physical tension that makes it harder to relax into sleep.
Address Nausea Before You Try to Sleep
Trying to fall asleep while actively nauseous is genuinely difficult — your body is in a state that's working against rest. If nausea is part of your attack, dealing with it (anti-nausea medication if you have it, sipping ginger tea, or simply sitting upright for a few minutes before lying down) before attempting sleep is often more productive than lying in bed feeling miserable and unable to drift off.
If You Can't Actually Fall Asleep
Sometimes, despite doing everything right, sleep doesn't come — and lying in bed getting frustrated about not sleeping adds its own stress on top of an already difficult situation. In that case, the goal shifts from "sleep" to "rest as completely as possible." Staying still, in the dark, with your eyes closed, breathing slowly, still gives your nervous system a chance to settle even if you don't fully fall asleep. Some people find a familiar audiobook or a very low-volume, low-stimulation podcast — something they've heard before and don't need to actively follow — helps occupy the mind just enough to let the body relax, without the alertness that comes with something new or visually engaging.
The Anxiety Loop
For some people, part of what makes sleep difficult during a migraine is a layer of anxiety on top of the physical symptoms — worry about how bad it will get, what you'll miss tomorrow, or whether this is "going to be a bad one." That anxiety itself activates the nervous system in a way that works against rest. If you notice this pattern, slow breathing — even just extending your exhale longer than your inhale for a few minutes — can help shift things toward a calmer state, independent of the headache itself.
Protecting Sleep Before an Attack, Not Just During
Everything above is about getting through a night when a migraine has already started. But sleep disruption is also a trigger in its own right — both too little and too much sleep, as well as irregular sleep timing, are associated with migraine attacks. If you know a high-risk window is coming, whether due to hormonal timing or a forecasted pressure drop, protecting your sleep that night — keeping your normal bedtime, avoiding screens beforehand, skipping alcohol — is one of the most effective preventive steps available, precisely because poor sleep stacked on top of another trigger is often what tips things over.
If weather changes are part of what's disrupting your sleep and triggering attacks, MigraineCast's advance pressure forecasts can give you the heads-up to protect your sleep the night before a high-risk window arrives — rather than finding out the hard way. Get MigraineCast free on iOS.
Frequently Asked Questions
How do you sleep when you have a migraine headache?
Make the room as dark as possible (blackout curtains or a sleep mask), use earplugs or white noise to control sound, cool the room to around 65–68°F, and try propping your head up slightly if lying flat increases head pressure. Address nausea before attempting sleep — it's hard to fall asleep while actively nauseous. If you can't fall fully asleep, lying still in the dark with eyes closed still gives your nervous system a chance to settle.
Does sleep actually cure a migraine?
For many people, yes — especially if medication was taken beforehand. Sleep gives the trigeminovascular system a chance to downregulate, and many people wake from even a short sleep to find an attack significantly reduced or fully resolved. It's not guaranteed, but sleep is one of the most consistently effective non-medication tools available during an active migraine.
What position should I sleep in during a migraine?
There's no single right answer, but many people find that lying completely flat worsens head pressure — a slight incline with an extra pillow under the head can help. If nausea is significant, a mild incline also reduces the likelihood of discomfort from lying flat. Side-sleeping with a supportive pillow for the neck tends to reduce shoulder and neck tension that can accompany attacks.