How to Diagnose Heartburn

Heartburn is most likely from GERD, which requires a formal evaluation

Odds are you have experienced heartburn at some time in your life. In most cases, the discomfort you feel in your upper chest is fleeting and may even be accompanied by an acid taste in your mouth, medically referred to as water brash. These symptoms may go away on their own or with a simple over-the-counter medication.

When symptoms become more chronic or occur two or more times per week, however, you may have gastroesophageal reflux disease (GERD), which may require a more formal evaluation of clinical symptoms, lab tests, and imaging.

heartburn diagnosis
© Verywell, 2018 

Clinical Symptoms

The diagnosis of GERD is usually based on clinical symptoms. Do not be surprised if your healthcare provider asks you to complete a questionnaire. The ​Gastroesophageal Reflux Disease Questionnaire (GERD-Q) is a validated test that has been shown in clinical studies to help make the diagnosis with an accuracy rate of 89 percent.

The GERD-Q asks six simple questions about the frequency of symptoms and your need for over-the-counter treatments like antacids. Each question is scored on a 0 (0 days per week) to three-point scale (four to seven days per week). Scores of eight or greater are consistent with a diagnosis of GERD.

Diagnostic Treatment Trial

The next step in your evaluation is often not a test at all. Unless your symptoms raise concern for a more serious condition, it is most likely that your healthcare provider will recommend a treatment trial.

In this case, your practitioner will prescribe a proton pump inhibitor (PPI) for you to take over four to eight weeks. PPIs work by suppressing acid production in the stomach. If your symptoms improve when acid levels are decreased, this is often sufficient to confirm the diagnosis. Medications in this category include esomeprazole (Nexium), omeprazole (Prilosec), pantoprazole (Prevacid), or rabeprazole (AcipHex). Many of these medications are now available over the counter.

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

Labs and Tests

A common misconception is that H. pylori, a bacteria associated with peptic ulcer disease, also causes GERD. Research has not shown this to be true and screening is generally not recommended. In practice, treatment of H. pylori infection does little to improve GERD symptoms.

That is not the case for dyspepsia. While GERD is usually limited to heartburn and water brash, dyspepsia is a broader clinical syndrome. It includes other gastrointestinal symptoms like upper abdominal pain, bloating, nausea, and early satiety, even with small amounts of food. Evaluation for H. pylori should be considered for this cases.

Testing for H. pylori infection can be done in one of three ways.

  • Urea breath test: The test relies on the fact that H. pylori bacteria breaks urea down into carbon dioxide and ammonia. At a laboratory facility, you will ingest a sample of urea, either as a liquid or a tablet, that has trace amounts of a radioactive carbon isotope attached to it. You will then breathe into a container where your carbon dioxide level is measured. If H. pylori is present, the isotope will be detected in the sample.
  • Stool antigen assay: If you are infected with H. pylori, proteins from the bacteria will be excreted in your stool. Enzyme immunoassays can detect whether or not you are infected by testing your stool sample with antibodies that bind to those antigens.
  • Serology testing: Your immune system makes antibodies against H. pylori if you have been infected. Unfortunately, it is not always easy to interpret serology results. IgM antibodies in the blood may indicate active infection but IgG antibiotics could represent either active or old infection.

The urea breath test and the stool antigen assay are the preferred tests for active infection. Because PPIs, bismuth subsalicylate (Pepto-Bismol), and antibiotics can interfere with the accuracy of the results, it is recommended you not take these medications for at least two weeks before your test. The laboratory facility will provide you with instructions on how to best prepare.


If you have failed a diagnostic treatment trial, meaning that you still have symptoms, you may need further evaluation. It could be that you have a more aggressive case of GERD, complications from GERD, or another cause for your heartburn symptoms altogether. At this point, your healthcare provider will want to get a closer look at your esophagus and how well it works.

Upper Endoscopy

The most common imaging study is an upper endoscopy, also referred to as an esophagogastroduodenoscopy (EGD). The study is performed under sedation.

