How to Get Rid of Heartburn: What Actually Works

Heartburn responds to a layered approach: fast-acting antacids or alginate-based products for immediate episodes, stronger acid-suppressing medications for persistent symptoms, and lifestyle changes that address root causes like meal timing, body weight, and sleep position. No single fix works for everyone, and the strategy that makes sense depends on whether you’re dealing with occasional flare-ups or chronic reflux that keeps coming back. Some of the most commonly repeated dietary advice turns out to have weak evidence behind it, while a few simple habits have surprisingly strong support.

What Is Actually Happening When You Get Heartburn

Heartburn is the burning sensation you feel when stomach acid washes up into the esophagus, the tube connecting your throat to your stomach. A ring of muscle at the bottom of the esophagus, called the lower esophageal sphincter, normally stays closed to keep acid where it belongs. The most common reason acid escapes is something called a transient relaxation of that sphincter: the muscle briefly opens when it shouldn’t.1PubMed. Transient lower esophageal sphincter relaxation These transient relaxations account for roughly 70% of acid reflux episodes and are the primary driver behind gastroesophageal reflux disease.2Journal of Neurogastroenterology and Motility. Specific Movement of Esophagus During Transient Lower Esophageal Sphincter Relaxation in Gastroesophageal Reflux Disease Understanding this helps explain why remedies work: they either neutralize the acid that’s already escaped, reduce how much acid the stomach produces, or strengthen that barrier so less acid gets through in the first place.

Fast-Acting Relief for an Active Episode

When heartburn hits and you want it gone now, you have two main categories of over-the-counter products, and they work differently.

Traditional antacids (the calcium carbonate or magnesium hydroxide tablets you chew) neutralize acid already present in your stomach. They work fast. In one study comparing antacid tablets to other drugs, the antacid raised stomach pH above 3.0 in under six minutes, compared to over an hour for H2 blockers.3PubMed. Comparison of the effect of the antacid Rennie versus low-dose H2-receptor antagonists (ranitidine, famotidine) on intragastric acidity The trade-off is that relief is brief. Antacids don’t stop acid production; they just mop up what’s there. Within an hour or two, new acid floods back in.

Alginate-based products (sold as Gaviscon and similar brands) take a different approach. When the alginate hits stomach acid, it forms a gel-like foam that floats on top of your stomach contents. This foam acts as a physical barrier, sitting between the acid pool and the opening to the esophagus.4PubMed. Review article: alginate-raft formulations in the treatment of heartburn and acid reflux During reflux episodes, the foam tends to move into the esophagus ahead of the acidic liquid, shielding the lining. A systematic review and meta-analysis confirmed that alginate therapy provides effective symptom relief for reflux by displacing the pocket of acid that forms near the top of the stomach after meals.5PubMed Central. Alginate therapy is effective treatment for GERD symptoms: a systematic review and meta-analysis For occasional post-meal heartburn, either antacids or alginates are reasonable. The alginate products are a particularly good choice when you’re about to lie down, since that floating raft stays in place regardless of body position.

Stepping Up to Stronger Acid Suppression

If you’re reaching for antacids more than a couple of times a week, two classes of medication offer longer-lasting control: H2 receptor antagonists (like famotidine) and proton pump inhibitors (like omeprazole or esomeprazole).

H2 blockers reduce acid production by blocking one of the signals that tells stomach cells to pump acid. They take longer to kick in than antacids, typically around 55 to 90 minutes, but they keep working for hours.6PubMed. Determination of the time of onset of action of ranitidine and famotidine on intra-gastric acidity Famotidine has a somewhat longer duration of action than older H2 blockers like ranitidine or cimetidine.7Gastroenterology. Famotidine, a New, Potent, Long-Acting Histamine H2-Receptor Antagonist: Comparison With Cimetidine and Ranitidine in the Treatment of Zollinger-Ellison Syndrome For mild to moderate symptoms, an H2 blocker taken before a meal you know will cause trouble can prevent heartburn before it starts.

Proton pump inhibitors are the most powerful acid suppressors available and are more effective than H2 blockers by a wide margin. A meta-analysis comparing the two classes head-to-head found that PPIs produced consistently higher healing rates for esophageal damage across all severity grades, including in patients whose symptoms had not responded to H2 blockers.8PubMed Central. Head-to-head comparison of H2-receptor antagonists and proton pump inhibitors in the treatment of erosive esophagitis: A meta-analysis Another study found that about 78% of patients on PPIs achieved complete symptom resolution, compared to 54% on H2 blockers, with the PPI group getting relief faster as well.9Biological and Clinical Sciences Research Journal. COMPARATIVE EFFICACY OF PROTON PUMP INHIBITORS VS. H2 RECEPTOR ANTAGONISTS IN THE TREATMENT OF GASTROESOPHAGEAL REFLUX DISEASE PPIs can keep stomach pH elevated for 15 to 22 hours a day, compared to roughly four hours for H2 blockers.10PubMed Central. Comparing the Safety and Efficacy of Proton Pump Inhibitors and Histamine-2 Receptor Antagonists in the Management of Patients With Peptic Ulcer Disease: A Systematic Review

