Sleep problems are one of the common things people talk about when they visit healthcare providers. Some have trouble falling asleep others wake up times during the night and a lot feel very tired even after lying in bed for a long time. When these issues happen a lot finding out why is important for both treating the problem and using the medical codes.

For doctors sleep experts, mental health professionals and hospitals choosing the insomnia code from the ICD-10 system means more than just writing that a patient can’t sleep. The diagnosis needs to show what type of insomnia is happening how long it has been going on any health or mental issues that might be causing it and what was found during the patients checkup.

The often used ICD-10-CM code is G47.00 – Insomnia, unspecified.. There are more specific codes that might be better if the doctor finds out the patient has primary insomnia, adjustment insomnia, psychophysiologic insomnia or insomnia that is linked to another health or mental health issue.

This guide covers the ICD-10 codes for insomnia how different types of the condition are identified what notes help in picking the code and how healthcare workers can stay away, from common mistakes when coding and sending in claims.

What Is the ICD-10 Code for Insomnia?

The ICD-10-CM code G47.00 is used for insomnia. Unspecified insomnia applies when a clinician has diagnosed insomnia but has not written a specific type or reason.

Insomnia falls under two important ICD-10-CM code groups:

  • G47.0–: Insomnia classified among sleep disorders in the nervous system chapter.

  • F51.0–: Insomnia not due to a substance or known physiological condition.

These categories should not be used interchangeably. The appropriate code depends on the documented diagnosis and any applicable instructions, in the ICD-10-CM Tabular List.

Insomnia ICD-10 codes at a glance

ICD-10-CM code Diagnosis
G47.00 Insomnia, unspecified
G47.01 Insomnia due to 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
F51.09 Other insomnia not due to a substance or known physiological condition

The codes are active due to the release of ICD-10-CM in FY 2027, commencing from October 1, 2026, until September 30, 2027. The following codes are under the main section of codes G47.0 and F51.0. In this case, selection of a specific code is a must.

Note that availability of a code does not imply that it is necessarily applicable in every case of insomnia treatment.

Understanding Insomnia and Its Clinical Presentation

Insomnia is a sleep disorder in which you have trouble falling asleep, staying asleep, or getting enough sleep even when you have the chance to sleep.

The problem may be expressed by patients in numerous ways. One person may lie awake for hours before falling asleep. Someone else might nod off right away but then wake up many times during the night. Some wake too early and cannot get back to sleep.

Common symptoms include:

  • Difficulty falling asleep at bedtime.

  • Frequent nighttime awakenings.

  • Waking too early in the morning.

  • Unrefreshing or poor-quality sleep.

  • Daytime fatigue, irritability, or difficulty concentrating.

  • Reduced performance at work or during daily activities.

Insomnia manifests itself only when its symptoms affect the daytime performance and emotional condition. Practitioners need to differentiate between insomnia and loss of sleep owing to extrinsic causes such as work schedule, environmental conditions or personal lifestyle. A person who sleeps barely four hours every night owing to employment is not suffering from insomnia.

Acute vs. Chronic Insomnia: Why Duration Matters

Sleep difficulties vary in duration. This length helps doctors understand the type of problem and choose the right treatment.

Short-term insomnia usually lasts for than three months. It often begins after an event an illness, a change in sleep environment or a disruption, to regular daily habits.

For instance a patient might struggle to sleep after starting a job or dealing with a serious family situation.

If the doctor identifies this as adjustment insomnia the code F51.02 could be used.. Short-term sleep problems alone are not enough to confirm the diagnosis. The provider must base the diagnosis on a clinical evaluation.

Chronic insomnia

Chronic insomnia is generally recognized when sleep problems happen least three nights each week for three months or more and there are daytime effects even though there is enough time to sleep.

Chronic insomnia can stay on its own. Happen together with other health issues. Just the length of time alone doesn’t mean the right ICD-10-CM code is used.

For example a person, with long-term insomnia could be diagnosed with insomnia insomnia caused by a medical condition or another sleep disorder that is supported by medical evidence.

The American Academy of Sleep Medicine says that the three-month time frame and three nights a week are signs of chronic insomnia disorder.

Types of Insomnia and Their ICD-10-CM Codes

