Skip to content
Dx

ICD-10-CM 2027

ICD-10 code for self-harm

Choose a code from the options below based on the documentation.

From the official ICD-10-CM alphabetic index entry “Self-harm (attempted)”. Page updated September 29, 2026.

About coding self-harm

The official ICD-10-CM index doesn't give a single default code for self-harm; the code depends on the details below.

More specific self-harm codes (official index)

  • history (personal)
  • in family Z81.8 — Family history of other mental and behavioral disorders
  • nonsuicidal Z91.52 — Personal history of nonsuicidal self-harm
  • suicidal Z91.51 — Personal history of suicidal behavior
  • nonsuicidal R45.88 — Nonsuicidal self-harm

Common questions about self-harm ICD-10 codes

What is the ICD-10 code for nonsuicidal self-harm?

R45.88 — Nonsuicidal self-harm.