ICD-10-CM 2027 diagnosis code
K59.4Anal spasm
K59.4 is a valid, billable ICD-10-CM code for anal spasm. It can be reported on claims for dates of service from October 1, 2026 – September 30, 2027.
Looking up by condition? See ICD-10 code for Proctospasm.
Code unchanged since ICD-10-CM took effect on October 1, 2015. Source: official FY2027 ICD-10-CM release from CDC/NCHS and CMS. Page updated September 29, 2026. About our data
About K59.4
K59.4 is the ICD-10-CM diagnosis code for anal spasm. It belongs to category K59 (other functional intestinal disorders), block K55-K64 (other diseases of intestines) and chapter 11 (diseases of the digestive system). It is billable, so it can be reported on its own for dates of service from October 1, 2026 through September 30, 2027.
Within K59 (other functional intestinal disorders), K59.4 is specifically for anal spasm. Related codes cover constipation (K59.0), functional diarrhea (K59.1), neurogenic bowel, not elsewhere classified (K59.2), megacolon, not elsewhere classified (K59.3), other specified functional intestinal disorders (K59.8) and functional intestinal disorder, unspecified (K59.9).
It is not a CC or MCC, so as a secondary diagnosis it doesn't change the MS-DRG severity level.
In MS-DRG v44.0, it is part of the grouping logic for DRG 391 (Esophagitis, Gastroenteritis and Miscellaneous Digestive Disorders with MCC, relative weight 1.2392) and DRG 392 (Esophagitis, Gastroenteritis and Miscellaneous Digestive Disorders without MCC, relative weight 0.7645), in MDC 06 (Diseases and Disorders of the Digestive System), as a principal or secondary diagnosis. The DRG a claim lands in depends on the principal diagnosis, procedures and any CC/MCC secondary diagnoses.
It has been part of ICD-10-CM since the code set took effect on October 1, 2015 and hasn't changed since.
Before ICD-10, this condition was coded in ICD-9-CM as 564.6 (anal spasm).
Coding notes
- Proctalgia fugax
Notes that apply from higher levels
Instructions written at a parent level also apply to K59.4.
Broader instructions also apply from Chapter 11: Diseases of the digestive system.
Alphabetic index entries
5 entriesTerms in the official ICD-10-CM index that lead to K59.4.
MS-DRG v44.0 grouping
All DRGs →Inpatient MS-DRGs this diagnosis can group to, as the principal or a secondary diagnosis, depending on the rest of the claim.
MDC 06 · Diseases and Disorders of the Digestive System
ICD-9-CM equivalent
Converter →- 564.6Anal spasmexact
From the CMS 2018 General Equivalence Mappings (GEMs), the final GEMs release.
Code history
- 2016
- 2017
- 2018
- 2019
- 2020
- 2021
- 2022
- 2023
- 2024
- 2025
- 2026
- 2027
- FY2016 (effective 10/1/2015): Added (first year of ICD-10-CM)
- No changes since FY2016.
Common questions about K59.4
Is K59.4 billable?
- Yes. K59.4 is a billable/specific ICD-10-CM code valid for FY2027 (October 1, 2026 – September 30, 2027).
Can K59.4 be used as a principal diagnosis?
- Yes. The Medicare Code Editor doesn't restrict K59.4 as a principal diagnosis.
Is K59.4 a CC or MCC?
- No. K59.4 is neither a CC nor an MCC under MS-DRG v44.0.
What DRG does K59.4 group to?
- K59.4 is used in the MS-DRG v44.0 logic for MS-DRG 391 (Esophagitis, Gastroenteritis and Miscellaneous Digestive Disorders with MCC) and MS-DRG 392 (Esophagitis, Gastroenteritis and Miscellaneous Digestive Disorders without MCC). Which one applies depends on whether it is the principal diagnosis and on the rest of the claim.
What is the ICD-9 code for K59.4?
- The CMS General Equivalence Mappings map K59.4 to ICD-9-CM 564.6.