Nighttime heartburn happens because lying down removes gravity’s help in keeping stomach acid where it belongs. When you’re upright during the day, gravity pulls acid downward and your body clears it quickly. At night, several things change at once: you’re horizontal, you swallow less, you produce less saliva, and your stomach empties more slowly. The result is that any acid that escapes into your esophagus sits there longer, causing more intense burning that can wake you from sleep.
What Changes When You Lie Down
During the day, a ring of muscle at the top of your stomach acts as a one-way valve, opening to let food in and closing to keep acid out. Small amounts of acid occasionally slip past this valve even in healthy people, but gravity and swallowing quickly push it back down. The entire episode might last seconds.
When you lie flat, that gravitational advantage disappears. Acid that leaks past the valve can flow freely along the length of your esophagus and stay there. In healthy people, nighttime acid reflux is actually rare and happens mainly during brief, involuntary relaxations of that valve muscle. But when it does occur at night, the acid exposure lasts significantly longer than daytime episodes, frequently causing tissue irritation and the deep burning sensation that jolts you awake.
Your Body’s Defenses Shut Down During Sleep
Saliva is your esophagus’s natural antacid. Every time you swallow, saliva coats the lining and neutralizes small amounts of acid. During sleep, saliva production drops dramatically, and you swallow far less often. That means acid sitting in your esophagus has nothing to wash it away or buffer it.
Your stomach also empties more slowly at night. Food and acid linger longer than they would after a midday meal, increasing the volume of material that can push back up. On top of that, you’re not consciously clearing your throat, coughing, or sitting up straighter, all the little adjustments your body makes during the day to manage small reflux events without you even noticing.
Late Meals and Heavy Foods Make It Worse
What and when you eat in the evening has a direct effect on nighttime heartburn. Fat naturally slows stomach emptying, so a heavy, greasy dinner keeps your stomach full longer. If you lie down while your stomach is still working through that meal, there’s more acid being produced and more pressure pushing it upward.
The general recommendation is to stop eating at least three hours before you go to bed. That window gives your stomach enough time to move most of the meal into the small intestine, reducing the volume of acid available to reflux. Large portions, fried foods, alcohol, chocolate, and acidic foods like tomato sauce or citrus are common triggers that compound the problem when eaten close to bedtime.
Sleep Position Matters More Than You Think
Your stomach sits slightly to the left side of your body, and its opening to the esophagus sits higher than the rest of the stomach when you lie on your left side. Research from Harvard Health found that acid clears from the esophagus much faster when people sleep on their left side compared to their back or right side. Sleeping on your right side positions the stomach above that valve, essentially letting acid pool right at the opening.
Elevating the head of your bed also helps. Studies have tested foam wedges between 20 and 25 centimeters high (roughly 8 to 10 inches), angled at about 20 to 22 degrees. This isn’t the same as stacking pillows, which mainly bends your neck without changing the angle of your torso. A wedge pillow or blocks under the head of your bed frame tilts your entire upper body so gravity can assist with acid clearance throughout the night.
Beyond the Burn: Coughing, Wheezing, and Sore Throats
Nighttime reflux doesn’t always feel like classic heartburn. Acid that travels high enough can reach your throat and upper airway, causing symptoms you might not connect to your stomach at all. Chronic cough, hoarseness, a sore throat that’s worse in the morning, and even asthma-like wheezing can all stem from acid irritating the airways. Reflux is one of the three leading causes of unexplained chronic cough, responsible for roughly 20% of cases.
This happens through two pathways. Tiny amounts of acid can directly contact the throat and upper airway, sometimes reaching the lungs in what’s called microaspiration. Even without direct contact, acid in the lower esophagus can trigger a nerve reflex that causes the airways to tighten, producing coughing or bronchospasm. Nighttime reflux plays a particularly large role in these airway symptoms because of all the factors working against you during sleep: slower clearance, less swallowing, and prolonged acid exposure.
Sleep Apnea and Nighttime Reflux
If you have obstructive sleep apnea, you may be more prone to nighttime reflux. Research has found that people with sleep apnea tend to have a weaker barrier at the junction between the stomach and esophagus. One possible explanation is that the repeated strain from breathing against a blocked airway gradually weakens that valve over time. In one study, patients with sleep apnea off treatment experienced nearly three reflux events per hour during sleep.
Interestingly, CPAP therapy (the pressurized mask used to treat sleep apnea) appears to help with reflux too. The positive air pressure strengthens the barrier at the stomach-esophagus junction and shortens the duration of valve relaxations, giving acid less opportunity to escape. If you have both conditions, treating the sleep apnea may improve your heartburn as well.
How Nighttime Heartburn Is Treated
Lifestyle changes are the starting point: eating earlier, choosing lighter evening meals, sleeping on your left side, and elevating the head of your bed. For many people, these adjustments alone reduce nighttime symptoms significantly.
When lifestyle changes aren’t enough, acid-suppressing medications are the standard treatment. These work by reducing the amount of acid your stomach produces, so even if reflux occurs, the liquid is less damaging. A typical initial course runs four to eight weeks. For people with mild symptoms, medication can often be used on an as-needed basis after that initial period, taken only when symptoms flare. People with more severe esophageal irritation generally need to stay on daily medication longer to allow the tissue to heal and prevent recurrence.
Nighttime heartburn that happens more than twice a week, disrupts your sleep regularly, or comes with symptoms like difficulty swallowing, a persistent cough, or unexplained hoarseness is worth investigating further. Prolonged acid exposure during sleep causes more tissue damage per episode than daytime reflux, so patterns that seem minor can add up over time.

