The fastest way to get rid of heartburn is an over-the-counter antacid containing calcium carbonate, which neutralizes stomach acid within minutes. But if heartburn keeps coming back, the real fix involves changing when and how you eat, how you sleep, and what you wear around your waist. Here’s what actually works, from quick fixes to long-term prevention.
Why Heartburn Happens
Your stomach and esophagus are separated by a ring of muscle that opens to let food down and closes to keep acid from coming back up. When that muscle relaxes at the wrong time or doesn’t close tightly enough, stomach acid washes into the esophagus and burns the lining. Certain foods, body positions, and even clothing can make this worse.
The acid itself is the primary driver of that burning pain, but bile and digestive enzymes also damage the esophageal lining. The longer acid sits in your esophagus before clearing, the worse the discomfort and the greater the risk of tissue irritation.
Quick Fixes That Work Right Now
If you’re in the middle of a heartburn episode, a few things can help within minutes. Antacids (the chewable tablets or liquid you find at any pharmacy) work by directly neutralizing the acid already in your stomach. They’re the fastest option.
Baking soda is a cheap home remedy that does the same thing. Mix half a teaspoon into a glass of cold water and drink it. You can repeat this every two hours, but don’t exceed five teaspoons in a single day. It’s a short-term fix, not a daily habit.
Chewing gum after a meal is surprisingly effective. It doubles your saliva production, and that extra saliva washes acid out of the esophagus roughly three times faster than normal. Sugar-free gum for 20 to 30 minutes after eating can noticeably reduce symptoms.
Loosen your belt or change out of tight pants. Research published in Gastroenterology found that a tight waist belt increased acid reflux roughly eightfold after a meal. The pressure pushes stomach contents upward, and it also triples the time it takes for acid to clear from the esophagus (from about 23 seconds to over 81 seconds). Elastic waistbands or looser clothing make an immediate difference.
Over-the-Counter Medications Compared
There are three main categories of heartburn medication you can buy without a prescription, and they work differently.
- Antacids (calcium carbonate, magnesium hydroxide) neutralize acid on contact. They work in minutes but wear off in an hour or two. Best for occasional, mild heartburn.
- H2 blockers (famotidine, sold as Pepcid AC) reduce how much acid your stomach produces. They last about eight hours. Good if you know a trigger meal is coming and want to take something beforehand.
- Proton pump inhibitors (omeprazole, sold as Prilosec) suppress acid production more powerfully and for longer, around 15 to 21 hours per dose. The tradeoff is they can take up to four days to reach full effect, so they’re not useful for a heartburn episode that’s already happening.
If you’re reaching for any of these more than twice a week, that’s a sign something deeper needs attention. Frequent use of proton pump inhibitors in particular has raised some safety questions. While fewer than 2% of users experience side effects serious enough to stop taking them, long-term use has been linked to potential issues including nutrient deficiencies (calcium, vitamin B12, magnesium), increased fracture risk, and kidney concerns. The FDA has issued warnings about several of these. That said, the quality of evidence behind most of these associations is still debated, and for many people, the benefits outweigh the risks.
Foods That Trigger Heartburn
The most common food triggers share two traits: they relax the muscle between your stomach and esophagus, and they slow digestion so food sits in your stomach longer. Both effects increase the chance of acid washing upward.
The well-established culprits, per Johns Hopkins Medicine, are fried food, fast food, pizza, processed snacks like potato chips, and spicy seasonings (black pepper, cayenne, chili powder). Chocolate, coffee, alcohol, and citrus are also common triggers, though sensitivity varies from person to person. You don’t necessarily need to eliminate all of these permanently. Pay attention to which ones consistently cause problems for you and cut back on those.
Meal Timing Matters More Than You Think
Eating close to bedtime is one of the strongest predictors of nighttime heartburn. When you lie down with a full stomach, gravity can no longer help keep acid where it belongs. Mayo Clinic gastroenterologist Joseph Murray recommends finishing your last meal at least three hours before bed: “Digestion is not meant to be going on during our sleep. It’s meant to be going on while we’re awake.”
Smaller meals also help. A large meal stretches the stomach and puts more pressure on that lower muscle, making it more likely to let acid through. Eating four or five smaller meals throughout the day instead of two or three large ones can reduce episodes significantly.
How to Sleep Without Heartburn
If heartburn wakes you up at night, your sleep position makes a real difference. A study highlighted by Harvard Health found that sleeping on your left side clears acid from the esophagus much faster than sleeping on your back or right side. The number of reflux events was similar in all positions, but left-side sleepers had far less acid exposure because the acid didn’t linger.
Elevating the head of your bed by 6 to 8 inches (using a wedge pillow or blocks under the bedframe legs) also helps. Propping yourself up with regular pillows tends not to work as well because it bends your body at the waist, which can actually increase abdominal pressure. A wedge pillow that elevates your entire torso is the better option.
Signs Heartburn Needs Medical Attention
Most heartburn is uncomfortable but harmless. Certain symptoms, however, signal that acid may have caused real damage. The American College of Gastroenterology identifies these warning signs: difficulty swallowing or a feeling that food is stuck behind your breastbone, vomiting blood or material that looks like coffee grounds, black or tarry stools, unexplained weight loss, and chronic coughing or hoarseness caused by acid reaching the airway. Any of these warrants a prompt conversation with a doctor, not more antacids.