Coding

What Is the ICD-10 Code for Insomnia? G47.00, F51.01 and Related Codes

By the Alpha Medi Assist billing team Updated 4 min read

Short answer: unspecified insomnia is G47.00 in ICD-10-CM. Insomnia due to a medical condition is G47.01 and other insomnia is G47.09. Insomnia that is not due to a substance or a known physiological condition is coded in subcategory F51.0-, for example F51.01 primary insomnia, F51.02 adjustment insomnia and F51.05 insomnia due to other mental disorder. DSM-5-TR insomnia disorder maps to F51.01.

The two families exist because ICD-10-CM separates sleep problems with a physical or unspecified cause (chapter 6, nervous system) from those classified as mental and behavioral (chapter 5). This guide lists every insomnia code, explains how to choose between them, and covers the documentation and claim problems behind most denials.

Insomnia codes at a glance

  • G47.00 - Insomnia, unspecified.
  • G47.01 - Insomnia due to medical condition. Code also the associated medical condition.
  • G47.09 - Other insomnia.
  • F51.01 - Primary insomnia.
  • F51.02 - Adjustment insomnia.
  • F51.03 - Paradoxical insomnia.
  • F51.04 - Psychophysiologic insomnia.
  • F51.05 - Insomnia due to other mental disorder. Code also the associated mental disorder.
  • F51.09 - Other insomnia not due to a substance or known physiological condition.
  • G47.0 and F51.0 are category headings and are not billable on their own.

G47.0- or F51.0-: how to choose

The choice follows the cause the provider documents, not the setting or the specialty:

  • Insomnia linked to a physical condition, such as chronic pain, sleep-disrupting reflux or menopause: G47.01, plus a code for that condition.
  • Insomnia documented without a stated cause or type: G47.00.
  • Insomnia the provider describes as primary, psychophysiologic, paradoxical or related to a stressor: the matching F51.0- code.
  • Insomnia caused by a mental disorder such as depression or generalized anxiety: F51.05, plus the code for that disorder.
  • Insomnia caused by alcohol or drugs: neither family. It is coded with the substance-induced sleep disorder codes in the F10 to F19 categories.

Excludes notes: can G47.0- and F51.0- be reported together?

The G47.0 and F51.0 subcategories point to each other with Excludes2 notes. Excludes2 means "not included here": the conditions are different, and both codes may be reported when the patient actually has both and the provider documents both. In practice that is rare. For a single insomnia problem, choose the one code that matches the documented cause.

Always check the current year's tabular list in your coding software, because ICD-10-CM is revised every October 1.

DSM-5-TR insomnia disorder

Behavioral health clinicians who diagnose using DSM-5-TR will find insomnia disorder listed with ICD-10-CM code F51.01. DSM-5-TR specifiers, such as episodic, persistent or recurrent, and comorbid mental or medical conditions, belong in the note; the comorbid conditions are coded separately.

Documentation that supports an insomnia code

  • The type or cause of the insomnia, in the provider's words: primary, due to a named medical condition, due to a named mental disorder, adjustment-related.
  • Duration and frequency, and how the sleep problem affects daytime functioning.
  • Related conditions that are being treated, coded alongside the insomnia code where the tabular says "code also".
  • The treatment plan: sleep hygiene, cognitive behavioral therapy for insomnia (CBT-I), medication or referral.
  • For follow-up visits, whether the insomnia is improving, stable or worsening.

Common insomnia claim denials and how to avoid them

  • Header codes: billing G47.0 or F51.0 without the final character. Expect a rejection or a denial such as CARC 16 (claim lacks information) or CARC 146 (diagnosis invalid for the date of service).
  • Diagnosis does not support the service: CARC 11 when, for example, a sleep study or a therapy service is linked to a code the payer's policy does not list for that service.
  • Missing "code also" condition: G47.01 or F51.05 billed without the medical condition or mental disorder causing the insomnia.
  • Unspecified G47.00 used for ongoing treatment when the record clearly states a type or cause. Update the code as the diagnosis becomes more specific.

Frequently asked questions

What is the ICD-10 code for insomnia?

Unspecified insomnia is G47.00. Insomnia due to a medical condition is G47.01 and other insomnia is G47.09. Insomnia not due to a substance or known physiological condition is coded in F51.0-, such as F51.01 primary insomnia.

What is the difference between G47.00 and F51.01?

G47.00 is insomnia, unspecified, in the nervous system chapter. F51.01 is primary insomnia, in the mental and behavioral chapter, for insomnia not due to a substance or known physiological condition. Choose the code that matches the provider's documented cause.

What ICD-10 code is used for DSM-5-TR insomnia disorder?

DSM-5-TR lists insomnia disorder with ICD-10-CM code F51.01. Comorbid mental or medical conditions are coded separately.

What is the ICD-10 code for insomnia due to anxiety or depression?

Insomnia due to another mental disorder is F51.05. Code also the mental disorder itself, such as F41.1 for generalized anxiety disorder or the appropriate F32 or F33 code for depression.

Can G47.00 and F51.01 be billed together?

The two subcategories have Excludes2 notes, so both can be reported only if the patient has two different documented conditions. For a single insomnia problem, report the one code that matches the documented cause.

Is G47.0 a billable code?

No. G47.0 is a subcategory heading. Use a complete code such as G47.00, G47.01 or G47.09.

Insomnia coding comes down to one decision: does the documentation point to a physical or unspecified cause (G47.0-) or to a non-physiological or mental cause (F51.0-)? Code to that documentation, add the "code also" condition, and avoid header codes.

Alpha Medi Assist's certified coders review behavioral health, neurology and primary care documentation before claims go out, so the diagnosis supports the service billed.

Sources

  1. CDC/NCHS: ICD-10-CM Official Guidelines for Coding and Reporting, FY2027
  2. CMS: ICD-10 code sets and annual updates
  3. American Psychiatric Association: DSM-5-TR
  4. NIH NHLBI: Insomnia
  5. X12: Claim Adjustment Reason Codes (CARC)

Related services

Free, no obligation

Want us to handle this for your practice?

Our billing team works denials, corrections and appeals like the ones in this article every day. Share a few details and we will review where your claims are getting stuck.

  • Review of your denial trends and aging A/R
  • Clear list of fixes, whether or not you hire us
  • A quote based on your specialty and claim volume
Alpha Medi Assist billing specialist on a call with a practice
HIPAA-compliant team · U.S. practices only
Prefer to talk? +1 424-542-7170

No patient data needed. We reply within 24 hours.