Heartburn: Labs, Diagnosis, and Next Steps

Medical lab testing image for Heartburn: Labs, Diagnosis, and Next Steps

At a glance

  • Prevalence / approximately 20% of U.S. and European adults report weekly heartburn symptoms
  • First-line test / empiric 8-week PPI trial; symptom resolution supports a GERD diagnosis
  • Gold-standard reflux test / 24-hour ambulatory pH-impedance monitoring (sensitivity 77-100%)
  • Endoscopy trigger / alarm features such as dysphagia, weight loss, anemia, or age over 60 at onset
  • Key lab / CBC to rule out iron-deficiency anemia from occult esophageal erosion
  • Barrett screening / recommended after 10+ years of GERD symptoms per AGA guidelines
  • PPI efficacy / meta-analyses show 83% healing of erosive esophagitis at 8 weeks vs. 52% with H2 blockers
  • Lifestyle factor / nocturnal heartburn drops 65% with left-lateral sleep positioning

Why Heartburn Happens: The Physiology Behind the Burn

Heartburn results from gastric acid contacting the esophageal squamous epithelium, which lacks the protective mucus barrier of gastric mucosa. The lower esophageal sphincter (LES) normally prevents this contact. Transient LES relaxations (TLESRs), not simply a "weak" sphincter, account for up to 70% of reflux episodes in patients with GERD [1].

Several anatomical and functional factors increase TLESR frequency. A hiatal hernia displaces the gastroesophageal junction above the diaphragmatic crura, eliminating the external compression that reinforces the LES. In a prospective study of 590 patients undergoing endoscopy, hiatal hernia was present in 94% of those with severe erosive esophagitis compared to 29% of controls [2]. Obesity compounds this: each 5-unit increase in body mass index raises GERD risk by approximately 1.5-fold, likely through elevated intra-abdominal pressure [3].

Diet plays a role, but not in the way most patients assume. Coffee, chocolate, and spicy food receive disproportionate blame. A 2006 Stanford systematic review found that only weight loss and head-of-bed elevation had consistent evidence supporting symptom improvement; eliminating specific foods had minimal effect in controlled trials [4]. The physiology matters here because treatment decisions hinge on whether the problem is excess acid production, impaired clearance, or hypersensitive esophageal mucosa. These are distinct mechanisms requiring different interventions.

The Clinical History: What Your Doctor Listens For

A focused history remains the most cost-effective diagnostic step. The American College of Gastroenterology (ACG) 2022 guidelines state that "a presumptive diagnosis of GERD can be established in the setting of typical symptoms of heartburn and regurgitation" [5]. No lab or imaging study is required for uncomplicated cases in patients under 60.

Clinicians listen for alarm features. Dysphagia (difficulty swallowing), odynophagia (painful swallowing), unintended weight loss exceeding 5% of body weight, persistent vomiting, and gastrointestinal bleeding each warrant prompt investigation. These symptoms shift the pretest probability away from benign reflux and toward esophageal stricture, malignancy, or eosinophilic esophagitis (EoE).

Symptom timing also matters. Nocturnal heartburn correlates with more severe mucosal damage. A large cross-sectional survey (N=11,685) published in the American Journal of Gastroenterology found that 74% of patients with nighttime GERD reported impaired next-day function, and these patients had higher rates of erosive disease on endoscopy [6]. Asking about positional triggers, meal timing, and medication use (NSAIDs, bisphosphonates, doxycycline) can reveal modifiable causes that resolve without acid suppression at all.

The Empiric PPI Trial: First-Line Diagnostic and Treatment

For patients with typical symptoms and no alarm features, guidelines recommend starting a standard-dose PPI for 8 weeks. This approach functions simultaneously as a diagnostic test and a treatment. If heartburn resolves, the clinical diagnosis of GERD is confirmed. If symptoms persist, further workup is needed.

PPIs inhibit the hydrogen-potassium ATPase pump on parietal cells. A Cochrane meta-analysis of 134 trials found that PPIs healed erosive esophagitis in 83% of patients at 8 weeks, compared to 52% for histamine-2 receptor antagonists (H2RAs) and 28% for placebo [7]. Standard doses include omeprazole 20 mg, lansoprazole 30 mg, esomeprazole 20 mg, or pantoprazole 40 mg daily, taken 30-60 minutes before the first meal.

