Esophagitis
An original StepAtlas teaching article. Last updated 25 Nov 2026.
Introduction
Esophagitis is inflammation of the oesophageal mucosa, and its causes extend well beyond acid reflux. The major categories are reflux oesophagitis, infectious oesophagitis in immunocompromised hosts, eosinophilic oesophagitis, pill-induced injury, radiation injury, and caustic ingestion. The presenting symptoms — dysphagia, odynophagia, retrosternal pain, and food impaction — overlap heavily between causes, so the clinical task is pattern recognition: host immune status, medication list, atopic history, and endoscopic appearance usually identify the cause before biopsy results return. Odynophagia in particular points away from uncomplicated reflux and toward infection or pill injury. This topic is high yield because each cause has a distinctive endoscopic signature and a specific treatment, and because empiric therapy without that pattern recognition fails — antifungals do not help eosinophilic disease, and acid suppression alone does not treat candida. Children and young adults with impaction deserve particular attention for eosinophilic oesophagitis, an increasingly recognised chronic immune-mediated disease.
Etiologies
Candida oesophagitis occurs when mucosal immunity fails, classically in HIV with low CD4 counts, after inhaled or systemic corticosteroids, antibiotics, or chemotherapy; Candida albicans forms adherent plaques on the mucosa. Herpes simplex virus infects squamous epithelium producing discrete ulcers, while cytomegalovirus in profoundly immunosuppressed patients produces large, shallow, linear ulcers in the distal oesophagus. Eosinophilic oesophagitis is an antigen-driven, Th2-mediated disease in which food triggers recruit eosinophils into the oesophageal epithelium, causing rings, furrows, and fibrosis that narrow the lumen over time. Pill oesophagitis is direct chemical injury when a tablet lodges and dissolves against the mucosa — classically doxycycline, bisphosphonates, potassium chloride, iron, and NSAIDs — worsened by taking pills with little water or lying down. Reflux injury results from prolonged acid and pepsin contact, worst distally, and underlies most strictures and Barrett metaplasia in immunocompetent adults.
Clinical presentation
Infectious oesophagitis typically presents with odynophagia as the dominant symptom, often with dysphagia and retrosternal pain. Oral thrush frequently accompanies candida oesophagitis but its absence does not exclude it, and in a patient with advanced HIV, odynophagia with thrush is candida until proven otherwise. Herpes oesophagitis may accompany oral or labial lesions and tends to cause severe pain. Eosinophilic oesophagitis presents differently: intermittent solid-food dysphagia, episodes of food impaction requiring emergency removal, and reflux-like symptoms refractory to acid suppression, in a patient — often a young man — with asthma, eczema, or food allergy. Pill oesophagitis causes abrupt odynophagia and retrosternal pain hours to days after starting an offending drug, sometimes with a clear history of taking it at bedtime with little water. Radiation injury follows thoracic radiotherapy with a latency of weeks, and caustic ingestion presents immediately with pain, drooling, and oropharyngeal burns.
Diagnosis and evaluation
Upper endoscopy with biopsy is the definitive test when the diagnosis is uncertain, symptoms are severe, the patient is immunocompromised without a clear candida picture, or empiric therapy fails. Endoscopic signatures are distinctive: candida gives white adherent plaques that do not wash off; herpes gives multiple small, discrete punched-out ulcers with raised edges; CMV gives large, shallow, serpiginous or linear ulcers. Biopsy and brushings confirm the organism — viral cytopathic effect for herpes, inclusion bodies in endothelial and stromal cells at the ulcer base for CMV, pseudohyphae for candida. Eosinophilic oesophagitis shows rings (trachealisation), linear furrows, white exudates, and strictures, and diagnosis requires biopsies from multiple oesophageal levels showing dense eosinophilia — at least 15 eosinophils per high-power field — even where the mucosa looks normal, after other causes are considered. Barium study can show strictures or a narrow-calibre oesophagus but cannot replace biopsy. In HIV, check CD4 count and review antiretroviral therapy as part of the same evaluation.
Management
Treatment is cause-specific. Candida requires systemic therapy — oral fluconazole is first-line; topical agents alone are inadequate for oesophageal disease — with an echinocandin or other agent for azole-resistant cases, plus optimisation of HIV therapy or reduction of immunosuppression where possible. Herpes oesophagitis is treated with acyclovir, and CMV with ganciclovir, both with infectious disease input and attention to marrow and renal toxicity. Eosinophilic oesophagitis is managed with swallowed topical corticosteroids such as fluticasone or budesonide slurry, proton pump inhibitor therapy, dietary elimination of trigger foods guided by allergy principles, and endoscopic dilation for fibrotic strictures — performed gently because the mucosa tears easily; biologic therapy targeting interleukin pathways is an option for refractory disease. Pill oesophagitis usually heals after stopping the drug, acid suppression, and counselling to take pills upright with a full glass of water. Reflux oesophagitis is treated with proton pump inhibitors and lifestyle measures, with severity graded endoscopically to set treatment duration.
Complications
Complications follow the cause. Infectious oesophagitis in immunosuppressed patients can progress to deep ulceration, bleeding, perforation, and fistula formation, and candida may disseminate in neutropenic hosts. Chronic reflux and eosinophilic inflammation both produce strictures, but by different mechanisms — peptic fibrosis distally versus rings and diffuse narrowing in eosinophilic disease — and both can present as recurrent food impaction. Untreated eosinophilic oesophagitis remodels toward a fibrostenotic phenotype that responds poorly to anti-inflammatory therapy alone, arguing for early treatment. Caustic injury carries the gravest complications: perforation and mediastinitis acutely, long strictures chronically, and increased squamous cancer risk in the injured segment. Any oesophagitis that fails expected therapy should prompt re-endoscopy with biopsies, because dual pathology is common — for example candida superimposed on eosinophilic disease — and because malignancy can masquerade as refractory inflammation, particularly in older patients with progressive symptoms and weight loss.
Summary
Esophagitis is a pattern-recognition diagnosis built from host, history, and endoscopic appearance. Odynophagia in an immunocompromised patient means infection: candida gives adherent white plaques and is treated with systemic fluconazole, herpes gives discrete punched-out ulcers treated with acyclovir, and CMV gives large shallow linear ulcers treated with ganciclovir. Eosinophilic oesophagitis affects atopic young patients with solid-food dysphagia and food impaction, shows rings and furrows, requires biopsies showing dense eosinophilia, and is treated with swallowed topical steroids, acid suppression, dietary elimination, and careful dilation. Pill injury from doxycycline, bisphosphonates, potassium, iron, or NSAIDs causes abrupt odynophagia and heals when the drug is stopped and pill-taking technique is corrected. Reflux remains the commonest cause in immunocompetent adults and drives strictures and Barrett metaplasia. Endoscopy with multi-level biopsies settles uncertain, severe, or refractory cases and detects the dual pathology and malignancy that empiric therapy can miss.
High-Yield Synopsis
- Odynophagia points to infection or pill injury, not simple reflux
- Candida: immunocompromised/low CD4, white adherent plaques, ± oral thrush → systemic fluconazole (topical alone insufficient)
- HSV: multiple small punched-out ulcers, severe pain → acyclovir
- CMV: profound immunosuppression, large shallow linear ulcers → ganciclovir
- Biopsy clues: CMV inclusions at ulcer BASE (endothelial cells); HSV at ulcer EDGE
- Eosinophilic: atopic young man, solid-food dysphagia, food impaction, PPI-refractory reflux symptoms
- EoE endoscopy: rings (trachealisation), furrows, exudates; biopsy ≥15 eos/hpf, take biopsies even if mucosa looks normal
- EoE treatment: swallowed topical steroids, PPI, dietary elimination, gentle dilation; tears easily
- Pill esophagitis: doxycycline, bisphosphonates, KCl, iron, NSAIDs — taken dry/at bedtime; stop drug, take upright with water
- Caustic injury: perforation/mediastinitis acutely, strictures and ↑ squamous cancer late
- Refractory esophagitis → re-scope with biopsies: dual pathology and malignancy hide there
- Reflux esophagitis: commonest overall cause, distal injury, PPI therapy, drives strictures and Barrett metaplasia
Practice starts right away in the runner — tutor mode, with explanations — on Esophagitis.
What the question bank tests on this topic
3 published question(s) in the bank carry this topic. Their learning objectives — the same material the Lessons & Guides view assembles — are:
- Pill-induced esophagitis from doxycycline is managed by stopping the drug and correcting pill-taking technique.
- Candida esophagitis is treated first-line with oral fluconazole.
- HSV esophagitis causes punched-out ulcers in immunocompromised patients and is treated with acyclovir.
