Nonprescription medications used to treat heartburn include:Antacids for HeartburnAntacids neutralize stomach acid to cut down on heartburn, sour stomach, acid indigestion, and stomach upset. Some antacids also contain simethicone, an ingredient that helps your body get rid of gas. Some antacids contain ingredients that can cause , such as , or constipation, such as aluminum.Examples of antacids include:Aluminum hydroxide gel Calcium carbonate (Alka-Seltzer, Tums)Magnesium hydroxide (Milk of Magnesia) Gaviscon, Gelusil, Maalox, Mylanta, RolaidsPepto-BismolYou should take antacids exactly as directed by your doctor or according to the package label. If you use the tablets, chew them well before swallowing for faster relief.Be sure to follow the directions on the label so you don't overdose or overuse antacids. Depending on the ingredients, side effects may include constipation, diarrhea, changes in the color of bowel movements, and stomach .Acid Reducers for HeartburnThere are two types of drugs that cut down on the production of acid in the stomach: histamine antagonists (H2 antagonists or H2 blockers) and proton pump inhibitors (PPIs).Examples of H2 blockers available over the counter include:Cimetidine (Tagamet HB)Famotidine (Pepcid AC, Zantac 360)Nizatidine (Axid, Axid AR)Note: The H2 blocker ranitidine, which was in older Zantac products, was removed from the market in 2020 after it was found to contain a cancer-causing agent.The proton-pump inhibitors esomeprazole (Nexium 24HR), lansoprazole (Prevacid 24HR), and omeprazole (Prilosec OTC) are sold over-the-counter to treat frequent heartburn (two or more times per week) for 14 days. These types of medicines are also available as higher-strength prescriptions. Take them according to the directions on the package or as advised by your doctor.If these medications don't relieve your symptoms, or if your heartburn symptoms get worse or last for longer than 2 weeks, you should see your doctor.Combination Antacid/Acid Reducer for HeartburnPepcid Complete combines the acid-neutralizing capability of an antacid and the acid-reducing actions of an H2 blocker. Zegerid OTC combines a proton-pump inhibitor with sodium bicarbonate.Prescription Medication for Acid RefluxH2 blockers. In prescription form (usually higher doses than the over-the-counter versions), H2 blockers can generally relieve heartburn and treat reflux, especially if you’ve never had treatment before. These drugs are particularly useful at alleviating heartburn but may not be as good for treating esophagitis (inflammation that occurs in the esophagus) that is the result of GERD. stimulates acid production, especially after meals, so H2 blockers are best taken 30 minutes before meals. They can also be taken at bedtime to suppress nighttime production of acid. Examples of prescription H2 blockers:Cimetidine (Tagamet HB)Famotidine (Pepcid AC, Zantac 360)Nizatidine (Axid, Axid AR)Side effects can include headache, abdominal pain, diarrhea, nausea, gas, sore throat, runny nose, and dizziness. Proton pump inhibitors. Depending on the source of your heartburn or reflux, your doctor can prescribe drugs that block acid production more effectively and for a longer period of time than the , namely the family of medications doctors call proton pump inhibitors. PPIs are best taken an hour before meals. They include:Dexlansoprazole (Dexilant)Esomeprazole (Nexium)Lansoprazole (Prevacid)Omeprazole (Prilosec, Zegerid)Pantoprazole (Protonix)Rabeprazole (Aciphex) Most doctors do not believe that one proton pump inhibitor is significantly more effective than the others in managing GERD. These medications are also good for protecting the esophagus from acid so that esophageal inflammation can heal.Side effects can include headache, diarrhea, abdominal pain, bloating, constipation, nausea, and gas.Promotility agents. These work by stimulating the muscles of the gastrointestinal tract, which may help prevent acids from staying in the stomach too long, and strengthening the lower sphincter, reducing reflux into the esophagus. Metoclopramide (Reglan) is a promotility agent occasionally used to treat heartburn associated with GERD. The side effects of Reglan can be serious and may include drowsiness, fatigue, diarrhea, restlessness, and movement problems. A drug recently approved by the FDA, called vonoprazan (Voquezna), is a potassium-competitive acid blocker (PCAB) that treats GERD by blocking acid secretion in the stomach.So Which Works Best for Heartburn?All of these over-the-counter medicines, to a varying degree, can relieve the symptoms of . If you have more severe heartburn symptoms that these medications don't relieve, or if you've been using these medicines for more than 2 weeks, call your doctor. You may need a stronger prescription medicine and tests to see what's causing your symptoms.SourcesUpdate HistorySharePrintPhoto Credit: Generative AI by Getty ImagesSOURCES: FDA.American College of Gastroenterology.The National Institute of Diabetes and Digestive and Kidney Diseases.American Association of Family Physicians. Voquezna.com.SharePrintNext In TreatmentShow more articles More on Heartburn/GERD Recommended FEATURED Top doctors in , Find more top doctors on Search Related LinksPoliciesAboutFor Advertisers © 2005 - 2025 WebMD LLC, an company. All rights reserved. WebMD does not provide medical advice, diagnosis or treatment. , What works fastest for heartburn? Over-the-counter (OTC) medications are available when you need quick relief. Explore OTC heartburn medications, including Tums and Rolaids, with GoodRx., WebMD takes a look at over-the-counter drugs used to treat heartburn and acid reflux..