A newer class called potassium-competitive acid blockers (P-CABs) has entered the market in some countries. These drugs block the same stomach acid pump that PPIs target but through a different mechanism, offering faster onset and longer-lasting suppression.11PubMed Central. Potent Potassium-competitive Acid Blockers: A New Era for the Treatment of Acid-related Diseases They’re becoming an option for people who don’t respond well to standard PPIs, though availability varies by region.

The PPI Rebound Trap

Here’s something many people discover the hard way: after taking PPIs for weeks or months, stopping them can make heartburn come back worse than before. This isn’t the original problem returning. It’s a separate phenomenon called rebound acid hypersecretion. When a PPI suppresses acid production for an extended period, the stomach compensates by ramping up its acid-producing machinery. Remove the PPI, and that overstimulated machinery floods the stomach with more acid than you had in the first place. Studies have shown that 40 to 50% of healthy volunteers who took PPIs developed new gastrointestinal symptoms after stopping, even though they had no reflux issues before starting the medication.12PubMed Central. Rebound Acid Hypersecretion after Withdrawal of Long-Term Proton Pump Inhibitor (PPI) Treatment-Are PPIs Addictive?

The practical problem is that people mistake rebound symptoms for their original condition flaring up, so they restart the PPI and get stuck in a cycle. If you’ve been on a PPI for more than a few weeks, tapering gradually rather than stopping cold makes sense. Some clinicians recommend stepping down to an H2 blocker for a transition period, or using an alginate product to manage rebound symptoms while your stomach readjusts.

Meal Timing Beats Most Dietary Restrictions

If you’ve been told to avoid coffee, chocolate, spicy food, and everything else enjoyable, the evidence behind those restrictions is weaker than you’d expect. A systematic review examining dietary intake and reflux risk found that consumption of coffee, tea, and chocolate was not significantly associated with developing reflux disease.13PubMed Central. Dietary Intake in Relation to the Risk of Reflux Disease: A Systematic Review Individual triggers certainly exist, and if a specific food reliably gives you heartburn, avoiding it makes sense for you. But blanket dietary restrictions for all reflux sufferers have surprisingly little population-level support.

What does have strong evidence is the gap between your last meal and when you lie down. One study found that people who ate dinner less than three hours before bed had over seven times the odds of reflux compared to those who waited four hours or more.14PubMed. Association between dinner-to-bed time and gastro-esophageal reflux disease A separate study looking at what predicts recurrence after successful treatment identified a short dinner-to-bedtime interval as the single strongest risk factor.15PubMed. Recurrence of gastroesophageal reflux disease correlated with a short dinner-to-bedtime interval A third large study confirmed the same pattern: a longer gap between the last meal and sleep was associated with lower odds of reflux.16PubMed. Patterns of diet-related practices and prevalence of gastro-esophageal reflux disease If you take one piece of dietary advice seriously, make it this: finish eating at least three hours before lying down.

Weight Loss, Sleep Position, and Other Physical Changes

Carrying extra weight around the midsection increases pressure on the stomach, which pushes acid upward. Research has confirmed that increased pressure in the abdomen can initiate reflux.17PubMed Central. Effect of Increased Intra-abdominal Pressure on the Esophagogastric Junction: A Systematic Review For people who are overweight, losing weight is one of the most effective long-term strategies. A prospective study found that after participants lost an average of about 13 kilograms over six months, reflux prevalence dropped from 37% to 15%, with 65% of subjects experiencing complete resolution of symptoms and another 15% seeing partial improvement.18PubMed Central. Weight Loss Can Lead to Resolution of Gastroesophageal Reflux Disease Symptoms: A Prospective Intervention Trial That’s a remarkable response rate for a non-drug intervention.

How you sleep also matters. A systematic review and meta-analysis found that sleeping on your left side significantly reduces both the amount of time acid spends in the esophagus and the total acid exposure, compared to sleeping on your right side or on your back.19PubMed Central. Left lateral decubitus sleeping position is associated with improved gastroesophageal reflux disease symptoms: A systematic review and meta-analysis The anatomy behind this is straightforward: when you lie on your left, the stomach hangs below the esophageal opening, and the acid pool collects in the curve of the stomach away from that junction. When you lie on your right, the acid pools right against the valve. Elevating the head of the bed by 15 to 20 centimeters (using blocks under the bed legs, not just extra pillows that bend the neck) also helps gravity keep acid down during the night.

Two Low-Tech Tricks With Real Evidence

Chewing gum after a meal sounds too simple to work, but a study measuring pH in the esophagus and throat found that gum chewing consistently raised pH in both locations, meaning it reduced acidity. Bicarbonate gum produced a larger effect than regular gum.20PubMed. Effects of gum chewing on pharyngeal and esophageal pH The mechanism involves increased saliva production. Saliva is naturally slightly alkaline, and swallowing it helps wash acid back down from the esophagus and buffer what’s there. This won’t substitute for medication in severe reflux, but as a post-meal habit, it’s essentially free and harmless.

