Why Do I Get a Migraine When I Lay Down?

Lying down changes the way blood and cerebrospinal fluid distribute themselves inside your skull, and for people prone to migraine, that shift can be enough to trigger or intensify an attack. When you move from sitting or standing to a flat position, the pressure inside your head roughly triples compared to upright sitting, and your body’s vascular tone, sinus mucosa, and even digestive system all respond to the new orientation. There is no single explanation that covers every person, but the combination of fluid pressure changes, hidden contributors like acid reflux or breathing problems, and the brain’s own circadian wiring can all converge at the moment you lie down.

How Lying Down Changes the Pressure Inside Your Skull

Your brain floats in cerebrospinal fluid, and the pressure of that fluid depends heavily on posture. Research measuring intracranial pressure (ICP) in different positions found that ICP averaged about 4 mmHg while seated upright at 90 degrees and jumped to roughly 15 mmHg while lying flat on the back.1PubMed Central. Effect of gravity and microgravity on intracranial pressure That difference matters. In the upright position, gravity pulls blood and spinal fluid downward, keeping the volume around the brain relatively low. The moment you go horizontal, that gravitational drain disappears. Venous blood that was flowing easily out of the skull now pools, and the veins inside the skull expand to accommodate it.

For most people, this is seamless. But if you already have a lower threshold for migraine activation, that bump in pressure and vascular stretch can push sensory neurons in the meninges past their tipping point. Pain-sensitive structures around the brain, particularly blood vessels and the surrounding tissue, respond to even modest changes in stretch and pressure. If your trigeminal nerve system is primed by stress, hormonal shifts, or prior attacks, the added fluid load from lying flat may be the final nudge.

When “Sinus Pressure” Is Actually a Migraine

Many people who get headaches when they lie down assume the problem is their sinuses. The logic seems obvious: your nose feels stuffy, there is pressure around the eyes and forehead, and it all gets worse when you go horizontal. But research on so-called sinus headaches tells a different story. When people who believed they had sinus headaches were examined during symptomatic episodes using nasal endoscopy and imaging, the vast majority did not have a sinus infection at all.2Taylor & Francis Online / Expert Review of Neurotherapeutics. Sinus headaches: avoiding over- and mis-diagnosis The nasal congestion was part of the migraine itself. During a migraine attack, the blood vessels in the nasal lining can dilate alongside the cranial vessels, producing real stuffiness and sinus-area pain without any bacterial infection or chronic sinusitis driving it.

This misdiagnosis matters because it changes what you do about it. Reaching for decongestants or antibiotics when the underlying problem is migraine delays effective treatment. The nasal swelling is a vascular event, not an infectious one, and it responds to migraine-specific therapies rather than sinus remedies. If your “sinus headache” reliably shows up when you lie down and comes with light sensitivity, nausea, or one-sided throbbing, it is worth revisiting the diagnosis with a headache specialist rather than cycling through sinus treatments.

Acid Reflux Gets Worse When You Lie Flat

Here is one that surprises people: gastroesophageal reflux disease (GERD) has a causal relationship with migraine, and lying down is exactly when reflux intensifies. A large genetic analysis found that GERD increased migraine risk by about 49%, and that this link held even after accounting for smoking, alcohol, obesity, diabetes, and depression.3PLOS ONE. Migraine and gastroesophageal reflux disease: Disentangling the complex connection with depression as a mediator The reverse was not true; migraine did not meaningfully increase the risk of GERD. Depression mediated roughly 29% of GERD’s effect on migraine, but the remaining 70-plus percent appeared to operate through other pathways.

When you lie down, your stomach loses the gravitational advantage that helps keep acid where it belongs. Acid creeps into the esophagus more easily, and the vagus nerve, which connects your gut to your brainstem, relays irritation signals upward. If you frequently wake with migraine or notice attacks building as you settle into bed, uncontrolled reflux could be a contributing factor. Elevating the head of your bed by a few inches, avoiding large meals close to bedtime, and addressing reflux medically can sometimes reduce the frequency of positional migraine without ever touching a migraine-specific drug.

Sleep-Disordered Breathing and Nighttime Headache

Sleep apnea is another condition that lurks behind headaches that appear when you lie down. People with obstructive sleep apnea experience repeated airway collapses during sleep, causing oxygen levels to dip and carbon dioxide to rise. Those fluctuations in blood oxygen saturation during the night, combined with increased carbon dioxide, trigger blood vessel dilation inside the skull and raise intracranial pressure, both of which are recognized contributors to headache.4PubMed. Sleep-related breathing disorders and headache The impaired sleep quality that comes with apnea adds another layer: disrupted sleep is one of the most reliable migraine triggers on its own.

