Constipation ICD-10 Code (2026): K59.00, K59.04, Opioid-Induced and IBS-C Coding Guide

Constipation ICD 10 Code_ Complete Coding Guide & Tips

The ICD-10-CM code for constipation with no further detail is K59.00 (Constipation, unspecified), but the K59.0- subcategory has five more specific codes, and IBS with constipation, fecal impaction and drug-induced constipation each follow their own rules.

Constipation looks like one of the simplest diagnoses to code. In practice it causes a steady stream of coding errors: K59.00 used when the provider documented a type, chronic constipation coded as chronic idiopathic constipation, opioid-induced constipation billed without the adverse-effect code, and constipation reported on top of an IBS-C diagnosis that already includes it.

K59.0 itself is a category header, not a billable code. Every claim needs a sixth character: K59.00, K59.01, K59.02, K59.03, K59.04 or K59.09. All six codes are valid in the FY2027 ICD-10-CM code set that took effect on October 1, 2026.

Key Takeaways

  • K59.0 (Constipation) is a non-billable header. Report K59.00, K59.01, K59.02, K59.03, K59.04 or K59.09.
  • The Index sends functional constipation and chronic idiopathic constipation to K59.04, but chronic constipation with no other detail to K59.09.
  • Opioid-induced constipation is K59.03 followed by the adverse-effect code for the drug, for example T40.2X5A for oxycodone or morphine.
  • IBS with constipation is K58.1 alone. Do not add a K59.0- code for a symptom that is integral to IBS-C.
  • Fecal impaction (K56.41) and change in bowel habit (R19.4) are Excludes1 with constipation codes, so never report them together with K59.0-.

Constipation ICD-10-CM Codes at a Glance (FY2027)

These are the official titles from the FY2027 ICD-10-CM Tabular List.

CodeOfficial titleUse when the provider documents
K59.0Constipation (category header)Not billable; select a sixth character
K59.00Constipation, unspecifiedConstipation with no type or cause stated
K59.01Slow transit constipationSlow transit or colonic inertia
K59.02Outlet dysfunction constipationOutlet dysfunction or obstructed defecation
K59.03Drug induced constipationConstipation caused by a medication
K59.04Chronic idiopathic constipationChronic idiopathic constipation or functional constipation
K59.09Other constipationChronic constipation NOS, or another specified type not listed above

When to Use K59.00, Constipation, Unspecified

K59.00 is correct when the record says only “constipation” and gives no type, cause or chronicity that the Index maps elsewhere. It is common at a first visit, in urgent care and on problem lists carried forward from earlier encounters.

Unspecified codes are not errors. The ICD-10-CM Official Guidelines allow them when the documentation does not support a more specific code. The problem is using K59.00 out of habit when the note already says “slow transit” or “due to opioids.”

Before you code K59.00, search the assessment and plan for the words chronic, functional, idiopathic, slow transit, outlet, pelvic floor, dyssynergia or a drug name. Any one of them may move you to a more specific code.

The Specific Constipation Codes

K59.01 Slow Transit Constipation

Use K59.01 when the provider diagnoses slow transit constipation, often after a transit study shows delayed movement of stool through the colon. The code depends on the provider’s diagnostic statement, not on the coder interpreting a test result.

K59.02 Outlet Dysfunction Constipation

K59.02 covers constipation caused by a problem evacuating stool, such as pelvic floor dysfunction or dyssynergic defecation, when the provider names it as outlet dysfunction constipation. These patients are often referred for anorectal testing in gastroenterology, where the procedure claims need a diagnosis that matches the order; our gastroenterology billing team sees this pairing daily.

K59.03 Drug Induced Constipation

The Tabular List under K59.03 says to use an additional code for adverse effect, if applicable, to identify the drug (T36 to T50 with fifth or sixth character 5). Opioids are the most common cause, but iron, anticholinergics, calcium channel blockers and other drugs can qualify when the provider links them to the constipation.

K59.04 Chronic Idiopathic Constipation

In the Alphabetic Index, Constipation, chronic, idiopathic and Constipation, functional both point to K59.04. Clinicians apply diagnostic criteria such as Rome IV, but ICD-10-CM does not require the coder to confirm symptom duration; code from the provider’s documented diagnosis.

K59.09 Other Constipation

