Heartburn can usually be relieved quickly with over-the-counter medications and prevented long-term with a few targeted lifestyle changes. The burning sensation happens when a ring of muscle at the bottom of your esophagus, called the lower esophageal sphincter, opens when it shouldn’t, allowing stomach acid to flow back up into your esophagus. The good news: most people can manage heartburn without a prescription once they understand what triggers it and which remedies actually work.
What Causes the Burning
Your lower esophageal sphincter acts like a one-way valve. It relaxes to let food and liquid pass down into your stomach, then closes to keep digestive acid where it belongs. When this valve relaxes at the wrong time, acid washes up into the esophagus, which has no protective lining against it. That’s the burning you feel behind your breastbone, sometimes rising into your throat.
Certain foods, extra weight around the midsection, eating close to bedtime, and even body position can all cause that valve to relax inappropriately or put upward pressure on your stomach contents. Fixing heartburn means either neutralizing the acid that escapes, reducing how much acid your stomach produces, or preventing the reflux from happening in the first place.
Three Types of Over-the-Counter Relief
Not all heartburn medications work the same way, and choosing the right one depends on whether you need fast relief or longer-lasting prevention.
Antacids (calcium carbonate brands like Tums or Rolaids) neutralize acid that’s already sitting in your stomach. They work within minutes, making them the best option when heartburn has already started. The trade-off is that relief is short-lived, typically lasting an hour or two.
H2 blockers (famotidine, sold as Pepcid) block the chemical signal that tells your stomach to produce acid. They also kick in fairly quickly, though not as fast as antacids, and the effect lasts longer. These work well if you know a trigger meal is coming and want to get ahead of it.
Proton pump inhibitors (omeprazole, sold as Prilosec) shut down the acid-producing pumps in your stomach lining. They’re the most powerful option but the slowest to start working, often taking a day or more to reach full effect. PPIs are designed for frequent heartburn, not occasional flare-ups. A standard over-the-counter course lasts 14 days.
Foods That Trigger Reflux
Certain foods cause the esophageal sphincter to relax and slow digestion, letting food sit in your stomach longer. According to Johns Hopkins Medicine, the worst offenders are foods high in fat, salt, or spice: fried food, fast food, pizza, processed snacks, fatty meats like bacon and sausage, and cheese. Chili powder, black pepper, and cayenne are common triggers too.
Several other foods cause the same problem through different mechanisms. Tomato-based sauces and citrus fruits are acidic enough to irritate the esophagus directly. Chocolate and peppermint both relax the sphincter. Carbonated beverages increase pressure inside the stomach, pushing acid upward. You don’t necessarily need to eliminate all of these permanently. Try removing the most likely culprits for two to three weeks, then reintroduce them one at a time to identify your personal triggers.
Lifestyle Changes That Reduce Heartburn
Carrying extra weight is one of the strongest predictors of chronic heartburn. Excess abdominal fat puts constant upward pressure on the stomach. One long-term study found that losing enough weight to drop your BMI by about 3.5 points reduced the risk of frequent reflux symptoms by nearly 40%. For someone who’s 5’7″, that translates to roughly 22 pounds. Even modest weight loss often brings noticeable improvement.
Eating habits matter as much as what you eat. Large meals stretch the stomach and increase pressure on the sphincter. Eating smaller portions and stopping two to three hours before lying down gives your stomach time to empty. Tight clothing around the waist, especially after meals, can also push stomach contents upward.
How to Sleep Without Heartburn
Gravity is your ally. When you lie flat, acid can pool at the base of your esophagus for hours. Elevating the head of your bed by 6 to 8 inches using blocks under the bed frame or a foam wedge under the mattress keeps acid in your stomach while you sleep. Stacking pillows doesn’t work as well because it bends your body at the waist rather than creating a gradual incline.
Sleeping on your left side also helps. This position takes advantage of the stomach’s natural anatomy: the junction between your esophagus and stomach sits higher than the pool of acid when you’re on your left side, so gravity keeps acid from reaching the valve. Switching to your right side reverses this relationship and tends to make nighttime reflux worse.
Do Natural Remedies Work?
Apple cider vinegar is one of the most popular home remedies for heartburn, but there’s no published medical research supporting it. Some people report relief, and a small graduate thesis from 2015 suggested raw apple cider vinegar might help, but the study was too small to draw conclusions from. Since vinegar is acidic, it could just as easily irritate an already inflamed esophagus.
Baking soda (sodium bicarbonate) does work as a basic antacid because it’s alkaline and neutralizes acid on contact. Half a teaspoon dissolved in four ounces of water can provide quick relief. But it’s high in sodium and not meant for regular use. If you’re reaching for baking soda more than occasionally, an over-the-counter antacid is a safer and more consistent option.
When Heartburn Becomes Something More
Occasional heartburn after a heavy meal is normal. Heartburn that happens twice a week or more may be gastroesophageal reflux disease (GERD), a chronic condition where repeated acid exposure starts to damage the esophagus. Over time, that damage can cause scar tissue to form, narrowing the esophagus and making swallowing difficult. In some cases, persistent acid damage leads to changes in the esophageal lining called Barrett’s esophagus, which carries an increased risk of esophageal cancer.
The American College of Gastroenterology recommends that anyone whose heartburn doesn’t improve after eight weeks of a proton pump inhibitor, or whose symptoms return every time they stop taking one, should have an endoscopy to look at the esophagus directly. Difficulty swallowing, unexplained weight loss, vomiting, or signs of bleeding (dark stools, for example) are reasons to get evaluated sooner rather than later.
A Note on Long-Term PPI Use
PPIs are safe and effective for short courses, but using them for months or years does carry some risks. A review from Cleveland Clinic found clear associations between prolonged PPI use and a mild increased risk of vitamin B12 deficiency, bacterial overgrowth in the small intestine, and a higher chance of certain gut infections including C. difficile, Salmonella, and Campylobacter. Earlier concerns linking PPIs to bone fractures, heart problems, and pneumonia have not held up well under closer scrutiny. If you’ve been on a PPI for a long time, it’s worth discussing with your doctor whether the dose can be reduced or whether an H2 blocker could work instead.