Skip to content
Dx

ICD-10-CM 2027

ICD-10 code for congenital megaesophagus

Q39.5

Congenital dilatation of esophagus

✓ Billable / specificCC — complication/comorbidity

From the official ICD-10-CM alphabetic index entry “Megaesophagus (functional) › congenital”. Page updated September 29, 2026.

About coding congenital megaesophagus

The ICD-10-CM code for congenital megaesophagus is Q39.5 (Congenital dilatation of esophagus).

Within Q39 (congenital malformations of esophagus), Q39.5 is specifically for congenital dilatation of esophagus. Related codes cover atresia of esophagus without fistula (Q39.0), atresia of esophagus with tracheo-esophageal fistula (Q39.1), congenital tracheo-esophageal fistula without atresia (Q39.2), congenital stenosis and stricture of esophagus (Q39.3), esophageal web (Q39.4), congenital diverticulum of esophagus (Q39.6), other congenital malformations of esophagus (Q39.8) and congenital malformation of esophagus, unspecified (Q39.9).

As a secondary diagnosis it is a CC (complication or comorbidity), which can move an inpatient stay into the "with CC" MS-DRG of its family, unless the principal diagnosis excludes it.

In MS-DRG v44.0, it is part of the grouping logic for DRG 368 (Major Esophageal Disorders with MCC, relative weight 1.6433), DRG 369 (Major Esophageal Disorders with CC, relative weight 0.9922) and DRG 370 (Major Esophageal Disorders without CC/MCC, relative weight 0.6744), in MDC 06 (Diseases and Disorders of the Digestive System), as a principal or secondary diagnosis. The DRG a claim lands in depends on the principal diagnosis, procedures and any CC/MCC secondary diagnoses.

Common questions about congenital megaesophagus ICD-10 codes

What is the ICD-10 code for congenital megaesophagus?

Q39.5 — Congenital dilatation of esophagus.

Is Q39.5 billable?

Yes. Q39.5 is a billable/specific ICD-10-CM code valid for FY2027 (October 1, 2026 – September 30, 2027).

Can Q39.5 be used as a principal diagnosis?

Yes. The Medicare Code Editor doesn't restrict Q39.5 as a principal diagnosis.

Is Q39.5 a CC or MCC?

Q39.5 is a CC (complication or comorbidity) under MS-DRG v44.0, unless excluded by the principal diagnosis.