1. Unspecified insomnia – G47.00

G47.00 – Insomnia, unspecified when insomnia has been diagnosed but the documentation does not support a more precise diagnosis.

The patient may complain of poor sleep for several weeks and the physician may note insomnia without specifying a subtype.

In that case, G47.00 may be an accurate reflection of the established diagnosis.

However, if the clinician has identified a more precise condition, consideration should be given to the more specific code.

Documentation example:

Assessment: Insomnia, difficulties falling asleep, problem staying asleep. Further assessments are planned to help determine contributing elements.

The documentation supports a diagnosis of insomnia not otherwise specified.

2. Insomnia due to a medical condition – G47.01

Some patients have ongoing sleep problems due to an identified medical disease.

several medical illnesses such as chronic pain, respiratory ailments, neurological diseases, and several other disorders can lead to sleeplessness.

G47.01 is appropriate when the physician determines the insomnia is caused to a medical issue.

For example, a patient with chronic back pain might wake up multiple times due to discomfort. If the medical provider determines that the insomnia is caused by the underlying pain condition, G47.01 may be reported.

The code also contains an instruction to code the associated medical condition. Documentation should specify the ailment and its relevance to sleeplessness.

3. Other insomnia – G47.09

G47.09 identifies a specific type of insomnia that is not elsewhere classifiable and more precisely, it is under the applicable G47.0 code.

This may contain specific clinically defined sleep disorders that conform to the inclusion and indexing standards of classification.

Healthcare providers should not code G47.09 just because insomnia has been present for several months. The medical record must support the specific type of insomnia that is being identified.

4. Primary insomnia – F51.01

Primary insomnia is sleeplessness not due to an identifiable substance-related or other physiological cause.

Patients may continue to have sleep issues in the absence of any other medical causes.

When the provider expressly documents primary insomnia, and the diagnosis is consistent with appropriate classification criteria, assign F51.01.

Where the record states just chronic insomnia, it should not automatically be treated as primary insomnia without evaluating the established diagnosis and official indexing requirements.

5. Adjustment insomnia – F51.02

Adjustment insomnia usually occurs in relation to a specific stressful event or change in circumstances.

For example, a patient may describe bad sleep after a relocation, job loss, or considerable shift in personal circumstances.

Adjustment insomnia (F51.02) may be assigned if the physician makes the diagnosis.

To make this diagnosis, a history of stress and sleep difficulties alone is not enough.

6. Paradoxical insomnia – F51.03

Paradoxical insomnia involves a mismatch between a patient’s perception of sleep and the amount or quality of sleep indicated by clinical assessment.

A patient might feel they have remained awake almost all night, while sleep measurements or other assessment findings suggest they slept considerably longer.

The diagnosis requires clinical judgment. F51.03 should not be assigned based solely on a patient’s subjective complaint of poor sleep.

7. Psychophysiologic insomnia – F51.04

Psychophysiologic insomnia is linked to arousal that has been conditioned and to learned patterns that disrupt sleep. Psychophysiologic insomnia can cause people to stay awake when they should rest.

Psychophysiologic insomnia can make patients worry much about falling asleep or they may feel more alert when getting ready for bed.

Psychophysiologic insomnia may make a person feel sleepy while watching television yet become fully awake once they are, in bed.

If a provider determines that psychophysiologic insomnia is present the code F51.04 could be used.

This is a diagnosis and should not be chosen only because insomnia lasts a long time.

8. Insomnia due to another mental disorder – F51.05

Insomnia can happen at the time as mental health conditions like depression, anxiety disorders or post-traumatic stress disorder.

The code F51.05 is used when the provider confirms that insomnia is caused by another disorder.

For example if a psychiatrist finds that insomnia is the result of a diagnosed disorder then F51.05 may be the correct code.

The related psychiatric diagnosis must also be. Reported, following the proper coding guidelines and the situation of the patient’s visit.

Having anxiety or depression along, with insomnia does not mean one caused the other. The connection must be clearly. Supported.

9. Other nonphysiological insomnia – F51.09

Other specified sleeplessness not attributable to a drug or known physiological condition F51.09

It applies to the physician who has documented a problem in this classification that is not classifiable to another F51.0 code.