Constipation, chronic with no further description, and Constipation, specified NEC both index to K59.09. This is the code most often missed: a note that says “chronic constipation” is K59.09, not K59.04, unless the provider also calls it idiopathic or functional.

Do not assume chronic means K59.04. Chronic constipation NOS indexes to K59.09. K59.04 needs the words chronic idiopathic or functional in the provider documentation.

Opioid-Induced Constipation: Coding and Sequencing

There is no single ICD-10-CM code for opioid-induced constipation. It is reported as drug-induced constipation plus the adverse-effect code for the specific opioid.

The Official Guidelines (Section I.C.19.e.5.a) say that when a drug was correctly prescribed and properly administered, you code the nature of the adverse effect first, followed by the T code for the adverse effect of the drug. The constipation code goes first; the T code never stands alone as the first-listed diagnosis for this scenario.

Opioid documentedAdverse effect code (initial encounter)Title
Oxycodone, hydrocodone, morphineT40.2X5AAdverse effect of other opioids, initial encounter
MethadoneT40.3X5AAdverse effect of methadone, initial encounter
FentanylT40.415AAdverse effect of fentanyl or fentanyl analogs, initial encounter

Confirm the drug in the Table of Drugs and Chemicals before you assign the T code, because opioids are spread across several T40 subcategories (T40.0 to T40.4, with T40.6 for other and unspecified narcotics). The seventh character A is used while the patient is receiving active treatment for the condition; D is for subsequent encounters after active treatment is complete.

Adverse effect, not poisoning. If the opioid was taken in error, in excess or not as prescribed, the guidelines treat it as poisoning (fifth or sixth character 1 to 4), and the poisoning code is sequenced first. That is a different coding path, so query the provider if the record is unclear.

If the patient is on long-term opioid therapy, Z79.891 (Long term (current) use of opiate analgesic) can be added, along with the condition the opioid treats, such as G89.4 (Chronic pain syndrome) when documented.

Worked Example: Opioid-Induced Constipation Visit

A 67-year-old patient on daily oxycodone for documented chronic pain syndrome sees her primary care provider. The assessment reads: “Opioid-induced constipation. Oxycodone taken as prescribed. Starting a new laxative regimen; continue current pain plan.”

  1. Find the condition. Index: Constipation, drug-induced, K59.03. Sequence it first, because the constipation is the reason for the visit.
  2. Identify the drug. Table of Drugs and Chemicals: oxycodone, adverse effect column, T40.2X5-. Add seventh character A for active treatment: T40.2X5A.
  3. Add supporting codes. Z79.891 for long-term opiate analgesic use, and G89.4 for chronic pain syndrome because it is documented and managed.
  4. Check the excludes notes. No R19.4 or K56.41 on the claim, since both are Excludes1 with constipation.

Final diagnosis order. K59.03, T40.2X5A, Z79.891, G89.4.

If a payer rejects the diagnosis pairing, our guide to the CO-11 denial code explains how to correct a diagnosis that is inconsistent with the procedure.

Codes Commonly Confused With Constipation

CodeTitleHow it relates to K59.0-
K58.1Irritable bowel syndrome with constipationUse alone when IBS-C is diagnosed; constipation is integral to it
K56.41Fecal impactionExcludes1 at K59.0; code the impaction, not constipation
R19.4Change in bowel habitExcludes1 at K59; use only when constipation is not diagnosed
R15.0Incomplete defecationExcludes2 at K59.0; may be coded with constipation if both are documented
K59.2Neurogenic bowel, not elsewhere classifiedSeparate K59 code; also code the underlying neurological condition
F45.8Other somatoform disordersPsychogenic intestinal disorders are Excludes1 at K59

IBS With Constipation (K58.1)

When the provider diagnoses irritable bowel syndrome with constipation, K58.1 captures both the syndrome and the constipation. Under the guideline that signs and symptoms routinely associated with a disease are not coded separately, do not add K59.00 to K58.1.

Fecal Impaction (K56.41)

K59.0 carries an Excludes1 note for fecal impaction. If the provider documents impaction, report K56.41 and not a constipation code, even if the note also uses the word constipation.

Functional vs Secondary Constipation

