Heartburn happens when stomach acid backs up into the esophagus, and the fastest way to stop it depends on whether you need relief right now, tonight, or long-term. Over-the-counter antacids can neutralize acid within minutes, while lifestyle changes and dietary adjustments prevent it from coming back. Here’s what works, how quickly each option kicks in, and what to avoid.
Fast Relief: What Works in Minutes
Antacids containing calcium carbonate or magnesium hydroxide are the quickest option. They work by directly binding to acid in your stomach, raising the pH toward neutral within minutes of taking them. The tradeoff is that they wear off relatively fast, so they’re best for occasional flare-ups rather than ongoing management.
If you don’t have antacids on hand, half a teaspoon of baking soda dissolved in a full glass of water acts as a makeshift antacid. It neutralizes acid the same way commercial products do. But baking soda is loaded with sodium, so it’s a poor choice if you have high blood pressure, kidney disease, heart disease, or are on a sodium-restricted diet. Stick to the half-teaspoon dose and don’t repeat it more than every two hours.
Another surprisingly effective trick: chewing sugar-free gum for 30 minutes after a meal. Gum stimulates saliva production, and saliva is mildly alkaline. Studies show this increases swallowing frequency and improves the rate at which acid clears from the esophagus. Bicarbonate-containing gum works even better than regular sugar-free varieties. It won’t stop a severe episode, but it can take the edge off mild postmeal heartburn.
Longer-Lasting Medication Options
When antacids aren’t cutting it, acid reducers work differently. Instead of neutralizing acid that’s already there, they reduce how much your stomach produces in the first place.
H2 blockers like famotidine (sold as Pepcid) don’t kick in as fast as antacids, but their effects last 4 to 10 hours. That makes them useful when you want to prevent heartburn overnight or know a trigger meal is coming. They’re available over the counter and are considered safe alternatives after the FDA requested all ranitidine (Zantac) products be pulled from the market in 2020 due to contamination concerns. Famotidine, cimetidine, and other remaining options tested clean.
Proton pump inhibitors (PPIs) like omeprazole (Prilosec) are the strongest option and are designed for frequent heartburn. They shut down acid production more completely, but they take a day or more to reach full effect and are meant to be used in 4- to 8-week courses rather than popped as needed. Long-term PPI use has been linked to a modestly increased fracture risk (about 30% higher for fractures overall compared to nonusers, based on a large meta-analysis), likely due to reduced calcium absorption. The absolute risk is small, but it’s worth knowing if you’ve been on them for months or years without reassessing.
Foods That Cause Heartburn
Certain foods relax the muscular valve between your esophagus and stomach. When that valve loosens, acid can push upward. These same foods also tend to slow digestion, meaning food sits in the stomach longer and creates more opportunity for reflux. The biggest offenders are high-fat, salty, and spicy foods:
- Fried food, fast food, and pizza
- Fatty meats like bacon and sausage
- Cheese and processed snacks like potato chips
- Spicy seasonings including chili powder, cayenne, and black pepper
A second group of triggers works through different mechanisms but is just as common: tomato-based sauces, citrus fruits, chocolate, peppermint, and carbonated drinks. You don’t necessarily need to eliminate all of these permanently. Most people have a handful of personal triggers, and keeping a simple food log for a week or two can help you identify yours without unnecessarily restricting your diet.
Position and Timing Habits That Help
Gravity is one of the most underrated tools for managing heartburn. When you lie flat, acid can flow freely from your stomach into your esophagus. Eating your last meal at least two to three hours before bed gives your stomach time to empty. If nighttime heartburn is your main problem, elevating the head of your bed by 6 to 8 inches (using a wedge pillow or blocks under the bed frame, not just extra pillows) keeps acid where it belongs.
Tight clothing around the waist and abdomen increases pressure on the stomach and can force acid upward. The same goes for bending over or exercising intensely right after eating. Smaller, more frequent meals put less pressure on that valve than large ones, which is why heartburn so often strikes after big dinners.
Weight, Smoking, and Other Root Causes
Excess weight around the midsection physically compresses the stomach and pushes acid toward the esophagus. Even modest weight loss can meaningfully reduce heartburn frequency for people who are overweight. Smoking weakens the esophageal valve directly and also increases acid production, making it a double contributor.
Alcohol relaxes the valve between the stomach and esophagus in much the same way trigger foods do. If you notice heartburn consistently follows drinking, cutting back is one of the most effective single changes you can make.
Signs That Need Medical Attention
Occasional heartburn is extremely common and usually manageable on your own. But certain symptoms suggest damage that goes beyond typical reflux. These include difficulty swallowing or a sensation of food getting stuck behind the breastbone, vomiting blood (which can look like red clots or dark coffee grounds), black tarry stools, unexplained weight loss, or a chronic cough and hoarseness caused by acid reaching the windpipe. Any of these warrants prompt evaluation rather than continued self-treatment.