Diaphragmatic breathing exercises are a more unconventional approach. The diaphragm wraps around the lower esophagus and forms part of the barrier against reflux. A systematic review found that deliberate diaphragmatic breathing training could strengthen this barrier in selected patients.21PubMed Central. Breathing Exercises in Gastroesophageal Reflux Disease: A Systematic Review A recent study measured the effect directly and found that the pressure at the lower esophageal sphincter increased after breathing training, while esophageal muscle contractions also improved.22PubMed. Effect of Diaphragmatic Breathing Training on the Esophagogastric Junction and Esophageal Motility in Patients With Reflux Symptoms The effect was present even in patients who started with a weak sphincter. This is still early evidence, but for someone trying to reduce reliance on medication, it’s a genuinely interesting avenue.

When Your Medications Are Causing the Problem

Some commonly prescribed drugs can trigger or worsen heartburn. Certain medications contribute to reflux by directly irritating the esophageal lining, by relaxing the lower esophageal sphincter, or by slowing the movement of the digestive tract.23Turkish Journal of Gastroenterology. Which drugs are risk factors for the development of gastroesophageal reflux disease? The most frequently implicated classes include NSAIDs (like ibuprofen and naproxen), certain blood pressure medications (calcium channel blockers in particular), some asthma medications, sedatives, and bisphosphonates used for osteoporosis. If your heartburn started or worsened around the time you began a new medication, it’s worth discussing with your prescriber. Sometimes switching to an alternative drug in the same class resolves the issue without needing additional reflux treatment.

When Heartburn Isn’t Really About Acid

Some people experience a persistent burning sensation in the chest that looks and feels exactly like heartburn but doesn’t respond to any acid-suppressing therapy. This condition, called functional heartburn, appears to involve heightened sensitivity in the esophagus rather than actual acid exposure. Research suggests the symptoms arise from changes in how the esophageal nerves perceive normal stimuli, a process involving peripheral or central sensitization, rather than from abnormal reflux.24Journal of Clinical Gastroenterology. The Role of Esophageal Hypersensitivity in Functional Heartburn If you’ve tried PPIs at full dose for eight weeks and seen no improvement, this is one explanation your doctor may explore. Treatment typically shifts away from acid suppression toward approaches that target nerve sensitivity, including low-dose antidepressants that modulate pain perception in the gut.

Surgical Options for Severe, Persistent Reflux

When lifestyle changes and medications aren’t enough, or when someone wants to stop taking daily medication indefinitely, surgery becomes a consideration. The traditional procedure is called fundoplication, where the top of the stomach is wrapped around the lower esophagus to reinforce the sphincter. A newer, less invasive option is magnetic sphincter augmentation, which involves placing a ring of small magnetic beads around the sphincter. The magnets are strong enough to keep the sphincter closed against reflux but weak enough to allow food through when you swallow.

A systematic review and meta-analysis found that magnetic sphincter augmentation achieved short-term reflux control comparable to fundoplication.25PubMed. LINX® magnetic esophageal sphincter augmentation versus Nissen fundoplication for gastroesophageal reflux disease: a systematic review and meta-analysis A separate pooled analysis found no significant differences between the two approaches in symptom scores, rates of swallowing difficulty, or need for reoperation, but the magnetic device came with significantly less gas bloating and a much greater ability to belch normally, which are common complaints after fundoplication.26Diseases of the Esophagus. Laparoscopic magnetic sphincter augmentation versus fundoplication for gastroesophageal reflux disease: systematic review and pooled analysis Surgical intervention is typically reserved for people with confirmed reflux disease on testing who have either failed medical therapy or strongly prefer to avoid lifelong medication.

Heartburn During Pregnancy

Heartburn is extremely common during pregnancy, especially in the second and third trimesters. Hormonal changes relax the lower esophageal sphincter, and the growing uterus increases abdominal pressure. For pregnant women worried about medication safety, antacids, H2 blockers, and PPIs can all be used during pregnancy, as large studies have found no evidence of harm to the developing baby.27PubMed Central. Treatment of heartburn and acid reflux associated with nausea and vomiting during pregnancy Most clinicians recommend starting with lifestyle measures and antacids, moving to an H2 blocker if needed, and adding a PPI only for persistent symptoms that don’t respond to the first two steps. Alginate products are another good option during pregnancy since they work mechanically rather than systemically.

When to Worry About Chronic Heartburn

Occasional heartburn is common and not dangerous. Chronic reflux, particularly weekly symptoms, deserves more attention. A systematic review and meta-analysis found that weekly reflux symptoms were associated with increased odds of developing Barrett’s esophagus, a condition where the esophageal lining changes in response to chronic acid exposure. Specifically, weekly symptoms showed a strong link with the longer-segment form of Barrett’s, which carries the highest risk of progressing to esophageal cancer.28PubMed Central. Effect of gastro-esophageal reflux symptoms on the risk of Barrett’s esophagus: A systematic review and meta-analysis This doesn’t mean everyone with weekly heartburn will develop Barrett’s, but it is the reason gastroenterologists recommend screening for people who have had frequent symptoms for several years, particularly men over 50 with additional risk factors like obesity or smoking. If your heartburn has been a weekly occurrence for years, getting scoped at least once is worthwhile, even if medication is controlling the symptoms day to day.