Heartburn after surgery is extremely common, even if you never had reflux problems before. Anesthesia relaxes the muscular valve between your stomach and esophagus, pain medications slow your digestion, and the stress of surgery itself can increase stomach acid production. The good news is that for most people, post-surgical heartburn is temporary and manageable with a combination of positioning, dietary changes, and over-the-counter medications.
Why Surgery Triggers Heartburn
The valve at the top of your stomach normally acts as a one-way gate, keeping acid from splashing up into your esophagus. General anesthesia relaxes this valve, and the effect can linger for hours to days after you wake up. Opioid pain medications compound the problem by slowing the movement of food through your digestive tract, which means acid sits in your stomach longer and has more opportunity to creep upward.
Being less mobile after surgery also plays a role. When you’re lying flat or barely moving, gravity can’t help keep acid where it belongs. Abdominal surgeries are particularly likely to cause reflux because swelling near the stomach and diaphragm can physically disrupt how the valve functions. Even surgeries that have nothing to do with your digestive system can trigger heartburn through the combination of anesthesia, painkillers, and reduced activity.
Elevate Your Upper Body While Resting
Lying flat is one of the worst positions for reflux. Raising the head of your bed by about 20 centimeters (roughly 8 inches) significantly reduces the amount of time acid contacts your esophagus. You can do this by placing sturdy blocks or risers under the legs at the head of your bed, or by using a wedge-shaped pillow angled at about 20 degrees. Stacking regular pillows is less effective because they tend to bend you at the waist rather than creating a gradual incline, which can actually increase pressure on your stomach.
Try to stay upright for at least two to three hours after eating. If your surgical recovery allows it, gentle walking after meals helps move food through your system faster and reduces the amount of acid pooling in your stomach.
What to Eat (and Avoid) During Recovery
Your diet in the first two weeks after surgery matters more than you might expect. Soft, blended foods are easiest on your digestive system. Smoothies made with yogurt and soft fruit (no seeds or skins), cream-based soups, custards, and puddings are good staples. Greek or Icelandic yogurt is a smart choice because it’s high in protein, which supports healing without irritating your stomach. You can also add unflavored protein powder to beverages to keep your nutrition up while eating smaller volumes.
The foods most likely to worsen your heartburn are the usual reflux triggers, but they hit harder when your system is already compromised from surgery:
- Carbonated drinks, which introduce gas and increase stomach pressure
- Caffeine and alcohol, both of which relax the stomach valve further
- Tomato-based products and citrus fruits, which are highly acidic
- Spicy foods, onions, and black pepper
- Fatty or fried foods, which slow stomach emptying
- Very hot or very cold foods and drinks
Eat small, frequent meals instead of three large ones. A full stomach puts more pressure on that already-weakened valve. Sipping liquids between meals rather than during them also helps reduce stomach volume at any given time.
Over-the-Counter Medications That Help
Antacids provide the fastest relief by neutralizing acid that’s already in your stomach. They work within minutes but wear off relatively quickly. For ongoing post-surgical heartburn, acid-reducing medications are more effective.
H2 blockers (like famotidine) reduce the amount of acid your stomach produces and typically start working within 30 to 60 minutes. They’re a reasonable first choice for mild to moderate symptoms. Proton pump inhibitors, or PPIs (like omeprazole), are stronger and work best when taken 30 to 60 minutes before a meal. PPIs take a day or two to reach full effect but provide more complete acid suppression.
For short-term use during surgical recovery, both are considered safe. Long-term PPI use (beyond several weeks) has been linked to lower magnesium and calcium levels, so these are best used as a bridge while your body heals rather than as a permanent fix. If your surgical team gave you specific medication instructions, follow those first, as some procedures require particular approaches to acid management.
Ginger for Post-Surgical Nausea and Reflux
Ginger has solid evidence as a safe option for post-operative nausea, and it may ease mild reflux symptoms as well. It works by supporting normal digestive movement and helping your stomach empty more efficiently. Clinical trials have found ginger to be essentially free of side effects in the post-surgical setting. Ginger tea, ginger chews, or ginger capsules are all reasonable options. Just avoid sugary ginger ale, which combines carbonation and sugar, both of which can make reflux worse.
Heartburn After Specific Surgeries
Some surgeries are far more likely to cause lasting reflux than others. If you’ve had a gastric sleeve procedure, heartburn is one of the most common new symptoms. Research published in Surgery for Obesity and Related Diseases found that about two-thirds of sleeve gastrectomy patients developed new reflux symptoms they didn’t have before surgery. The sleeve reshapes the stomach in a way that can increase pressure on the valve and reduce the stomach’s natural ability to clear acid. Gastric bypass carries a lower risk of new reflux, though it’s not zero.
Fundoplication surgery, which is actually designed to fix reflux, can itself cause recurrent heartburn if the surgical wrap loosens over time. This happens in roughly 5 to 10% of cases. Symptoms may not appear until months or years later. If heartburn returns well after a fundoplication, an upper endoscopy can reveal whether the repair has shifted or come undone.
When Post-Surgical Heartburn Needs Attention
Most post-surgical heartburn resolves within a few days to a couple of weeks as anesthesia effects fade, pain medications are tapered, and you return to normal activity. But certain symptoms in the post-operative period warrant a call to your surgeon rather than another antacid.
Chest pain combined with trouble breathing, a fast heartbeat, sweating, or coughing (especially coughing up blood) can signal a blood clot in the lungs, not heartburn, and requires emergency care. Fever alongside chest pain or shortness of breath may indicate a lung infection. If you’re completely unable to swallow liquids, if you’re vomiting blood or material that looks like coffee grounds, or if your heartburn is getting progressively worse rather than better over the first week, these are signs that something beyond normal post-surgical reflux may be happening.
Heartburn that persists beyond three to four weeks after surgery, or that started mild and is intensifying, is worth discussing with your surgical team. In some cases, post-operative heartburn reveals a pre-existing condition like a hiatal hernia that wasn’t symptomatic before but was aggravated by the surgical process.

