Most heartburn responds well to a combination of simple habit changes and over-the-counter medications. A burning feeling behind your breastbone after eating is the hallmark symptom, caused by stomach acid flowing backward into your esophagus. The good news: you can usually stop it without a doctor’s visit, and even chronic cases have effective treatment options.
Quick Relief at Home
Over-the-counter antacids (the chewable tablets you find at any pharmacy) work the fastest. They neutralize stomach acid on contact and can ease the burn within minutes. The tradeoff is that relief is short-lived, typically lasting one to three hours.
Baking soda is a cheap pantry alternative that works on the same principle. Half a teaspoon dissolved in a glass of water every two hours can neutralize acid quickly. But don’t use it for more than two weeks, and avoid it entirely if you have high blood pressure, kidney disease, or heart problems. Baking soda is loaded with sodium, so it’s a temporary fix, not a routine one.
If your heartburn hits at night, your sleeping position matters more than you might expect. A study published in The American Journal of Gastroenterology monitored 57 people with chronic heartburn and found that while acid reflux episodes happened at roughly the same rate regardless of position, acid cleared from the esophagus significantly faster when people slept on their left side compared to their right side or back. Pairing left-side sleeping with a wedge pillow that elevates your upper body gives you the best shot at an uninterrupted night.
Foods That Make It Worse
Certain foods don’t just irritate your esophagus. They physically weaken the muscular valve at the top of your stomach that’s supposed to keep acid where it belongs. Coffee (even decaf), chocolate, peppermint, garlic, onions, and fatty or fried foods all relax this valve, letting acid splash upward. Chocolate is a particular offender because it contains a caffeine-like compound from the cocoa plant that directly loosens the valve.
Fatty and fried foods do double damage: they relax the valve and slow down stomach emptying, which means acid sits around longer with more opportunity to escape. Spicy foods have a similar effect. You don’t necessarily need to eliminate all of these permanently, but identifying your personal triggers and cutting back on them is one of the most effective long-term strategies.
Timing matters too. Eating within two hours of bedtime is one of the most reliable ways to trigger nighttime heartburn. Giving your stomach time to empty before you lie down makes a noticeable difference for most people.
Over-the-Counter Medications
When antacids aren’t cutting it, there are two stronger classes of medication available without a prescription, and they work differently.
H2 blockers (like famotidine, sold as Pepcid) reduce the amount of acid your stomach produces. They take 30 to 90 minutes to kick in, but the effect lasts 6 to 24 hours. This makes them a better choice when you want to prevent heartburn rather than stop it after it’s already started. Taking one before a meal you know will be a trigger can head off symptoms before they begin.
Proton pump inhibitors (like omeprazole, sold as Prilosec) are the strongest option. They shut down acid production more completely than H2 blockers, but they take one to four days of consistent use to reach full effect. They’re designed for people dealing with heartburn frequently, not as a one-time fix. Over-the-counter versions are typically meant for 14-day courses.
Are Long-Term Acid Reducers Safe?
You may have seen headlines linking proton pump inhibitors to bone fractures, kidney disease, and low magnesium. The reality is more reassuring than the headlines suggest. The American College of Gastroenterology reviewed these concerns and found that while some studies showed associations, they had significant flaws. Higher-quality research has not confirmed an increased risk of bone fractures or chronic kidney disease from these medications.
If you don’t have pre-existing risk factors for bone or kidney disease, current guidelines say you don’t need extra calcium, vitamin D, or kidney function monitoring just because you’re taking a proton pump inhibitor. That said, if you already have kidney problems, closer monitoring is worthwhile. The practical takeaway: use the lowest dose that controls your symptoms, and if you’ve been on one for months, it’s reasonable to periodically test whether you still need it.
Ginger and Other Natural Options
Ginger has the most promising evidence among natural remedies. It appears to speed up stomach emptying and reduce nausea by acting on receptors in the gut. One small study found that 1,650 mg of ginger per day significantly improved upper digestive symptoms including reflux. The evidence is still preliminary and based on small trials, but ginger tea or supplements are generally well-tolerated and worth trying as a complement to other strategies.
Other commonly recommended natural approaches, like slippery elm or apple cider vinegar, have very little clinical evidence behind them. They’re unlikely to cause harm in small amounts, but they shouldn’t replace approaches with stronger track records.
When Heartburn Doesn’t Respond to Treatment
If you’re still dealing with frequent heartburn after several weeks of lifestyle changes and medication, the problem may be structural. Some people have a hiatal hernia or a particularly weak valve between the stomach and esophagus that no amount of dietary adjustment will fix.
Surgery for chronic reflux has a strong track record. The most established procedure, called fundoplication, wraps part of the stomach around the lower esophagus to reinforce the valve. Multiple variations exist, and long-term studies show 85 to 90 percent of patients are satisfied with their results even 10 to 20 years later. Objective testing shows acid levels normalize in more than 90 percent of patients.
A newer option places a ring of magnetic beads around the lower esophagus to act as an artificial valve. It’s less invasive, but long-term data is still limited, and there are emerging concerns about the device gradually eroding into surrounding tissue. For now, fundoplication remains the more proven choice for people who need surgical intervention.
Heartburn vs. Heart Attack
Heartburn and heart attacks can feel remarkably similar. Even experienced doctors sometimes can’t distinguish them from symptoms alone. Both can cause chest pain, nausea, and upper abdominal discomfort.
Heartburn typically burns, gets worse after eating or lying down, comes with a sour taste in the back of your throat, and improves with antacids. A heart attack is more likely to feel like pressure, tightness, or squeezing that radiates to your arms, neck, jaw, or back. It often comes with shortness of breath, cold sweats, sudden dizziness, or unusual fatigue. Women are more likely than men to experience the less obvious symptoms like jaw pain, back pain, and nausea rather than classic crushing chest pain.
If your chest discomfort comes with any of those additional symptoms, or if it doesn’t respond to antacids and feels different from your usual heartburn, treat it as an emergency.