Mental Health ICD-10 Codes 2026: Common F Codes, Z Codes and FY2027 Changes

Mental Health ICD-10 Codes_ Complete Behavioral Health Guide

Mental health diagnoses are coded from Chapter 5 of ICD-10-CM, codes F01 to F99, with the most common outpatient codes being depression (F32 and F33), anxiety (F41), trauma and adjustment disorders (F43) and ADHD (F90), while Z55 to Z65 codes add social risk factors as secondary diagnoses. Sleep problems treated in their own right are coded separately; see our insomnia ICD-10 guide.

Every therapy or psychiatry claim needs a diagnosis that supports medical necessity for the CPT code billed. A vague or mismatched code is one of the quickest ways to get a session denied, even when the clinical work was flawless.

This guide lists the ICD-10-CM codes behavioral health practices use most, validated against the FY2027 code set that took effect on October 1, 2026. It also explains specificity rules, when Z codes help or hurt, and why the name in DSM-5-TR does not always match the ICD-10-CM title on the claim. For the procedure side, see our mental health CPT codes reference; for the full billing cycle, see our mental health billing guide.

Key Takeaways

  • Use the ICD-10-CM code set in effect on the date of service. FY2027 runs from October 1, 2026 to September 30, 2027.
  • FY2027 made only one change to the mental health chapter: new code F64.A, Gender identity disorder, in remission.
  • Code to the highest specificity documented: episode (single or recurrent), severity and remission status for depression, and type for ADHD and PTSD.
  • Outpatient claims never code rule-out or probable diagnoses. Code the symptoms, such as R45.851 for suicidal ideations, until the diagnosis is confirmed.
  • SDOH Z codes (Z55 to Z65) can come from any care team member’s documentation or a patient’s self-report, but they are rarely accepted as the only diagnosis for psychotherapy.

How Chapter 5 (F01-F99) Is Organized

BlockICD-10-CM titleCommon examples
F01-F09Mental disorders due to known physiological conditionsDementia and delirium codes
F10-F19Mental and behavioral disorders due to psychoactive substance useAlcohol, opioid, cannabis use disorders
F20-F29Schizophrenia, schizotypal, delusional, and other non-mood psychotic disordersSchizophrenia, schizoaffective disorder
F30-F39Mood [affective] disordersDepression, bipolar, dysthymia
F40-F48Anxiety, dissociative, stress-related, somatoform and other nonpsychotic mental disordersGAD, panic, OCD, PTSD, adjustment
F50-F59Behavioral syndromes associated with physiological disturbances and physical factorsEating disorders, sleep disorders not due to a substance
F60-F69Disorders of adult personality and behaviorBorderline personality disorder
F70-F79Intellectual disabilitiesMild to profound intellectual disability
F80-F89Pervasive and specific developmental disordersAutism, learning disorders
F90-F98Behavioral and emotional disorders with onset usually occurring in childhood and adolescenceADHD, conduct disorder
F99Unspecified mental disorderMental disorder, not otherwise specified

What Changed in FY2027 (and Recent Years)

The FY2027 update added one Chapter 5 code, F64.A (Gender identity disorder, in remission), and did not delete or revise any existing F code. Claims for services on or after October 1, 2026 must use the FY2027 set; services before that date use the FY2026 set, even if the claim is filed later.

Fiscal yearMental health changeWhy it matters
FY2027New F64.A, Gender identity disorder, in remissionOnly new F code this year
FY2025Eating disorders expanded by severity and remission, such as F50.010 to F50.014 and F50.810 to F50.814Old 5-character codes like F50.01 and F50.81 are no longer billable
FY2023New F43.81, Prolonged grief disorderReplaces nonspecific grief coding
FY2022New F32.A, Depression, unspecifiedDistinct from F32.9, major depressive disorder

Depression ICD-10 Codes

Depression coding turns on three facts the note must state: single or recurrent episode, severity, and remission status. Missing any one pushes the coder to an unspecified code.

