Diagnostic Codes

ICD-10 Code G47.0: Insomnia

Key Takeaways

Key Takeaways

ICD-10 Code G47.0: Insomnia is a non-billable parent code; claims require a specific subcode: G47.00, G47.01, or G47.09.

G47.00 (Insomnia, Unspecified) crosswalks to legacy ICD-9-CM code 780.52 and is the most frequently assigned subcode.

The Excludes2 list for G47.0 includes F51.0 nonorganic insomnia, meaning both codes can be used together when clinically appropriate.

G47.01 (Insomnia Due to Medical Condition) requires documentation of the underlying condition and must be coded alongside it.

Accurate insomnia coding depends on distinguishing organic from nonorganic causes in the clinical note before selecting a subcode.

Insomnia claims are routinely denied because providers submit the parent code G47.0 rather than a billable subcode. The parent code has been non-billable since its introduction effective October 1, 2015, yet it continues to appear on claims across primary care, psychiatry, and sleep medicine practices. The result is a preventable denial that delays reimbursement and triggers rework. This guide covers every aspect of ICD-10 Code G47.0: Insomnia, including the three billable subcodes, the full Excludes notes, documentation requirements, the ICD-9 crosswalk, and common coding scenarios to help you submit clean claims the first time.

Sleep disorders are among the most under-coded diagnoses in outpatient settings. Providers document insomnia clearly in the clinical note but select a vague or incorrect code at the billing stage, leading to either a denial or a lost opportunity to capture the full clinical picture. Understanding the G47.0 hierarchy puts that right.

ICD-10 Code G47.0: Insomnia – Code Hierarchy and Billability

ICD-10 Code G47.0: Insomnia sits within Chapter 6 of the ICD-10-CM classification (Diseases of the Nervous System, G00-G99), under the Episodic and Paroxysmal Disorders subcategory (G40-G47). As a four-character parent code, G47.0 itself is not billable. The CDC/NCHS ICD-10-CM web tool confirms that providers must select one of three five-character subcodes to submit a valid claim.

The three billable codes under the G47.0 umbrella each carry a distinct clinical meaning. Selecting the wrong one, or submitting the parent code directly, will generate a claim edit before adjudication even begins.

Code Description Billable ICD-9-CM Crosswalk
G47.0 Insomnia (parent code) No N/A
G47.00 Insomnia, Unspecified Yes 780.52
G47.01 Insomnia Due to Medical Condition Yes 327.01
G47.09 Other Insomnia Yes 327.09

This table reflects the complete G47.0 subcode set as maintained by the Centers for Medicare and Medicaid Services (CMS). No additional subcodes exist under G47.0, and the set has remained stable since the 2016 code year.

ICD-10 Code G47.0 Subcodes: Clinical Definitions and When to Use Each

Choosing between the three subcodes requires the clinical note to contain enough information to distinguish them. Here is what each code means and what documentation supports its selection.

ICD-10 Code G47.0 – G47.00: Insomnia, Unspecified

G47.00 is the correct code when the patient has documented difficulty falling asleep, difficulty staying asleep, or early-morning awakening, but the clinical note does not identify a specific underlying cause or classify the insomnia type further. According to the AAPC ICD-10-CM code reference, synonyms for G47.00 include acute insomnia, cannot sleep at all, and circumstances interfering with sleep. This is the most frequently assigned subcode in outpatient settings.

G47.00 is grouped within the MS-DRG v43.0 Diagnostic Related Groups, which affects inpatient reimbursement calculations for facilities. For outpatient billing, this code functions as a standalone billable diagnosis. Its ICD-9-CM crosswalk maps to code 780.52 (Insomnia, Unspecified).

  • Use when: Insomnia is documented but no cause has been identified or specified in the note
  • Common settings: Primary care, urgent care, initial psychiatry visits
  • Documentation needed: Duration, frequency, and impact on function; note that cause is not yet determined

ICD-10 Code G47.0 – G47.01: Insomnia Due to Medical Condition

G47.01 applies when a specific medical condition is documented as causing or contributing to the insomnia. The underlying condition must appear in the clinical note and must be coded as a separate, additional diagnosis on the same claim. This is a critical dual-coding requirement: submitting G47.01 without the causative condition code will result in a coding edit or denial.