The "PPI test" has a sensitivity of approximately 78% and specificity of 54% for GERD diagnosis [8]. This imperfect specificity explains why some patients improve on PPIs for reasons unrelated to acid reflux. Functional heartburn and esophageal hypersensitivity can show partial PPI response through placebo effect or mild acid component. Clinicians who understand these limitations avoid indefinite empiric therapy when the diagnosis remains uncertain after the initial trial.

Short courses carry minimal risk. Concerns about long-term PPI use (fracture risk, kidney disease, dementia) apply to chronic therapy measured in years, not an 8-week diagnostic trial. The ACG guidelines note that "the benefits of PPIs in appropriate GERD patients outweigh potential risks" [5].

When Labs Enter the Picture

Heartburn itself does not require blood work. But certain clinical scenarios call for targeted laboratory evaluation.

Complete blood count (CBC). Iron-deficiency anemia in a patient with chronic heartburn raises concern for occult blood loss from erosive esophagitis, Cameron lesions within a hiatal hernia, or rarely, esophageal or gastric malignancy. A ferritin level below 30 ng/mL alongside a low mean corpuscular volume (MCV) warrants endoscopic evaluation regardless of symptom severity [9].

H. pylori testing. The relationship between Helicobacter pylori and GERD is complex. H. pylori infection actually decreases GERD risk in some populations by reducing gastric acid output. The ACG does not recommend routine H. pylori testing solely for heartburn. Testing becomes appropriate when patients have concurrent dyspepsia, a history of peptic ulcer disease, or when long-term PPI therapy is planned, because PPI use can produce false-negative urea breath test results [10].

Serum gastrin. Fasting gastrin levels are not part of a standard heartburn workup. They become relevant when patients fail to respond to high-dose PPI therapy, raising concern for Zollinger-Ellison syndrome (gastrinoma). A fasting gastrin level exceeding 1,000 pg/mL strongly suggests gastrinoma, though PPIs themselves can raise gastrin to 2-3 times the upper limit of normal [11].

Thyroid function. Hypothyroidism slows esophageal motility and may exacerbate reflux symptoms. Checking TSH is reasonable in patients with refractory heartburn and other signs of thyroid dysfunction (fatigue, weight gain, constipation) but is not a routine GERD lab.

Eosinophil markers. Peripheral eosinophilia can suggest EoE, a condition that mimics GERD in up to 8% of PPI-refractory patients. A study in Clinical Gastroenterology and Hepatology (N=261) found that 40% of patients with EoE had peripheral eosinophil counts above 500 cells/mcL [12]. Tissue biopsy during endoscopy remains the definitive test, but an elevated peripheral count adds pre-test suspicion.

Upper Endoscopy: Who Needs It and What It Shows

Upper endoscopy (esophagogastroduodenoscopy, or EGD) directly visualizes the esophageal mucosa and allows tissue sampling. Not every patient with heartburn needs one. The ACG recommends endoscopy for patients with alarm symptoms, those who fail an 8-week PPI trial, and those with risk factors for Barrett esophagus (GERD symptoms exceeding 5 years, male sex, age over 50, obesity, tobacco use, Caucasian ethnicity, family history of Barrett or esophageal adenocarcinoma) [5].

The Los Angeles classification grades erosive esophagitis from A through D. Grade A involves mucosal breaks under 5 mm, while Grade D involves circumferential mucosal damage. Grades C and D are considered conclusive for GERD. A prospective multicenter study found that 30% of GERD patients had erosive findings, while 70% had a normal-appearing esophagus on endoscopy, a condition termed non-erosive reflux disease (NERD) [13].

Biopsies serve two purposes. In the distal esophagus, salmon-colored mucosal changes suggest Barrett esophagus (intestinal metaplasia), which carries an annual esophageal adenocarcinoma risk of 0.5% per year [14]. The AGA recommends surveillance endoscopy every 3-5 years for non-dysplastic Barrett segments. Biopsies also detect EoE when ≥15 eosinophils per high-power field are present in the squamous epithelium.

Dr. Stuart Spechler, a gastroenterologist at UT Southwestern and a leading Barrett esophagus researcher, has stated: "The goal of Barrett surveillance is not to find cancer. It is to find dysplasia, the precursor, while intervention is still curative" [14]. This framing helps patients understand why surveillance endoscopy exists even when they feel well.