For other specified diagnosis codes, the clinical record should provide a description of the nature of the ailment to the extent that supports the selection.

How Is Insomnia Diagnosed?

Insomnia is diagnosed through a clinical assessment of the patient’s sleep patterns, medical history and daytime symptoms. Not every patient who sleeps poorly has a diagnosable insomnia problem.

Generally, healthcare specialists will start by determining how often, how long and what kind of sleep problem you have.

Reviewing the patient’s sleep history

A detailed sleep history will help to understand what the patient is going through.

The assessment should also include the onset of the problem, the frequency of the problem, the amount of time required for the patient to fall asleep, and whether overnight awakenings influence the quality of sleep.

Providers also may enquire about daytime weariness, job schedules, medication use, coffee intake and changes in sleeping habits.

Somebody who’s had difficulties sleeping for a few years needs a different clinical assessment than somebody who’s had problem sleeping for 2 nites after a stressful incident.

Evaluating medical and psychological factors

Sleep disturbances can be associated with numerous medical and behavioral health conditions.

Physicians may evaluate patients for:

  • Chronic pain and other medical conditions that disrupt sleep.

  • Anxiety, depression, or other psychiatric disorders.

  • Obstructive sleep apnea or restless legs syndrome.

  • Medication effects and substance use.

  • Circadian rhythm disturbances.

  • Environmental or lifestyle factors that limit sleep.

The presence of another condition does not automatically establish causation. Providers should document any confirmed relationship between the underlying disorder and insomnia.

Using sleep diaries and assessment tools

A sleep diary can assist patients in tracking time to bed, estimated sleep onset time, nocturnal awakenings, total sleep time and daytime symptoms.

Healthcare providers can also utilise approved instruments such as the Insomnia Severity Index (ISI) to evaluate symptoms and track progress throughout therapy.

These tools help with clinical decision-making; nevertheless, their results do not constitute an ICD-10-CM diagnosis by themselves.

When is a sleep study necessary?

Routine diagnosis of simple insomnia does not require polysomnography.

If the clinical assessment indicates the presence of another sleep condition, such as obstructive sleep apnea or certain sleep-related movement disorders, a sleep study may be appropriate.

When ordering diagnostic tests, clinicians should explain to patients the suspected ailment, the rationale for testing, and how the results may influence clinical management.

Insomnia alone will not get Medicare or commercial insurance to pay for a sleep study. Insurance coverage is subject to the terms, conditions and limitations of the patient’s specific insurance policy.

ICD-10 Coding Guidelines for Insomnia

Choosing the correct insomnia diagnosis code requires attention to specificity, documentation, and the reason for the encounter.

The FY 2027 ICD-10-CM Official Guidelines for Coding and Reporting emphasize that code assignment must be supported by complete and accurate medical documentation.

Use the most specific supported diagnosis

A provider should document the established type of insomnia whenever possible.

For example, if an assessment identifies psychophysiologic insomnia, F51.04 may be more appropriate than G47.00.

However, assigning a more specific code without supporting documentation can create coding inaccuracies.

The goal is not to select the most detailed code available. It is to select the most accurate code supported by the patient’s record.

Document the relationship to underlying conditions

Insomnia may be related to chronic pain, sadness, anxiety or other medical conditions.

If a causal association is clinically proven, documentation should include the diagnosis of insomnia and the accompanying disease.

Providers are directed to also code the corresponding medical condition for G47.01 in the ICD-10-CM Tabular List.

Avoid assuming a diagnosis from symptoms

A patient reporting difficulties sleeping does not inherently establish primary, adjustment, or psychophysiologic insomnia.

Likewise, the prescription of sleep medication does not indicate that a specific insomnia disease has been diagnosed.

Diagnosis codes should be based on the provider’s documented clinical determinations, not just guesses from symptoms or therapy.

Apply diagnosis sequencing rules

The first-listed diagnosis in an outpatient claim generally reflects the condition, problem, or reason chiefly responsible for the services provided.

If the visit primarily addresses insomnia, the documented insomnia diagnosis may be first-listed.

If a patient is being treated primarily for another condition and insomnia is addressed as an additional problem, sequencing may differ.

In inpatient settings, principal diagnosis selection follows separate rules.

