What ICD‑10‑CM diagnosis code should be used for prescribing zolpidem (Ambien) for insomnia?

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: April 3, 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-CM Diagnosis Code for Prescribing Zolpidem (Ambien)

Use ICD-10 code G47.00 (Insomnia, unspecified) as the primary diagnosis code when prescribing zolpidem for insomnia. This is the most straightforward and widely accepted code for documenting insomnia disorder in administrative data 1.

Primary Diagnosis Codes

The FDA-approved indication for zolpidem is specifically for short-term treatment of insomnia characterized by difficulties with sleep onset and/or sleep maintenance 1. Based on this indication and clinical practice patterns, the following ICD-10-CM codes are appropriate:

Most Common Codes:

  • G47.00 - Insomnia, unspecified (most frequently used)
  • G47.01 - Insomnia due to medical condition
  • G47.09 - Other insomnia

Alternative Codes When Applicable:

  • F51.01 - Primary insomnia (when insomnia is the primary psychiatric diagnosis)
  • F51.05 - Insomnia due to other mental disorder (when related to depression, anxiety, etc.)

Clinical Context for Code Selection

Research demonstrates that over 75% of insomnia cases are related to psychiatric or behavioral factors 2. When selecting your diagnosis code, consider:

  • If insomnia exists independently without clear psychiatric cause → use G47.00
  • If insomnia is secondary to depression or anxiety → use F51.05
  • If insomnia is due to a medical condition (pain, COPD, etc.) → use G47.01

Important Documentation Requirements

Before prescribing zolpidem, your documentation must support that the patient meets diagnostic criteria 3:

  • Sleep difficulty present ≥3 nights per week
  • Symptoms persisting ≥3 months (for chronic insomnia disorder)
  • Clinically significant distress or daytime impairment
  • Adequate opportunity for sleep exists
  • Not better explained by another sleep disorder or substance use

Critical Prescribing Considerations

The FDA label specifies that zolpidem is indicated for short-term treatment only 1. Your documentation should reflect:

  • Treatment duration should be as short as possible (typically 7-10 days initially)
  • If insomnia persists beyond 7-10 days, re-evaluate for underlying psychiatric or medical conditions 1
  • Document that cognitive behavioral therapy for insomnia (CBT-I) was considered or attempted first, as guidelines recommend CBT-I as first-line treatment 3

Common Pitfalls to Avoid

  • Don't use unspecified codes like G47.8 or G47.9 unless truly necessary - these are less specific and may trigger insurance denials
  • Avoid coding insomnia as a symptom (R06.3 or similar) when it's the primary diagnosis requiring treatment
  • Document the specific type of insomnia (sleep onset vs. sleep maintenance) to support appropriate dosing decisions
  • Be aware that administrative data often poorly captures sleep disorders in inpatient settings 4, so outpatient documentation is particularly important

Insurance and Prior Authorization

Most insurance plans accept G47.00 for zolpidem coverage without requiring additional documentation. However, some may require:

  • Documentation of failed non-pharmacologic interventions
  • Justification for duration beyond short-term use
  • Lower doses for women (6.25 mg) and elderly patients (6.25 mg) per FDA recommendations 1

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.