For general information only. This library does not replace advice, diagnosis or treatment from a qualified health professional. In an emergency, call 911.

Library / Conditions

Heartburn

Heartburn is a burning feeling behind the breastbone, usually caused by stomach acid flowing back up into the food pipe (esophagus).

Overview

Heartburn is a burning pain or discomfort in the middle of your chest, just behind the breastbone. The medical name is pyrosis. Despite its name, heartburn has nothing to do with your heart. It happens when acid and other contents from your stomach flow back up into your esophagus, the muscular tube that carries food from your mouth to your stomach. This backward flow is called acid reflux.

Heartburn is very common. Most adults have it now and then, often after a large or rich meal. Occasional heartburn is usually harmless and easy to manage. When heartburn happens often (for example, twice a week or more) or starts to affect your daily life, it may be a sign of gastroesophageal reflux disease, or GERD. GERD is a long-term condition that is worth checking with a health care provider, because it can be treated well and, if ignored for years, can sometimes damage the esophagus.

Heartburn is a symptom, not a disease on its own. This article explains what it feels like, why it happens, how to ease it, and when it could be something more serious.

Symptoms

Heartburn often feels like:

  • A burning feeling in the chest that may rise toward your throat
  • Pain that is worse after eating, when you lie down, or when you bend over
  • A sour, bitter or acidic taste in the back of your mouth
  • Food or liquid coming back up into your throat or mouth (regurgitation)

The burning can last a few minutes or a few hours. It often starts within an hour after a meal and is common at night.

Other symptoms that can come with reflux

  • Burping or a feeling of fullness
  • A long-lasting cough, hoarse voice or sore throat, especially in the morning
  • A feeling of a lump in your throat
  • Trouble sleeping because of discomfort

Heartburn or heart attack?

Chest pain from the heart can feel a lot like heartburn. Heart pain is more likely if the pain feels like pressure, squeezing or tightness, spreads to your arm, neck, jaw or back, comes with shortness of breath, sweating, nausea or light-headedness, or starts during physical effort. If you are not sure, treat chest pain as an emergency and call for help. It is always better to be checked and find out it was heartburn than to miss a heart attack.

Causes

At the bottom of your esophagus is a ring of muscle called the lower esophageal sphincter. It works like a one-way valve: it opens to let food into your stomach, then closes to keep stomach contents in. Heartburn happens when this valve relaxes at the wrong time or does not close tightly, so acid splashes up into the esophagus. The lining of the esophagus is not built to handle acid, so it burns.

Common triggers

  • Large meals or eating close to bedtime
  • Lying down or bending over soon after eating
  • Certain foods and drinks, such as fatty or fried foods, spicy foods, chocolate, peppermint, citrus, tomato-based foods, onions, coffee, fizzy drinks and alcohol (triggers differ from person to person)
  • Smoking, which weakens the valve and reduces saliva that helps neutralize acid
  • Tight clothing or belts that press on the stomach
  • Some medicines, such as anti-inflammatory pain relievers (for example ibuprofen and naproxen), aspirin, some blood pressure medicines, some medicines for asthma, sedatives, and certain pills that irritate the esophagus if they get stuck

Conditions linked with heartburn

  • GERD, when reflux is frequent or causes damage
  • Hiatal hernia, when the top part of the stomach pushes up through the diaphragm (the muscle between the chest and belly), making the valve weaker
  • Pregnancy, because of hormone changes and pressure from the growing baby
  • Stomach ulcers or inflammation, which can cause burning pain in the upper belly that is easy to mistake for heartburn

Risk factors

Anyone can get heartburn, but it is more likely if you:

  • Are living with overweight or obesity, especially extra weight around the belly
  • Are pregnant
  • Smoke or are often around smoke
  • Drink alcohol regularly
  • Have a hiatal hernia
  • Often eat large meals or eat late at night
  • Take medicines that can relax the valve or irritate the esophagus

Diagnosis

Most of the time, a health care provider can tell you have heartburn from your description of the symptoms. If your symptoms are typical and you have no warning signs, they may suggest lifestyle changes and a trial of acid-reducing medicine. If you feel better, that supports the diagnosis.

Tests may be needed if heartburn is frequent, does not improve with treatment, or comes with warning signs such as trouble swallowing or weight loss. Tests can include:

  • Upper endoscopy: a thin, flexible tube with a camera is passed through your mouth to look at your esophagus and stomach. You are usually given medicine to help you relax. Small tissue samples (biopsies) can be taken.
  • pH or reflux monitoring: a tiny sensor measures how often acid comes up into your esophagus over 24 to 96 hours.
  • Esophageal manometry: measures how well the muscles of the esophagus and the valve work. It is often done before surgery.
  • Heart tests, such as an electrocardiogram (ECG), if there is any chance chest pain is coming from the heart.

Treatment

Treatment depends on how often you get heartburn and how bad it is. Many people do well with simple lifestyle changes and medicines available at the pharmacy. Read the label, and ask a pharmacist if you take other medicines or have kidney disease, as some heartburn products are not right for everyone.

Antacids

Antacids work within minutes by neutralizing acid already in your stomach. Their effect is short. Common ones include calcium carbonate, magnesium hydroxide, aluminum hydroxide, magnesium carbonate and sodium bicarbonate. Some products combine them, or add alginate, which forms a foamy layer on top of the stomach contents to help block reflux. Magnesium can loosen stools and aluminum can cause constipation. Sodium bicarbonate contains a lot of sodium (salt), so it is not a good choice for regular use.

