Constipation ICD-10 Codes: Complete Guide for Accurate Coding

constipation icd 10

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-CM update cycle: Constipation codes are reviewed and updated annually by the Centers for Medicare and Medicaid Services (CMS). The sub-codes in this article reflect ICD-10-CM FY2024 guidelines. Always verify against the current fiscal year release before finalising clinical documentation.

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 CodeDescriptionWhen to Use
K59.00Constipation, unspecifiedType not specified in clinical documentation
K59.01Slow transit constipationColonic inertia; delayed gut motility confirmed by transit studies
K59.02Outlet dysfunction constipationPelvic floor dysfunction; dyssynergia; obstructive defecation syndrome
K59.03Drug-induced constipationOpioids, antidepressants, iron supplements, anticholinergics
K59.04Chronic idiopathic constipationLong-term constipation, no structural or biochemical cause; Rome IV criteria
K59.09Other constipationAcute, severe, or chronic constipation not fitting other sub-codes
K58.1IBS with constipationPain is primary feature; abdominal pain linked to defecation
Z87.39History of constipationPast / resolved; personal history code
Coding rule: Always use the most specific sub-code the documentation supports. K59.00 (unspecified) should only be assigned when clinical notes genuinely do not provide enough detail. Specificity improves reimbursement accuracy, audit defensibility, and clinical data quality.

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
CodeDescriptionClinical Context
K59.04Chronic idiopathic constipationPrimary chronic constipation, no identifiable cause
K59.09Other constipationChronic constipation with known contributing factors
K59.01Slow transit constipationChronic 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
TermPreferred ICD-10-CM CodeNotes
Colonic inertiaK59.01Same entity as slow transit constipation
Slow transit constipationK59.01Requires objective transit study confirmation
Colonic dysmotility (unspecified)K59.89Only if slow transit is NOT confirmed
Chronic colonic pseudo-obstructionK59.3Different entity, Ogilvie syndrome
Documentation requirement: K59.01 should only be assigned when slow transit has been confirmed by objective transit studies (radio-opaque marker test, wireless capsule motility study, or colonic scintigraphy). Without confirmation, K59.00 or K59.09 is more appropriate.

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.

FeatureFunctional Constipation (K59.04)IBS with Constipation (K58.1)
Abdominal painAbsent or mild, not a defining featurePresent and linked to bowel habits
Pain relief with defecationNot characteristicTypically yes
BloatingCommonCommon
Primary symptomDifficult or infrequent bowel movementsAbdominal pain + constipation
ICD-10 CodeK59.04 / K59.00K58.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 SubtypeICD-10-CM CodeDescription
IBS with constipation (IBS-C)K58.1Constipation predominant IBS with abdominal pain
IBS with diarrhoea (IBS-D)K58.0Diarrhoea predominant IBS
IBS mixed (IBS-M)K58.2Alternating constipation and diarrhoea
IBS unspecifiedK58.9IBS 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
Coder note: If the clinical note describes "alternating constipation and diarrhea" without explicitly documenting abdominal pain or IBS, query the provider before assigning K58.2. Without pain, K59.09 for constipation (with R19.7 for loose stools if needed) is more defensible.

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:

  1. Primary code: K59.09 (Other constipation), to capture the acute exacerbation that is the reason for the current encounter
  2. Secondary code: K59.04 (Chronic idiopathic constipation) or K59.01 (slow transit if confirmed by prior testing), to capture the underlying chronic condition
Coder tip: Do not code K59.04 + K59.09 for the same encounter without clear documentation that both the chronic baseline and the acute exacerbation are being addressed. The clinical note must use the phrase "acute exacerbation" or "acute worsening" of the 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 DescriptionICD-10-CM CodeHow to Capture Severity
Mild constipationK59.00 / K59.04Document 'mild' in clinical notes; code by type
Moderate constipationK59.04 / K59.09Document 'moderate' with frequency/duration details
Severe constipationK59.09Document 'severe'; add K56.7 if obstruction suspected
Constipation with obstructionK56.7Severity has escalated to a mechanical/functional obstruction
Constipation with impactionK56.41Document 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 ScenarioPrimary CodeSecondary Code
Faecal impaction with overflowK56.41 (Faecal impaction)R19.7 (Diarrhea, unspecified)
Severe constipation with overflow (no confirmed impaction)K59.09R19.7
Chronic constipation with recurrent overflowK59.04R19.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.

TestWhat It Confirms
Anorectal manometryParadoxical sphincter contraction during straining
Defecography (proctography)Structural outlet obstruction, rectocele, intussusception
Surface EMG (electromyography)Puborectalis dyssynergia
Balloon expulsion testInability to expel a 50ml rectal balloon
Documentation requirement: Without documented objective testing, K59.02 should not be assigned. Use K59.00 with clinical notes flagging suspected outlet dysfunction and pending investigation.

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 ClassExample AgentsAdditional Code Category
Opioid analgesicsMorphine, oxycodone, tramadolT40.2x5A (adverse effect)
Tricyclic antidepressantsAmitriptyline, nortriptylineT43.015A
AnticholinergicsOxybutynin, solifenacinT44.3x5A
Iron supplementsFerrous sulfate, ferrous gluconateT45.4x5A
Calcium channel blockersVerapamil, diltiazemT46.1x5A
Antacids (aluminium-based)Aluminium hydroxideT47.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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. Check for pelvic floor dysfunction documentation. If anorectal manometry, defecography, or surface EMG confirms outlet dysfunction → use K59.02.
  6. 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.
  7. 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.
Common mistake: Assigning K59.04 when the clinical notes say "chronic constipation" but do not document Rome IV criteria or rule out a structural cause. K59.04 requires documented exclusion of secondary causes.

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.

SituationCorrect Code
Active constipation, type unspecifiedK59.00
Active chronic constipationK59.04 or K59.09
Past / resolved constipation (history)Z87.39
Constipation as reason for encounterK59.00 as primary diagnosis
Constipation secondary to another conditionK59.0x as secondary code; primary condition coded first

ICD-10 Constipation Code Structure Explained

Code SegmentWhat It Means
KChapter XI, Diseases of the Digestive System
K59Block: Other functional intestinal disorders
K59.0Category: Constipation
K59.04Sub-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

Q What does 'hx of constipation ICD-10' mean, and is it the same as Z87.39?

'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.

Q Can I use two constipation ICD-10 codes on the same claim?

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.

Q What happens if I code K59.00 when K59.04 is clinically supported?

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.

Q Does ICD-10-CM have a code for constipation caused by hypothyroidism or diabetes?

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.

Q Is there a separate ICD-10 code for constipation in children or infants?

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.

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

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.

Q When do ICD-10-CM constipation codes get updated, and how do I stay current?

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.

Q What is the ICD-10 code if a patient has both IBS with constipation and chronic idiopathic constipation?

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.

Back to constipation articles