How to Get Rid of Heartburn: Fast and Lasting Relief

The fastest way to get rid of heartburn is to take an antacid, which neutralizes stomach acid and starts working within 15 to 30 minutes. But if heartburn keeps coming back, the real fix involves changing when and how you eat, how you sleep, and in some cases, stepping up to stronger medications. Here’s what works, from immediate relief to long-term prevention.

Fast Relief: What Works Right Now

If you’re dealing with heartburn at this moment, an over-the-counter antacid containing calcium carbonate (like Tums) raises the pH in your stomach quickly, usually within 15 to 20 minutes. The tradeoff is that the effect wears off fast. Antacids based on magnesium hydroxide (like Milk of Magnesia) take a bit longer to kick in, around 10 to 30 minutes, but they keep working for roughly 2.5 to 3 hours.

Baking soda is the classic home remedy. Half a teaspoon dissolved in a glass of water can neutralize acid in your stomach almost immediately. But it comes with real limitations: it’s loaded with sodium, so it’s a poor choice if you have high blood pressure, kidney disease, or heart problems. Don’t use it for more than two weeks at a stretch, don’t take it with large amounts of milk, and wait at least one to two hours after taking it before you take any other medication, since it can interfere with absorption.

A surprisingly simple trick: chew a piece of sugar-free gum for 30 minutes after eating. Chewing increases how often you swallow, which pushes acid back down out of your esophagus faster. A study from King’s College London found that this measurably reduced acid exposure after meals. It won’t work for severe heartburn, but for that mild post-meal burn, it’s worth trying.

Stronger Medications for Recurring Heartburn

If antacids aren’t cutting it, there are two main categories of acid-reducing drugs available without a prescription.

H2 blockers (like famotidine, sold as Pepcid) reduce how much acid your stomach produces. They work quickly and can be taken as needed, which makes them flexible. The downside is that your body builds tolerance to them within about three days of regular use, so they lose effectiveness if you take them daily for long stretches.

Proton pump inhibitors, or PPIs (like omeprazole, sold as Prilosec), are the most powerful acid suppressors available over the counter. They work differently: you take them 30 to 60 minutes before your first meal of the day, and they need 4 to 8 weeks of daily use to fully suppress acid production. PPIs aren’t designed for quick, one-off relief. They’re meant for people who have heartburn frequently enough that they need consistent suppression.

Current gastroenterology guidelines recommend an 8-week trial of a once-daily PPI as the standard first-line approach for people with regular heartburn and acid reflux symptoms. If that doesn’t resolve things, the next step is optimizing the dose before considering further testing.

Foods and Drinks That Trigger Heartburn

Heartburn happens when acid escapes your stomach through a muscular valve called the lower esophageal sphincter (LES). Certain foods and drinks relax that valve, making it easier for acid to splash upward.

Coffee, tea, cocoa, and cola all loosen the LES and stimulate your stomach to produce more acid at the same time. That’s a double hit. Chocolate and peppermint, often eaten at the end of a meal, do the same thing. Spicy foods, citrus, tomato-based sauces, and alcohol are other common culprits, though triggers vary from person to person. Paying attention to what specifically sets off your symptoms is more useful than avoiding a generic list.

Fatty and fried foods slow stomach emptying, which keeps acid production elevated for longer and increases pressure against the LES. Large meals do the same. Eating smaller portions more frequently is one of the simplest dietary changes you can make.

How You Sleep Makes a Big Difference

Nighttime heartburn is often worse than daytime episodes because gravity is no longer helping keep acid in your stomach. Two adjustments can make a meaningful difference.

First, stop eating at least three hours before bed. There’s a straightforward physical reason: lying down with a full stomach puts direct pressure on the LES, and your stomach is still actively producing acid to digest that food. Giving your body time to process the meal before you go horizontal dramatically reduces nighttime reflux.

Second, change your sleeping position. Elevating your upper body with a wedge pillow (not just stacking regular pillows, which can bend you at the waist and make things worse) helps gravity keep acid where it belongs. Research from Harvard Health found that sleeping on your left side clears acid from the esophagus significantly faster than sleeping on your back or right side. The combination of elevation and left-side sleeping is one of the most effective non-medication strategies for nighttime heartburn.

Other Habits That Help

Tight clothing around your midsection, especially belts and high-waisted pants, increases pressure on your stomach and can push acid upward. Loosening what you wear around your waist is an easy, immediate fix.

Excess weight, particularly around the abdomen, puts chronic pressure on the LES. Losing weight is one of the most effective long-term strategies for reducing heartburn, though it’s obviously not an overnight solution. Even modest weight loss can improve symptoms.

Smoking weakens the LES and reduces saliva production, which is one of your body’s natural defenses against esophageal acid exposure. Quitting or cutting back helps both the frequency and severity of heartburn episodes.

Avoid lying down or bending over right after eating. If you tend to get heartburn after meals, a short walk is better than settling into the couch. Staying upright for at least 30 minutes after eating gives your stomach a chance to begin emptying before you change position.

When Heartburn Could Be Something Else

Heartburn and heart attacks can feel remarkably similar. Even experienced doctors sometimes can’t tell the difference based on symptoms alone.

Typical heartburn causes a burning sensation in the chest or upper abdomen, usually after eating or when lying down. It often comes with a sour taste in your mouth or a small amount of stomach contents rising into your throat, and it generally responds to antacids.

A heart attack more commonly involves pressure, tightness, or squeezing pain in the chest or arms that spreads to the neck, jaw, or back. It may come with shortness of breath, cold sweat, lightheadedness, or sudden fatigue. Women are more likely than men to have less obvious symptoms like jaw pain, back pain, nausea, or shortness of breath without the classic crushing chest pain.

If your chest discomfort doesn’t respond to antacids, comes with shortness of breath or sweating, or feels like pressure rather than burning, treat it as a medical emergency. The same applies if you’re also experiencing unexplained weight loss, difficulty swallowing, or vomiting blood, which are signs that something beyond ordinary heartburn may be going on.