A thin flexible scope with a camera and light source at the end is inserted into your mouth and guided down the esophagus into the stomach and into the upper part of the duodenum, the first part of the small intestine. This allows the healthcare provider, most often a gastroenterologist, to directly visualize the inside of these organs and to take biopsies or perform procedures as needed based on his findings. Tissue samples can also be collected for H. pylori testing.

The test is most helpful in diagnosing complications from too much acid exposure.​ Esophagitis (inflammation of the esophagus) and esophageal strictures (narrowing of the esophagus) can develop, leading to persistent heartburn and other symptoms. Barrett's esophagus, a condition that increases your risk for esophageal cancer, is another, albeit less common, complication.

Complications from the upper endoscopy itself are rare but do occur. The more common complication is a tear in the esophagus but it is more likely to occur when a procedure, like esophageal dilation, is also performed. Other complications to consider are infections from the endoscope or bleeding that can occur at biopsy sites.

Esophageal pH Monitoring and Impedance Testing

The gold standard for diagnosing GERD is esophageal pH monitoring. The problem is it can be time-consuming and inconvenient. No wonder it is not used as a first-line diagnostic tool. Instead, it is performed when the other studies mentioned above are negative and the healthcare provider needs to confirm that there is an acid reflux problem causing your symptoms.

This study measures how much acid gets into the esophagus. It relies on a thin catheter with a pH sensor at one end and a recording device on the other. The catheter is placed through the nose and guided into the esophagus so that it sits above the lower esophageal sphincter (LES). Anatomically, the LES separates the esophagus from the stomach.

The catheter is left in place for 24 hours. It measures the pH level at the LES over time. It also can measure the amount of food and other gastric contents that reflux into the esophagus in what is known as impedance testing. During this time, you are asked to keep a diary of your symptoms and food intake. Once time is up, data is collected from the sensor and correlated with your diary.

Acid is defined by pH less than 7.0. For diagnostic purposes, a pH less than 4 percent confirms a diagnosis of GERD if it occurs 4.3 percent or more of the time. This is, at least, the case if you are not taking a PPI. If you are taking a PPI, your test is considered abnormal when your pH is in this range 1.3 percent of the time.

There is also a capsule version of pH monitoring, although impedance testing is not an option with this method. The capsule is attached to the esophagus during an upper endoscopy and the data is collected wirelessly. Acid levels are measured over 48 to 96 hours. There is no need to have another endoscopy to remove the capsule. Within a week's time, the device falls off the esophagus and is excreted in the stool. While the test is more accurate than traditional catheter pH testing, it is also more invasive and considerably more expensive.

Esophageal Manometry

Your healthcare provider may suspect that an esophageal motility disorder is causing your heartburn. When you eat, food passes from your mouth to your stomach, but only after a coordinated series of muscle movements. Muscles lining the esophagus propel the food forward in a process known as peristalsis.

The upper and lower esophageal sphincters must also open and close at proper times to move food forward or otherwise prevent food from moving in a backward direction. Any irregularities in these movements can lead to difficulty swallowing, chest pain, or heartburn.

Manometry is a test that assesses motility function. A small tube is inserted into your nose and guided through your esophagus and into the stomach. Sensors along the tube detect how well the muscles contract as you swallow. You will not be sedated during the test because you will be asked to swallow small amounts of water. Your healthcare provider will track the coordination and strength of esophageal muscle contractions as you swallow. Altogether, the test usually lasts only 10 to 15 minutes.

While manometry can help to diagnosis GERD, it is most helpful to diagnosis other motility disorders like achalasia and esophageal spasm.

Barium Swallow

A barium swallow may not be the best test to check for GERD, but it can look for esophageal strictures, a complication of GERD. The study is also helpful in identifying a hiatal hernia or esophageal motility disorder that can contribute to heartburn symptoms.