Providers should also review the official ICD-10-CM Index, Tabular List, and code-level instructions, including any applicable “code also,” “code first,” or exclusion notes.

ICD-10 Codes for Conditions Commonly Associated With Insomnia

Some patients require evaluation or treatment for multiple conditions during the same encounter. Understanding related diagnosis codes can help providers document the complete clinical picture.

ICD-10-CM code Related diagnosis Coding consideration
G47.33 Obstructive sleep apnea Report when clinically established
G25.81 Restless legs syndrome May contribute to difficulty initiating sleep
G47.21 Circadian rhythm sleep disorder, delayed sleep phase type Distinguish delayed sleep timing from insomnia
F41.1 Generalized anxiety disorder May coexist with or contribute to insomnia
F32.A Depression, unspecified Use when supported by clinical documentation
R53.83 Other fatigue May describe a separately evaluated symptom when reportable
Z72.820 Sleep deprivation Not a substitute for a confirmed insomnia diagnosis

These codes should not be automatically added to insomnia claims. Each reported diagnosis must satisfy applicable documentation and reporting requirements.

Coding example: A patient with diagnosed obstructive sleep apnea also reports insomnia. The physician evaluates both problems and develops a management plan for each.

In this situation, both conditions may be reportable when they meet the relevant criteria. The first-listed diagnosis depends on the reason for the encounter and the services performed.

CPT Codes Commonly Associated With Insomnia Evaluation and Treatment

ICD-10-CM codes explain the patient’s diagnosis, while Current Procedural Terminology (CPT) codes describe the services furnished.

There is no single CPT code that applies to every insomnia encounter. The correct procedure code depends on whether the provider performs an office visit, psychiatric assessment, psychotherapy, or a medically necessary diagnostic study.

CPT code Service description
99202–99205 New patient office/outpatient evaluation and management
99212–99215 Established patient office/outpatient evaluation and management
90791 Psychiatric diagnostic evaluation without medical services
90792 Psychiatric diagnostic evaluation with medical services
90832 Psychotherapy, approximately 30 minutes
90834 Psychotherapy, approximately 45 minutes
90837 Psychotherapy, approximately 60 minutes
95810 Attended polysomnography for patients age 6 or older
95811 Attended polysomnography with initiation of PAP therapy or other qualifying adjustments
95806 Unattended sleep study with specified respiratory and oxygen measurements

Psychotherapy services must meet the applicable time, documentation, and medical necessity requirements. E/M visits must be supported by the appropriate medical decision-making level or qualifying time when time-based selection is permitted.

For example, CPT 90834 generally represents psychotherapy lasting 38–52 minutes. Providers should document the actual psychotherapy time and the therapeutic intervention performed.

Sleep study codes should only be used when the specific test was furnished and medically justified.

Can cognitive behavioral therapy for insomnia be billed?

Cognitive behavioral therapy for insomnia (CBT-I) is a structured treatment that addresses behaviors and thought patterns contributing to sleep difficulties.

When furnished by an appropriately qualified professional, CBT-I may be reported using applicable psychotherapy codes if the service meets CPT requirements and payer coverage criteria.

The medical record should include the intervention performed, the patient’s response, treatment goals, and the duration of psychotherapy.

Providers should verify insurer policies rather than assuming that every CBT-I session qualifies for reimbursement under a particular psychotherapy code.

Documentation Requirements for Insomnia Diagnosis and Billing

Clear documentation gives other treating clinicians an accurate understanding of the patient’s condition. It also helps establish why an evaluation or treatment was necessary.

For insomnia-related encounters, the medical record should address the following elements when clinically relevant.

1. Presenting symptoms

Describe the patient’s specific sleep complaint rather than relying on a general statement such as “poor sleep.”

For example:

Patient reports taking approximately 90 minutes to fall asleep on most nights and waking twice before morning.

This provides a clearer clinical picture than documenting only “sleep difficulty.”

2. Frequency and duration

Indicate how long symptoms have been present and how often they occur.

For example:

Sleep initiation problems occur four to five nights weekly and have persisted for approximately five months.

These details help distinguish short-term sleep disturbances from chronic presentations.

3. Daytime consequences