You do not have to be overweight or a loud snorer to have sleep-disordered breathing. Milder forms, including upper-airway resistance syndrome, can produce the same overnight oxygen swings without classic apnea symptoms. If your headaches reliably show up in the early morning or you wake up feeling unrested despite what should be enough hours in bed, a sleep study can rule this in or out. Treating sleep apnea with continuous positive airway pressure or other therapies often reduces morning headache frequency even when those headaches had previously been attributed to migraine alone.

Vestibular Migraine and Sensitivity to Position Changes

Some people experience not just head pain but dizziness, spinning sensations, or a vague rocking feeling when they change positions, and lying down can be a specific trigger. This constellation points toward vestibular migraine, a subtype in which the brain’s balance-processing centers become part of the migraine attack. In a study of over 100 patients diagnosed with vestibular migraine, common symptoms included headache in about 81% of cases, spinning vertigo in roughly 72%, and motion sensitivity in about 31%.5PubMed Central. Clinical, oculographic, and vestibular test characteristics of vestibular migraine A striking finding was that positional nystagmus, involuntary eye movements triggered by position changes, was present in over half of patients even between attacks.

What this means in practical terms is that the act of lying down, rolling over in bed, or tilting your head back can directly activate the vestibular-migraine circuit. If your headaches come with a sense of the room shifting, nausea that seems out of proportion, or an unsteady feeling when you get into or out of bed, vestibular migraine is worth discussing with your doctor. It is frequently underdiagnosed because the vertigo and the headache do not always happen at the same time, and many people assume the dizziness is a separate problem from the migraine.

The Sleep-Headache Paradox

One of the more frustrating patterns in migraine is that sleep can both cause and cure a headache. Many people find that falling asleep ends an active migraine, yet the process of lying down and drifting off triggers one. Recent research has pointed to the brain’s waste-clearance system, sometimes called the glymphatic system, as a potential link between sleep disorders and headache. This network, which flushes metabolic waste out of the brain mainly during sleep, appears to malfunction in people who have both chronic headaches and poor sleep.6PubMed Central. Glymphatic System Dysfunction: A Novel Mediator of Sleep Disorders and Headaches

The paradox makes more sense when you think of it as two separate processes on different timelines. The initial act of lying down shifts fluids and engages pressure-sensitive neurons quickly, within minutes. Waste clearance, by contrast, is a slower process that ramps up once you have actually fallen asleep and entered deeper sleep stages. So the transition into sleep can aggravate migraine in the short term, even though sustained sleep eventually helps resolve it. This is why people with migraine are often told that both too little and too much sleep can be triggers. The sweet spot is consistent, uninterrupted sleep of moderate duration, something easier said than done for anyone who dreads the transition into bed.

Your Brain’s Internal Clock Plays a Role

Migraine attacks cluster by time of day and even time of year, and that timing traces back to the hypothalamus, a small brain region that functions as the body’s master clock. The hypothalamus is involved in processing pain signals during migraine and also regulates the release of melatonin, the hormone that signals your body to prepare for sleep.7PubMed Central. Molecular and Cellular Neurobiology of Circadian and Circannual Rhythms in Migraine: A Narrative Review The overlap is not coincidental. When you lie down in the evening, the hypothalamus is already shifting gears: melatonin is rising, cortisol is falling, and the autonomic nervous system is transitioning from its daytime “alert” setting to its nighttime “rest and repair” mode.

For migraine-prone brains, that transition period is vulnerable. The same hypothalamic circuits that orchestrate your sleep-wake cycle also modulate pain thresholds, and the evening shift appears to lower the threshold for a migraine attack in some people. This helps explain why many migraineurs report that attacks happen at predictable times, often in the early evening or first hours of lying down. It also helps explain why irregular sleep schedules, jet lag, and shift work are such consistent migraine triggers: they disrupt the hypothalamic rhythms the brain depends on to keep pain processing in check.

When Low Pressure Mimics High Pressure

Not all positional headaches come from too much pressure inside the skull. Spontaneous intracranial hypotension, a condition caused by a leak in the membrane surrounding the spinal cord, classically produces headaches that worsen when you stand up and improve when you lie down. But a subset of patients experience the opposite: a paradoxical postural headache that is actually worse when lying down and better when sitting up.8Otolaryngology Case Reports. Atypical clinical presentation of spontaneous CSF leak The suspected mechanism involves compensatory engorgement of cerebral veins and venous sinuses, which swell in response to the low fluid volume and then create pain when gravity is removed and those distended vessels expand further.

