Why Do I Wake Up With Heartburn Every Morning?

Waking up with 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 down into your stomach. When you’re flat in bed, acid can flow freely toward your esophagus, especially if the muscular valve at the top of your stomach isn’t sealing tightly. About 79% of people who experience heartburn report it happens at night, making this one of the most common sleep disruptions tied to digestion.

What Happens to Acid When You Lie Down

Your stomach and esophagus are separated by a ring of muscle that acts like a one-way gate, opening to let food in and closing to keep acid out. When you stand or sit, this gate only needs to do part of the job because gravity is already pulling stomach contents downward. The moment you lie flat, that gate becomes the sole barrier between your stomach acid and the lining of your esophagus.

Your body also produces acid on a natural cycle. Gastric acid secretion peaks during the evening hours and drops to its lowest point in the early morning. If you eat dinner late and go to bed while acid production is still ramping up, you’re combining a full stomach, peak acid output, and a horizontal position. That’s the recipe for waking up with a burning sensation in your chest or a sour taste in your mouth.

Making things worse, you swallow far less frequently during sleep. Each swallow during the day pushes any stray acid back down into the stomach. At night, that clearing mechanism essentially shuts off, so acid that does escape sits against the esophageal lining for much longer periods.

Your Sleep Position Matters More Than You Think

The side you sleep on has a measurable effect on how much acid reaches your esophagus. When you sleep on your right side, your stomach ends up positioned above your esophagus. If that muscular valve relaxes even slightly, acid flows downhill into your throat. Studies consistently show that right-side sleeping triggers more heartburn episodes and greater acid exposure than any other position.

Sleeping on your left side flips that arrangement. Your esophagus sits higher than your stomach, so acid has to travel uphill to cause problems. A systematic review in the World Journal of Clinical Cases found that left-side sleeping significantly reduced the time acid spent in contact with the esophagus compared to right-side sleeping. Interestingly, sleeping flat on your back performed about the same as right-side sleeping in terms of acid exposure, so switching to your left side is the single most effective positional change you can make.

Late Meals and Common Triggers

The general guideline is to stop eating at least three hours before bed. That window gives your stomach time to empty most of its contents, leaving less material available to reflux when you lie down. A heavy meal eaten an hour before sleep is one of the most reliable ways to guarantee morning heartburn.

Certain foods and drinks are especially problematic close to bedtime. Tomatoes, citrus fruits, dairy, and alcohol can all relax that stomach-esophagus valve or directly irritate the esophageal lining. Fatty foods slow stomach emptying, meaning acid sticks around longer. Alcohol is a double hit: it relaxes the valve and increases acid production simultaneously. Even a single glass of wine with a late dinner can be enough to cause symptoms hours later.

Caffeine follows a similar pattern. A cup of coffee after dinner may not bother you while you’re still upright, but the acid it stimulates can linger well into the night. If you’re regularly waking with heartburn, tracking what you eat after 6 or 7 p.m. for a week often reveals a clear pattern.

Elevating Your Head Helps, but Pillows Alone Don’t

Raising the head of your bed creates a gentle slope that uses gravity to keep acid in your stomach, even while you’re lying down. The key detail is how you do it. Simply stacking pillows under your head bends your body at the waist, which can actually increase pressure on your stomach and make reflux worse.

Clinical trials have tested bed elevation using blocks under the head-end bed legs (typically 20 to 28 centimeters, or about 8 to 11 inches) and wedge-shaped pillows of similar height angled at roughly 20 degrees. Both approaches tilt your entire torso, not just your neck, which is what makes the difference. You can use wooden blocks, foam risers, or a full-length wedge pillow that supports you from the hips up. The goal is a gradual incline where your esophagus stays above your stomach throughout the night.

The Connection to Sleep Apnea

If you snore heavily or wake up gasping, your heartburn may have a partner. Obstructive sleep apnea and acid reflux are closely linked. Roughly 40% to 60% of people with sleep apnea also have reflux, and a large study of over 22 million patients found that people diagnosed with reflux were more than twice as likely to also have sleep apnea (12.2% vs. 4.8% in those without reflux).

The connection likely runs both directions. The airway obstruction in sleep apnea creates negative pressure in the chest that can physically pull acid upward into the esophagus. At the same time, acid irritating the throat can trigger airway spasms that worsen apnea. If you’re treating heartburn aggressively and still waking with symptoms, or if a partner has noticed you stop breathing during sleep, it’s worth investigating whether sleep apnea is part of the picture.

Why Persistent Nighttime Reflux Is Worth Taking Seriously

Occasional morning heartburn after a late pizza is one thing. Regular nighttime reflux that happens multiple times a week carries real consequences beyond poor sleep. Acid that sits against the esophageal lining for hours overnight causes more tissue damage than the same amount of daytime reflux, because your body can’t clear it as effectively while you sleep.

Research from pH monitoring studies shows that people who develop Barrett’s esophagus, a precancerous change in the esophageal lining, have significantly longer acid exposure during sleep compared to reflux patients without that condition. In one study, 80% of Barrett’s patients had abnormal acid levels while lying down, compared to 45% of other reflux patients. The difference wasn’t detectable during daytime measurements, only at night. This doesn’t mean occasional heartburn leads to cancer, but it does mean that chronic, untreated nighttime reflux deserves attention rather than just antacids.

Managing Nighttime Symptoms

Over-the-counter acid reducers come in two main categories, and their timing matters for nighttime use. Proton pump inhibitors (the “-prazole” medications) work best taken before meals, typically 30 to 60 minutes before eating. They’re effective during the day but more than 75% of people taking them twice daily still experience a period of acid breakthrough overnight.

H2 blockers (like famotidine) work differently and kick in faster, making them better suited for bedtime dosing. Taking an H2 blocker at bedtime kept stomach acid controlled for 96% of the night in one study, compared to only 51% with a proton pump inhibitor alone. For people with stubborn nighttime symptoms, combining a daytime proton pump inhibitor with a bedtime H2 blocker is a strategy that significantly reduces overnight acid exposure.

The most effective approach for most people combines several changes at once: eating dinner earlier, sleeping on your left side, elevating the head of your bed, and avoiding alcohol and acidic foods in the evening. Any one of these helps on its own, but together they address every mechanical reason acid reaches your esophagus at night.