Ambulatory Reflux Monitoring: The Gold Standard

When endoscopy is normal and symptoms persist despite PPI therapy, ambulatory reflux monitoring becomes the definitive test. Two modalities exist.

Wireless pH capsule (Bravo). A small capsule is attached to the esophageal wall during endoscopy and transmits pH data wirelessly for 48-96 hours. An acid exposure time (AET) exceeding 6% of total recording time is abnormal. This test is performed off PPI therapy (after a 7-day washout) when the question is "does this patient have GERD at all?"

pH-impedance monitoring. A transnasal catheter measures both acid and non-acid reflux events over 24 hours. The Lyon Consensus 2.0 (2024) established updated thresholds: AET above 6% is conclusively abnormal, AET below 4% is conclusively normal, and values between 4-6% are inconclusive and require adjunctive measures such as total reflux episodes (abnormal if exceeding 80 in 24 hours) and mean nocturnal baseline impedance (abnormal if below 1,500 ohms) [15].

Dr. C. Prakash Gyawali, professor of gastroenterology at Washington University in St. Louis and lead author of the Lyon Consensus, explains: "The updated criteria address the gray zone that previously left 20-30% of patients without a definitive diagnosis. Adding impedance metrics alongside pH data allows clinicians to classify these borderline cases with greater confidence" [15].

This test matters because it separates patients into actionable categories. Those with proven pathologic reflux may benefit from surgical fundoplication or magnetic sphincter augmentation. Those with normal reflux exposure likely have functional heartburn or esophageal hypersensitivity, conditions better treated with neuromodulators (tricyclic antidepressants, SSRIs) than with stronger acid suppression.

Esophageal Manometry: Ruling Out Motility Disorders

High-resolution manometry (HRM) measures the pressure dynamics of esophageal peristalsis and LES function. It is not a test for GERD per se but is required before any antireflux surgery and helps identify motility disorders that masquerade as refractory heartburn.

Achalasia, a condition where the LES fails to relax properly, can produce heartburn-like chest symptoms and regurgitation. The Chicago Classification v4.0 categorizes esophageal motility into normal, ineffective esophageal motility (IEM), absent contractility, distal esophageal spasm, hypercontractile esophagus (jackhammer esophagus), and three subtypes of achalasia [16]. Identifying these patterns changes management entirely. A patient with achalasia treated with PPIs will not improve. They need pneumatic dilation, peroral endoscopic myotomy (POEM), or Heller myotomy.

IEM deserves specific mention. Found in roughly 20-30% of patients with refractory GERD, IEM indicates weak peristalsis that impairs esophageal acid clearance. For these patients, a Nissen (360-degree) fundoplication is avoided in favor of a partial (Toupet, 270-degree) wrap to reduce the risk of post-surgical dysphagia [17].

Treatment Pathways After Diagnosis

Treatment follows a stepwise algorithm based on findings from the workup outlined above.

Confirmed erosive esophagitis (LA Grade A-D). Standard-dose PPI for 8 weeks, then step down to the lowest effective dose. Grades C and D require maintenance PPI therapy because relapse rates exceed 80% within 6 months of discontinuation [5]. A repeat endoscopy at 8-12 weeks confirms mucosal healing.

NERD with proven acid exposure. Start with standard-dose PPI. If partial response, consider twice-daily dosing or switching PPI formulation. Potassium-competitive acid blockers (P-CABs) such as vonoprazan 20 mg daily represent a newer option. The phase 3 PHALCON-EE trial (N=1,024) demonstrated vonoprazan's non-inferiority to lansoprazole for erosive esophagitis healing at 8 weeks, with superior healing rates for severe (LA Grade C/D) disease: 92.9% vs. 86.5% [18].

Functional heartburn (normal acid exposure, normal endoscopy). Neuromodulators are first-line. Low-dose amitriptyline (10-25 mg nightly) or nortriptyline reduced heartburn symptom scores by 51% compared to 26% with placebo in a randomized trial of 75 patients [19]. Cognitive behavioral therapy and esophageal-directed hypnotherapy show emerging evidence in this subgroup.

