Insomnia is one of the most commonly encountered sleep complaints in primary care, behavioral health, and sleep medicine. Accurate ICD-10 coding for insomnia affects clinical care continuity, quality measurement, reimbursement, and compliance with payer medical necessity policies. Using the correct diagnosis code helps justify treatment choices, supports utilization review, and reduces denials driven by vague documentation.
This guide explains when to use the ICD-10-CM code for Insomnia, unspecified, illustrates practical documentation and billing strategies, compares related diagnosis codes, and highlights common denial drivers. It is written for coders, billers, clinicians, and revenue cycle professionals seeking actionable guidance.
The ICD-10-CM Code for Insomnia, unspecified is G47.00.
Insomnia is a disorder characterized by difficulty initiating sleep, difficulty maintaining sleep, waking too early, or nonrestorative sleep that occurs despite adequate opportunity for sleep and results in daytime impairment or distress. In the ICD-10-CM classification, Insomnia, unspecified (G47.00) designates an insomnia diagnosis when the clinician documents insomnia but does not specify a subtype (for example, primary, psychophysiological, adjustment-related, or insomnia attributable to another condition) or provide sufficient detail to assign a more specific code. G47.00 is appropriate when documentation lacks detail on cause, chronicity, or whether the insomnia is primary versus secondary.
Use Insomnia, unspecified when a patient presents with sleep complaints (difficulty falling asleep, frequent awakenings, early morning wakening) and the evaluation is initial or incomplete such that no specific cause or subtype has been determined. Document symptoms, approximate onset, frequency, and daytime impact; G47.00 is appropriate until the clinician assigns a more specific diagnosis.
For follow-up encounters where the clinician documents a persistent complaint of insomnia but does not specify cause (no new labs, no sleep study, no attribution to medications or medical/psychiatric conditions), code Insomnia, unspecified. Use this code when the diagnosis remains nonspecific across visits.
When the visit addresses insomnia as a presenting symptom in a low-complexity encounter (medication refill, brief counseling, or initial symptomatic treatment) and documentation does not support a more precise diagnosis, G47.00 can be used. Ensure the record supports medical necessity for any interventions ordered.
If the primary clinician documents insomnia but refers the patient to sleep medicine or psychiatry for definitive diagnosis and management and does not assign a subtype, Insomnia, unspecified is appropriate for the interim visits prior to specialist clarification.
If the clinician documents a specific insomnia subtype (for example, primary insomnia, psychophysiological insomnia, or adjustment insomnia) or identifies a cause (e.g., insomnia due to opioid therapy, insomnia related to obstructive sleep apnea), do not use Insomnia, unspecified. Instead, assign the more specific code that reflects etiology or subtype as documented.
When insomnia is recorded as attributable to a known medical or psychiatric disorder (for example, insomnia due to major depressive disorder, chronic pain, or thyroid disease) or caused by medication/substance, code the underlying condition as primary and use the appropriate secondary insomnia code per coding conventions rather than G47.00.
If polysomnography, actigraphy, or specialist evaluation yields a specific sleep disorder diagnosis or clarifies the insomnia subtype, use the specific ICD-10-CM code supported by the report rather than Insomnia, unspecified.
If the record documents duration, diagnostic criteria, and absence of secondary causes consistent with a primary insomnia diagnosis, select the specific code for primary or nonorganic insomnia rather than G47.00.
| Condition | Code | When It Is Used | When It Is Not Used |
|---|---|---|---|
| Insomnia, unspecified | G47.00 | Initial or follow-up encounters where insomnia is documented but no subtype, cause, or sufficient diagnostic detail is provided | When a specific subtype, underlying cause, or secondary condition is documented |
| Insomnia due to medical condition | G47.01 | When clinician documents insomnia explicitly attributed to a medical condition (for example, insomnia caused by chronic pain, endocrine disorder) | When insomnia is primary/nonorganic or when no causal medical condition is identified |
| Other insomnia | G47.09 | When documentation describes insomnia but includes atypical features or a subtype that is not otherwise classified within the insomnia codes | When a specific, more precise insomnia subtype or causation is documented |
| Primary insomnia (nonorganic) | F51.01 | When clinician documents primary or nonorganic insomnia consistent with psychiatric coding conventions and not attributable to a medical condition or substance | When insomnia is secondary to a medical disorder or substance, or documentation lacks criteria for primary insomnia |
Record onset date, frequency, duration of nocturnal symptoms, daytime impairment (fatigue, concentration problems, occupational impact), and how sleep disturbance affects activities. Clear documentation supports medical necessity and reduces requests for additional information.
Document diagnostic steps taken or planned (sleep diary, medication review, screening for sleep apnea or mood disorders). Explicitly note that further evaluation is pending when using Insomnia, unspecified to justify continued management and follow-up claims.
List current and prior sleep medications, over-the-counter treatments, and behavioral interventions (CBT-I, sleep hygiene). Payers commonly request evidence of prior therapy or conservative management before authorizing certain treatments.
When insomnia is caused or worsened by another documented condition, document that relationship and code the underlying disorder as primary. Clear linkage prevents miscoding and supports medically necessary, condition-specific interventions.
Leverage CombineHealth.ai’s AI-powered coding validation and claim scrubbing to detect missing specificity, conflicting codes, and documentation gaps before submission. Automated validation reduces denials and improves first-pass acceptance.
Coding for insomnia has direct impact on revenue cycle outcomes:
Accurate ICD-10 coding is critical for healthcare revenue cycle performance. CombineHealth.ai's AI-powered platform helps RCM teams ensure coding accuracy, reduce denials, and optimize reimbursement through intelligent denial management and claim validation. CombineHealth.ai's intelligent platform provides automated claim scrubbing and coding validation to catch errors before submission, reducing denials and improving first-pass acceptance rates.
Q1: What is the ICD-10 code for insomnia?
The ICD-10-CM code for insomnia is G47.00 for Insomnia, unspecified. Use this code when insomnia is documented but the clinical record does not identify a specific subtype, cause, or sufficient diagnostic detail to select a more specific code.
Q2: When should I use Insomnia, unspecified vs related codes?
Use Insomnia, unspecified when documentation lacks specificity. Use condition-specific codes (for example, Insomnia due to medical condition or primary/nonorganic insomnia) when the clinician documents etiology, subtype, or diagnostic criteria that support those codes. Always code the underlying cause as primary when insomnia is secondary.
Q3: What documentation is required when coding for insomnia?
Document presenting symptoms, onset, frequency, duration, daytime impairment, prior treatments, medication history, any diagnostic testing or referrals, and the clinician’s assessment linking insomnia to an etiology when present. Clear documentation of clinical reasoning supports medical necessity and payer review.
Q4: What are common denial reasons when coding for insomnia?
Denials often stem from insufficient specificity (using unspecified when detail exists), lack of documented medical necessity, missing prior conservative therapy documentation, or failure to link insomnia to an underlying disorder when applicable. See our guide on denial management for strategies to reduce these denials.