What are the appropriate ICD‑10 codes for a patient presenting with depression, anxiety, insomnia, and stress?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: October 16, 2026 • View editorial policy

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.

ICD-10 Codes for Depression, Anxiety, Insomnia, and Stress

For a patient presenting with depression, anxiety, insomnia, and stress, use the following ICD-10 codes: F32.9 (Major depressive disorder, single episode, unspecified) or F33.9 (Major depressive disorder, recurrent, unspecified) for depression; F41.1 (Generalized anxiety disorder) for anxiety; G47.00 (Insomnia, unspecified) for sleep disturbance; and F43.9 (Reaction to severe stress, unspecified) or Z73.3 (Stress, not elsewhere classified) for stress-related symptoms.

Algorithmic Approach to Coding

Step 1: Assess Depression Severity and Episode Type

Before coding depression, determine:

  • Episode type: Is this the first episode (F32.x) or recurrent (F33.x)?
  • Severity: Mild (F32.0/F33.0), moderate (F32.1/F33.1), or severe (F32.2-F32.3/F33.2-F33.3)?
  • Special features: Presence of psychotic symptoms, melancholic features, or anxiety symptoms

The evidence indicates that proper diagnostic assessment should identify the nature and extent of depressive symptoms 1. If severity cannot be determined from clinical presentation, default to "unspecified" (F32.9 or F33.9).

Step 2: Code Anxiety Disorder

For anxiety symptoms:

  • F41.1 (Generalized anxiety disorder) is appropriate when excessive, uncontrollable worry about multiple situations is present 2
  • F41.9 (Anxiety disorder, unspecified) if GAD criteria are not fully met but clinically significant anxiety exists
  • Consider F41.0 (Panic disorder) if recurrent unexpected panic attacks are documented

The 2020 guideline clarifies that GAD is characterized by excessive, uncontrollable worries regarding numerous everyday situations 2. Document whether anxiety symptoms meet full diagnostic criteria or represent subthreshold symptomatology.

Step 3: Code Insomnia

For sleep disturbance:

  • G47.00 (Insomnia, unspecified) is the primary code for chronic insomnia
  • F51.01 (Primary insomnia) can be used if insomnia is the primary complaint without other mental health conditions driving it

The insomnia guideline emphasizes that chronic insomnia frequently co-occurs with depression and anxiety, and these conditions mutually exacerbate each other 3. Recent evidence confirms that sleep problems are central bridge symptoms connecting depression and anxiety networks 4.

Step 4: Code Stress-Related Symptoms

For stress:

  • F43.9 (Reaction to severe stress, unspecified) if stress symptoms are clinically significant and causing dysfunction
  • Z73.3 (Stress, not elsewhere classified) for general life stress without meeting criteria for a stress disorder
  • F43.0 (Acute stress reaction) if symptoms arose within hours/days of an identifiable stressor

Important Clinical Considerations

Comorbidity Documentation

When multiple conditions coexist, code all that are clinically relevant and being addressed in treatment. The evidence shows that comorbid conditions not only exacerbate severity but also lead to poorer prognosis and greater treatment challenges 5. List the primary diagnosis first (typically the condition being actively treated or causing the most impairment).

Common Pitfalls to Avoid

Pitfall 1: Using symptom codes instead of disorder codes

  • Avoid R45.851 (Suicidal ideation) or R45.1 (Restlessness and agitation) when full diagnostic criteria for depression or anxiety are met
  • These symptom codes should only supplement, not replace, mental disorder diagnoses

Pitfall 2: Overlooking severity specifiers

  • ICD-10 requires severity specification when determinable (mild, moderate, severe)
  • Using "unspecified" codes (F32.9, F33.9, F41.9) should be reserved for situations where severity truly cannot be assessed

Pitfall 3: Missing the mixed anxiety-depressive presentation

  • If symptoms don't clearly meet full criteria for either disorder separately but both are present, consider F41.2 (Mixed anxiety and depressive disorder)
  • Note that in ICD-11 this has been reclassified, but ICD-10 still uses this code 6, 7

Documentation Requirements

To support these codes, clinical documentation should include:

  • For depression: Specific depressive symptoms present (low mood, anhedonia, sleep changes, appetite changes, concentration difficulties, suicidal ideation), duration, and functional impairment
  • For anxiety: Nature of worry/fear, physical symptoms (restlessness, fatigue, muscle tension), degree of control over worry, and interference with daily activities
  • For insomnia: Sleep latency, wake after sleep onset, total sleep time, sleep efficiency, duration of symptoms (chronic = >3 months), and daytime consequences 3
  • For stress: Identifiable stressors, temporal relationship to symptom onset, and impact on functioning

Coding Hierarchy

When all four symptom domains are present, the typical coding priority is:

  1. Primary mood disorder (F32.x or F33.x) - if depression is the predominant clinical picture
  2. Anxiety disorder (F41.1 or F41.9) - as a comorbid condition
  3. Insomnia (G47.00) - as a comorbid sleep disorder
  4. Stress reaction (F43.9 or Z73.3) - if stress is a contributing factor requiring clinical attention

This hierarchy reflects that depression and anxiety are typically the primary treatment targets, with insomnia and stress as important comorbid factors that influence treatment planning and prognosis 8, 5.

Related Questions

What is the recommended next step for a patient who has tried an SSRI and SNRI, developed flu-like side effects, and continues to have anxiety, depression, and insomnia?
In a 65-year-old patient with anxiety-related insomnia who is already receiving treatment, does clomiphene citrate 200 mg worsen sleep?
In a 60-year-old man with anxiety and insomnia after the death of a close relative, who has not responded to prior neurologist medication and experiences nocturnal heart palpitations, what is the appropriate pharmacologic treatment—should a selective serotonin reuptake inhibitor (SSRI) be initiated or an alternative therapy considered?
What is the ICD‑10 code for a patient with major depressive disorder?
Can clomiphene 20 mg cause worsening of anxiety‑related insomnia in a patient already receiving anxiety treatment?
What is the recommended workup for hematuria in a post‑menopausal woman?
In an 82‑kg adult, is a dose of 500 mg penicillin V twice daily for ten days appropriate?
What is the proper method for administering intravenous omeprazole?
In a patient taking phenytoin (Dilantin) 150 mg twice daily, lacosamide 200 mg twice daily, and levetiracetam (Keppra) 1500 mg twice daily, what oral antiepileptic can replace phenytoin during a Dilantin shortage?
Which anticholinergic inhaler is most appropriate for an elderly patient with a post‑infectious cough?
What oral antibiotic regimen is recommended for an 11-year-old child weighing 37.6 kg with an infected insect bite on the hand?

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.