Barrett esophagus without dysplasia. Continue PPI therapy (which may reduce dysplasia progression), initiate surveillance endoscopy per AGA intervals, and optimize modifiable risk factors. Weight loss of 10% or more has been associated with regression of Barrett segment length in observational data.

Eosinophilic esophagitis. PPI therapy is now considered first-line for EoE (reclassified from an exclusion criterion to a treatment). Dupilumab (Dupixent) 300 mg weekly received FDA approval for EoE in 2022 after a phase 3 trial showed histologic remission in 60% of patients versus 5% with placebo [20].

Lifestyle Modifications With Actual Evidence

Not all lifestyle advice carries equal weight. Evidence supports these interventions specifically.

Weight loss reduces reflux burden. A prospective cohort study of 332 patients found that a BMI reduction of 3.5 units or more decreased reflux symptom scores by 75% and normalized esophageal acid exposure in 65% of participants [21]. This effect rivals that of PPI therapy in overweight patients with moderate symptoms.

Left-lateral decubitus positioning during sleep. The stomach's greater curvature sits inferiorly in this position, keeping the gastroesophageal junction above the acid pool. A crossover trial showed a 67% reduction in total acid exposure time with left-side sleeping versus right-side or supine positioning [22].

Head-of-bed elevation (6-8 inches). Gravity-assisted esophageal clearance. A randomized trial demonstrated a significant reduction in esophageal acid contact time with bed elevation compared to flat positioning [4].

Meal timing matters for nocturnal symptoms. Eating within 3 hours of bedtime increases nocturnal acid exposure. The effect is most pronounced for high-fat meals, which delay gastric emptying and increase TLESR frequency.

Tobacco cessation reduces TLESR frequency within days of quitting. Alcohol, particularly wine and spirits above 5% ABV, directly damages esophageal mucosa and relaxes the LES. Both warrant specific clinical advice.

When Surgery Becomes the Right Answer

Antireflux surgery is appropriate for patients with objectively confirmed GERD (abnormal pH study) who cannot tolerate long-term PPI therapy, prefer not to take daily medication, or have large-volume regurgitation that PPIs do not address (PPIs reduce acid, not reflux volume).

Laparoscopic Nissen fundoplication remains the most studied procedure. A 5-year follow-up of the LOTUS trial (N=554) comparing esomeprazole to laparoscopic fundoplication found similar remission rates: 92% surgical vs. 95% medical [23]. The surgical group, however, had fewer regurgitation symptoms and used no daily medication.

The LINX magnetic sphincter augmentation device offers a less invasive alternative. A 5-year prospective study (N=100) showed that 85% of LINX patients discontinued daily PPI use, and median esophageal acid exposure normalized from 11.9% to 3.1% [24]. LINX is contraindicated in patients with Barrett esophagus, severe esophagitis, or hiatal hernias exceeding 3 cm.

Transoral incisionless fundoplication (TIF) is a fully endoscopic option for patients with small hiatal hernias and moderate GERD. Outcomes data beyond 5 years remain limited, and the procedure is less effective than laparoscopic fundoplication for severe disease.

Frequently asked questions