Record clinically relevant effects such as fatigue, impaired concentration, mood changes, or reduced occupational functioning.

Daytime impairment is an important consideration when evaluating insomnia disorder.

4. Relevant medical history

Include information about medical conditions, psychiatric symptoms, current medications, substance use, and other factors that may affect sleep.

When insomnia is attributed to another condition, document the clinical basis for that conclusion.

5. Clinical assessment

The assessment should identify the established diagnosis and relevant differential diagnoses.

If additional evaluation is needed, the provider should document the current clinical impression without presenting an unconfirmed subtype as established.

6. Treatment plan and follow-up

Describe the recommended intervention, medication changes when applicable, referrals, and follow-up arrangements.

For ongoing treatment, document whether symptoms have improved, worsened, or remained unchanged.

Example of well-supported insomnia documentation

ILLUSTRATIVE CLINICAL NOTE

Chief complaint: Difficulty falling asleep and frequent nighttime awakenings.

History: Patient reports sleep difficulties occurring five nights per week for the past four months. Estimated sleep latency is 60–90 minutes. Reports fatigue and reduced concentration during work hours.

Assessment: Insomnia, unspecified. Possible contributing factors are being evaluated.

Plan: Review sleep diary, discuss appropriate behavioral interventions, evaluate medication history, and arrange follow-up in four weeks.

ICD-10-CM: G47.00 — Insomnia, unspecified.

This example supports G47.00 because insomnia has been diagnosed, but a more specific subtype has not been established. It would not justify coding primary insomnia or insomnia due to a mental disorder without additional documentation.

Insomnia ICD-10 Coding Examples

Practical scenarios can help illustrate the differences between commonly used diagnosis codes.

Case 1: Insomnia without an identified subtype

A 42-year-old patient visits a primary care physician after experiencing difficulty falling asleep and waking frequently during the night.

The physician documents insomnia and plans further evaluation.

Appropriate code: G47.00 — Insomnia, unspecified.

The diagnosis has been established, but no specific subtype is recorded.

Case 2: Insomnia associated with chronic pain

A patient with a documented chronic pain condition experiences frequent nighttime awakenings.

After clinical evaluation, the physician specifically diagnoses insomnia due to the underlying medical condition.

Appropriate code: G47.01 — Insomnia due to medical condition.

The associated medical diagnosis should also be reported as instructed, using the appropriate code supported by the record.

Case 3: Adjustment insomnia following a stressful event

A patient develops temporary sleep difficulties after a significant change in personal circumstances.

The clinician evaluates the symptoms and specifically diagnoses adjustment insomnia.

Appropriate code: F51.02 — Adjustment insomnia.

The stressful event alone does not establish the diagnosis; the clinician’s assessment supports the code.

Case 4: Psychophysiologic insomnia

A patient has persistent difficulty falling asleep and experiences heightened arousal and anxiety specifically associated with bedtime.

Following assessment, the sleep specialist documents psychophysiologic insomnia.

Appropriate code: F51.04 — Psychophysiologic insomnia.

The diagnosis is supported by the documented clinical findings rather than the duration of sleep difficulty alone.

Case 5: Insomnia due to a depressive disorder

A patient receiving psychiatric treatment reports persistent sleep disturbances.

The psychiatrist determines that the insomnia is due to a diagnosed depressive disorder and documents the relationship.

Appropriate code: F51.05 — Insomnia due to other mental disorder.

The depressive disorder should also be evaluated for reporting under the applicable coding instructions.

Common Insomnia Coding Mistakes and How to Avoid Them

Even when a patient’s condition is relatively straightforward, coding errors can occur if the diagnosis or services are not documented clearly.

Using G47.00 for every insomnia encounter

G47.00 is appropriate for unspecified insomnia, but it should not replace an established, more specific diagnosis.

Review the assessment and determine whether the documentation supports another insomnia code.

Confusing chronic insomnia with psychophysiologic insomnia

A patient may experience chronic insomnia without having psychophysiologic insomnia.

Duration alone is not sufficient to assign F51.04. The provider must establish the relevant diagnosis.

Assuming that mental health conditions cause insomnia

Patients with depression or anxiety may also experience sleep disturbances. However, both conditions can coexist without a documented causal relationship.