Common medical conditions coded alongside G47.01 include chronic pain disorders, hyperthyroidism, GERD, and cardiovascular conditions that disrupt sleep architecture. The ICD-9-CM crosswalk for G47.01 maps to 327.01 (Insomnia Due to Medical Condition Classified Elsewhere). Clinicians working in mental health EMR platforms that auto-populate diagnosis codes should confirm the secondary code is capturing the causative condition, not just the sleep symptom.

  • Use when: A specific medical condition (not a mental disorder) is documented as the cause of insomnia
  • Dual-code requirement: Always code the underlying condition first
  • Do not use: When insomnia is caused by a mental disorder (use F51.05 instead)

ICD-10 Code G47.0 – G47.09: Other Insomnia

G47.09 captures forms of insomnia that are organic in nature but do not fit either of the other two subcodes. This includes chronic insomnia with documented physiological basis, sleep maintenance insomnia with objective findings, and insomnia presentations that have been evaluated but do not meet the specific criteria of G47.00 or G47.01. The ICD-9-CM crosswalk for G47.09 maps to 327.09 (Other Organic Insomnias).

G47.09 is the least commonly assigned of the three subcodes. It is appropriate when the clinician’s assessment explicitly describes an organic mechanism that is not attributable to a single identifiable medical condition. Vague documentation will not support this selection; coders should query the treating provider before assigning it.

ICD-10 Code G47.0 Excludes Notes: What Cannot Be Coded Here

The G47.0 category carries a substantial Excludes2 list. An Excludes2 note means the excluded conditions are not part of this code, but both codes may be assigned together when the patient genuinely has both conditions. This is fundamentally different from an Excludes1 note, which prohibits simultaneous use.

Misreading Excludes2 as Excludes1 is one of the most common insomnia coding errors. A patient with documented organic insomnia (G47.00) and a co-occurring nonorganic insomnia pattern (F51.01) can legitimately carry both codes when clinical documentation supports each diagnosis independently. The ICD List reference tool provides the complete Excludes notes for each code in the G47.0 family.

Excluded Code Description Excludes Type Can Be Used Together?
F51.0- Nonorganic insomnia Excludes2 Yes, when both conditions documented
F51.01 Primary (idiopathic) insomnia Excludes2 Yes, when both conditions documented
F51.05 Insomnia due to mental disorder Excludes2 Yes, when both conditions documented
F10.182 / F10.282 / F10.982 Alcohol-related insomnia Excludes2 Yes, when both conditions documented
F11.182-F19.982 Drug-related insomnia codes Excludes2 Yes, when both conditions documented
G47.3- Sleep apnea Excludes2 Yes, when both conditions documented

The Excludes2 structure for ICD-10 Code G47.0: Insomnia reflects the clinical reality that patients often present with overlapping sleep disorder mechanisms. A patient referred to a sleep medicine practice for insomnia may simultaneously carry a substance use disorder diagnosis; coding both G47.00 and the appropriate F1x.x82 code is clinically accurate and payer-appropriate when both are documented in the record.

Pro Tip

Before assigning any G47.0 subcode, audit the clinical note for three elements: (1) documentation of the insomnia type or presumed cause, (2) any referenced comorbidities that carry their own exclusion codes, and (3) whether the provider has distinguished organic from nonorganic presentation. A note that contains all three makes subcode selection straightforward and reduces the chance of a payer query after submission.

ICD-10 Code G47.0 vs F51.0: Organic vs Nonorganic Insomnia

The G47.0-versus-F51.0 distinction is the most clinically significant coding decision in insomnia billing. G47.0 subcodes cover organic insomnia, meaning insomnia with a documented physiological basis. F51.0 codes cover nonorganic insomnia, meaning insomnia rooted in psychological, behavioral, or unspecified mental factors.

The American Academy of Sleep Medicine (AASM) defines chronic insomnia as difficulty initiating or maintaining sleep, or non-restorative sleep, occurring at least three times per week for at least three months, causing significant distress or functional impairment. The AASM’s clinical guidelines inform the distinction between organic and nonorganic presentations, which directly drives code selection between the G47.0 and F51.0 families.

  • G47.00 (organic, unspecified): Sleep difficulty without a clearly identified mental or substance-related cause; work-up ongoing or inconclusive
  • G47.01 (organic, medical condition): Insomnia directly attributable to a documented physical condition such as chronic pain, hyperthyroidism, or cardiac arrhythmia
  • F51.01 (nonorganic, primary): Idiopathic insomnia with no identifiable organic or mental cause; persistent lifelong pattern
  • F51.05 (nonorganic, mental disorder): Insomnia that is a direct consequence of a documented mental disorder such as major depression or generalized anxiety disorder