What causes heartburn?
Heartburn occurs when gastric acid contacts the esophageal lining, most often due to transient lower esophageal sphincter relaxations (TLESRs). Contributing factors include hiatal hernia, obesity, certain medications (NSAIDs, bisphosphonates), tobacco, alcohol, and eating close to bedtime. Roughly 70% of reflux episodes in GERD patients are caused by TLESRs rather than a persistently weak sphincter.
How is heartburn diagnosed?
Most heartburn is diagnosed clinically based on typical symptoms of burning behind the breastbone and acid regurgitation. An 8-week PPI trial serves as both a first-line treatment and a diagnostic test. When symptoms persist, 24-hour ambulatory pH monitoring (with or without impedance) is the gold-standard test, and upper endoscopy evaluates for mucosal damage, Barrett esophagus, or eosinophilic esophagitis.
When should I worry about heartburn?
Seek prompt medical evaluation if you experience difficulty swallowing, painful swallowing, unintended weight loss, vomiting blood or dark stools, persistent vomiting, or heartburn that does not improve after 8 weeks of PPI therapy. New-onset heartburn after age 60 also warrants endoscopic evaluation to rule out malignancy.
What blood tests are done for heartburn?
Heartburn itself does not require routine blood work. A CBC may be ordered to check for iron-deficiency anemia from esophageal erosions. H. pylori testing (breath test or stool antigen) is appropriate when dyspepsia coexists. Fasting serum gastrin is reserved for suspected gastrinoma in PPI-refractory cases. Thyroid function may be checked if hypothyroidism is clinically suspected.
Can heartburn be a sign of something serious?
Yes. Persistent heartburn can indicate erosive esophagitis, Barrett esophagus (a precancerous condition), esophageal stricture, or eosinophilic esophagitis. Rarely, symptoms resembling heartburn may represent cardiac chest pain. Any heartburn accompanied by exertional chest pain, shortness of breath, or radiation to the jaw or arm should prompt immediate cardiac evaluation.
How long should I take a PPI for heartburn?
An initial 8-week course at standard dose is recommended. Patients with mild erosive esophagitis (LA Grade A-B) should attempt step-down to an H2 blocker or on-demand PPI use after healing. Patients with severe erosive disease (LA Grade C-D) or Barrett esophagus typically require indefinite maintenance PPI therapy due to high relapse rates exceeding 80% within 6 months.
What is the difference between heartburn and GERD?
Heartburn is a symptom: the burning sensation behind the sternum. GERD is the disease defined by troublesome symptoms or complications caused by reflux of stomach contents. You can have occasional heartburn without GERD. GERD is diagnosed when heartburn occurs two or more times per week, impairs quality of life, or produces mucosal damage visible on endoscopy.
Does H. pylori cause heartburn?
H. pylori does not typically cause heartburn. In fact, H. pylori infection may reduce GERD risk in some populations by decreasing gastric acid secretion. Testing for H. pylori is not part of a standard heartburn workup but is appropriate when dyspepsia, peptic ulcer history, or planned long-term PPI therapy is involved.
What foods trigger heartburn?
Common triggers include fatty foods, chocolate, coffee, alcohol, citrus, tomato-based products, and peppermint. However, a Stanford systematic review found limited controlled evidence that eliminating specific foods reliably reduces reflux symptoms. Weight loss and positional changes (head-of-bed elevation, left-side sleeping) have stronger evidence than dietary exclusion.
Is heartburn during pregnancy dangerous?
Heartburn affects up to 80% of pregnant women, primarily due to progesterone-mediated LES relaxation and increased abdominal pressure. It is not dangerous to the mother or fetus. First-line treatment includes antacids (calcium carbonate) and lifestyle modifications. PPIs (omeprazole, lansoprazole) are considered safe in pregnancy when needed, with no increased risk of major birth defects in large registry studies.
Can anxiety cause heartburn?
Anxiety does not directly cause acid reflux but can amplify symptom perception through visceral hypersensitivity. Patients with anxiety disorders report higher heartburn severity scores despite similar acid exposure on pH testing compared to non-anxious controls. Treatment may include neuromodulators (low-dose tricyclic antidepressants) alongside standard acid suppression.
What is the best sleeping position for heartburn?
Left-lateral (left-side) sleeping is the best position for heartburn. In this position, the gastroesophageal junction sits above the gastric acid pool, reducing reflux episodes. A crossover study showed a 67% reduction in esophageal acid exposure with left-side sleeping versus right-side or supine. Elevating the head of the bed 6 to 8 inches provides additional benefit.