F51.05 should be used only when the physician establishes that insomnia is due to another mental disorder.

Reporting unsupported diagnostic testing

A patient complaining of insomnia does not automatically meet medical necessity criteria for polysomnography.

Before requesting or reporting a sleep study, verify the clinical indication and applicable insurer requirements.

Failing to document separately identifiable treatment

When psychotherapy and medical evaluation services are both provided, documentation must support the services billed and satisfy relevant reporting rules.

Reporting an office visit and psychotherapy together without meeting the applicable requirements may result in payment disputes or denials.

Common Claim Denials Associated With Insomnia Services

Insomnia-related claims may be rejected or denied because of diagnosis mismatches, missing documentation, medical necessity concerns, or errors in reporting the services performed.

Understanding common adjustment and remark codes can make follow-up more efficient.

CARC codes relevant to insomnia claims

CARC Meaning Recommended response
11 Diagnosis inconsistent with procedure Review the diagnosis-to-procedure relationship and payer policy
16 Claim/service lacks information or contains a submission error Identify and correct the missing or invalid information
50 Service not considered medically necessary by the payer Review coverage criteria and supporting documentation
96 Non-covered charge Verify benefit exclusions and coverage provisions
97 Service included in the payment for another service Check bundling and separate reporting rules
197 Authorization, precertification, or notification absent Review authorization requirements and payer records

RARC codes

Remittance Advice Remark Codes provide additional information about a payer’s decision.

For example, N115 refers to a decision based on a local coverage determination (LCD).

The exact remark code depends on the payer’s adjudication. It is important to review the complete explanation of benefits or electronic remittance advice rather than assuming that every insomnia claim denial has the same cause.

Steps to reduce insomnia-related claim problems

Before submitting claims, healthcare providers and their administrative partners should:

  1. Confirm that the diagnosis code reflects the documented condition.

  2. Review the medical necessity of the reported service.

  3. Match procedure codes to the treatment or diagnostic testing performed.

  4. Confirm psychotherapy time and documentation requirements when applicable.

  5. Check payer-specific coverage and authorization rules.

  6. Review code-level instructions and modifier requirements.

  7. Correct identified claim errors and submit supporting records when necessary.

For practices handling frequent sleep disorder and behavioral health encounters, Maryland Medical Billing can help connect accurate diagnosis reporting with organized claim submission, payer follow-up, and documentation review.

The objective is to ensure that the services provided are represented accurately and that preventable administrative issues do not interfere with reimbursement.

Treatment Approaches for Patients With Insomnia

Treatment depends on the patient’s symptoms, underlying conditions, medical history, and clinical assessment.

Although treatment choices do not determine ICD-10-CM code assignment by themselves, they are an important part of documenting medical necessity and ongoing care.

Cognitive behavioral therapy for insomnia (CBT-I)

CBT-I is recommended as a first-line treatment for chronic insomnia in adults.

It typically combines behavioral strategies, cognitive interventions, and education about sleep regulation.

Treatment may address sleep-related anxiety, inconsistent sleeping patterns, and behaviors that contribute to prolonged wakefulness.

The American Academy of Sleep Medicine strongly recommends multicomponent CBT-I for adults with chronic insomnia disorder. Sleep hygiene education alone is not considered an adequate substitute for comprehensive CBT-I.

Medication management

In some cases, physicians may consider medication based on the severity of symptoms, treatment response, coexisting conditions, and potential risks.

The clinical record should reflect the reason for prescribing medication, relevant safety considerations, and follow-up plans.

Prescribing a sleep medication does not automatically support a diagnosis of primary insomnia or any other specific subtype.

Treatment of underlying conditions

When insomnia is associated with chronic pain, psychiatric disorders, or another medical problem, treating the contributing condition may improve sleep.

Providers should address each clinically relevant condition and document its relationship to insomnia when established.

Monitoring treatment response

Follow-up visits help determine whether symptoms are improving and whether the treatment plan requires adjustment.

Useful documentation may include changes in sleep latency, nighttime awakenings, daytime functioning, medication response, and patient-reported sleep quality.

For patients receiving psychotherapy or structured behavioral treatment, progress notes should also record relevant interventions and treatment goals.