A practical rule: if the provider’s assessment section references a specific mental health diagnosis as the reason for the sleep disturbance, F51.05 is the more appropriate code. If the assessment describes sleep difficulty without attributing it to a mental disorder, and no substance use disorder is involved, G47.00 is the safer selection pending further evaluation. Clinicians using psychiatry EMR software can configure diagnosis templates that prompt this distinction at the point of care.

Streamline Sleep Disorder Documentation with Pabau

Pabau's clinical documentation tools help practice managers and clinicians capture the insomnia type, comorbidities, and coding-relevant details at the point of care, reducing the back-and-forth between clinical and billing teams.

Pabau practice management platform dashboard

ICD-10 Code G47.0 Insomnia: Documentation Requirements for Clean Claims

Clean claim submission for any G47.0 subcode depends on the clinical note capturing specific elements. Payers do not reimburse for the presence of a code; they reimburse based on whether the documentation supports the code assigned. According to CMS ICD-10-CM coding guidelines, the diagnosis code must reflect the provider’s confirmed or working diagnosis at the time of the encounter.

These are the documentation elements that support each subcode.

Documentation Supporting ICD-10 Code G47.0 – G47.00

  • Chief complaint referencing sleep difficulty (difficulty falling asleep, waking at night, early-morning waking, unrefreshing sleep)
  • Duration and frequency of symptoms
  • Functional impairment described (fatigue, concentration difficulty, mood effects, occupational impact)
  • Statement that specific cause has not been identified or that work-up is ongoing
  • Absence of documented mental disorder as primary driver

Documentation Supporting ICD-10 Code G47.0 – G47.01

  • Explicit statement of the causative medical condition (e.g., “insomnia secondary to hypothyroidism”)
  • The medical condition coded separately on the claim as an additional diagnosis
  • Clinical reasoning connecting the medical condition to the sleep disturbance
  • No attribution to a mental disorder or substance use

Providers at integrative medicine practices frequently encounter insomnia as a secondary complaint alongside complex comorbidities. Building structured note templates that prompt the provider to specify the relationship between diagnoses makes the difference between a first-pass claim and a denial cycle. Pabau’s claims management software can flag missing secondary codes before submission, reducing the manual review burden on billing staff.

Pro Tip

Flag Z72.821 (Inadequate Sleep Hygiene) as an additional code when the provider’s plan explicitly addresses sleep hygiene modification. This secondary code captures a contributing behavioral factor that is clinically meaningful and supports the medical necessity of patient education or behavioral intervention at the same encounter.

ICD-10 Code G47.0 Insomnia: Comorbidity Coding Scenarios

Insomnia rarely presents in isolation. Most patients referred to sleep medicine or psychiatry carry two or more coded diagnoses at the same encounter. The following scenarios illustrate correct multi-code sequencing for common presentations.

ICD-10 Code G47.0 Insomnia with Anxiety Disorder

When a patient has documented insomnia and a concurrent anxiety disorder, the coding question is whether the insomnia is a symptom of the anxiety or a separate clinical entity. If the provider’s assessment states that the insomnia is caused by the anxiety disorder, F51.05 (Insomnia Due to Mental Disorder) is the correct code; do not use G47.00 in this case. If the insomnia is documented as a separate and independent condition that exists alongside the anxiety disorder, G47.00 can be coded alongside the anxiety code (such as F41.1 for Generalized Anxiety Disorder) because G47.0’s Excludes2 list permits dual coding when both conditions are independently documented. Practices using a psychology practice platform can configure encounter templates to capture this clinical distinction at the point of documentation.

ICD-10 Code G47.0 Insomnia with Substance Use Disorder

When alcohol or drug use is the documented cause of insomnia, the appropriate code comes from the F1x.x82 series rather than G47.0. For example, alcohol-induced insomnia in a patient with alcohol use disorder maps to F10.182, F10.282, or F10.982 depending on the severity of the use disorder. These codes are listed in G47.0’s Excludes2 notes. Where both organic insomnia and substance-related insomnia are independently documented, the Excludes2 rule permits both code families to appear on the claim. Billing teams managing claims for mental health and addiction practices should confirm with the treating provider which diagnosis is primary before sequencing.

ICD-10 Code G47.0 Insomnia with Sleep Apnea

