How to Prevent Heartburn

Occasional heartburn is very common, but for some people, it is more frequent and can interfere with their daily life. The good news is that there are simple lifestyle tips that can help prevent episodes of heartburn. These include how and what you eat and drink, sleeping habits, and even how you dress.

how to prevent heartburn
Illustration by JR Bee, Verywell​

How Heartburn Occurs

Many prevention tips discuss the lower esophageal sphincter (LES). The LES is the valve at the junction between the esophagus and stomach. If the LES isn't working properly or relaxes inappropriately, stomach contents can reflux back up into the esophagus. The stomach acid and food can irritate the esophagus, causing heartburn.

You should see your doctor for an evaluation if you have heartburn more than twice a week and it isn't relieved with over-the-counter remedies.

If you are diagnosed with gastroesophageal reflux disease (GERD), these heartburn prevention tips are ones that are likely to be included in your treatment plan.

Keep a Symptom Record

Record what triggered your acid reflux episodes, the severity of each episode, how your body reacts, and what gives you relief. The next step is to take this information to your doctor so the both of you can determine what lifestyle changes you will need to make and what treatments will give you maximum relief.

Heartburn Doctor Discussion Guide

Get our printable guide for your next doctor's appointment to help you ask the right questions.

Doctor Discussion Guide Old Man

Stop Smoking and Avoid Smoke

Smoking leads to more heartburn in several ways:

  • Smoking reduces saliva production. Saliva is naturally alkaline, so it can help neutralize stomach acid.
  • Smoking can weaken and relax the LES.
  • Smokers are prone to coughing, which increases abdominal pressure and can lead to heartburn.

Exposure to secondhand smoke is also linked to heartburn, so you should avoid places where people smoke.

Eating and Drinking

What you eat and drink, as well as the timing, may trigger heartburn. Some are common, while others are those that are triggers in some individuals.

Alcohol Consumption

Alcoholic beverages, including beer, wine, and distilled spirits, can trigger heartburn. Alcohol increases the amount of acid the stomach produces and relaxes the LES. For some people, an occasional alcoholic drink doesn't cause reflux. For others, even a small drink will result in heartburn. Keep track of which alcoholic drinks aggravate your heartburn, and avoid them as much as possible.

Dietary Patterns

A full stomach can put extra pressure on the LES. You may try eating six smaller meals each day instead of three larger ones. Or you can try having your larger meal earlier in the day and have a light meal for supper. Avoid late-night snacking.

Eat while sitting upright and remain upright (sitting or standing) for 45 minutes to an hour after eating. Don't lie down or go to bed for two to three hours after eating. The LES tends to relax when you lie down, and a full stomach can cause stomach contents to press harder against the LES. Also, your digestive system slows down when you sleep. The food in your stomach stays there longer at the same time you are in a prime position for the food to be refluxed.

Drink plenty of water, which helps with digestion. However, drinking too much water at one time increases the volume of stomach contents and can worsen heartburn symptoms. It is better to drink smaller amounts throughout the day rather than large amounts less often. Another trick is to drink a glass of lukewarm water or herbal tea after a meal to dilute and flush out stomach acid.

Chewing gum after a meal can also help prevent heartburn. It stimulates saliva, which acts to buffer stomach acid, and the saliva bathes the throat to protect it.

Avoiding Food Triggers

Certain foods can trigger heartburn symptoms in many people, and it's best for people with chronic heartburn to limit or completely avoid these foods and beverages. Though everyone is different, here is a list of the most problematic foods for people with heartburn.

  • Deep-fried foods are one of the major triggers of heartburn and acid reflux. French fries, fried chicken, blooming onions, and other oil-drenched foods are hard to digest and can increase your chances of having a heartburn episode.
  • Fatty foods slow digestion. The longer you have food lingering in your stomach, the more likely you will feel heartburn. Steer clear of highly fatty foods and meals like cheesy casseroles, pizza, and desserts. Marbled cuts of meat, the skin of poultry, and creamy sauces could also pose a problem for heartburn.
  • Acidic foods like citrus fruits can increase heartburn. Avoid oranges, grapefruit, lemons, and their juices.
  • Tomatoes and tomato products (tomato sauce, tomato paste, tomato juice) can trigger heartburn. Foods that combine several heartburn offenders, such as pizza (tomato sauce and fatty cheese) or lasagna (tomato sauce, cheese, and meat) can be particularly problematic for people prone to heartburn.
  • Coffee has two strikes against it when it comes to heartburn. Caffeine can stimulate acid, plus coffee is an acidic beverage. You may find you can tolerate decaf, but you may have to cut out coffee altogether to see if that helps reduce heartburn episodes.
  • Chocolate can prevent the LES from fully closing, which then causes stomach acid to creep up into the esophagus, causing heartburn.
  • Peppermint relaxes the LES. While peppermint tea might seem like a soothing remedy for heartburn, it can make it worse.
  • Spicy foods are another trigger for heartburn, as they can irritate the esophagus. Get to know your spice threshold.

Foods That Are Safer

When eating out or cooking at home, consider having these foods that are less likely to trigger heartburn:

  • Lean cuts of meat
  • Sandwiches with turkey, chicken, or roast beef on whole grain bread
  • Grilled or roasted foods rather than fried
  • Broth-based soups rather than cream-based soups
  • Steamed or raw vegetables
  • Baked potatoes topped with low-fat salad dressing
  • Salads with lean protein and low-fat or no-fat salad dressings (but not citrus-based)

Weight Management

Whether due to belly fat or being pregnant, excess weight on the abdomen increases abdominal pressure, which can push stomach contents up into the esophagus. The good news is that for many people, as little as a 10% decrease in weight will improve their heartburn symptoms. Since eating smaller meals seems to help with heartburn, reducing your portion size can have a double benefit if you want to lose weight.


