Heartburn happens when stomach acid flows back into your esophagus, and the fastest way to help it depends on whether you’re dealing with an episode right now or trying to prevent the next one. For immediate relief, an over-the-counter antacid can neutralize acid within minutes. For longer-term control, the fix usually involves changing when, what, and how you eat, along with a few simple adjustments to how you sleep and move through your day.
Why Heartburn Happens
A ring of muscle at the bottom of your esophagus, called the lower esophageal sphincter, acts as a one-way valve. It normally stays contracted at a pressure of 15 to 30 mmHg, keeping stomach acid where it belongs. When you swallow, it briefly relaxes to let food through, then closes again.
The main driver of heartburn is something called transient relaxation of this valve. It opens at the wrong time, often triggered by a full or gas-distended stomach, and lets acid splash upward. This happens in everyone occasionally, but it happens more often in people with chronic reflux. Certain substances directly weaken this valve’s pressure: fat, chocolate, alcohol, and nicotine all cause it to loosen. That’s why a greasy late-night meal so reliably produces that burning sensation.
Immediate Relief During an Episode
If heartburn has already started, your goal is to neutralize the acid that’s irritating your esophagus and keep more from traveling upward.
- Antacids (calcium carbonate products like Tums) work the fastest. They neutralize stomach acid on contact and typically bring relief within minutes, though the effect wears off in one to two hours.
- H2 blockers (like famotidine, sold as Pepcid) reduce acid production. They take about 60 minutes to kick in but last 4 to 10 hours, making them a better choice if you know heartburn tends to hit you overnight.
- Proton pump inhibitors (like omeprazole, sold as Prilosec) are the strongest option. They block acid production at the source but take one to four days of daily use to reach full effect. They’re designed for frequent heartburn, not a one-time episode.
For a single bout, an antacid is usually the right first move. If you’re reaching for antacids more than twice a week, an H2 blocker or proton pump inhibitor is more appropriate.
Baking soda (sodium bicarbonate) dissolved in water is a home remedy that genuinely works as a fast-acting antacid. The Mayo Clinic notes the maximum dose for adults is about five teaspoons of the effervescent powder per day, and you shouldn’t use it for more than two weeks. The sodium content makes it a poor choice for anyone watching their salt intake or managing high blood pressure.
Foods That Make It Worse
Certain foods trigger heartburn through specific, well-understood mechanisms. It’s not just about “spicy” or “acidic.”
High-fat meals are the most reliable trigger. Fat lowers the pressure of your esophageal valve, increases the rate of those unwanted valve relaxations, and slows stomach emptying. The result is more acid sitting in your stomach for longer, with a weaker barrier keeping it there. Fried foods, creamy sauces, and fatty cuts of meat are common culprits.
Spicy foods, particularly those containing capsaicin (the compound that makes peppers hot), irritate esophageal tissue that may already be inflamed. Capsaicin also slows gastric emptying, which compounds the problem. If your esophagus is already irritated from frequent reflux, even moderate spice can feel intense.
High-salt meals have a less obvious effect. Excess salt appears to slow the stomach’s ability to move food along, contributing to the kind of gastric fullness that triggers reflux. Chocolate and coffee both relax the esophageal valve. Alcohol does the same while also stimulating acid production.
Eating Habits That Help
What you eat matters, but so does how and when. Overfilling your stomach is one of the most direct triggers for reflux because gastric distension forces the valve open. Eating smaller, more frequent meals instead of three large ones keeps your stomach from getting too full at any point.
Timing matters just as much. Eating within two to three hours of lying down is a recipe for nighttime heartburn, because gravity is no longer helping keep acid in your stomach. Finish your last meal or snack well before bed. If you tend to eat dinner late, keep it light.
Chewing sugar-free gum after meals is a surprisingly effective habit. Gum stimulates saliva production, and saliva is naturally alkaline. Research has shown that chewing gum consistently raises pH levels in the esophagus and throat, essentially washing acid back down and neutralizing what remains. Bicarbonate-containing gum produces an even stronger effect.
Sleep Position and Elevation
Nighttime heartburn is often the most disruptive kind, and your sleeping position has a direct effect on how much acid reaches your esophagus. A systematic review and meta-analysis found that sleeping on your left side significantly reduces acid exposure compared to sleeping on your right side or on your back. The reason is anatomical: when you lie on your left side, your esophagus sits above the level of your stomach, so gravity works in your favor. On your right side, the esophagus drops below the stomach’s acid pool, making reflux more likely and slowing the time it takes to clear acid.
Elevating the head of your bed by about six inches also helps. You can use a foam wedge pillow or place blocks under the bed’s front legs. Stacking regular pillows doesn’t work as well because it bends you at the waist rather than creating a gradual incline, which can actually increase abdominal pressure.
Other Lifestyle Changes
Tight clothing around the waist and abdomen pushes on your stomach and can force acid upward. If you notice heartburn is worse when you wear fitted pants or belts, switch to looser options, especially after meals.
Excess body weight, particularly around the midsection, increases abdominal pressure in a similar way. Even modest weight loss can reduce the frequency and severity of heartburn episodes. Smoking weakens the esophageal valve and increases acid production, so quitting addresses heartburn from two directions at once.
Ginger has some evidence behind it as a natural aid for digestion. In a clinical trial, 1.2 grams of ginger root powder sped up stomach emptying significantly, with food leaving the stomach about 25% faster compared to a placebo. Faster emptying means less opportunity for reflux. Ginger tea or capsules taken before meals may help, though the evidence is strongest for general digestive discomfort rather than acid reflux specifically.
Heartburn vs. Heart Attack
Heartburn produces a burning sensation in the chest, often rising toward the throat, and it typically responds to antacids. A heart attack more commonly feels like pressure, tightness, or squeezing in the chest that may radiate to the arms, neck, jaw, or back. But these two can feel remarkably similar. Even experienced doctors sometimes can’t distinguish them based on symptoms alone.
If your chest pain comes with shortness of breath, dizziness, cold sweats, or pain spreading to your arm or jaw, treat it as a cardiac emergency. If antacids don’t help and the discomfort persists or worsens, don’t assume it’s just heartburn.
When Heartburn Becomes Chronic
Occasional heartburn after a heavy meal is normal. Heartburn that occurs more than twice a week for several weeks may indicate gastroesophageal reflux disease (GERD), a condition where chronic acid exposure starts damaging the esophageal lining. Over time, persistent GERD can lead to inflammation, narrowing of the esophagus, or changes in the cells lining the lower esophagus, a condition called Barrett’s esophagus that requires monitoring.
If over-the-counter medications and lifestyle changes aren’t controlling your symptoms, or if you’re experiencing difficulty swallowing, unintentional weight loss, or vomiting, those are signs that something beyond basic heartburn is going on and that further evaluation is worthwhile.