Sleep apnea (G47.3x) and insomnia (G47.0x) can coexist in the same patient. The Excludes2 note confirms that sleep apnea is not included within the scope of G47.0 but that both codes may be assigned when supported by documentation. A sleep study finding positive for obstructive sleep apnea does not eliminate the insomnia diagnosis if the provider documents both conditions as active clinical problems. Both G47.00 and the appropriate G47.3x code can appear on the same claim in this scenario.

Expert Picks

Expert Picks

Need a full reference for related sleep and neurological disorder codes? ICD-10 Code for Autistic Disorder demonstrates how the same parent-code hierarchy and Excludes logic applies across the nervous system chapter of ICD-10-CM.

Looking for a psychiatric EMR that supports accurate diagnosis code capture at the point of care? Pabau’s psychiatry EMR software includes structured note templates and claims management tools designed for mental health and sleep medicine workflows.

Want to reduce claim denials across your diagnostic coding workflow? Pabau’s claims management software helps billing teams flag missing secondary codes and documentation gaps before submission, cutting denial rates and rework cycles.

Managing a mental health or therapy practice and need documentation guidance? Pabau’s mental health EMR supports structured clinical notes, ICD-10 code linking, and billing workflows tailored to behavioral health providers.

ICD-10 Code G47.0 Insomnia: Conclusion

Insomnia coding errors start with a simple mistake: submitting the non-billable parent code G47.0 instead of one of the three billable subcodes. Selecting between G47.00, G47.01, and G47.09 is a documentation-driven decision, not a guessing exercise. The clinical note must establish whether the insomnia is unspecified, tied to a medical condition, or part of a broader organic presentation, and the Excludes2 list must be consulted before finalising any multi-diagnosis claim.

Practices that embed these distinctions into structured note templates see fewer denials and faster adjudication. Pabau’s claims management software and mental health EMR are built to support exactly this kind of documentation discipline. To see how Pabau handles insomnia coding workflows end to end, book a demo with the team.

Reviewed against current CMS ICD-10-CM Official Guidelines for Coding and Reporting and American Academy of Sleep Medicine (AASM) clinical documentation standards.

Frequently Asked Questions

What is the ICD-10 code for insomnia?

The ICD-10-CM code for insomnia is G47.0, but this parent code is not billable. Providers must use one of three billable subcodes: G47.00 (Insomnia, Unspecified), G47.01 (Insomnia Due to Medical Condition), or G47.09 (Other Insomnia). Submitting G47.0 on a claim will trigger a claim edit.

Is G47.0 billable?

No. G47.0 is a non-billable parent code that has been non-billable since its introduction effective October 1, 2015. All claims for insomnia must use a five-character subcode: G47.00, G47.01, or G47.09, depending on the clinical presentation documented in the provider’s note.

What is the difference between G47.00, G47.01, and G47.09?

G47.00 is for insomnia where no specific cause is identified. G47.01 is for insomnia directly caused by a documented medical condition, which must also be coded separately on the claim. G47.09 covers other organic insomnia presentations that do not fit either of the first two subcodes. Documentation in the clinical note determines which subcode is correct.

When should I use F51.01 instead of G47.00?

F51.01 (Primary Insomnia) is used when the patient has idiopathic or lifelong insomnia with no identifiable organic or mental cause. G47.00 is used when insomnia is organic in nature but the specific cause has not yet been determined. F51.01 falls under the nonorganic insomnia category (F51.0-) and is listed in G47.0’s Excludes2 notes; both codes can appear together when both conditions are independently documented.

How do you document insomnia for ICD-10 coding purposes?

Effective documentation for insomnia coding should include: the specific sleep complaint (difficulty initiating, maintaining, or non-restorative sleep), duration and frequency, any identified or suspected cause (medical condition, mental disorder, or substance use), functional impairment, and whether comorbid conditions are independently present or causally related. This level of specificity allows the billing team to select the most accurate subcode without querying the provider after the encounter.

What is the ICD-9 equivalent of G47.00?

The ICD-9-CM crosswalk for G47.00 (Insomnia, Unspecified) maps to code 780.52 (Insomnia, Unspecified). G47.01 maps to 327.01 (Insomnia Due to Medical Condition Classified Elsewhere), and G47.09 maps to 327.09 (Other Organic Insomnias). These crosswalk mappings are relevant for practices reviewing historical claims data or transitioning legacy records.

×