CodeICD-10-CM titleUse when the note documents
F32.0Major depressive disorder, single episode, mildFirst episode, mild severity
F32.1Major depressive disorder, single episode, moderateFirst episode, moderate severity
F32.2Major depressive disorder, single episode, severe without psychotic featuresFirst episode, severe, no psychosis
F32.3Major depressive disorder, single episode, severe with psychotic featuresFirst episode, severe, with psychosis
F32.9Major depressive disorder, single episode, unspecifiedMDD, single episode, severity not stated
F32.ADepression, unspecifiedDepression without MDD criteria documented
F33.0 / F33.1 / F33.2Major depressive disorder, recurrent, mild / moderate / severe without psychotic featuresRecurrent episodes with stated severity
F33.41 / F33.42Major depressive disorder, recurrent, in partial / full remissionRecurrent MDD now in remission
F34.1Dysthymic disorderPersistent depressive disorder

Anxiety, OCD, Trauma and Adjustment Codes

CodeICD-10-CM titleCoding note
F41.1Generalized anxiety disorderMost specific code for GAD
F41.0Panic disorder [episodic paroxysmal anxiety]Panic without agoraphobia
F41.9Anxiety disorder, unspecifiedUse only when type is not documented
F40.10Social phobia, unspecifiedDSM-5-TR social anxiety disorder
F42.2Mixed obsessional thoughts and actsDSM-5-TR obsessive-compulsive disorder
F43.0Acute stress reactionAcute response to a traumatic event
F43.10 / F43.11 / F43.12Post-traumatic stress disorder, unspecified / acute / chronicDocument acute or chronic to avoid F43.10
F43.21 / F43.22 / F43.23Adjustment disorder with depressed mood / with anxiety / with mixed anxiety and depressed moodVery common in outpatient therapy
F43.81Prolonged grief disorderAdded in FY2023

For phobia subtypes and agoraphobia codes, see our dedicated anxiety ICD-10 codes guide. When a patient reports concentration or memory problems without a mental health diagnosis, our brain fog ICD-10 code guide covers R41.840 and related symptom codes.

Bipolar, Psychotic and Personality Disorder Codes

CodeICD-10-CM titleCoding note
F31.81Bipolar II disorderSpecific code; no episode subtype needed
F31.9Bipolar disorder, unspecifiedOther F31 codes capture the current episode, severity and remission
F20.9Schizophrenia, unspecifiedType-specific codes exist, such as F20.1 Disorganized schizophrenia
F25.0Schizoaffective disorder, bipolar typeSeparate code for depressive type
F60.3Borderline personality disorderOften paired with a mood or trauma code

ADHD, Autism and Eating Disorder Codes

CodeICD-10-CM titleCoding note
F90.0Attention-deficit hyperactivity disorder, predominantly inattentive typePresentation documented as inattentive
F90.1Attention-deficit hyperactivity disorder, predominantly hyperactive typePresentation documented as hyperactive-impulsive
F90.2Attention-deficit hyperactivity disorder, combined typeBoth presentations documented
F90.9Attention-deficit hyperactivity disorder, unspecified typeUse only when presentation is not stated
F84.0Autistic disorderDSM-5-TR autism spectrum disorder
F50.810 to F50.814Binge eating disorder, mild to in remissionSeverity required since FY2025; F50.819 if unspecified

Substance Use Disorder Codes

Codes F10 to F19 are organized by substance. The fourth character shows the pattern: .1 for abuse, .2 for dependence and .9 for use. Further characters capture remission and any substance-induced disorder.

CodeICD-10-CM titleCoding note
F10.20Alcohol dependence, uncomplicatedDSM-5-TR moderate or severe alcohol use disorder
F11.20Opioid dependence, uncomplicatedCommon in medication for opioid use disorder programs
F12.20Cannabis dependence, uncomplicatedCode remission status when documented

For H-codes, levels of care and authorization, see our guide to revenue cycle management for addiction treatment. Programs that bill substance use services under separate payer rules can see our addiction treatment billing services.

Z Codes and Social Determinants of Health

Z codes describe circumstances that affect health, such as housing, finances or family stress. CMS guidance says any member of the care team can collect SDOH information, and coders can assign Z55 to Z65 codes from self-reported data or care team notes, as long as it is in the official medical record.

CodeICD-10-CM titleWhere it fits
Z59.00Homelessness unspecifiedHousing instability
Z59.41Food insecurityEconomic circumstances
Z56.0Unemployment, unspecifiedEmployment problems
Z63.0Problems in relationship with spouse or partnerPrimary support group
Z91.51Personal history of suicidal behaviorRisk factor, not an SDOH code
Z13.31Encounter for screening for depressionScreening visits, such as with CPT 96127

