Constipation ICD-10 Codes: Complete Guide for Accurate Coding

Published on Sun May 17 2026
✏️ Quick Answer
The ICD-10 code for constipation is K59.0, the parent category. Under ICD-10-CM, this expands into seven sub-codes by constipation type. IBS with constipation uses a separate code: K58.1.
- K59.00, Constipation, unspecified (use only when type is undocumented)
- K59.01, Slow transit constipation (requires transit study confirmation)
- K59.02, Outlet dysfunction constipation (pelvic floor / anorectal dyssynergia)
- K59.03, Drug-induced constipation (opioids, antidepressants, iron)
- K59.04, Chronic idiopathic constipation (Rome IV criteria; no identifiable cause)
- K59.09, Other constipation (acute, severe, or chronic not elsewhere classified)
- K58.1, IBS with constipation (separate category; abdominal pain is the defining feature)
- Z87.39, Personal history of constipation (past/resolved; not an active diagnosis)
There is no single universal constipation code, there are eight. Using K59.00 when K59.04 applies is not a minor rounding error; it can trigger claim denials, audit flags, and gaps in clinical data that affect the patient's treatment record.
The ICD-10 code for constipation is K59.0, the parent category covering all constipation types. Under ICD-10-CM (the US clinical modification, also used in many international health systems), K59.0 expands into seven sub-codes that capture the specific mechanism, duration, and cause of constipation. Read more about what is constipation and how it is classified medically.
ICD-10 Code for Constipation, The Complete Breakdown
K59.0 is the parent ICD-10-CM category code for all constipation types. It falls under Chapter XI: Diseases of the Digestive System, block K55–K64 (Other functional intestinal disorders). K59.0 expands into seven clinical sub-codes, each corresponding to a specific constipation mechanism, because treatment, documentation, and reimbursement pathway differ by type.
| ICD-10 Code | Description | When to Use |
|---|---|---|
| K59.00 | Constipation, unspecified | Type not specified in clinical documentation |
| K59.01 | Slow transit constipation | Colonic inertia; delayed gut motility confirmed by transit studies |
| K59.02 | Outlet dysfunction constipation | Pelvic floor dysfunction; dyssynergia; obstructive defecation syndrome |
| K59.03 | Drug-induced constipation | Opioids, antidepressants, iron supplements, anticholinergics |
| K59.04 | Chronic idiopathic constipation | Long-term constipation, no structural or biochemical cause; Rome IV criteria |
| K59.09 | Other constipation | Acute, severe, or chronic constipation not fitting other sub-codes |
| K58.1 | IBS with constipation | Pain is primary feature; abdominal pain linked to defecation |
| Z87.39 | History of constipation | Past / resolved; personal history code |
Chronic Constipation ICD-10, Codes and Clinical Criteria
The ICD-10 code for chronic constipation is most accurately represented by K59.04 (Chronic idiopathic constipation) or K59.09 (Other constipation, which includes chronic constipation not elsewhere classified). Chronic constipation documentation requires meeting the Rome IV criteria:
- Fewer than 3 spontaneous bowel movements per week for at least 3 months
- One or more of: straining, lumpy/hard stools (Bristol Type 1–2), incomplete evacuation sensation, anorectal obstruction sensation, or manual manoeuvres to facilitate defecation
- Symptoms present for at least 6 months total
- Loose stools are rarely present without laxative use
| Code | Description | Clinical Context |
|---|---|---|
| K59.04 | Chronic idiopathic constipation | Primary chronic constipation, no identifiable cause |
| K59.09 | Other constipation | Chronic constipation with known contributing factors |
| K59.01 | Slow transit constipation | Chronic constipation with confirmed delayed colonic transit |
Chronic constipation is closely linked to gut microbiome imbalance, poor dietary fibre, and lifestyle factors. Understanding causes of constipation helps both in clinical documentation and in designing effective treatment.
Slow Transit Constipation ICD-10, K59.01 and Colonic Inertia
The slow transit constipation ICD-10 code is K59.01. Colonic inertia ICD-10 code is also K59.01, the two terms describe the same clinical entity.
Clinical features of slow transit constipation:
- Infrequent bowel movements (often 1–2 per week or less)
- Minimal urge to defecate
- Diffuse abdominal bloating and discomfort
- Confirmed by colonic transit studies (radio-opaque marker study or scintigraphy)
- Does not respond well to laxatives alone, often requires motility agents
| Term | Preferred ICD-10-CM Code | Notes |
|---|---|---|
| Colonic inertia | K59.01 | Same entity as slow transit constipation |
| Slow transit constipation | K59.01 | Requires objective transit study confirmation |
| Colonic dysmotility (unspecified) | K59.89 | Only if slow transit is NOT confirmed |
| Chronic colonic pseudo-obstruction | K59.3 | Different entity, Ogilvie syndrome |
Functional Constipation ICD-10, K59.04 vs IBS with Constipation K58.1
Functional constipation ICD-10 refers to constipation with no identifiable structural, neurological, or metabolic cause, a diagnosis of exclusion. The most appropriate code is K59.04 (Chronic idiopathic constipation) or K59.00 when documentation does not specify idiopathic chronicity.
| Feature | Functional Constipation (K59.04) | IBS with Constipation (K58.1) |
|---|---|---|
| Abdominal pain | Absent or mild, not a defining feature | Present and linked to bowel habits |
| Pain relief with defecation | Not characteristic | Typically yes |
| Bloating | Common | Common |
| Primary symptom | Difficult or infrequent bowel movements | Abdominal pain + constipation |
| ICD-10 Code | K59.04 / K59.00 | K58.1 |
IBS with Constipation ICD-10, Full IBS Code Table
IBS with constipation code is K58.1, this falls under the Irritable Bowel Syndrome category (K58), not the constipation category (K59). This distinction matters for accurate coding and treatment pathway assignment.
| IBS Subtype | ICD-10-CM Code | Description |
|---|---|---|
| IBS with constipation (IBS-C) | K58.1 | Constipation predominant IBS with abdominal pain |
| IBS with diarrhoea (IBS-D) | K58.0 | Diarrhoea predominant IBS |
| IBS mixed (IBS-M) | K58.2 | Alternating constipation and diarrhoea |
| IBS unspecified | K58.9 | IBS without subtype specification |
Alternating Constipation and Diarrhea ICD-10, K58.2
Alternating constipation and diarrhea ICD-10 code is K58.2, coded as IBS with mixed bowel habits, not as a constipation code. The key question is: is abdominal pain present and linked to defecation?
- If yes, this is IBS-Mixed (K58.2), not constipation
- If no, and stools alternate without pain, use K59.09 for the constipation episodes; loose stool episodes may reflect overflow/paradoxical diarrhea
Acute on Chronic Constipation ICD-10, How to Code This Combination
Acute on chronic constipation has no single dedicated ICD-10 code, it requires dual coding. The phrase describes a patient with pre-existing chronic constipation who presents with an acute exacerbation, typically triggered by a dietary change, medication, travel, illness, or hospitalisation.
How to code it:
- Primary code: K59.09 (Other constipation), to capture the acute exacerbation that is the reason for the current encounter
- Secondary code: K59.04 (Chronic idiopathic constipation) or K59.01 (slow transit if confirmed by prior testing), to capture the underlying chronic condition
Severe, Acute, and Overflow Diarrhea, ICD-10 Coding
Severe and Acute Constipation ICD-10
Neither "severe" nor "acute" constipation has a dedicated unique ICD-10 code, both are captured under K59.09 (Other constipation) with appropriate clinical documentation. Severity must be captured in clinical documentation rather than a separate code.
| Severity Description | ICD-10-CM Code | How to Capture Severity |
|---|---|---|
| Mild constipation | K59.00 / K59.04 | Document 'mild' in clinical notes; code by type |
| Moderate constipation | K59.04 / K59.09 | Document 'moderate' with frequency/duration details |
| Severe constipation | K59.09 | Document 'severe'; add K56.7 if obstruction suspected |
| Constipation with obstruction | K56.7 | Severity has escalated to a mechanical/functional obstruction |
| Constipation with impaction | K56.41 | Document impaction clinically confirmed |
Constipation with Overflow Diarrhea ICD-10
Constipation with overflow diarrhea requires dual coding, both the constipation/impaction code and the symptom code for loose stools. Overflow diarrhea (paradoxical diarrhea) occurs when liquid stool leaks past a hard impacted mass, coding only R19.7 without capturing the underlying constipation is a clinical documentation failure.
| Clinical Scenario | Primary Code | Secondary Code |
|---|---|---|
| Faecal impaction with overflow | K56.41 (Faecal impaction) | R19.7 (Diarrhea, unspecified) |
| Severe constipation with overflow (no confirmed impaction) | K59.09 | R19.7 |
| Chronic constipation with recurrent overflow | K59.04 | R19.7 |
Outlet Dysfunction and Drug-Induced Constipation, K59.02 and K59.03
Obstructive Defecation ICD-10, K59.02
Obstructive defecation syndrome ICD-10 code is K59.02, the same code used for outlet dysfunction constipation and all related synonyms: dyssynergic defecation, pelvic floor dyssynergia, anismus, non-relaxing puborectalis syndrome, and functional outlet obstruction.
| Test | What It Confirms |
|---|---|
| Anorectal manometry | Paradoxical sphincter contraction during straining |
| Defecography (proctography) | Structural outlet obstruction, rectocele, intussusception |
| Surface EMG (electromyography) | Puborectalis dyssynergia |
| Balloon expulsion test | Inability to expel a 50ml rectal balloon |
Drug-Induced Constipation ICD-10, K59.03
Drug-induced constipation code is K59.03, and it requires a second code identifying the causative drug. K59.03 is one of the most commonly undercoded constipation types; coders often assign K59.00 without capturing the drug relationship.
| Drug Class | Example Agents | Additional Code Category |
|---|---|---|
| Opioid analgesics | Morphine, oxycodone, tramadol | T40.2x5A (adverse effect) |
| Tricyclic antidepressants | Amitriptyline, nortriptyline | T43.015A |
| Anticholinergics | Oxybutynin, solifenacin | T44.3x5A |
| Iron supplements | Ferrous sulfate, ferrous gluconate | T45.4x5A |
| Calcium channel blockers | Verapamil, diltiazem | T46.1x5A |
| Antacids (aluminium-based) | Aluminium hydroxide | T47.1x5A |
Post-operative constipation: Code as K59.03 if caused by opioid analgesics, or K59.09 if not drug-related. If constipation is a documented surgical complication, K91.89 (Other postprocedural complications of digestive system) may be appropriate alongside K59.09.
How to Select the Right Constipation ICD-10 Code: Step-by-Step
- Confirm the condition is active. If the constipation is resolved, do not use K59 codes. Use Z87.39 (personal history of digestive system disease). K59 codes are for active, current conditions only.
- Check for a documented cause. If the clinical note documents a causative drug (opioid, iron, antidepressant, anticholinergic) → use K59.03 plus an additional code identifying the causative substance.
- Check for documented duration. If symptoms have been present for 6+ months with Rome IV features and no identifiable structural cause → use K59.04. If chronic but a cause is identified → use K59.09 with appropriate secondary codes.
- Check for confirmed transit study results. If radio-opaque marker study or scintigraphy confirms delayed colonic transit → use K59.01. Without objective confirmation, do not assign K59.01.
- Check for pelvic floor dysfunction documentation. If anorectal manometry, defecography, or surface EMG confirms outlet dysfunction → use K59.02.
- Check whether abdominal pain is the dominant symptom. If recurrent abdominal pain is the defining feature AND it is linked to defecation → this is IBS-C. Use K58.1, not K59.
- Default to the least specific code only when documentation is insufficient. If none of the above criteria are documented → use K59.00 (unspecified) and query the provider for clarification before finalising.
History of Constipation ICD-10, Z87.39
A history of constipation ICD-10, meaning past constipation that is currently resolved, is not coded as K59.0. The correct code is Z87.39 (Personal history of other diseases of the digestive system). There is no specific "history of constipation" Z-code, so Z87.39 is used as the appropriate personal history category.
| Situation | Correct Code |
|---|---|
| Active constipation, type unspecified | K59.00 |
| Active chronic constipation | K59.04 or K59.09 |
| Past / resolved constipation (history) | Z87.39 |
| Constipation as reason for encounter | K59.00 as primary diagnosis |
| Constipation secondary to another condition | K59.0x as secondary code; primary condition coded first |
ICD-10 Constipation Code Structure Explained
| Code Segment | What It Means |
|---|---|
| K | Chapter XI, Diseases of the Digestive System |
| K59 | Block: Other functional intestinal disorders |
| K59.0 | Category: Constipation |
| K59.04 | Sub-code: Chronic idiopathic constipation |
The digit after the decimal adds clinical specificity. Payers increasingly require sub-code specificity; submitting K59.00 for a documented case of chronic idiopathic constipation may be flagged in a coding audit. ICD-10-CM is maintained by CMS and the National Center for Health Statistics (NCHS). Annual updates take effect on October 1 each fiscal year.
What the Evidence Says: Constipation Classification and ICD-10 Accuracy
- Prevalence: Chronic constipation affects approximately 14% of the global population, with higher rates in women and adults over 60. Despite this prevalence, up to 40% of cases are managed without a formal diagnosis code, typically because mild cases are self-treated. [Suares NC, Ford AC. American Journal of Gastroenterology, 2011]
- Under-coding of subtypes: Studies on ICD-10 coding accuracy in gastrointestinal disorders show that unspecified codes (equivalent to K59.00) are assigned in 50–60% of constipation encounters even when clinical documentation supports a more specific sub-code. This leads to systematic underestimation of slow transit and outlet dysfunction prevalence. [Dellon ES et al., Gastrointestinal Endoscopy, 2014]
- Rome IV criteria and coding alignment: The Rome IV criteria for functional constipation (published in Gastroenterology, May 2016) were designed to improve diagnostic precision and, by extension, coding accuracy. Meeting Rome IV criteria for chronic constipation directly maps to K59.04.
- Drug-induced constipation: Opioid-induced constipation (OIC) is estimated to affect 40–60% of patients on chronic opioid therapy. Yet K59.03 remains one of the least-used K59 sub-codes in real-world billing data. [Camilleri M et al., Neurogastroenterology and Motility, 2014]
What This Means for You
Whether you are a clinical coder, a physician, or a patient reviewing your diagnosis record, the right constipation ICD-10 code is not a bureaucratic detail. It determines what treatment pathway is documented, what data informs future guidelines, and whether the clinical record accurately reflects what is happening.
- Coders: Bookmark the step-by-step code selection guide above and cross-reference against your facility's current-year ICD-10-CM Tabular List before finalising any K59 assignment
- Clinicians: Add Rome IV duration criteria (6-month history, frequency, stool consistency) and any causative drug or study result to your standard constipation documentation template
- Patients: If your diagnosis report shows a constipation ICD-10 code, ask your doctor which sub-code was assigned and what it means for your treatment plan, the code type indicates whether dietary changes, pelvic floor physiotherapy, or motility investigation is the next step
- Verify code currency: ICD-10-CM updates annually on October 1, confirm your codes are from the current fiscal year release
FAQs: Constipation ICD-10 Codes
'Hx of constipation' means personal history of constipation, a past condition that has resolved. 'Hx' is the clinical abbreviation for history. The correct ICD-10-CM code for hx of constipation is Z87.39 (Personal history of other diseases of the digestive system). There is no more specific 'history of constipation' Z-code, so Z87.39 is used for any resolved digestive system condition including past constipation.
Yes, dual coding is appropriate when two distinct constipation-related conditions are both documented and both addressed in the encounter. The most common example is acute on chronic constipation: K59.09 (acute exacerbation, primary) plus K59.04 or K59.01 (underlying chronic condition, secondary). Do not assign K59.00 and K59.04 together for the same clinical presentation, they overlap and the more specific code takes precedence.
Using K59.00 when documentation supports K59.04 is a specificity error. In an audit, it may be treated as undercoding, the clinical record supports a more specific code than was assigned. Consequences can include claim adjustment, reduced quality metric scores, and in repeat-audit scenarios, potential compliance review. Always use the most specific code the documentation supports.
Constipation secondary to a metabolic or endocrine cause is coded as K59.09 (Other constipation) as the constipation code, with the primary underlying condition coded first. For hypothyroidism-related constipation: code E03.9 (Hypothyroidism, unspecified) as the primary condition, then K59.09 as the secondary code. For diabetic gastroparesis with constipation: E11.43 (Type 2 diabetes with diabetic autonomic neuropathy) takes precedence.
No. The K59 codes apply across all age groups. For infants and children, the same K59.00–K59.09 codes are used with age-appropriate documentation. Exceptions: P76.1 (Transitory ileus of newborn) and P76.8 (Other specified intestinal obstruction of newborn) exist for neonatal constipation presentations in the first 28 days of life. Functional constipation in children also meets Rome IV paediatric criteria, which differ slightly from adult criteria, but the ICD-10-CM code (K59.04 or K59.09) is the same.
Constipation during pregnancy is coded using the obstetric complication codes, not the K59 series directly. The appropriate code is O99.611 (Diseases of the digestive system complicating pregnancy) for constipation that complicates the pregnancy. If constipation is incidental and not complicating the pregnancy itself, K59.00 or K59.04 may be appropriate as a secondary code. Always follow the attending obstetrician's documentation and sequencing.
ICD-10-CM codes are updated annually by CMS and NCHS, with changes taking effect on October 1 each fiscal year. For constipation codes, the K59 sub-codes were last significantly revised with the addition of K59.03 (drug-induced) and K59.04 (chronic idiopathic) in the mid-2010s. Monitor the annual ICD-10-CM Tabular List updates at the CMS website and the NCHS FY release notes. Your facility's health information management (HIM) team should distribute update summaries each September.
Rome IV criteria deliberately separate IBS-C (K58.1, pain-dominant) from functional constipation (K59.04, no pain). When a patient appears to meet criteria for both, the primary differentiator is abdominal pain: if pain is the dominant symptom and is relieved by defecation, IBS-C (K58.1) takes precedence. If constipation is primary and pain is absent or minimal, K59.04 is more appropriate. Only one code from each category should be assigned per encounter unless two distinct conditions are independently documented and addressed.
Disclaimer
This article is for informational and educational purposes only. ICD-10-CM codes are subject to annual updates, always verify current codes with the official ICD-10-CM coding guidelines, your institution's coding compliance team, or the current-year CMS Tabular List before use in clinical billing or documentation. Consult a qualified clinical coder, physician, or healthcare compliance professional for specific coding requirements.