6 ways to prevent heartburn By Mayo Clinic Staff Share Facebook Twitter Print details If you have heartburn, you might count on medications for treatment. And for good reason. Heartburn medications not only treat heartburn, but also heal the esophagus damage that heartburn can cause. However, ongoing, long-term use of proton pump inhibitor (PPI) drugs, like omeprazole (Prilosec), pantoprazole (Protonix) and esomeprazole (Nexium), have been associated in some studies with health risks. These drugs may increase the risk of certain infections, nutrient deficiencies, bone fracture and dementia. The evidence supporting these risks is mixed. Still, it's probably wise to work with your doctor to keep PPI use to the minimum needed to keep heartburn under control. What you can doTake these steps to prevent or minimize heartburn: Maintain a healthy weight. Excess pounds put pressure on your abdomen, pushing on your stomach and causing acid to back up into your esophagus. Recent weight gain is often associated with heartburn, as squeezing into tighter clothing can also put pressure on your abdomen. Eat smaller meals. Feeling stuffed after a meal puts extra pressure on the muscle that keeps food from backing up from the stomach to the esophagus. Avoid trigger foods. Common culprits include fatty or fried foods, alcohol, caffeine, chocolate, and peppermint. Don't lie down after eating. Eat dinner at least three to four hours before you go to bed. This allows some time for food to digest and clear the stomach. Elevate the head of your bed for sleeping. Put sturdy blocks under the head of your bed to raise it by about 6 to 8 inches. Another option is to insert a foam wedge between your mattress and box spring. Avoid putting a lot of pillows under your head. This can make heartburn worse, as it puts upward pressure on the stomach. Don't smoke. Smoking affects the muscle that keeps food from backing up into your esophagus. Show references Anderson III. WD, et al. Common questions about the management of gastroesophageal reflux disease. American Family Physician. 2015;91:692. Gomm W, et al. Association of proton pump inhibitors with risk of dementia. JAMA Neurology. 2016;73:410. AskMayoExpert. Gastroesophageal Reflux Disease (GERD): Lifestyle modifications (adult). Rochester, Minn.: Mayo Foundation for Medical Education and Research; 2016. Kahrilas PJ. Medical management of gastroesophageal reflux disease in adults. http://www.uptodate.com/home. Accessed June 6, 2016. Halland M (expert opinion). Mayo Clinic, Rochester, Minn. June 6, 2016. Pakkir Maideen NM. Adverse effects associated with long-term use of proton pump inhibitors. Chonnam Medical Journal. 2023; 59:115-127. doi: 10.4068/ cmj.2023.59.2.115 CPT-20311063