Heartburn is a burning sensation behind your breastbone caused by stomach acid flowing back into your esophagus, and managing it comes down to three things: stopping the burn when it happens, changing the habits that trigger it, and knowing when occasional discomfort has become something more serious. Most people can control heartburn effectively with a combination of over-the-counter options and simple lifestyle shifts.
What Causes the Burning
At the bottom of your esophagus sits a ring of muscle that opens to let food into your stomach and closes to keep acid from traveling upward. When that muscle relaxes at the wrong time or doesn’t close tightly enough, acid escapes into the esophagus and irritates its lining. Anything that weakens this muscle, increases stomach acid, or puts pressure on your stomach can trigger heartburn.
Common culprits include coffee, tea, cola, chocolate, peppermint, and fried or fatty foods. Caffeine both loosens that muscle and stimulates acid production, a double hit. Large meals, eating close to bedtime, tight clothing around the waist, and excess body weight all increase upward pressure on the stomach. Smoking, alcohol, and certain medications (particularly anti-inflammatory painkillers) can also contribute.
Quick Relief Options
Antacids containing calcium carbonate or magnesium hydroxide neutralize acid that’s already in your stomach. You chew two to four tablets as needed, up to about 7 grams of calcium carbonate per day. Relief depends on how quickly your stomach processes the tablet, but most people feel better within minutes. Antacids are fine for occasional use, though they won’t prevent heartburn from coming back.
Baking soda (sodium bicarbonate) works similarly. A half teaspoon dissolved in a glass of cold water every two hours can calm a flare, with a daily maximum of about five teaspoons. However, baking soda is high in sodium, so it’s a poor choice if you’re watching your salt intake or managing high blood pressure, kidney disease, or heart problems.
Alginate-based products take a different approach. When the alginate mixes with stomach acid, it forms a gel-like raft that floats on top of your stomach contents and physically blocks acid from reaching your esophagus. A 2017 meta-analysis found that alginate therapy worked better than both placebo and standard antacids for reflux symptoms. These products are available over the counter, often combined with antacid ingredients.
Stronger Medications for Frequent Heartburn
If you’re reaching for antacids more than a couple of times a week, two categories of acid-reducing medication offer longer-lasting control.
H2 blockers (like famotidine) work by blocking the signal that tells your stomach cells to produce acid. Relief kicks in within about an hour and lasts four to ten hours. These are a good fit for predictable heartburn, like the kind that shows up every evening.
Proton pump inhibitors (like omeprazole) shut down acid production more aggressively. They take one to four days to reach full effect, but once they do, the suppression lasts significantly longer than H2 blockers. PPIs are designed for daily use over a set period, typically two to eight weeks, rather than as-needed relief.
Concerns have been raised about long-term PPI use, including possible effects on calcium absorption and bone strength, increased risk of certain infections, and lower levels of magnesium, iron, and vitamin B12. It’s worth noting that all of these links come from observational studies, meaning they show an association rather than proving the PPI caused the problem. Still, the general approach is to use the lowest effective dose for the shortest time that controls your symptoms.
Dietary Changes That Make a Difference
Identifying your personal triggers matters more than following a generic “avoid” list, but certain foods relax the esophageal muscle in most people. Coffee, tea, chocolate, peppermint, carbonated drinks, and high-fat or fried foods are the most consistent offenders. Citrus, tomato-based sauces, garlic, onions, and spicy dishes bother many people as well, though individual tolerance varies widely.
Meal size and timing often matter as much as what you eat. Smaller, more frequent meals put less pressure on the stomach than two or three large ones. Eating your last meal at least two to three hours before lying down gives your stomach time to empty, reducing the volume of acid available to reflux.
Lifestyle Habits That Reduce Reflux
A short walk after dinner is one of the simplest and most effective changes you can make. One study compared reflux symptoms in people who lay down, sat, or walked after their evening meal. Symptoms occurred in 42% of those who lay down, 35% of those who sat, and just 30.5% of those who walked. A separate analysis found that roughly 30 minutes of moderate physical activity reduced reflux risk by about half compared to being sedentary. The key word is moderate: intense exercise, particularly anything involving bending or jarring, can actually worsen reflux.
How you sleep matters too. Elevating your upper body with a wedge pillow (not just extra pillows, which can bend you at the waist and make things worse) helps gravity keep acid in your stomach. Sleeping on your left side also appears to help. A Harvard-cited study found that acid cleared from the esophagus much faster when participants lay on their left side compared to their back or right side. Combining elevation with left-side sleeping gives you the most protection overnight.
If you carry extra weight, even modest weight loss can reduce the frequency and severity of heartburn. Excess abdominal fat pushes up on the stomach and forces acid toward the esophagus. Quitting smoking also helps, since nicotine relaxes the esophageal muscle.
Signs That Need Medical Attention
Most heartburn is uncomfortable but not dangerous. Certain symptoms, however, signal that acid exposure may have already caused damage or that something else is going on. The American College of Gastroenterology identifies these red flags:
- Difficulty swallowing or a feeling that food is getting stuck behind your chest
- Vomiting blood, whether it looks like red clots or dark coffee grounds
- Black, tarry stools, which can indicate bleeding in the digestive tract
- Choking or hoarseness from acid reaching the airway
- Unexplained weight loss combined with difficulty tolerating food
Any of these warrant prompt evaluation. Persistent heartburn that doesn’t respond to two weeks of over-the-counter treatment, or heartburn that keeps returning after you stop medication, also deserves a closer look to rule out structural issues or more significant acid damage.

