The best thing for heartburn depends on whether you need relief right now or want to stop it from coming back. For immediate relief, an over-the-counter antacid or alginate-based product will neutralize or block stomach acid within minutes. For recurring heartburn, the most effective long-term strategies combine simple habit changes with the right type of medication for your frequency and severity.
Fastest Options for Immediate Relief
When heartburn hits, you have three main categories of quick relief. Standard antacids (the chewable tablets or liquids you find at any pharmacy) work by neutralizing the acid already in your stomach. They kick in within minutes and are fine for occasional use.
Alginate-based products work differently and, for many people, work better. When alginates mix with stomach acid, they form a gel-like raft that floats on top of your stomach contents, physically blocking acid from rising into your esophagus. One clinical study found alginates more effective than traditional antacids for treating reflux. These are available over the counter, often combined with an antacid in a single product.
Baking soda is a common home remedy that does work in a pinch. The Mayo Clinic lists a dose of one to two and a half teaspoons dissolved in a glass of cold water after meals, with a maximum of five teaspoons per day. However, baking soda is high in sodium and can cause water retention, so it’s a poor choice if you have high blood pressure, kidney disease, heart disease, or swelling in your legs. It’s a temporary fix, not a regular strategy.
Medications for Frequent Heartburn
If heartburn shows up more than twice a week, quick-relief antacids aren’t enough. Two classes of over-the-counter medication reduce the amount of acid your stomach produces in the first place.
H2 blockers (like famotidine) reduce acid production for several hours and typically start working within 30 to 60 minutes. They’re a good middle ground for people who get heartburn a few times a week but not daily.
Proton pump inhibitors, commonly called PPIs, are the strongest acid-suppressing medications available without a prescription. They don’t provide instant relief because they need a day or two to reach full effect, but they’re the most effective option for persistent heartburn. A standard course runs two weeks. Long-term PPI use has been linked to some concerns, including reduced absorption of certain vitamins and minerals, a higher risk of a specific type of intestinal infection, and potential effects on bone density. These risks are relatively small for most people, but they’re a good reason to use PPIs at the lowest effective dose and to periodically reassess whether you still need them rather than staying on them indefinitely.
Habit Changes That Actually Help
Medication aside, a few lifestyle adjustments have the strongest evidence behind them.
Stop eating 2 to 3 hours before bed. Lying down with a full stomach is one of the most reliable heartburn triggers. Heartburn that wakes you up at night is especially common if you’ve eaten within two hours of going to sleep.
Sleep on your left side. A study monitoring 57 people with chronic heartburn found that acid refluxed into the esophagus at similar rates regardless of sleep position, but acid cleared from the esophagus significantly faster when people slept on their left side compared to their right side or back. Faster clearance means shorter, less damaging acid exposure and less pain. A wedge pillow that elevates your upper body can add another layer of protection by using gravity to keep acid down.
Lose weight if you carry extra around your midsection. Excess abdominal weight puts direct pressure on the stomach and pushes acid upward. Even modest weight loss can noticeably reduce heartburn frequency.
Wear loose clothing. Tight waistbands and belts compress the stomach the same way extra body weight does.
Trigger Foods: What the Evidence Shows
You’ve probably seen long lists of foods to avoid: citrus, coffee, chocolate, fried food, spicy food, tomato-based sauces, carbonated drinks. Patients consistently report these as triggers, and they’re worth paying attention to in your own experience. But the clinical picture is murkier than most articles suggest. Well-controlled studies have found little measurable impact of chocolate, fried foods, or spicy foods on objective acid exposure in the esophagus.
What this means practically is that trigger foods are personal. Rather than eliminating everything on a generic list, pay attention to which specific foods reliably cause your symptoms and cut those. Some people can drink coffee without issue but can’t touch orange juice. Others eat spicy food freely but get heartburn from chocolate. Your pattern matters more than a universal rule.
Two dietary factors do have more consistent evidence: large meals and high-fat meals. Both slow stomach emptying and increase pressure on the valve between your stomach and esophagus. Eating smaller, more frequent meals is one of the more reliable ways to reduce episodes.
When Heartburn Might Be Something Else
Heartburn and heart attacks can feel remarkably similar. Even experienced doctors can’t always distinguish them based on symptoms alone, according to the Mayo Clinic. Typical heartburn causes a burning sensation in the chest or upper abdomen, usually after eating, and is often accompanied by a sour taste or a small amount of stomach contents rising into the throat. It usually responds to antacids.
Heart attack symptoms overlap more than most people realize. Nausea, indigestion, and abdominal pain are all listed among common heart attack signs. The features that lean more toward a cardiac event include pressure or squeezing in the chest that radiates to the arms, neck, jaw, or back, along with shortness of breath, cold sweat, lightheadedness, or sudden fatigue. Women are more likely than men to experience jaw pain, back pain, and nausea as their primary symptoms rather than classic chest pain.
If your “heartburn” comes with any of those additional symptoms, if it doesn’t respond to antacids, or if it started during physical exertion rather than after a meal, treat it as a potential emergency. This is especially important if you have risk factors like high blood pressure, diabetes, high cholesterol, or a smoking history.
Putting It All Together
For occasional heartburn after a big meal, an antacid or alginate product and a two-hour gap before lying down will handle most episodes. For heartburn that keeps coming back, the combination of sleeping on your left side with your upper body elevated, eating smaller meals earlier in the evening, identifying your personal food triggers, and using an H2 blocker or short PPI course will resolve the majority of cases. If heartburn persists despite these steps for more than a few weeks, or if you’re relying on daily medication to keep it in check, that’s worth a conversation with your doctor to rule out a structural issue or a condition that needs more targeted treatment.