H2 blockers

Histamine-2 receptor antagonists (H2 blockers) reduce the amount of acid your stomach makes. They take longer to start working than antacids but last longer, and can be taken before a meal you know may cause trouble. Examples are famotidine, cimetidine and nizatidine. Cimetidine interacts with a number of other medicines, so check with a pharmacist.

Proton pump inhibitors (PPIs)

PPIs are the strongest acid-reducing medicines. They block the tiny "pumps" in the stomach lining that make acid. They work best when taken before a meal, usually before breakfast, and may take a few days for full effect. Examples are omeprazole, esomeprazole, pantoprazole, lansoprazole, rabeprazole and dexlansoprazole. Some are sold without a prescription for short courses. If you need them for longer, see your health care provider, who can check the cause and help you use the lowest amount that controls your symptoms. Don't stop a prescribed PPI suddenly without talking to your provider, as symptoms can bounce back.

Surgery and other procedures

For people with GERD whose symptoms are not controlled by medicine, or who do not want to take medicine long term, surgery to tighten the valve may be an option. The most common operation is fundoplication, in which the top of the stomach is wrapped around the lower esophagus. Other procedures exist. A specialist can explain the benefits and risks.

Self-care and living with heartburn

Small changes often make a big difference:

  • Eat smaller meals and eat slowly.
  • Leave 2 to 3 hours between your last meal and lying down or going to bed.
  • Raise the head of your bed by 15 to 20 cm (6 to 8 inches) using blocks under the bedposts or a wedge pillow. Extra pillows alone tend to bend your middle and may not help.
  • Sleep on your left side, which may reduce night-time reflux.
  • Keep a food diary to spot your own triggers, then cut back on them. There is no need to avoid every food on a list.
  • Aim for a healthy weight. Even modest weight loss can ease symptoms.
  • Stop smoking and limit alcohol.
  • Wear loose clothing around your waist.
  • Ask about your medicines. If you think a medicine is causing heartburn, talk to your provider or pharmacist before changing anything.
  • Swallow pills with plenty of water and stay upright for a while afterward, so they do not get stuck in the esophagus.

Heartburn in pregnancy

Heartburn is very common in pregnancy, especially in the later months, and usually goes away after the baby is born. Lifestyle changes are the first step. Some antacids and other medicines are considered safe in pregnancy, but check with your pregnancy care provider or pharmacist before taking anything.

Complications

Occasional heartburn does not cause lasting harm. Frequent reflux over months or years, as in GERD, can lead to:

  • Esophagitis: inflammation and sores in the lining of the esophagus, which can bleed
  • Stricture: narrowing of the esophagus from scarring, which makes swallowing difficult
  • Barrett's esophagus: a change in the cells lining the lower esophagus. It slightly raises the risk of a type of esophageal cancer, so people with it usually have regular check-ups with endoscopy.
  • Breathing and throat problems, such as chronic cough, hoarseness or worsening asthma
  • Dental erosion: acid wearing away tooth enamel

Outlook

For most people, heartburn is a nuisance rather than a danger. It usually improves with lifestyle changes and, when needed, medicine. GERD is often a long-term condition that comes and goes, but treatment works well for most people and helps prevent complications. If your heartburn changes, gets worse, or comes with new symptoms, see your provider.

Prevention

You can lower your chances of heartburn by eating smaller meals, not eating late at night, limiting your personal trigger foods and alcohol, not smoking, and keeping a healthy weight. If you know a certain meal tends to cause heartburn, a pharmacist can suggest a medicine you can take beforehand.

In the United States

In the United States, the FDA allows some PPIs (such as omeprazole, esomeprazole and lansoprazole) to be sold over the counter for frequent heartburn as a 14-day course, no more often than every 4 months unless a doctor advises otherwise. Ranitidine was removed from the US market by the FDA in 2020.

When to get medical help

See a doctor or nurse practitioner if:

  • You have heartburn twice a week or more
  • Symptoms continue after 2 weeks of using non-prescription medicine, or come back as soon as you stop
  • You are older (over about 55) and heartburn or indigestion is new for you
  • You have a hoarse voice, ongoing cough or wheezing that may be linked to reflux
  • You are pregnant or breastfeeding and need more than occasional relief

Get medical help soon if you have:

  • Trouble swallowing, or food feels stuck
  • Pain when swallowing
  • Weight loss you can't explain
  • Repeated vomiting
  • A family history of esophageal or stomach cancer with new symptoms

Go to emergency or call emergency services right away if you have:

  • Chest pain or pressure, especially with shortness of breath, sweating, nausea, or pain spreading to your arm, jaw, neck or back
  • Vomiting blood or material that looks like coffee grounds
  • Black, tarry or bloody stools
  • Food completely stuck so you cannot swallow your saliva
  • Feeling faint, dizzy or very weak

In an emergency, call 911.

References

  1. U.S. National Library of Medicine. MeSH: Heartburn. meshb.nlm.nih.gov
  2. MedlinePlus: Heartburn. medlineplus.gov/heartburn.html
  3. NIDDK: Acid Reflux (GER & GERD) in Adults. niddk.nih.gov/health-information/digestive-diseases/acid-reflux-ger-gerd-adults
  4. NHS: Heartburn and acid reflux. nhs.uk/conditions/heartburn-and-acid-reflux/
  5. American College of Gastroenterology: ACG Clinical Guideline for the Diagnosis and Management of Gastroesophageal Reflux Disease (2022). doi.org/10.14309/ajg.0000000000001538