Heartburn happens when stomach acid flows back into your esophagus, and controlling it comes down to three things: reducing what triggers it, changing habits that make it worse, and using the right medication at the right time. Most people can get significant relief without a prescription.
Eating Habits That Make the Biggest Difference
The single most impactful change for nighttime heartburn is leaving enough time between your last meal and lying down. A study in the American Journal of Gastroenterology found that people who ate within three hours of bedtime were more than seven times as likely to experience reflux compared to those who waited four hours or more. That’s not a small effect. If you eat dinner at 8 p.m. and go to bed at 10, you’re setting yourself up for a rough night.
Meal size matters as much as timing. A large meal stretches your stomach and increases the pressure pushing acid upward. Eating smaller, more frequent meals throughout the day keeps that pressure lower. When you do eat, slow down. Rushing through a meal causes you to swallow air and overeat before your brain registers fullness.
Common trigger foods vary from person to person, but the usual suspects are worth testing. Tomato-based sauces, citrus, chocolate, coffee, alcohol, mint, and high-fat or fried foods all relax the valve between your stomach and esophagus or increase acid production. You don’t need to eliminate everything at once. Try removing one or two for a week and see if your symptoms improve, then adjust from there.
How You Sleep Changes Everything
Sleeping position has a surprisingly strong effect on acid reflux. When you lie on your left side, your stomach sits below your esophagus, making it harder for acid to travel upward. Researchers at Amsterdam UMC confirmed that left-side sleeping not only reduces the amount of acid reaching the esophagus but also allows any acid that does get there to drain back into the stomach faster. Sleeping on your right side does the opposite, positioning the stomach above the esophageal opening.
Elevating the head of your bed by about six inches also helps gravity work in your favor. This means raising the bed frame itself or using a foam wedge under your mattress, not just stacking pillows. Extra pillows tend to bend you at the waist, which can actually increase abdominal pressure and make things worse.
Why Weight Around Your Midsection Matters
Carrying extra weight, particularly around your abdomen, increases the pressure inside your abdominal cavity. That pressure pushes against your stomach and forces acid upward. Research published in Gastroenterology found that waist circumference is actually a stronger predictor of reflux than overall body weight. In other words, where you carry fat matters more than what the scale says.
Studies on patients who lost significant abdominal weight showed meaningful decreases in reflux symptoms. You don’t need dramatic weight loss to notice a difference. Even a moderate reduction in belly fat can lower that internal pressure enough to reduce how often heartburn hits.
Choosing the Right Over-the-Counter Medication
Three categories of heartburn medication are available without a prescription, and they work differently. Picking the right one depends on whether you need fast relief right now or prevention over the next several hours.
- Antacids (calcium carbonate, like Tums or Rolaids) work the fastest. They neutralize acid that’s already in your stomach, so relief comes within minutes. The tradeoff is that they wear off quickly, typically within an hour or two. Best for occasional, mild heartburn after a triggering meal.
- H2 blockers (famotidine, sold as Pepcid) reduce how much acid your stomach produces. They take about an hour to kick in but last 4 to 10 hours. If you know a big dinner is coming and want to get ahead of symptoms, taking one 30 to 60 minutes before eating is a solid strategy.
- Proton pump inhibitors (omeprazole, sold as Prilosec) are the strongest option. They shut down acid production more completely, but they take one to four days to reach full effect. These are designed for frequent heartburn, not a one-off episode after pizza.
For a quick rescue, grab an antacid. For predictable triggers, an H2 blocker before meals gives you a longer window of protection. For heartburn that’s happening two or more days a week, a PPI taken daily for a defined period is more effective than treating each episode individually.
Limits on Long-Term Medication Use
Over-the-counter PPIs are labeled for 14-day courses, and the American College of Gastroenterology recommends a standard treatment duration of 8 weeks. They’re not meant to be taken indefinitely without medical guidance. The FDA has flagged several potential risks with prolonged use, including low magnesium levels, reduced absorption of certain nutrients like vitamin B12, and a possible increase in bone fracture risk at the hip, wrist, and spine. There have also been concerns raised about kidney problems and infections in the digestive tract.
None of this means PPIs are dangerous when used appropriately. They’re highly effective for the right situations. But if you find yourself reaching for them month after month, that’s a signal to get evaluated rather than continuing to self-treat.
Baking Soda as a Quick Fix
Dissolving half a teaspoon of baking soda in a glass of water is an old home remedy that genuinely works. It neutralizes stomach acid on contact, providing fast relief. But it comes with real limitations. Baking soda is loaded with sodium, so it’s a poor choice if you’re managing high blood pressure, heart disease, kidney problems, or any condition where sodium intake matters. Mayo Clinic advises against using it for more than two weeks or combining it with large amounts of milk, which can cause a separate set of problems. It’s a reasonable option for the occasional emergency when you have nothing else on hand, not a regular strategy.
Other Habits Worth Adjusting
Tight clothing around your waist, including belts and high-waisted pants that dig in, increases abdominal pressure the same way excess weight does. Loosening up can provide surprisingly quick relief.
Smoking weakens the muscular valve at the top of your stomach, making it easier for acid to escape. Alcohol does the same thing while also increasing acid production. Cutting back on either one, or both, often reduces heartburn frequency within days.
Stress doesn’t directly cause acid production to spike, but it lowers your threshold for noticing discomfort and can lead to behaviors that trigger reflux, like eating quickly, overeating, or reaching for alcohol and coffee. Managing stress won’t cure heartburn, but it removes one layer of the problem.
Signs That Need Medical Attention
Most heartburn is manageable at home, but certain symptoms point to something more serious. Difficulty swallowing, the sensation that food is getting stuck in your chest or throat, unintentional weight loss, persistent vomiting, or vomiting blood all warrant prompt evaluation. Heartburn that doesn’t respond to two weeks of over-the-counter treatment, or that keeps coming back after you stop medication, also deserves a closer look. These situations may require an endoscopy to check for damage to the esophageal lining or other conditions that mimic reflux.

