TruCare

Mental Health Coding 101: The 2027 Guide

Hamza RehmanDecember 1, 2026Coding

Mental Health Coding 101: The 2027 Guide

TruCare

Mental health coding is the work of turning a clinical note into codes a payer can process: ICD-10-CM codes for the diagnosis, CPT or HCPCS codes for the service, and modifiers that add context. Get it right and claims pay on the first pass. Get it wrong and the same error repeats on every session until someone notices. That is why accurate coding is the foundation of any Mental Health billing operation that wants steady revenue.

This guide focuses on coding principles: how the code sets fit together, what the official ICD-10-CM guidelines say about mental and behavioral disorders, how procedure time rules work, and how to build documentation that survives an audit. For a code-by-code list of billing codes, see our companion guide on billing codes for mental health.

The code sets behind every mental health claim

Code set

What it describes

Maintained by

When it updates

ICD-10-CM

Diagnoses and reasons for encounters

NCHS and CMS

Every October 1, with occasional April updates

CPT

Services by clinicians, such as 90837

American Medical Association

Every January 1

HCPCS Level II

Services and items CPT does not cover, such as H0031 or G-codes

CMS

Quarterly

DSM-5-TR

Clinical diagnostic criteria

American Psychiatric Association

Not a billing code set

HIPAA requires payers and providers to use these standard code sets on electronic claims, so a home-grown abbreviation or a retired code will reject.

DSM-5-TR versus ICD-10-CM

Clinicians diagnose using DSM-5-TR criteria, but claims carry ICD-10-CM codes. The DSM-5-TR lists the matching ICD-10-CM code for each diagnosis, so the two systems usually line up.

The catch is timing. ICD-10-CM changes every October 1, and a printed DSM or an old EHR pick list may lag behind. The FY 2027 code set took effect on October 1, 2026, and CMS posts the official files and guidelines on its ICD-10 page. The raw files are also on the NCHS FY 2027 download site. Review your diagnosis pick lists every fall.

ICD-10-CM Chapter 5 at a glance

Mental, behavioral and neurodevelopmental disorders sit in Chapter 5, codes F01 to F99. Common blocks include:

  • F10 to F19: mental and behavioral disorders due to psychoactive substance use.

  • F20 to F29: schizophrenia spectrum and other psychotic disorders.

  • F30 to F39: mood disorders, including bipolar disorder and depression (for example, F32.A for unspecified depression).

  • F40 to F48: anxiety, stress-related and somatoform disorders, such as F41.1 generalized anxiety disorder and F43.10 PTSD, unspecified.

  • F50: eating disorders.

  • F84: pervasive developmental disorders, including F84.0 autistic disorder.

  • F90: attention-deficit hyperactivity disorders.

Chapter 5 also contains dementia codes that interact with neurology codes in other chapters, which is where sequencing rules matter.

Official guideline rules every mental health coder should know

The FY 2027 ICD-10-CM Official Guidelines for Coding and Reporting apply to encounters from October 1, 2026, through September 30, 2027. Several rules come up constantly in behavioral health:

Code to the highest specificity documented. If the note supports "major depressive disorder, recurrent, moderate," an unspecified depression code undersells the record and invites medical necessity questions.

Use combination codes correctly. When a single code captures both a diagnosis and its common symptoms, do not add separate symptom codes.

Follow the substance use hierarchy. When the record documents more than one level of use for the same substance, the guidelines direct you to the most severe: abuse over use, and dependence over abuse or use.

Remission depends on clinician documentation. Codes for substance use disorders "in remission" require the provider's documentation of remission status, consistent with DSM-5 definitions.

Respect sequencing instructions. "Code first" and "use additional code" notes, including etiology and manifestation pairs in dementia, control the order of codes on the claim.

Psychological factors in pain. The guidelines address pain disorders exclusively related to psychological factors and how they interact with pain codes in category G89.

Z codes in mental health coding

Z codes describe factors that influence health status rather than diseases. In behavioral health they are often more useful than coders expect:

  • Social determinants of health (Z55 to Z65), such as housing instability, problems related to employment, or family disruption.

  • Family and relationship problems, which can support family therapy documentation.

  • Personal history codes, such as a history of self-harm, which help document risk.

  • Encounter and screening codes for depression and other mental health screenings.

Most payers will not pay psychotherapy on a Z code alone, so list the treating mental health diagnosis first and add relevant Z codes to tell the full story.

Procedure coding principles

Time rules. Psychotherapy codes depend on face-to-face time. Under CPT time rules, 16 to 37 minutes supports 90832, 38 to 52 minutes supports 90834 and 53 minutes or more supports 90837. Code from documented minutes, not the appointment slot.

Add-on codes need a primary code. Psychotherapy add-ons for prescribers (90833, 90836, 90838) attach to an E/M service, crisis add-on 90840 attaches to 90839, and interactive complexity (90785) attaches to specific primary services.

Separate services must be separately documented. When a prescriber bills an E/M visit plus psychotherapy, the note must show both, and psychotherapy time cannot count toward choosing the E/M level.

HCPCS Level II for Medicaid and programs. Many state Medicaid programs use H-codes, T-codes or S-codes for community mental health, substance use treatment and intensive programs. The state manual defines who can bill them and with what modifiers.

Modifiers that matter in mental health

  • 95, 93 or FQ for telehealth, depending on payer and whether video was used.

  • 59 or the more specific X modifiers to show a distinct service when an edit would otherwise bundle two codes, used only when documentation supports it.

  • HN, HO, HP and HM credential modifiers required by many Medicaid plans and ABA payers.

  • HE and other program modifiers required by some state Medicaid programs for mental health services.

  • For Medicare in 2027, the visit complexity add-on G2211 becomes modifier B1 on the E/M code, as described in CMS's CY 2027 Physician Fee Schedule final rule fact sheet.