Don't wear belts, slenderizing undergarments, or clothes that are tight-fitting around the waist. These items can squeeze the stomach, force food up against the LES, and cause reflux and heartburn.


Medications linked to heartburn and GERD include:

  • Asthma medications
  • Calcium channel blockers used to treat high blood pressure
  • Antihistamines used to treat allergy symptoms
  • Pain-relief medications
  • Sedatives NIH external link—medicines that treat depression

Talk to your doctor about any prescriptions, over-the-counter products, and supplements you are taking. Your doctor may be able to change the schedule of your medications to help reduce the effects. Also, if you take a medication to prevent heartburn there may be a better time to take it if you have nighttime heartburn.

During Exercise

Exercise and other vigorous activities like shoveling snow or hard manual labor can cause the contents of the stomach to move around and lead to heartburn. But exercise is an essential part of a healthy lifestyle, so use these tips:

  • Wait at least an hour after eating before you begin to exercise or exert yourself.
  • Avoid the food and drink triggers of heartburn before exercise.
  • Choose your exercise wisely. Higher impact activities, such as running or jogging, can increase your chances of getting heartburn compared to lower impact activities, such as walking, biking, or swimming.


More than half of people who have frequent heartburn say a hectic lifestyle and work-related stress increases their heartburn. While stress hasn't been linked directly to heartburn, it is known that it can lead to behaviors that can trigger heartburn. During stressful times, routines are disrupted and people may not follow their normal routines in regards to meals, exercise, and medication. It is important to find ways to alleviate the stress, and thus make stress-related heartburn less likely:

  • Regular exercise helps to lower stress.
  • Get seven to eight hours of sleep per night.
  • Eat a balanced diet.
  • Take a quick mental break to relax, thinking of a pleasant place or situation.

Nighttime Heartburn

Nighttime heartburn is a common problem, including during pregnancy. In addition to not eating within two to three hours of bedtime, follow these tips.

  • Sleep with your head and shoulders elevated. Raise the head of the bed 6 to 8 inches using blocks of wood or risers. You could also use a foam wedge or a sleeping wedge pillow. You shouldn't simply use extra pillows as you can create a bend at your waist rather than a slope and increase the pressure on the stomach.
  • Sleep on your left side. This position aids digestion and helps with the removal of stomach acid.
  • Make sure your bedclothes are loose-fitting.
  • Take an antacid when heartburn hits. Antacids will work very quickly on heartburn you may be experiencing before you go to bed. If you are taking an antacid more than once or twice a week, you should see your doctor about another treatment plan.

How Your Doctor Can Help

If your heartburn is frequent and it is upsetting your daily life, have it evaluated by your doctor. Chronic heartburn is a symptom of gastroesophageal reflux disease (GERD) and some other digestive disorders. Untreated acid reflux may lead to complications, including esophageal cancer. Your doctor can prescribe a treatment for heartburn or acid reflux.

If you are prescribed medication for heartburn, be sure to take your medication at the same time every day. If you are prone to forgetting, leave yourself a reminder note, or take your medication when you do another daily activity that you don't forget doing, such as brushing your teeth or washing your face.

Was this page helpful?
Article Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Harvard Medical School. Gastroesophageal reflux: More than just heartburn. 2014.

  2. Johns Hopkins Medicine. 10 tips to prevent reflux disease. 2013.

  3. Harvard Medical School. Take control of your heartburn.

  4. Monajemzadeh M, Haghi-ashtiani MT, Soleymani R, et al. Is there any association between passive smoking and esophagitis in pediatrics?. Iran J Pediatr. 2013;23(2):194-8.

  5. Chen SH, Wang JW, Li YM. Is alcohol consumption associated with gastroesophageal reflux disease?. J Zhejiang Univ Sci B. 2010;11(6):423-8. doi:10.1631/jzus.B1000013

  6. Cleveland Clinic. GERD (chronic acid reflux): Prevention. Updated December 6, 2019.

  7. TeensHealth from Nemours. Gastroesophageal reflux disease (GERD). Updated January, 2015.

  8. Harvard Medical School. 11 stomach-soothing steps for heartburn.

  9. American Society for Gastrointestinal Endoscopy. Diet and gastroesophageal reflux disease (GERD). 2014.

  10. Harvard Medical School. What to eat when you have chronic heartburn. Updated October 22, 2019.

  11. Liszt KI, Ley JP, Lieder B, et al. Caffeine induces gastric acid secretion via bitter taste signaling in gastric parietal cells. Proc Natl Acad Sci USA. 2017;114(30):E6260-E6269.  doi:0.1073/pnas.1703728114

  12. Singh M, Lee J, Gupta N, et al. Weight loss can lead to resolution of gastroesophageal reflux disease symptoms: a prospective intervention trial. Obesity (Silver Spring). 2013;21(2):284-90.

  13. National Institute of Diabetes Digestive and Kidney Diseases. Symptoms & causes of GER & GERD. Updated November 2014.

  14. Harvard Medical School. 8 ways to quell the fire of heartburn.

  15. Mendes-filho AM, Moraes-filho JP, Nasi A, et al. Influence of exercise testing in gastroesophageal reflux in patients with gastroesophageal reflux disease. Arq Bras Cir Dig. 2014;27(1):3-8.  doi:10.1590/S0102-67202014000100002

  16. Cleveland Clinic. Why does your heartburn always seem worse at night?. August 17, 2017.

  17. Cleveland Clinic. GERD (chronic acid reflux). Updated December 6, 2019.

Additional Reading