The test is performed by taking a series of X-ray while you drink an opaque dye called barium. The barium appears darker on X-ray than your bones and tissue, making it easy for your healthcare provider to follow muscle movement through the esophagus. Anatomic abnormalities in the esophagus can also be seen in this way.

Differential Diagnosis

Heartburn is most commonly but not always attributable to GERD. As discussed, it can also be related to dyspepsia, H. pylori infection, and esophagitis. Other conditions to consider include esophageal motility disorders like achalasia and esophageal spasm.

In the worst case and least likely scenario, esophageal cancer could be to blame. For this reason, it is recommended you see your healthcare provider if you have heartburn symptoms that are severe or that occur more than two times per week.

Frequently Asked Questions

  • Does heartburn cause chest pain?

    It can. Heartburn causes discomfort in your upper chest, but other conditions can also cause chest pain, including a heart attack. Never ignore chest pain or assume it’s just heartburn. Call 911 if you're not sure.

  • Is there a test to diagnose heartburn?

    Heartburn is a symptom of other disorders, usually acid reflux (or GERD). Healthcare providers often diagnose and treat GERD based just on the symptoms, but if you have more serious problems such as difficulty swallowing, practitioners may use an endoscope or imaging tests to examine your GI tract.

13 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. Ebell, M. H. Diagnosis of gastroesophageal reflux diseaseAmerican Family Physician. 2010;81(10):1278-1280.

  2. Alzubaidi M, Gabbard S. GERD: Diagnosing and Treating the BurnCleve Clin J Med.2015 Oct;82(10):685-92. doi:10.3949/ccjm.82a.14138

  3. Kandulski A, Malfertheiner P. Helicobacter pylori and gastroesophageal reflux disease. Curr Opin Gastroenterol. 2010;30(4):402–407. doi:10.1097/MOG.0000000000000085

  4. Anderson WD 3rd, Strayer SM, Mull SR. Common Questions about the Management of Gastroesophageal Reflux DiseaseAm Fam Physician. 2015 May 15;91(10):692-7.

  5. Kazemi S, Tavakkoli H, Habizadeh MR, Emami MH. Diagnostic values of Helicobacter pylori diagnostic tests: stool antigen test, urea breath test, rapid urease test, serology and histology. J Res Med Sci. 2011;16(9):1097-104.

  6. Muthusamy VR, Lightdale JR, Acosta RD, et al. The role of endoscopy in the management of GERD. Gastrointest Endosc. 2015;81(6):1305-10. doi:10.1016/j.gie.2015.02.021

  7. National Institute of Diabetes and Digestive and Kidney Diseases. Diagnostic Tests: Upper GI Endoscopy.

  8. Jonasson C1, Wernersson B, Hoff DA, Hatlebakk JG. Validation of the GerdQ Questionnaire for the Diagnosis of Gastro-Oesophageal Reflux disease. Aliment Pharmacol Ther. 2013 Mar;37(5):564-72. doi:10.1111/apt.12204

  9. Jones R, Junghard O, Dent J, et al. Development of the GerdQ, a tool for the diagnosis and management of gastro-oesophageal reflux disease in primary care. Aliment Pharmacol Ther. 2009;30(10):1030-8. doi:10.1111/j.1365-2036.2009.04142.x

  10. Tolone S, Savarino E, Docimo L. Is there a role for high resolution manometry in GERD diagnosis?. Minerva Gastroenterol Dietol. 2017;63(3):235-248. doi:10.23736/S1121-421X.17.02395-9

  11. National Institute of Diabetes and Digestive and Kidney Diseases. Diagnosis of GER & GERD.

  12. Cleveland Clinic. Is that pain in your chest heartburn or a heart attack?

  13. Harvard Health Publishing. Do you need diagnostic tests for heartburn?

Additional Reading

By Tanya Feke, MD
Tanya Feke, MD, is a board-certified family physician, patient advocate and best-selling author of "Medicare Essentials: A Physician Insider Explains the Fine Print."