Skip to main content
Headway

Billing and coding

ICD-10 codes for OCD

Discover OCD’s ICD‑10 code (F42), subtype variations, related mental health codes, and why precise coding matters for treatment and billing.

October 10, 2025

9 min read

Anxiety disorders are one of the most common conditions therapists treat — and obsessive-compulsive disorder is one example. Marked by unwanted obsessive thoughts and compulsive behaviors, OCD can significantly impair a client’s life.

Understanding ICD-10 code for obsessive-compulsive disorder can help ensure a proper diagnosis, streamlining your billing process and preventing frustrating payment delays. Below, learn more about ICD-10 codes for OCD and how to apply them in your practice.

What is obsessive‑compulsive disorder (OCD)?

Obsessive-compulsive disorder (OCD) is an anxiety disorder characterized by intrusive, fearful thoughts called obsessions. These obsessions must have some sort of distress, such as anxiety. Common obsessions include: 

  • Fear of contamination of germs
  • Fear of harming oneself or others
  • Unwanted sexual thoughts 
  • Fear of illness or disease
  • Fear of losing something important 
  • The need to organize or arrange things in a precise way
  • Fear of acting on inappropriate thoughts

With OCD, these obsessions may lead to compulsive behaviors that attempt to minimize distress, though compulsions are not always present. Common compulsions include: 

  • Excessive cleaning or excessive handwashing
  • Avoiding places or situations that worsen the fear
  • Repeated checking (that the door is locked or the oven is off, for example)
  • Reassurance seeking
  • Repeating routine activities or body movements 
  • Counting while performing a task 
  • Ordering things in a certain way 

OCD can be distressing and significantly impact an individual’s life. Constant worry and performing compulsions can be mentally and physically exhausting and may interfere with someone’s ability to function in relationships, at work or school, or in other areas of daily life.

Practice in-network with confidence

Simplify insurance and save time on your entire workflow — from compliance and billing to credentialing and admin.

Primary ICD‑10 code for OCD

OCD falls under section F40-F48, or "Anxiety, dissociative, stress-related, somatoform and other nonpsychotic mental disorders.” The specific ICD-10 F code used for OCD is F42, “Obessive-compulsive disorder.”

Importantly, ICD-10 code F42 is not used on its own when billing insurance, as providers require the specific code that reflects the type of OCD. 

ICD‑10 code variants for OCD

There are many different subtypes of OCD, so it’s important to use the correct, corresponding ICD-10 code based on your client’s diagnosis. 

  • F42.2, Mixed obsessional thoughts and acts: OCD with both intrusive thoughts and compulsive behaviors clearly present.
  • F42.3, Hoarding disorder: Persistent difficulty discarding possessions, leading to significant clutter and impairment.
  • F42.4, Excoriation (skin-picking) disorder: Repetitive skin-picking that causes lesions or distress.
  • F42.8, Other obsessive-compulsive disorder: Atypical or less common OCD presentations not captured by other codes.
  • F42.9, Obsessive-compulsive disorder, unspecified: Used when OCD is diagnosed but specific details aren’t documented.

It’s important you make a clear, accurate and specific diagnosis that is appropriate to your individual patient clinical picture. These examples should be for reference and are not intended to guide a diagnosis. The client must meet diagnostic criteria for the F code they are assigned.

Why accurate ICD‑10 coding for OCD matters

ICD-10 codes play an important role in how OCD and other conditions are identified and managed in a therapy practice. For billing, these diagnostic codes are the standardized language insurance companies use to process claims (and ensure you’re paid for your services). Without the right code, companies might delay or deny payment. 

Beyond billing, ICD-10 codes support accurate documentation and treatment planning for clients with OCD. Choosing the most specific OCD-related code helps clarify your client’s symptom, guides evidence-based treatment approaches, and ensures continuity of care if the client changes providers. Detailed coding also helps make sure your records align with compliance requirements, to prevent stress during potential audits.

Some people with OCD have other mental health disorders, and you’ll want to include any relevant diagnosis in your documentation. OCD frequently coexists with anxiety disorder ICD-10 codes, such as: 

  • F40.0, Agoraphobia: Characterized by an intense, irrational fear of venturing out into open places or situations in which help (or escape) might not be available should excessive anxiety or panic symptoms develop.
  • F40.1, Social phobias: Intense fear of social or performance situations.
  • F40.2, Specific (isolated) phobias: Excessive fear triggered by particular objects or situations, such as flying or heights. 
  • F40.8, Other phobic anxiety disorders: Phobias that don’t fit neatly into the above categories.
  • F40.9: Phobic anxiety disorder, unspecified: When a phobic disorder is present but documentation doesn’t include details like type, severity, or cause.
  • F41.0, Panic disorder [episodic paroxysmal anxiety]: Recurrent, unexpected panic attacks.
  • F41.1, Generalized anxiety disorder (GAD): Chronic, excessive worry about multiple life areas.
  • F41.2, Mixed anxiety and depressive disorder: Symptoms of both anxiety and depression, with neither predominant.
  • F41.3, Other mixed anxiety disorders: Mixed anxiety presentations not classified elsewhere.
  • F41.8, Other specified anxiety disorders: Atypical anxiety disorders outside the main categories.
  • F41.9, Anxiety disorder, unspecified: Used when an anxiety disorder is identified but not further defined.

Treatment and clinical considerations

While OCD can be distressing and impairing, there are several effective, evidence-based psychotherapy treatments that can help manage symptoms. Learning about the treatment options OCD can help you come up with the best OCD treatment plan for your client.

Cognitive-behavioral therapy, or CBT, focuses on helping people recognize the link between their thoughts, emotions, and behaviors. It’s commonly used to treat anxiety symptoms, including OCD. 

Exposure and response prevention, or ERP, is often seen as the first-line therapy treatment for OCD. It’s a type of CBT that helps to reduce anxiety and compulsions by gently exposing people to their obsessions over time. Other OCD treatments may include: 

  • Acceptance and commitment therapy (ACT)
  • Dialectical behavioral therapy (DBT)
  • Mindfulness-based therapy

Resources & next steps

OCD can be complex, and what one client’s needs may be different from others, even with the same condition. To learn more about OCD symptoms and treatments, visit: 

Expand your practice with Headway

Want to take your practice to the next level while keeping billing and documentation stress low? Headway makes it simple. From handling ICD-10 codes for OCD and beyond, to streamlining credentialing and admin work, Headway frees you up to focus on clients. Join today and discover how easy practice growth can be.

This content is for general informational and educational purposes only and does not constitute clinical, legal, financial, or professional advice. All decisions should be made at the discretion of the individual or organization, in consultation with qualified clinical, legal, or other appropriate professionals.

© 2025 Therapymatch, Inc. dba Headway. All rights reserved. No part of this publication may be reproduced without permission.