NCCI edits and medically unlikely edits

CMS's National Correct Coding Initiative publishes procedure-to-procedure (PTP) edits, which flag code pairs that should not be billed together, and medically unlikely edits (MUEs), which cap units per day. The rules and rationale are in the Medicare NCCI Policy Manual, and state Medicaid programs apply CMS's Medicaid NCCI edit files.

In behavioral health, common edit collisions include a diagnostic evaluation and psychotherapy on the same day, overlapping family and individual sessions, and unit limits on testing or ABA codes. Your claim scrubber should apply the current quarter's edits automatically.

Documentation that supports the codes

Coding is only as strong as the note behind it. An audit-ready mental health note includes:

  1. Start and stop times for time-based services.

  2. The modality and interventions used.

  3. The client's response and progress toward treatment plan goals.

  4. A current diagnosis that matches the codes billed.

  5. Medical necessity: symptoms, functional impact and why this level of care is needed.

  6. Risk assessment when relevant.

  7. The clinician's signature, credentials and date.

Psychotherapy notes kept separately under HIPAA should not be used to support claims. The progress note in the medical record must stand on its own.

Your mental health coding calendar

  • October 1, 2026: FY 2027 ICD-10-CM codes and guidelines took effect.

  • January 1, 2027: CPT 2027 takes effect, including major changes to adaptive behavior (ABA) codes.

  • January 1, 2027: Medicare's 2027 fee schedule takes effect, including modifier B1.

  • Quarterly: HCPCS Level II and NCCI edit updates.

Build a recurring review into your workflow so code lists, templates and scrubber rules update before each date.

A quick internal coding audit

  1. Pull 20 random claims per clinician from the last quarter.

  2. Compare documented minutes with the psychotherapy code billed.

  3. Check that each add-on has a valid primary service.

  4. Confirm diagnoses are as specific as the documentation allows and current for the date of service.

  5. Verify telehealth place of service and modifiers against each payer's policy.

  6. Review any 90837 rate that is far above your peers, and confirm the notes support it.

  7. Track findings by clinician and retrain on patterns, not one-off errors.

Let specialists handle the coding detail

Mental health coding sits at the intersection of clinical language, payer policy and federal code sets that change on different calendars. A dedicated mental health billing service keeps all three aligned.

As a TruCare mental health billing company, we use coders who work behavioral health caseloads exclusively. They code from the documented session time, capture the add-ons the note supports and flag documentation gaps before submission. When you compare a mental health billing company against others, ask how it handles annual code updates and payer-specific edits.

For a wider view of specialist mental health billing services, see our overview of mental health billing companies in USA.

FAQs about mental health coding

What codes are used for mental health diagnoses? ICD-10-CM Chapter 5 codes, F01 to F99, along with Z codes that describe related factors.

Can I bill using DSM-5-TR codes? Claims require ICD-10-CM codes. DSM-5-TR lists the matching ICD-10-CM codes, but always confirm they are valid for the date of service.

When do mental health codes change? ICD-10-CM changes every October 1, CPT every January 1 and HCPCS Level II quarterly.

Can a Z code be the primary diagnosis for therapy? Usually not for payment. Most payers expect a mental health diagnosis first, with Z codes as supporting detail.

What is the most common mental health coding error? Billing a psychotherapy time tier that the documented minutes do not support, especially 90837.

References

  1. Centers for Medicare & Medicaid Services. FY 2027 ICD-10-CM Official Guidelines for Coding and Reporting. https://www.cms.gov/files/document/fy-2027-icd-10-cm-coding-guidelines.pdf

  2. Centers for Medicare & Medicaid Services. ICD-10 Codes. https://www.cms.gov/medicare/coding-billing/icd-10-codes

  3. CDC National Center for Health Statistics. ICD-10-CM FY 2027 files. https://ftp.cdc.gov/pub/health_statistics/nchs/publications/ICD10CM/2027/

  4. Centers for Medicare & Medicaid Services. Medicare NCCI Policy Manual. https://www.cms.gov/medicare/coding-billing/national-correct-coding-initiative-ncci-edits/medicare-ncci-policy-manual

  5. Centers for Medicare & Medicaid Services. Medicaid NCCI Edit Files. https://www.cms.gov/medicare/coding-billing/ncci-medicaid/medicaid-ncci-edit-files

  6. Centers for Medicare & Medicaid Services. Calendar Year (CY) 2027 Medicare Physician Fee Schedule Final Rule (fact sheet). https://www.cms.gov/newsroom/fact-sheets/calendar-year-cy-2027-medicare-physician-fee-schedule-final-rule

  7. Centers for Medicare & Medicaid Services. NCCI Medicare Policy Manual, Chapter I (2026). https://www.cms.gov/files/document/01-chapter1-ncci-medicare-policy-manual-2026-final.pdf

HR

Hamza Rehman, MSN, RN

Founder and Chief Executive Officer, TruCare

Hamza is the founder and CEO of TruCare with a clinical background and hands-on experience in healthcare operations. He writes about simplifying revenue operations, improving billing and credentialing workflows, and helping healthcare organizations build more efficient revenue cycles.

Stay in the loop

Occasional updates on healthcare revenue and operations.

We use cookies to understand how visitors use our site and to improve your experience. You can accept or decline analytics cookies. See our Privacy Policy for details.