What Causes Acid Reflux at Night and How to Stop It

Acid reflux gets worse at night because your body loses several natural defenses against it once you lie down and fall asleep. Gravity stops helping keep stomach acid where it belongs, you swallow far less often (which normally clears acid from the esophagus), and your stomach may still be digesting a recent meal. These factors combine to make nighttime reflux episodes last longer and reach higher into the esophagus than daytime episodes, increasing the risk of complications like esophageal erosions and ulcers.

What Happens in Your Body During Sleep

When you’re upright during the day, gravity naturally pulls stomach contents downward, away from the valve at the top of your stomach (the lower esophageal sphincter, or LES). Every time you swallow, a small wave of muscle contractions pushes any stray acid back down. You also produce saliva, which is slightly alkaline and helps neutralize acid on contact.

During sleep, all three of these defenses drop off sharply. You swallow only a fraction as often, saliva production slows to a trickle, and lying flat removes gravity from the equation entirely. The result: when acid does escape past the LES, it sits in the esophagus much longer before being cleared. Normal physiological adaptations to sleep essentially prolong and intensify each reflux event, even in people who barely notice symptoms during the day.

Why Your Sleep Position Matters

Not all lying-down positions are equal. Sleeping on your right side positions the esophagus below the junction where it meets the stomach, making it easier for acid to flow upward. A systematic review and meta-analysis found that sleeping on the left side significantly reduced both acid exposure time and acid clearance time compared to sleeping on the right side or flat on the back. Sleeping on the right side, by contrast, performed no better than lying flat on your back.

The anatomy explains why. When you lie on your left side, your stomach hangs below the esophageal opening, so acid pools away from the valve rather than pressing against it. This simple positional difference can meaningfully reduce how much acid reaches your esophagus overnight.

Eating Too Close to Bedtime

Timing your last meal is one of the most impactful factors for nighttime reflux. A study examining the relationship between dinner-to-bed time and reflux found that people who lay down less than three hours after eating were roughly 7.5 times more likely to experience reflux symptoms compared to those who waited four hours or more. That’s a dramatic increase in risk from a single habit.

The reason is straightforward: your stomach needs time to empty. A full stomach means more volume pressing against the LES, and more acid being actively produced for digestion. Lying down before that process finishes is essentially asking gravity-free acid to stay put with a weakened barrier holding it back. Large, high-fat meals slow gastric emptying further, compounding the problem.

Foods and Drinks That Make It Worse

Certain foods relax the LES or slow digestion, both of which increase the odds of reflux once you’re horizontal. The most common culprits include:

  • High-fat foods: fried food, fast food, fatty meats like bacon and sausage, cheese, pizza
  • Spicy foods: chili powder, black pepper, cayenne
  • Acidic foods: tomato-based sauces, citrus fruits
  • Other triggers: chocolate, peppermint, carbonated beverages

These don’t affect everyone equally. But if you’re eating pizza or a heavy, spicy dinner within a few hours of bed, you’re stacking multiple risk factors on top of each other: a slow-to-empty stomach, a relaxed LES, and a horizontal position.

The Role of Hiatal Hernia

A hiatal hernia occurs when part of the stomach pushes up through the diaphragm, the muscle that normally helps reinforce the LES. This changes the geometry of the junction between the stomach and esophagus, making it shorter and more easily stretched open. People with a hiatal hernia have a lower threshold for the involuntary LES relaxations that allow acid to escape.

What makes this particularly relevant at night is that the hernia creates a small pocket of acid that sits right at the junction. In a recumbent position, this pocket can spill into the esophagus more easily, leading to prolonged acid contact with the esophageal lining. Research in the United European Gastroenterology Journal found that hiatal hernias specifically predispose people to nocturnal reflux, with longer acid exposure reaching higher into the esophagus, even when daytime symptom severity was unaffected.

Medications That Relax the Valve

Several common medications can weaken the LES and contribute to nighttime reflux. According to the Mayo Clinic, drug classes that may worsen reflux include calcium channel blockers and nitrates (used for blood pressure and heart disease), certain antidepressants, overactive bladder medications, opioid painkillers, sedatives like benzodiazepines, and progesterone. If you take any of these in the evening, the timing could amplify your nighttime symptoms. Changing when you take a medication, or discussing alternatives, can sometimes make a noticeable difference.

The Connection to Sleep Apnea

Obstructive sleep apnea and nighttime reflux frequently coexist. Roughly 40% to 60% of people with sleep apnea also experience GERD. The link isn’t coincidental: during apnea episodes, the body makes forceful attempts to breathe against a blocked airway. This generates significant negative pressure in the chest and increased pressure in the abdomen, creating a gradient that essentially pulls stomach contents upward past the LES.

A large inpatient study found that 12.2% of GERD patients had concurrent sleep apnea, compared to just 4.8% of patients without GERD. If you experience nighttime reflux alongside snoring, gasping awake, or daytime fatigue, undiagnosed sleep apnea could be a contributing factor worth investigating.

What You Can Do About It

The most effective changes target the specific mechanisms driving nighttime reflux. Elevating the head of your bed by 6 to 8 inches (using blocks under the bed frame legs or a wedge pillow, not just extra pillows) keeps your esophagus above your stomach while you sleep. This restores some of the gravitational protection you lose by lying flat. Propping up with regular pillows tends to bend you at the waist, which can actually increase abdominal pressure and make things worse.

Sleep on your left side when possible. Finish eating at least three to four hours before bed. Keep evening meals smaller and lower in fat. Avoid known trigger foods at dinner, and skip carbonated drinks and alcohol in the hours before sleep. These aren’t minor lifestyle tweaks. The data on meal timing alone shows a sevenfold difference in risk, which rivals or exceeds the impact of many medications.

Nighttime reflux tends to cause more esophageal damage than daytime reflux because acid sits in the esophagus longer while you sleep. People with GERD who have nighttime symptoms are more likely to develop esophageal erosions, ulceration, and respiratory symptoms like chronic cough or hoarseness. If positional and dietary changes aren’t controlling your symptoms, that pattern of ongoing nighttime exposure is worth taking seriously.