How Accurate Insomnia Coding Supports Healthcare Practices

Insomnia encounters may involve primary care, psychiatry, sleep medicine, behavioral health, or multiple specialties.

Each setting has its own documentation and claim reporting considerations.

For example, a primary care visit focused on medication management may require different supporting information than a psychotherapy session or sleep study.

Accurate coding helps establish a clear relationship between the patient’s diagnosis, the medical services provided, and the reason those services were necessary.

For healthcare organizations, consistent coding practices may also improve medical record clarity, support communication across specialties, and reduce avoidable claim corrections.

Maryland Medical Billing supports healthcare providers seeking a more organized approach to medical billing, including diagnosis code review, claims management, denial follow-up, and revenue cycle processes.

However, accurate reporting begins with the treating provider. No billing process can replace complete clinical assessment and properly documented diagnoses.

ICD-10-CM Updates for Insomnia in FY 2027

The FY 2027 ICD-10-CM code set became effective on October 1, 2026, replacing the April 1, 2026 release for applicable encounters and discharges.

The codes discussed in this guide remain relevant under the FY 2027 classification, but healthcare organizations should check the current official code files when assigning diagnoses.

CMS and the CDC provide the official releases and coding guidance.

Important considerations include:

  • Use the code set effective for the date of service.

  • Verify that the diagnosis code is valid and billable.

  • Review inclusion terms, exclusion notes, and additional coding instructions.

  • Do not assume that an older coding reference reflects the current fiscal year.

  • Confirm payer policies independently of ICD-10-CM code validity.

Providers can review the CMS ICD-10 coding resources and the CDC ICD-10-CM files for current official materials.

Conclusion

Selecting the correct insomnia ICD-10 code begins with understanding the patient’s sleep complaints and documenting the diagnosis accurately.

While G47.00 is commonly used for unspecified insomnia, other codes describe primary insomnia, adjustment insomnia, psychophysiologic insomnia, and sleep disturbances related to medical or mental health conditions.

The difference matters. A poorly supported diagnosis can affect clinical communication, medical necessity review, and claim processing.

For physicians, hospitals, and clinics, the most effective approach is straightforward: conduct a thorough assessment, document the established diagnosis, follow current ICD-10-CM guidelines, and ensure that the reported services match the care provided.

Accurate insomnia coding does more than support claims. It creates a reliable record of the patient’s condition and the medical care delivered.

Frequently Asked Questions About Insomnia ICD-10 Codes

1. What is the ICD-10 code for insomnia?

The ICD-10-CM code for unspecified insomnia is G47.00. More specific codes may be appropriate depending on the physician’s documented diagnosis.

2. What is the ICD-10 code for chronic insomnia?

There is no single code assigned to every case of chronic insomnia. F51.04 describes psychophysiologic insomnia, which may be associated with chronic symptoms, but it should not be applied to all chronic insomnia diagnoses. Code selection depends on the documented clinical classification and official ICD-10-CM indexing guidance.

3. What is the ICD-10 code for primary insomnia?

F51.01 is the ICD-10-CM code for primary insomnia. It should be used when the provider establishes that diagnosis.

4. Can insomnia and anxiety be coded together?

Yes, when both are clinically established and meet the applicable reporting requirements. However, F51.05 should not be selected unless the provider specifically identifies insomnia as due to another mental disorder.

5. Is G47.00 a billable ICD-10 code?

Yes. G47.00 is a valid, billable ICD-10-CM diagnosis code under the FY 2027 classification. The code is specific enough for reporting, but documentation and medical necessity requirements still apply.

6. What is the ICD-10 code for insomnia due to a medical condition?

G47.01 is used for insomnia due to a medical condition. The associated condition should also be coded in accordance with the classification instructions.

7. Does insomnia qualify for a sleep study?

Insomnia alone does not automatically establish medical necessity for a sleep study. Diagnostic testing may be appropriate when clinical findings suggest another sleep disorder or a qualifying indication under the relevant payer policy.

8. Can G47.00 and F51.01 be used interchangeably?

No. G47.00 describes unspecified insomnia, while F51.01 describes primary insomnia. The provider’s documented diagnosis determines which code is appropriate.

An Easy Guide for Providers

Get in Touch