A GI claim pays only when the diagnosis explains the procedure. The gastroenterology ICD-10 codes used most often cover a short list of conditions: reflux, diverticular disease, IBS, IBD, GI bleeding, liver and pancreas disease, and colon cancer screening.
Each one has a specific code, such as K21.9 for GERD or K57.30 for diverticulosis, that should match the procedure it supports. This guide groups the most common codes by anatomy and shows which procedures they usually pair with.
Why the Diagnosis Decides GI Payment
Payers read the diagnosis first to judge whether a procedure was needed. A colonoscopy linked to a screening code is paid as preventive care, while the same colonoscopy linked to rectal bleeding is diagnostic, with different cost-sharing.
That is why ICD-10 to CPT linkage colonoscopy rules matter so much. Each procedure line should point to the diagnosis that justified it, and the most specific code the record supports should be used.
The procedure side has its own rules, covered in our list of CPT codes for GI clinics in 2026. This guide focuses on the gastroenterology ICD-10 codes that support them.
Upper GI Codes: Esophagus and Stomach
Upper GI diagnoses most often support an EGD, with or without biopsy. These are the common GI diagnosis codes for that work:
| Code | Diagnosis | Often paired with |
|---|---|---|
| K21.9 | GERD without esophagitis | EGD, 43235 |
| K21.00 | GERD with esophagitis, no bleeding | EGD with biopsy, 43239 |
| K22.70 | Barrett’s esophagus, no dysplasia | EGD with biopsy, 43239 |
| R13.10 | Dysphagia, unspecified | EGD or dilation, 43249 |
| K29.70 | Gastritis, unspecified, no bleeding | EGD with biopsy, 43239 |
K21.9 GERD ICD-10 coding fits reflux without inflammation on scope. Once the report shows esophagitis, the code moves to the K21.0x range. For dysphagia, the more specific phase codes, such as R13.12 for oropharyngeal, are better than R13.10 when the note supports them.
Lower GI Codes: Colon, Bowel Habits and Bleeding
Lower GI gastroenterology ICD-10 codes usually support a diagnostic colonoscopy or one with biopsy or polyp removal.
| Code | Diagnosis | Often paired with |
|---|---|---|
| K57.30 | Diverticulosis, large intestine, no bleeding | Colonoscopy, 45378 |
| K57.32 | Diverticulitis, large intestine, uncomplicated | Colonoscopy, 45378 |
| K58.0 | IBS with diarrhea | Colonoscopy with biopsy, 45380 |
| K59.00 | Constipation, unspecified | Colonoscopy, 45378 |
| K92.1 | Melena | EGD or colonoscopy |
| K62.5 | Rectal bleeding | Colonoscopy, 45378 |
K57.30 diverticulosis is often found during screening, so it belongs after the screening code, not in place of it. For K58 IBS ICD-10 coding, choose by the main bowel pattern: K58.0 for diarrhea, K58.1 for constipation and K58.2 for mixed.
K92.1 melena usually suggests an upper GI source, so it often supports an EGD first, with a colonoscopy if needed. When a biopsy or polyp removal follows, our guide to 45380 vs 45385 covers the procedure code choice.
Coding Crohn’s Disease and Ulcerative Colitis
Inflammatory bowel disease codes reward detail. The K50 Crohn’s / K51 ulcerative colitis codes build up location or extent, then complications, one character at a time.
Location Drives the Crohn’s Code
K50 codes start with where the disease sits: K50.0x for the small intestine, K50.1x for the large intestine and K50.8x for both. A colonoscopy note that names the involved segments makes this choice easy.
Extent Drives the Ulcerative Colitis Code
K51 codes follow how far the inflammation reaches. For example, K51.2x covers ulcerative proctitis and K51.5x covers left-sided colitis, while pancolitis has its own range.
Complications Sit in the Sixth Character
Both categories add the complication last: 1 for rectal bleeding, 2 for obstruction, 3 for fistula and 4 for abscess. So Crohn’s of the large intestine with rectal bleeding becomes K50.111.
When Unspecified Codes Fit
K50.90 and K51.90 describe IBD with no location and no complication. They suit an early visit, but a colonoscopy report usually supplies enough detail to replace them.
Pairing IBD With Surveillance Scopes
Long-standing colitis often calls for surveillance colonoscopy. In that case, the IBD code itself supports the procedure, because the patient is being monitored for a known disease, not screened.
Liver, Gallbladder and Pancreas Codes
Many GI clinics also manage hepatobiliary and pancreatic disease. These codes come up often:
- K76.0: fatty liver, where metabolic dysfunction-associated steatotic liver disease (MASLD) is indexed.
- K75.81: steatohepatitis, where MASH is indexed.
- K74.60: cirrhosis, unspecified, used only when the cause is not documented.
- K80.20: gallstones without cholecystitis or obstruction.
- K85.90 and K86.1: acute and chronic pancreatitis.
FY2027 also added K76.83 for intestinal failure-associated liver disease, a narrow but new option. For bile duct stones and strictures treated by ERCP, the procedure side is covered in our guide to ERCP CPT codes.
Screening and Surveillance Z-Codes
Z-codes tell the payer why a scope was done when no symptom drove it. Getting them right protects screening benefits for patients.
Z12.11 screening colonoscopy coding applies to an average-risk patient with no symptoms. Z80.0, family history of colon cancer, adds risk that can support more frequent screening.
For patients with past polyps, use the Z86.010- personal history of colon polyps codes. Z86.010 itself is only a header, so report the six-character code, such as Z86.0101 for adenomatous or serrated polyps or Z86.0102 for hyperplastic polyps.
When a screening finds a polyp, the screening code still goes first and the finding follows. Our post on screening vs diagnostic colonoscopy explains how that order affects patient cost.
CMS publishes the full code set and annual updates on its ICD-10 page, which is the best source to confirm a new or revised code.
Diagnosis Pairing Errors Behind GI Denials
Even correct codes can deny when they are linked the wrong way. These five mistakes cause many GI denials.
A Symptom Code Ahead of the Screening Code
Listing R19.5 or a polyp code before Z12.11 can turn a screening into a diagnostic claim. Keep the reason for the visit first and the findings after it.
An Unspecified Code When the Report Is Specific
The scope report names the segment, the severity or the bleeding, yet the claim says unspecified. Code from the final report, not the order.
One Diagnosis for Two Procedures
When an EGD and a colonoscopy happen the same day, each needs its own diagnosis. Reflux supports the EGD, while anemia or bleeding may support the colonoscopy. Our GI CPT code guide covers billing the two procedures together.
History Codes for Active Disease
Z86.0101 describes polyps that were removed in the past. A polyp found and removed today is a current finding instead, coded from the pathology result.
Header Codes That Are Not Billable
Codes such as Z86.010 or K50.1 need more characters to be valid. Claims with these incomplete codes reject before anyone reviews them.
A GI Diagnosis List Your Practice Can Rely On
GI procedure codes get most of the attention, but the diagnosis line decides how each claim is judged. That is why a short, well-kept list of the gastroenterology ICD-10 codes a practice uses most, matched to the procedures they support, prevents many denials before they start.
That list works best when it lives inside the EHR and is reviewed each October, when the new code set takes effect. Where a second check helps, GI billing specialists can compare diagnosis pairing against scope and pathology reports before claims go out.
Gastroenterology ICD-10 Code FAQs
What is the ICD-10 code for GERD?
K21.9 is GERD without esophagitis. When the scope shows esophagitis, use a K21.0x code instead.
What code is used for a screening colonoscopy?
Z12.11, encounter for screening for malignant neoplasm of the colon, listed first on the claim.
Can Z86.010 be billed?
No. It is a header. Report a six-character code such as Z86.0101 for a history of adenomatous or serrated polyps.
How is Crohn’s disease coded?
With a K50 code that shows location and any complication, such as K50.111 for Crohn’s of the large intestine with rectal bleeding.
What is the code for diverticulosis?
K57.30 is diverticulosis of the large intestine without perforation, abscess or bleeding.
