Heartburn medication: what works, what's safe, and when to see a doctor

Burning chest after meals? Heartburn meds can stop the pain fast — but different drugs work in different ways. This guide explains common options, when to use them, side effects to watch for, and smart questions to ask your pharmacist or doctor.

Common medicines

Antacids (Tums, Rolaids, Maalox) neutralize stomach acid within minutes. They’re best for occasional, mild heartburn and for fast relief. H2 blockers (famotidine, ranitidine historically) reduce acid production for a few hours and work well if you get predictable evening symptoms. Proton pump inhibitors or PPIs (omeprazole, esomeprazole, pantoprazole) block acid production longer and help with frequent or severe heartburn and GERD. Alginates (Gaviscon) form a foam barrier to keep acid from reaching the throat — useful if reflux reaches your throat or you lie down soon after eating. Prokinetics like metoclopramide speed stomach emptying and can help when delayed stomach emptying causes reflux, but they carry more side effects and are not first-line for most people.

Prescription treatments are for ongoing or severe symptoms. If you cough, lose weight, vomit blood, or have trouble swallowing, get medical care. Some meds for other conditions, like certain blood pressure drugs, can worsen reflux — always tell your provider about all drugs you take.

How to use them safely

Start with the least medicine that helps. Use antacids for occasional flares. Try an H2 blocker for predictable nightly heartburn. Reserve PPIs for frequent symptoms (more than twice a week) or when advised by a doctor. Use the shortest effective course and review need after 4–8 weeks. Long-term PPI use can raise risks like bone fractures, low magnesium, and certain infections — discuss risks and monitoring with your clinician.

Watch for interactions. PPIs change how your body handles drugs like clopidogrel and some antifungals; antacids can alter absorption of antibiotics. Take medicines as directed: many PPIs work best 30–60 minutes before the first meal. Avoid doubling doses unless told to do so.

Lifestyle fixes amplify medicine. Eat smaller meals, avoid late-night snacks, quit smoking, lose excess weight, and cut back on trigger foods (spicy, fatty, coffee, alcohol). Elevate the head of your bed 6–8 inches if reflux wakes you overnight. These steps often reduce medication need.

Buying meds online? Use licensed pharmacies, check for a valid address and pharmacist contact, and avoid sites offering prescription drugs without a prescription. Our site has reviews and buying guides to help you find safe options.

Want a quick plan? Try antacids for single flares, an H2 blocker for weekly symptoms, and see your doctor if symptoms persist or worsen. If you’re unsure which med fits you, bring a list of your symptoms and current meds to your pharmacist or doctor — that will speed up safe, effective care.

Pregnant? Many antacids are safe but check with your OB before starting PPIs or H2 blockers. Older adults may need bone density checks if on long-term PPIs. Always ask for drug-specific advice when you have other medical conditions.