Created by: The Gastroenterology Billing Editorial Team, powered by Billing Service Quotes
Technical Review: Tim Daniels, Director of Strategic Accounts, Billing Service Quotes
Last Reviewed: August 2026
What Is ICD-10 Code K58.0?
K58.0 is the ICD-10-CM diagnosis code for irritable bowel syndrome with diarrhea, also called IBS-D. It is a billable, specific code that sits in Chapter 11 of ICD-10-CM (Diseases of the digestive system) under category K58, Irritable bowel syndrome. GI practices use K58.0 to document diarrhea-predominant IBS on claims for office visits, diagnostic workups, and procedures such as colonoscopy performed to rule out organic disease.
Why subtype matters for billing: ICD-10 splits IBS into five codes by predominant symptom. Reporting the unspecified code K58.9 when the chart documents diarrhea-predominant IBS invites documentation requests, slows reimbursement, and weakens the medical necessity argument for downstream diagnostic testing.
Common pairing in GI: K58.0 frequently appears as a supporting diagnosis on colonoscopy claims (CPT 45378, 45380, 45385) when the procedure is performed to exclude inflammatory bowel disease, celiac disease, or microscopic colitis in a patient presenting with chronic diarrhea.
Excludes to watch: K58.0 excludes irritable bowel syndrome with constipation (K58.1) and mixed IBS (K58.2). It also has an Excludes 2 note for functional diarrhea (K59.1), meaning the two codes can be reported together when both conditions are documented.
What K58.0 Means Clinically
Irritable bowel syndrome with diarrhea is a chronic functional gastrointestinal disorder characterized by recurrent abdominal pain associated with changes in bowel habits, where the predominant stool pattern is loose or watery. According to the Rome IV criteria, which remain the diagnostic standard as of 2026, IBS-D requires abdominal pain on average at least one day per week in the last three months, associated with defecation and a change in stool frequency or form, where loose stools (Bristol Stool Form Scale types 6 and 7) occur on more than 25 percent of bowel movements.
IBS is a diagnosis of exclusion in gastroenterology practice, which means the billing and coding for IBS-D often follow a diagnostic workup that includes blood panels, stool studies, serologic testing for celiac disease, and in many cases a colonoscopy with biopsies to rule out inflammatory bowel disease or microscopic colitis. That workup generates its own set of claims, and K58.0 is the diagnosis code that ties those services to a documented clinical rationale. If the chart supports diarrhea-predominant symptoms and the diagnosis of exclusion has been completed, K58.0 is the correct code.
One question we hear constantly from GI practice managers is whether the unspecified code K58.9 is “safe enough” when the chart clearly describes diarrhea-predominant symptoms. It is not. Payers increasingly flag unspecified IBS codes for documentation review, and the additional specificity in K58.0 strengthens medical necessity for every diagnostic service the practice billed during the workup. Coding to the highest documented specificity is not optional in GI billing. It is how you protect the revenue attached to every claim in the diagnostic chain. For more on how Gastroenterology Billing connects practices with billing partners who understand these distinctions, visit our About Us page.
The Complete K58 Code Family
ICD-10-CM category K58 covers all forms of irritable bowel syndrome. Selecting the wrong subtype is one of the most common coding errors in GI, and it creates downstream problems when the diagnosis does not match the documented symptom pattern. Here is the full family:
| ICD-10-CM Code | Description | Predominant Symptom |
| K58.0 | Irritable bowel syndrome with diarrhea | Diarrhea (IBS-D) |
| K58.1 | Irritable bowel syndrome with constipation | Constipation (IBS-C) |
| K58.2 | Mixed irritable bowel syndrome | Alternating diarrhea and constipation (IBS-M) |
| K58.8 | Other irritable bowel syndrome | Other specified pattern |
| K58.9 | Irritable bowel syndrome, unspecified | No predominant pattern documented |
The includes note under K58 covers “irritable colon” and “spastic colon,” which means those legacy terms map to this category as well. If the chart uses “spastic colon with diarrhea,” the correct code is K58.0. The Excludes 1 note blocks concurrent reporting with K58.1, since a patient cannot have both diarrhea-predominant and constipation-predominant IBS documented at the same encounter. However, K58.2 (mixed IBS) exists for patients who alternate between the two patterns.
Across the billing companies we vet for GI practices, a recurring pattern is that coders default to K58.9 because it requires the least chart review. That default costs money. When a payer sees K58.9 paired with a colonoscopy claim, the medical necessity argument is weaker than it would be with K58.0 and a chart that documents chronic diarrhea as the indication for the procedure. The specificity protects the claim.
How Is K58.0 Used in GI Billing?
K58.0 appears on GI claims in three primary contexts, and getting the pairing right in each one determines whether the claim pays cleanly or draws a review.
First, as the primary diagnosis on evaluation and management visits. When a patient presents to a gastroenterologist with chronic diarrhea and the provider diagnoses IBS-D after completing the appropriate workup, K58.0 is reported as the primary diagnosis on the E/M claim. The level of service (99213, 99214, or 99215) depends on the medical decision making documented in the note.
Second, as a supporting diagnosis on colonoscopy and upper endoscopy claims. A colonoscopy performed to rule out organic disease in a patient with chronic diarrhea is often billed with K58.0 as a secondary or supporting diagnosis alongside the symptom code (R19.7 for diarrhea, unspecified) or the reason for the procedure. The colonoscopy code depends on whether the scope is diagnostic only (CPT 45378) or includes a biopsy (CPT 45380) or polypectomy (CPT 45385). For a detailed breakdown of diagnostic colonoscopy coding, see our guide on CPT code 45378.
Third, as the diagnosis supporting ongoing management. Patients with established IBS-D who return for medication management, dietary counseling, or follow-up testing carry K58.0 as their primary diagnosis on every subsequent visit. If the provider also manages GERD in the same encounter, both K58.0 and K21.9 may appear on the claim, each linked to the services they support. For a breakdown of GERD coding, see our 2027 Medicare GI payment changes article, which covers how the proposed 2027 fee schedule affects GI E/M billing broadly.
Providers often come to us after discovering that their colonoscopy claims are being denied for medical necessity, and the root cause is almost always a diagnosis code that does not tell the payer why the procedure was performed. K58.0 paired with a documented history of chronic diarrhea and a negative celiac panel gives the payer the clinical story it needs. R19.7 alone, without the IBS diagnosis, leaves the door open for a medical necessity challenge.
IBS coding errors quietly erode GI revenue: unspecified diagnosis codes weaken medical necessity, colonoscopy claims get flagged, and the workup that led to the diagnosis goes undefended. If your billing team is defaulting to K58.9 when the chart supports K58.0, a GI-specialized billing partner fixes that at the source. Get matched with vetted gastroenterology billing companies, free.
What Are the Excludes Notes for K58.0?
ICD-10-CM applies two types of exclusion notes to K58.0, and understanding the difference prevents coding errors that trigger claim edits.
Excludes 1 means “not coded here.” K58.0 has an Excludes 1 relationship with K58.1 (IBS with constipation), which means both codes cannot appear on the same claim for the same encounter. A patient is either diarrhea-predominant or constipation-predominant at a given visit. If the patient alternates between the two patterns, the correct code is K58.2 (mixed IBS), not both K58.0 and K58.1.
Excludes 2 means “not included here but may coexist.” K58.0 carries an Excludes 2 note for K59.1 (functional diarrhea). This means K58.0 and K59.1 can be reported together on the same claim when the chart documents both conditions as separate diagnoses. The distinction matters because functional diarrhea is a different clinical entity from IBS-D under the Rome IV criteria, and some patients carry both diagnoses.
The most common issue we see providers run into with these exclusion rules is reporting K58.0 alongside R19.7 (diarrhea, unspecified) as if they are separate conditions. R19.7 is a symptom code, and when IBS-D has been diagnosed, K58.0 replaces R19.7 as the definitive diagnosis. Using both on the same claim for the same encounter signals to the payer that the diagnosis is not settled, which undermines the medical necessity of the services billed.
Common K58.0 Billing Mistakes
In our experience matching providers with GI billing partners, the same K58.0 coding errors appear across practices of every size. Each one creates a different type of revenue exposure.
Defaulting to K58.9 when the chart supports a subtype. The unspecified code is appropriate only when the documentation genuinely does not state whether the patient has diarrhea-predominant, constipation-predominant, or mixed IBS. If the note describes chronic diarrhea as the predominant symptom, K58.0 is the correct code and K58.9 is a missed opportunity to strengthen the claim.
Using K58.0 before the diagnosis is confirmed. IBS is a diagnosis of exclusion. If the workup is still in progress and organic disease has not been ruled out, the appropriate codes are the symptom codes (R19.7, R10.9) rather than K58.0. Reporting K58.0 prematurely and then billing a colonoscopy to “rule out” the condition creates a contradiction the payer can use to deny the procedure.
Pairing K58.0 with K58.1 on the same claim. The Excludes 1 relationship between these codes means they cannot coexist on the same encounter. If the patient has alternating symptoms, report K58.2 (mixed IBS) instead.
Failing to link K58.0 to the correct line item. When multiple diagnoses appear on a claim, each CPT code must be linked to the diagnosis that supports its medical necessity. A colonoscopy billed under CPT 45378 should point to the diagnosis that justified the procedure, not to an unrelated code on the same claim.
Dropping K58.0 on follow-up visits. Established IBS-D patients who return for management still need K58.0 as their primary or active diagnosis. Reporting only the symptom code on a follow-up visit, as if the diagnosis has not been made, weakens the clinical record and complicates future claim support.
K58.0 vs R19.7 vs K21.9: When to Use Each
These three codes sit close together in GI billing and get confused regularly, especially when a patient presents with overlapping symptoms. Here is how they differ and when each one belongs on the claim.
| Code | Description | When to Use |
| K58.0 | IBS with diarrhea | Confirmed IBS-D diagnosis after workup is complete and organic disease excluded |
| R19.7 | Diarrhea, unspecified | Symptom code used during workup before a definitive GI diagnosis is made |
| K21.9 | GERD, unspecified | Separate diagnosis for gastroesophageal reflux; can coexist with K58.0 on the same claim |
The key rule: once IBS-D is diagnosed, K58.0 replaces R19.7 as the definitive code. R19.7 is a placeholder for the symptom during the diagnostic phase. It does not belong on claims after the diagnosis is established. K21.9, on the other hand, is an independent diagnosis that can appear alongside K58.0 when both conditions are documented and managed in the same encounter.
Stop losing GI revenue to unspecified diagnosis codes and medical necessity denials. Get matched with vetted gastroenterology billing companies that know how to code IBS correctly, defend colonoscopy claims, and protect your reimbursement from the first submission. Gastroenterology Billing has connected over 2,000 providers with billing partners across all 50 states, with rates starting as low as 2.95%. Finding a match is 100% free for providers.
Frequently Asked Questions
What is ICD-10 code K58.0?
K58.0 is the ICD-10-CM diagnosis code for irritable bowel syndrome with diarrhea, also known as IBS-D. It is a billable, specific code used in gastroenterology to document diarrhea-predominant IBS on claims for office visits, diagnostic testing, and procedures performed to rule out organic disease.
Is K58.0 billable?
Yes. K58.0 is a complete, billable ICD-10-CM code valid for HIPAA-covered transactions. It does not require additional characters. Do not report the category header K58 alone on a claim, as it is not billable without a subtype.
What is the difference between K58.0 and K58.9?
K58.0 specifies irritable bowel syndrome with diarrhea as the predominant symptom. K58.9 is the unspecified code used when the chart does not document a predominant bowel pattern. Using K58.9 when the record supports K58.0 weakens medical necessity and increases the risk of documentation requests from payers.
Can K58.0 and K58.1 be reported together?
No. K58.0 (IBS with diarrhea) and K58.1 (IBS with constipation) have an Excludes 1 relationship, which means they cannot coexist on the same claim. If the patient alternates between diarrhea and constipation, report K58.2 (mixed irritable bowel syndrome) instead.
What CPT codes pair with K58.0?
K58.0 commonly pairs with E/M visit codes (99213, 99214, 99215) for IBS-D management, diagnostic colonoscopy (CPT 45378) or colonoscopy with biopsy (CPT 45380) when performed to exclude organic disease, and lab codes for celiac serology, stool studies, and inflammatory markers.
When should I use R19.7 instead of K58.0?
Use R19.7 (diarrhea, unspecified) during the diagnostic workup phase, before IBS-D has been confirmed. Once the diagnosis is established and organic disease has been excluded, K58.0 replaces R19.7 as the definitive diagnosis on all subsequent claims.
Does K58.0 support medical necessity for a colonoscopy?
K58.0 can support a colonoscopy performed to rule out organic disease in a patient with chronic diarrhea, but the documentation must show why the procedure was clinically indicated. Many payers expect the chart to demonstrate that less invasive testing was performed first and that the colonoscopy was necessary to exclude conditions such as IBD or microscopic colitis.
What DRG does K58.0 map to?
K58.0 maps to MS-DRG 391 (esophagitis, gastroenteritis, and miscellaneous digestive disorders with major complications or comorbidities) or MS-DRG 392 (same without MCC), depending on the presence of additional diagnoses. This applies to inpatient claims where IBS-D is the principal or secondary diagnosis.