Functional (primary) constipation has no identified structural, metabolic or drug cause, and the Index maps functional constipation to K59.04. Secondary constipation is caused by something else, and the cause usually drives code selection.

  • Drug-caused: K59.03 plus the T36 to T50 adverse-effect code.
  • Neurological cause such as spinal cord injury or multiple sclerosis: code the neurological condition and K59.2 when the provider documents neurogenic bowel.
  • Structural cause such as Hirschsprung disease (Q43.1): code the definitive condition; a constipation code is added only when the provider documents it as a separate problem that is not routinely part of the condition.
  • Cause suspected but not confirmed in an outpatient setting: code the constipation as documented, not the possible cause, because outpatient coding does not report uncertain diagnoses.

Pediatric, Newborn and Pregnancy Considerations

Children

ICD-10-CM has no separate pediatric constipation code. A child with functional constipation is coded K59.04, and unspecified constipation is K59.00. For practices that see high volumes of these visits, our pediatric billing services handle the coding and payer follow-up.

Newborns

There is no neonatal-specific constipation code. The P76 category (Other intestinal obstruction of newborn, a non-billable header) describes obstruction, not constipation, and should be used only when the provider documents that condition:

CodeTitleNote
P76.0Meconium plug syndromeNewborn obstruction, not constipation
P76.1Transitory ileus of newbornNewborn ileus
P76.2Intestinal obstruction due to inspissated milkNewborn obstruction

Simple constipation in an infant, without obstruction, is coded with the K59.0- codes.

Pregnancy

Chapter 15 codes take sequencing priority for conditions in a pregnant patient. Constipation that complicates pregnancy is coded O99.61- (Diseases of the digestive system complicating pregnancy), with the sixth character for trimester (O99.611, O99.612, O99.613 or O99.619), followed by the K59.0- code. If the provider documents that the pregnancy is incidental to the visit, code the constipation with Z33.1 (Pregnant state, incidental) instead.

Documentation Checklist for Constipation Claims

  • Type of constipation in the provider’s words: slow transit, outlet dysfunction, chronic idiopathic, functional or other.
  • Chronicity, and whether the provider calls it idiopathic or functional.
  • Any medication the provider links to the constipation, with a statement that it was taken as prescribed.
  • Related diagnoses such as IBS-C, impaction, neurogenic bowel or pregnancy, with trimester.
  • The plan of care, so the diagnosis supports the E/M level, imaging or procedures billed.

Missing or contradictory diagnosis details are a frequent cause of front-end edits and payer requests for information. Our guides to the CO-16 denial code and to common medical claim denials cover how to correct them.

Need constipation, GI and adverse-effect codes assigned correctly the first time? Steady Medical Billing’s certified coding team reviews documentation against current ICD-10-CM guidelines before your claims go out.

Frequently Asked Questions

What is the ICD-10 code for constipation?

K59.00, Constipation, unspecified, is used when the provider documents constipation with no type or cause. K59.0 itself is a non-billable header, so choose K59.00, K59.01, K59.02, K59.03, K59.04 or K59.09 based on the documentation.

Is chronic constipation K59.04 or K59.09?

Chronic constipation with no further detail indexes to K59.09, Other constipation. Use K59.04, Chronic idiopathic constipation, only when the provider documents chronic idiopathic or functional constipation.

How do you code opioid-induced constipation?

Code K59.03, Drug induced constipation, first, followed by the adverse-effect code for the opioid, such as T40.2X5A for oxycodone, hydrocodone or morphine at an initial encounter. If the drug was misused, follow the poisoning guidelines instead.

Can K59.00 be coded with K58.1 for IBS with constipation?

No. K58.1, Irritable bowel syndrome with constipation, already includes the constipation. Symptoms routinely associated with a diagnosed condition are not coded separately.

Is there a newborn constipation ICD-10 code?

No. ICD-10-CM has no neonatal-specific constipation code. Infant constipation is coded with K59.0- codes, while P76 codes such as P76.0, Meconium plug syndrome, describe newborn intestinal obstruction and are used only when that is documented.

What is the ICD-10 code for constipation in pregnancy?

O99.61-, Diseases of the digestive system complicating pregnancy, with the sixth character for the trimester, followed by the K59.0- code for the type of constipation.

About the Authors

Momin Shah (Founder & CEO) and Quratulain Momin (Co-Founder) lead Steady Medical Billing LLC, founded in 2020. With a background in healthcare administration and over 10 years of experience in U.S. medical billing and revenue cycle operations, they help practices across the USA and Canada improve cash flow, reduce denials, and get paid what they deserve.

Table of Contents

Schedule a Consultation