F42.9 — Obsessive-compulsive disorder, unspecified
F42.9

What this code means
Obsessive-compulsive disorder (OCD) involves intrusive unwanted thoughts and repetitive behaviours performed to relieve anxiety.
Also called: ocd, obsessive-compulsive disorder.
When this code is used
Used for obsessive-compulsive disorder when the type is not specified.
Where it sits in ICD-10-CM
Code F42.9 belongs to Chapter 5: Mental, behavioral and neurodevelopmental disorders, which covers codes F01–F99 in the FY2027 ICD-10-CM tabular list. The official description above is copied verbatim from the CDC/NCHS FY2027 code file.
Watch: related videos
Frequently asked questions
What is ICD-10-CM code F42.9?
F42.9 is the ICD-10-CM diagnosis code for “Obsessive-compulsive disorder, unspecified”. Obsessive-compulsive disorder (OCD) involves intrusive unwanted thoughts and repetitive behaviours performed to relieve anxiety.
When is code F42.9 used?
Used for obsessive-compulsive disorder when the type is not specified. It belongs to Chapter 5 of ICD-10-CM (Mental, behavioral and neurodevelopmental disorders).
This guide explains ICD-10-CM codes in plain language for patients, students and other readers. It is educational information only — not coding, billing or medical advice. The code recorded for any real encounter is assigned from the full clinical documentation by the treating team and qualified coders, and only they can decide which code fits a specific case.
More codes in Chapter 5
F03.90 — Unspecified dementia, unspecified severity, without behavioral disturbance, psychotic disturbance, mood disturbance, and anxiety
F10.10 — Alcohol abuse, uncomplicated
F10.20 — Alcohol dependence, uncomplicated
F11.10 — Opioid abuse, uncomplicated
F11.20 — Opioid dependence, uncomplicated
F12.20 — Cannabis dependence, uncomplicated