You can get rid of heartburn fast by taking an antacid, which neutralizes stomach acid and typically brings relief within minutes. For longer-lasting or recurring heartburn, the fix involves a combination of the right medication, changes to when and how you eat, and adjusting your sleep position. Most heartburn resolves without medical care, but the approach depends on whether you’re dealing with an occasional flare or a persistent problem.
Why Heartburn Happens
At the bottom of your esophagus sits a ring of muscle that acts like a one-way gate. It opens to let food drop into your stomach, then closes to keep stomach acid where it belongs. Heartburn happens when this muscle opens when it shouldn’t, allowing acid to wash back up into the esophagus. The esophagus has no protective lining against acid the way your stomach does, so even brief contact causes that familiar burning sensation behind your breastbone.
Certain foods, body positions, and habits cause this muscle to relax at the wrong time or slow digestion so food sits in the stomach longer. That’s why heartburn tends to strike after meals, when you bend over, or when you lie down.
Fast Relief: What Works Right Now
If you’re dealing with heartburn at this moment, an over-the-counter antacid is the quickest option. Products containing aluminum and magnesium hydroxide (like Maalox or Mylanta) tend to work slightly faster than calcium carbonate tablets (like Tums), and their effect lasts longer in the esophagus: about 80 minutes compared to 60 minutes for calcium-based options. The trade-off is that their relief in the stomach itself is short, roughly 26 minutes, so they’re best for mild, occasional episodes.
Baking soda is a home remedy that genuinely works as a fast-acting antacid. The standard dose is half a teaspoon dissolved in a full glass of cold water. Don’t exceed five teaspoons in a day. Because baking soda is high in sodium and can cause your body to retain water, it’s not a good choice if you have high blood pressure, heart disease, kidney problems, or are pregnant.
A few other things can help in the moment: stay upright, loosen any tight clothing around your waist, and avoid bending over. If you’ve just eaten, take a gentle walk rather than sitting or lying down.
Medications That Last Longer
Antacids wear off quickly. If heartburn hits you regularly, two other types of medication offer more sustained control.
H2 Blockers
Famotidine (sold as Pepcid) reduces the amount of acid your stomach produces rather than just neutralizing what’s already there. It’s available over the counter and is taken once or twice a day, with a maximum of two doses in 24 hours. The key advantage is that you can take it 15 to 60 minutes before a meal you know will trigger heartburn, effectively preventing the episode before it starts.
Proton Pump Inhibitors
For heartburn that persists daily or doesn’t respond well to antacids and H2 blockers, proton pump inhibitors (PPIs) like omeprazole (Prilosec) offer the strongest acid suppression. Unlike antacids, PPIs don’t work instantly. They build up over several days and are designed to be taken as a course, typically two weeks for an over-the-counter round. If that course resolves your symptoms, you stop. If symptoms return, you may need another round or a longer course prescribed by a doctor, which can run up to eight weeks.
Foods and Drinks That Trigger Heartburn
Certain foods directly cause the muscle at the base of your esophagus to relax, and others slow digestion so acid has more opportunity to escape upward. The most common triggers fall into a few categories:
- High-fat and fried foods: pizza, fast food, bacon, sausage, potato chips, and cheese. Fat slows stomach emptying more than any other nutrient.
- Spicy foods: chili powder, black pepper, white pepper, and cayenne.
- Acidic foods: tomato-based sauces and citrus fruits, which add acid on top of what your stomach already produces.
- Specific relaxers of the esophageal muscle: chocolate, peppermint, and carbonated beverages.
You don’t necessarily need to eliminate all of these permanently. Most people find that a handful of specific items are their personal triggers. Paying attention to which foods precede your worst episodes is more useful than following a blanket restriction list. Eating smaller portions also helps, since a full stomach puts more pressure on that lower esophageal muscle.
How to Sleep Without Heartburn
Nighttime heartburn is often the most disruptive kind, and sleep position plays a surprisingly large role. Sleeping on your left side clears acid from the esophagus significantly faster than sleeping on your back or right side. The anatomy works in your favor: when you’re on your left, your stomach sits below the opening to the esophagus, so gravity helps keep acid in place.
Elevating the head of your bed by 6 to 8 inches is also effective. Use blocks under the bed frame or a wedge pillow that lifts your entire upper body. Stacking regular pillows doesn’t work as well because it bends your body at the waist, which actually increases pressure on your stomach and can make reflux worse.
Timing matters too. Finish your last meal at least two to three hours before lying down. Late eating is one of the most consistent predictors of nighttime heartburn, and simply shifting dinner earlier can eliminate the problem for many people.
Lifestyle Changes That Reduce Episodes
Beyond food choices and sleep habits, a few broader changes make a measurable difference. Excess weight around the midsection increases pressure on the stomach, so even modest weight loss can reduce heartburn frequency. Tight belts and waistbands have the same effect on a smaller scale. Smoking weakens the esophageal muscle over time, and alcohol relaxes it acutely, so cutting back on either tends to help.
Eating pace matters more than most people realize. Eating quickly leads to larger boluses of food hitting the stomach at once, which stretches the stomach wall and increases the chance of acid escaping upward. Slower, smaller meals give the digestive system time to process food without overwhelming it.
When Heartburn Could Be Something Else
Heartburn and heart attacks can feel remarkably similar. Even experienced doctors sometimes can’t tell them apart without testing. Heartburn typically burns in the chest after eating, improves with antacids, and may come with a sour taste or small amount of fluid rising into the throat. Heart-related chest pain is more likely to feel like pressure, tightness, or squeezing that spreads to the neck, jaw, or arms. It often comes with shortness of breath, cold sweat, lightheadedness, or sudden fatigue.
If your chest pain feels different from typical heartburn, comes on during physical exertion, or is accompanied by any of those additional symptoms, treat it as a potential cardiac event.
Signs Your Heartburn Needs Medical Evaluation
Occasional heartburn after a heavy meal is normal. Heartburn that persists despite a full course of a proton pump inhibitor is not. If you’ve tried a two-week PPI course and your symptoms haven’t improved, or if you find yourself relying on acid-reducing medication for months, that warrants investigation. Difficulty swallowing, pain when swallowing, unexplained weight loss, or vomiting blood are all signals that something beyond simple reflux may be happening. These symptoms typically prompt a doctor to look directly at the esophagus with an endoscopy to check for inflammation or tissue changes that need treatment.

