ICD-10-CM 2027 diagnosis code
K40Inguinal hernia
K40 is a header code, so it can't be reported by itself. Choose one of the 6 more specific codes beneath it.
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 K40
K40 is the ICD-10-CM diagnosis code for inguinal hernia. It belongs to block K40-K46 (hernia) and chapter 11 (diseases of the digestive system). It is a header code, so it can't be reported by itself; one of its 6 subcodes must be used instead.
To report this condition, pick the subcode that matches the documentation: K40.0 (gangrene), K40.1 (gangrene), K40.2 (gangrene), K40.3 (gangrene), K40.4 (gangrene) and K40.9 (gangrene).
It has been part of ICD-10-CM since the code set took effect on October 1, 2015 and hasn't changed since.
Specific codes under K40
- K40.0Bilateral inguinal hernia, with obstruction, without gangrene
- K40.1Bilateral inguinal hernia, with gangrene
- K40.2Bilateral inguinal hernia, without obstruction or gangrene
- K40.3Unilateral inguinal hernia, with obstruction, without gangrene
- K40.4Unilateral inguinal hernia, with gangrene
- K40.9Unilateral inguinal hernia, without obstruction or gangrene
Coding notes
- bubonocele
- direct inguinal hernia
- double inguinal hernia
- indirect inguinal hernia
- inguinal hernia NOS
- oblique inguinal hernia
- scrotal hernia
Notes that apply from higher levels
Instructions written at a parent level also apply to K40.
Broader instructions also apply from K40-K46 Hernia and Chapter 11: Diseases of the digestive system.
Codes whose notes reference K40
- K56.7Excludes2
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 K40
Is K40 billable?
- No. K40 is a header code. Report one of its more specific subcodes instead.