Do not list a Z code as the only diagnosis on a psychotherapy claim unless the payer’s policy allows it. Many plans treat relationship or life-stress Z codes as non-covered on their own. When the clinician documents a disorder, such as an adjustment disorder, code that first and add the Z code for context.

ICD-10-CM vs DSM-5-TR Naming

Clinicians diagnose with DSM-5-TR criteria, but the claim must carry the ICD-10-CM code, which is the HIPAA code set. DSM-5-TR lists the matching ICD-10-CM code for each diagnosis, yet the official ICD-10-CM title is often worded differently. That is normal and does not need correcting.

DSM-5-TR diagnosisICD-10-CM title on the claimCode
Persistent depressive disorderDysthymic disorderF34.1
Social anxiety disorderSocial phobia, unspecifiedF40.10
Obsessive-compulsive disorderMixed obsessional thoughts and actsF42.2
Autism spectrum disorderAutistic disorderF84.0
Unspecified depressive disorderDepression, unspecifiedF32.A

Specificity Rules That Prevent Denials

  1. Use the right year. Match the code set to the date of service, not the date the claim is sent.
  2. Code to the last character. A category like F43.1 or F33.4 is not billable; the claim needs the full code, such as F43.12 or F33.41.
  3. List the main reason first. The first-listed diagnosis should be the condition chiefly responsible for the visit, followed by other conditions that affect treatment.
  4. Skip uncertain diagnoses. In outpatient settings, do not code probable, suspected or rule-out diagnoses. Code the documented signs or symptoms instead.
  5. Match the diagnosis to the service. A diagnosis that does not support the CPT code can trigger a CO-11 denial for a diagnosis inconsistent with the procedure.

Worked Example

A therapist sees an adult client for a 50-minute session. The note describes a second major depressive episode, moderate severity, plus anxiety linked to a recent job loss. The client is not currently employed.

Correct coding. F33.1 (recurrent, moderate) first, then Z56.0 (unemployment, unspecified) for context, with CPT 90834 for the session.

Weaker coding. F32.9 alone ignores the recurrent episode and the severity in the note, and Z56.0 alone would leave the session without a covered diagnosis.

For the session code, time rules and claim steps, follow our guide on how to bill for mental health therapy.

Codes That Are Often Confused

PairThe differenceTip
F32.9 vs F32.AMajor depressive disorder vs depression not meeting MDDPick the code that matches the clinician’s diagnosis
F32.x vs F33.xSingle episode vs recurrentCheck history for prior episodes
F41.9 vs F41.1Unspecified anxiety vs GADAsk for the specific disorder if criteria are met
F43.2x vs F32.xAdjustment disorder vs major depressionAdjustment disorder ties symptoms to a stressor
Z63.0 vs F43.2xLife problem vs diagnosable disorderZ code supports context, not usually coverage

Diagnosis errors show up as medical necessity and code-mismatch denials. Our guide to behavioral health billing denials explains how to work and prevent them.

Need diagnosis and procedure codes checked before every claim goes out? Steady Medical Billing’s certified coding team reviews behavioral health documentation and codes it to the highest supported specificity.

Frequently Asked Questions

What ICD-10 codes are used for mental health?

Mental health diagnoses use Chapter 5 of ICD-10-CM, codes F01 to F99. Common outpatient codes include F32 and F33 for depression, F41.1 for generalized anxiety disorder, F43 codes for PTSD and adjustment disorders, and F90 codes for ADHD.

Did FY2027 change any mental health ICD-10 codes?

Only one. FY2027, effective October 1, 2026, added F64.A, Gender identity disorder, in remission. No other F codes were added, deleted or revised.

What is the difference between F32.9 and F32.A?

F32.9 is major depressive disorder, single episode, unspecified. F32.A is depression, unspecified, for depression that is not documented as major depressive disorder. Choose the one that matches the clinician’s diagnosis.

Can a Z code be the primary diagnosis for therapy?

Some payers allow it, but many do not cover psychotherapy when a Z code such as Z63.0 is the only diagnosis. If the clinician documents a disorder, list that first and add the Z code for context.

Should I use the DSM-5-TR name or the ICD-10-CM title?

The claim carries the ICD-10-CM code. DSM-5-TR names can differ from the ICD-10-CM titles, for example persistent depressive disorder maps to F34.1 Dysthymic disorder, and that difference is expected.

Table of Contents

Schedule a Consultation