This is a genuinely tricky diagnostic situation. The headache mimics high-pressure or migraine-type pain but stems from the exact opposite physiological problem. The treatment for a cerebrospinal fluid leak, often a procedure called an epidural blood patch, is nothing like the treatment for migraine or high intracranial pressure. If your lying-down headaches are new, progressive, or accompanied by symptoms like hearing changes, neck stiffness, or a sensation of fluid drainage, a specialist evaluation that includes imaging for spinal fluid leaks can prevent months of misdirected treatment.

High Intracranial Pressure Disorders

On the other end of the spectrum, some people have chronically elevated intracranial pressure without an obvious tumor or obstruction, a condition called idiopathic intracranial hypertension (IIH). IIH headaches are notoriously hard to distinguish from migraine or tension-type headache based on symptoms alone. Research from the Idiopathic Intracranial Hypertension Treatment Trial found that most participants had a headache pattern resembling migraine or tension-type headache, with no single “typical” phenotype that reliably identified the condition.9PubMed Central / Continuum (Minneap Minn). Headaches Due to Low and High Intracranial Pressure Headache-related disability was severe, and it did not correlate with how high the pressure actually measured on a spinal tap.

IIH is more common in younger women, particularly those with higher body weight, and the headaches tend to worsen with anything that further raises intracranial pressure: lying flat, bending over, coughing, or straining. If the headache comes with visual symptoms like brief episodes of dimming or blurring, pulsatile tinnitus (a whooshing sound in time with your heartbeat), or pain behind the eyes, IIH should be on the radar. Medications like acetazolamide, which reduces cerebrospinal fluid production, can lower intracranial pressure and relieve the headache.10PubMed. Utility of acetazolamide for headaches in the setting of pulmonary arterial hypertension – A case report Left untreated, elevated intracranial pressure can damage the optic nerves, so this is one of the scenarios where positional headaches genuinely warrant prompt medical attention rather than home management.

What You Eat Before Bed May Matter

Blood sugar is an underappreciated factor in nighttime and early-morning migraine. When you lie down for the night without having eaten recently, glucose levels gradually decline over the hours of fasting. For some migraine-prone people, this dip is enough to trigger an attack. A study tracking headache activity alongside eating patterns found that having a nighttime snack was associated with a roughly 40% reduction in the odds of experiencing a headache compared to eating nothing after dinner.11PubMed Central. Nighttime snacking, stress, and migraine activity A late dinner showed a similar trend but did not reach statistical significance. The same study found that daily stress independently increased headache odds, which compounds with the fasting effect if you are lying down stressed and hungry.

This does not mean you should eat a large meal right before bed, especially if reflux is part of your picture. But a small, balanced snack with some protein and complex carbohydrates can stabilize blood sugar through the early hours and may reduce the likelihood of waking up with a headache. It is one of the simplest interventions to test on your own, with essentially no downside if reflux is not an issue for you.

Practical Steps That Can Help

Because lying-down migraine has so many potential contributors, figuring out your particular pattern takes some detective work. A headache diary that tracks not just the pain but also your position, what you ate, your stress level, and whether you had nasal congestion or reflux symptoms can reveal patterns that are invisible in day-to-day life. Beyond that, a few adjustments are worth trying:

  • Elevate your head: Sleeping with the head of the bed raised four to six inches (using a wedge pillow or bed risers, not just extra pillows that flex the neck) can reduce the intracranial pressure spike that comes with lying flat. This also helps with both reflux and sinus congestion.
  • Address reflux: If you have any GERD symptoms, treating them aggressively rather than ignoring mild heartburn may reduce migraine frequency.
  • Screen for sleep apnea: Especially if your headaches are worst in the morning or your sleep partner reports snoring, gasping, or breathing pauses.
  • Stabilize your schedule: Going to bed and waking at the same time, even on weekends, supports the hypothalamic rhythms that modulate pain thresholds. The regularity matters as much as the total hours.
  • Consider a small bedtime snack: If you tend to eat dinner early and get headaches in the late evening or early morning, a light snack before bed may blunt the blood-sugar dip.

If these adjustments do not make a dent, or if your headaches are new, worsening, or accompanied by visual changes, balance problems, or hearing symptoms, a thorough evaluation for intracranial pressure disorders or cerebrospinal fluid leaks is important. The overlap between migraine, IIH, and spontaneous intracranial hypotension means that symptom descriptions alone can mislead even experienced clinicians. Targeted testing, including imaging and sometimes a lumbar puncture, can distinguish between conditions that look nearly identical at the bedside but require very different treatments.

Christina Barrett

Christina Barrett is a staff writer at Biology Insights covering headache and migraine therapies. Based in Richmond, Virginia, she has reported on health for 20 years and previously freelanced for consumer magazines. Barrett holds a bachelor's degree in English literature.