How to Deal With Heartburn: Quick Fixes and Prevention

Heartburn usually responds well to a combination of simple habit changes and, when needed, over-the-counter remedies. The burning sensation behind your breastbone happens when stomach acid flows backward into your esophagus, irritating its lining. Most episodes are triggered by specific foods, meal timing, or body position, all of which you can control.

What Triggers Heartburn

Certain foods relax the muscular valve between your stomach and esophagus, making it easier for acid to escape upward. The most common culprits are fatty or fried foods, chocolate, peppermint, alcohol, coffee, carbonated drinks, citrus, and tomato-based sauces. Spicy foods don’t actually increase acid production in most people, but they can irritate an already-inflamed esophagus and make the burn feel worse.

Large meals are a major trigger regardless of what you eat. A full stomach puts pressure on that valve, and the more it stretches, the more likely acid is to leak through. Eating smaller portions spread across the day reduces that pressure significantly. Tight clothing around the waist, especially after eating, creates the same kind of squeeze on your stomach.

Smoking weakens the valve over time, and excess body weight pushes the stomach upward, compressing it against the diaphragm. Both are long-term risk factors worth addressing if heartburn becomes a regular problem.

Meal Timing and Sleep Position

One of the most effective changes you can make is stopping food intake at least three hours before lying down. When you’re upright, gravity helps keep acid in your stomach. The moment you recline after eating, that advantage disappears. This three-hour window gives your stomach enough time to empty most of its contents.

If nighttime heartburn still bothers you, elevating the head of your bed helps. A wedge pillow or risers under your bed’s headboard legs work better than stacking regular pillows, which tend to bend you at the waist and can actually increase abdominal pressure. Research from Harvard Health found that sleeping on your left side also helps. While the position doesn’t prevent acid from entering the esophagus, it clears acid significantly faster than sleeping on your back or right side. Combining a slight elevation with left-side sleeping gives you the best protection overnight.

Quick Relief Options

For an episode that’s already happening, antacids are the fastest fix. Chewable calcium carbonate tablets (the active ingredient in Tums and similar products) neutralize stomach acid within minutes. They don’t prevent future episodes, but they handle the immediate discomfort well.

Baking soda dissolved in water is an old home remedy that genuinely works. Half a teaspoon in a full glass of cold water neutralizes acid quickly. But baking soda is extremely high in sodium, so it’s not appropriate if you’re on a sodium-restricted diet or managing high blood pressure, kidney disease, or heart disease. It’s also not meant for regular use. Treat it as an occasional, in-a-pinch solution.

Chewing gum after meals stimulates saliva production, which is mildly alkaline and helps wash acid back down into the stomach. It’s a surprisingly effective trick for mild heartburn, especially when you don’t have antacids on hand.

Over-the-Counter Medications

When lifestyle changes alone aren’t enough, two main categories of medication can help. The first type, called H2 blockers, reduces the amount of acid your stomach produces over several hours. They take about 30 to 60 minutes to kick in but last longer than antacids, making them useful if you know a trigger meal is coming.

The second type, proton pump inhibitors (PPIs), suppresses acid production more completely. These take a day or two to reach full effect and are designed for daily use over a short course, typically two weeks. They’re the strongest option available without a prescription and work well for people dealing with heartburn multiple times a week. PPIs aren’t intended for long-term use without medical guidance, since prolonged acid suppression can affect nutrient absorption.

Habits That Prevent Recurring Episodes

If heartburn shows up more than occasionally, building a few habits into your routine makes a noticeable difference. Eat slowly. Rushed eating leads to larger bites, more swallowed air, and less chewing, all of which increase stomach pressure. Stay upright for at least 30 minutes after eating, even if it’s just a snack. Avoid bending over or doing ab exercises right after meals.

Keep a simple log for a week or two noting what you ate, when, and whether heartburn followed. Patterns emerge quickly. Some people find that wine triggers it but beer doesn’t, or that tomato sauce is fine in small amounts but not on an empty stomach. Your triggers are individual, and tracking them is more useful than following a generic “foods to avoid” list.

Stress doesn’t directly cause acid reflux, but it lowers your threshold for noticing discomfort and can lead to eating habits (fast meals, comfort foods, late-night snacking) that make heartburn more likely. Addressing the stress cycle often improves symptoms indirectly.

When Heartburn Signals Something More

Occasional heartburn after a big meal is normal. But weekly heartburn, or heartburn that doesn’t respond to the strategies above, can indicate gastroesophageal reflux disease (GERD), a chronic condition where the valve between your stomach and esophagus doesn’t close properly. Left untreated, ongoing acid exposure can damage the esophageal lining.

Certain symptoms alongside heartburn warrant prompt attention: difficulty swallowing or a sensation of food getting stuck, unintentional weight loss, chest pain that feels like tightening or squeezing, and heartburn that persists despite consistent treatment. People over 60 experiencing new or worsening heartburn should also get evaluated, since the risk of complications increases with age and years of acid exposure.