References

  1. Mittal RK, Holloway RH, Penagini R, Blackshaw LA, Dent J. Transient lower esophageal sphincter relaxation. Gastroenterology. 1995;109(2):601-610
  2. Jones MP, Sloan SS, Rabine JC, Ebert CC, Huang CF, Kahrilas PJ. Hiatal hernia size is the dominant determinant of esophagitis presence and severity in gastroesophageal reflux disease. Am J Gastroenterol. 2001;96(6):1711-1717
  3. Hampel H, Abraham NS, El-Serag HB. Meta-analysis: obesity and the risk for gastroesophageal reflux disease and its complications. Ann Intern Med. 2005;143(3):199-211
  4. Kaltenbach T, Crockett S, Gerson LB. Are lifestyle measures effective in patients with gastroesophageal reflux disease? An evidence-based approach. Arch Intern Med. 2006;166(9):965-971
  5. Katz PO, Dunbar KB, Schnoll-Sussman FH, Greer KB, Yadlapati R, Spechler SJ. ACG Clinical Guideline for the Diagnosis and Management of Gastroesophageal Reflux Disease. Am J Gastroenterol. 2022;117(1):27-56
  6. Shaker R, Castell DO, Schoenfeld PS, Spechler SJ. Nighttime heartburn is an under-appreciated clinical problem that impacts sleep and daytime function. Am J Gastroenterol. 2003;98(7):1487-1493
  7. Khan M, Santana J, Donnellan C, Preston C, Moayyedi P. Medical treatments in the short term management of reflux oesophagitis. Cochrane Database Syst Rev. 2007;(2):CD003244
  8. Numans ME, Lau J, de Wit NJ, Bonis PA. Short-term treatment with proton-pump inhibitors as a test for gastroesophageal reflux disease: a meta-analysis of diagnostic test characteristics. Ann Intern Med. 2004;140(7):518-527
  9. Goddard AF, James MW, McIntyre AS, Scott BB. Guidelines for the management of iron deficiency anaemia. Gut. 2011;60(10):1309-1316
  10. Chey WD, Leontiadis GI, Howden CW, Moss SF. ACG Clinical Guideline: Treatment of Helicobacter pylori Infection. Am J Gastroenterol. 2017;112(2):212-239
  11. Berna MJ, Hoffmann KM, Serrano J, Gibril F, Jensen RT. Serum gastrin in Zollinger-Ellison syndrome. Medicine (Baltimore). 2006;85(6):295-330
  12. Dellon ES, Gibbs WB, Fritchie KJ, et al. Clinical, endoscopic, and histologic findings distinguish eosinophilic esophagitis from gastroesophageal reflux disease. Clin Gastroenterol Hepatol. 2009;7(12):1305-1313
  13. Ronkainen J, Aro P, Storskrubb T, et al. Prevalence of Barrett's esophagus in the general population: an endoscopic study. Gastroenterology. 2005;129(6):1825-1831
  14. Spechler SJ, Souza RF. Barrett's esophagus. N Engl J Med. 2014;371(9):836-845
  15. Gyawali CP, Yadlapati R, Fass R, et al. Updates to the modern diagnosis of GERD: Lyon Consensus 2.0. Gut. 2024;73(2):361-371
  16. Yadlapati R, Kahrilas PJ, Fox MR, et al. Esophageal motility disorders on high-resolution manometry: Chicago Classification version 4.0. Neurogastroenterol Motil. 2021;33(1):e14058
  17. Jobe BA, Richter JE, Hoppo T, et al. Preoperative diagnostic workup before antireflux surgery: an evidence and experience-based consensus of the Esophageal Diagnostic Advisory Panel. J Am Coll Surg. 2013;217(4):586-597
  18. Laine L, DeVault K, Katz P, et al. Vonoprazan versus lansoprazole for healing and maintenance of healing of erosive esophagitis: a randomized trial (PHALCON-EE). Gastroenterology. 2023;164(1):61-71
  19. Viazis N, Keyoglou A, Kanellopoulos AK, et al. Selective serotonin reuptake inhibitors for the treatment of hypersensitive esophagus: a randomized, double-blind, placebo-controlled study. Am J Gastroenterol. 2012;107(11):1662-1667
  20. Dellon ES, Rothenberg ME, Collins MH, et al. Dupilumab in adults and adolescents with eosinophilic esophagitis. N Engl J Med. 2022;387(25):2317-2330
  21. 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-290
  22. Person E, Rife C, Freeman J, Clark A, Castell DO. A novel sleep positioning device reduces gastroesophageal reflux: a randomized controlled trial. J Clin Gastroenterol. 2015;49(8):655-659
  23. Galmiche JP, Hatlebakk J, Attwood S, et al. Laparoscopic antireflux surgery vs esomeprazole treatment for chronic GERD: the LOTUS randomized clinical trial. JAMA. 2011;305(19):1969-1977
  24. Ganz RA, Edmundowicz SA, Taiganides PA, et al. Long-term outcomes of patients receiving a magnetic sphincter augmentation device for gastroesophageal reflux. Clin Gastroenterol Hepatol. 2016;14(5):671-677