Heartburn


Occasional heartburn is a common, manageable condition — but when is it a problem?


Heartburn is a burning pain in your chest, just behind your breastbone. The pain is often worse after eating, in the evening, or when lying down or bending over.

Occasional heartburn is common and no cause for alarm. Most people can manage the discomfort of heartburn on their own with lifestyle changes and over-the-counter medications.

Heartburn that is more frequent or interferes with your daily routine may be a symptom of a more serious condition that requires medical care.


Symptoms of heartburn include:

  • A burning pain in the chest that usually occurs after eating and may occur at night
  • Pain that worsens when lying down or bending over
  • Bitter or acidic taste in the mouth

When to see a doctor

Seek immediate help if you experience severe chest pain or pressure, especially when combined with other signs and symptoms such as pain in the arm or jaw or difficulty breathing. Chest pain may be a symptom of a heart attack.

Make an appointment with your doctor if:

  • Heartburn occurs more than twice a week
  • Symptoms persist despite use of over-the-counter medications
  • You have difficulty swallowing
  • You have persistent nausea or vomiting
  • You have weight loss because of poor appetite or difficulty eating

Heartburn occurs when stomach acid backs up into the tube that carries food from your mouth to your stomach (esophagus).

Normally when you swallow, a band of muscle around the bottom of your esophagus (lower esophageal sphincter) relaxes to allow food and liquid to flow down into your stomach. Then the muscle tightens again.

If the lower esophageal sphincter relaxes abnormally or weakens, stomach acid can flow back up into your esophagus (acid reflux) and cause heartburn. The acid backup may be worse when you're bent over or lying down.


Certain foods and drinks can trigger heartburn in some people, including:

  • Spicy foods
  • Onions
  • Citrus products
  • Tomato products, such as ketchup
  • Fatty or fried foods
  • Peppermint
  • Chocolate
  • Alcohol, carbonated beverages, coffee or other caffeinated beverages
  • Large or fatty meals

Being overweight or pregnant also can increase your risk of experiencing heartburn.


Heartburn that occurs frequently and interferes with your routine is considered gastroesophageal reflux disease (GERD). GERD treatment may require prescription medications and, occasionally, surgery or other procedures. GERD can seriously damage your esophagus or lead to precancerous changes in the esophagus called Barrett's esophagus.


To determine if your heartburn is a symptom of GERD, your doctor may recommend:

  • X-ray, to view the shape and condition of your esophagus and stomach.
  • Endoscopy, to check for abnormalities in your esophagus. A tissue sample (biopsy) may be taken for analysis.
  • Ambulatory acid probe tests, to identify when, and for how long, stomach acid backs up into your esophagus. An acid monitor that is placed in your esophagus connects to a small computer that you wear around your waist or on a strap over your shoulder.
  • Esophageal motility testing, to measure movement and pressure in your esophagus.

Many over-the-counter medications can help relieve heartburn. The options include:

  • Antacids, which help neutralize stomach acid. Antacids may provide quick relief. But they can't heal an esophagus damaged by stomach acid.
  • H-2-receptor antagonists (H2RAs), which can reduce stomach acid. H2RAs don't act as quickly as antacids, but may provide longer relief.
  • Proton pump inhibitors, such as lansoprazole (Prevacid 24HR) and omeprazole (Nexium 24HR, Prilosec OTC), which also can reduce stomach acid.

If over-the-counter treatments don't work or you rely on them often, see your doctor. You may need prescription medication and further testing.


Lifestyle changes can help ease heartburn:

  • Maintain a healthy weight. Excess pounds put pressure on your abdomen, pushing up your stomach and causing acid to back up into your esophagus.
  • Avoid tightfitting clothing, which puts pressure on your abdomen and the lower esophageal sphincter.
  • Avoid foods that trigger your heartburn.
  • Avoid lying down after a meal. Wait at least three hours.
  • Avoid late meals.
  • Elevate the head of your bed if you regularly experience heartburn at night or while trying to sleep. If that's not possible, insert a wedge between your mattress and box spring to elevate your body from the waist up. Raising your head with additional pillows usually isn't effective.
  • Avoid smoking and alcohol. Both smoking and drinking alcohol decrease the lower esophageal sphincter's ability to function properly.
  • Avoid large meals. Instead eat many small meals throughout the day.

You may be referred to a doctor who specializes in disorders of the digestive system (gastroenterologist).

What you can do

  • Be aware of any pre-appointment restrictions, such as not eating solid food on the day before your appointment.
  • Write down your symptoms, including any that may seem unrelated to the reason why you scheduled the appointment.
  • Make a list of all your medications, vitamins and supplements.
  • Write down your key medical information, including other conditions.
  • Write down key personal information, including any recent changes or stressors in your life.
  • Ask a relative or friend to accompany you, to help you remember what the doctor says.
  • Write down questions to ask your doctor.

Questions to ask your doctor

  • What's the most likely cause of my symptoms?
  • Is my condition likely temporary or chronic?
  • What kinds of tests do I need? Do these tests require any special preparation?
  • What treatments are available?
  • Should I remove or add any foods to my diet?
  • I have other health conditions. How can I best manage these conditions together?

In addition to the questions that you've prepared to ask your doctor, don't hesitate to ask other questions during your appointment.

What to expect from your doctor

Your doctor is likely to ask you a number of questions. Being ready to answer them may make time to go over points you want to spend more time on. You may be asked:

  • When did you first begin experiencing symptoms, and how severe are they?
  • Have your symptoms been continuous or occasional?
  • What, if anything, seems to improve or worsen your symptoms? Are they worse after meals or lying down?
  • Do your symptoms wake you up at night?
  • Does food or sour material ever come up in the back of your throat?
  • Do you experience nausea or vomiting?
  • Do you have difficulty swallowing?
  • Have you lost or gained weight?

What you can do in the meantime

Try lifestyle changes to control your symptoms until you see your doctor. For instance, avoid foods that trigger your heartburn and avoid eating at least two hours before bedtime.



Last Updated:

August 6th, 2020

© 1998-2022 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved.
Terms of Use