G47.00ICD-10-CM

Insomnia, unspecified

BillableG47.0 is not billableA long Excludes2 list, all permissionsDuration is not a coding axis

How the code is built

G

Chapter

Diseases of the nervous system

47

Category

Sleep disorders

0

Char 4

Insomnia

0

Char 5

Cause not specified

Chapter

G00 to G99

Diseases of the nervous system

Block

G40 to G47

Episodic and paroxysmal disorders

Category

G47

Sleep disorders

Subcategory

G47.0

Insomnia, not billable on its own

Billable

Yes

Complete at 5 characters

Excludes2 at G47.0

Nonorganic insomnia, primary insomnia, insomnia due to a mental disorder, substance-related insomnia, sleep apnea

Excludes1

None

Every note reaching this code is a permission

Key takeaways

  • G47.00 is where a bare insomnia diagnosis lands when no cause is documented
  • Insomnia is split across two chapters, and the fork is organic versus nonorganic
  • G47.0 is a non-billable parent and has been since 2015, yet it still appears on claims
  • Every note reaching this code is an Excludes2, so nothing on that long list is prohibited alongside it
  • Chronic insomnia has no code of its own, because duration is not a coding axis
1Definition

What ICD-10 code G47.00 means

G47.00 is the ICD-10-CM code for insomnia, unspecified. It applies when a provider documents insomnia and the record identifies no cause.

It is the documented default. Published coding guidance states that insomnia without further specification defaults to this code, and that organic insomnia classifies here as well. So a note saying only insomnia lands on G47.00 rather than needing a query first.

Code

G47.00

Descriptor

Insomnia, unspecified

Chapter

Diseases of the nervous system

Block

Episodic and paroxysmal disorders

Category

G47, sleep disorders

Subcategory

G47.0, insomnia

Billable

Yes

Excludes1

None

G47.0 has never been billable, and claims still carry it. It has required a fifth character since ICD-10-CM took effect in 2015, yet the bare subcategory continues to appear on primary care, psychiatry, and sleep medicine claims. That is a rejection with no clinical content behind it.

2Code structure

Two chapters, and the fork between them

G47.00 has no subdivisions. What determines the code is which of two chapters the insomnia belongs to, and then which cause within it.

The organic family, in the nervous system chapter

Insomnia, no cause identified

G47.00

Insomnia due to a medical condition

G47.01, with the condition also coded

Other insomnia

G47.09

The nonorganic family, in the mental and behavioral chapter

Primary or idiopathic insomnia

F51.01

Adjustment insomnia

F51.02

Paradoxical insomnia

F51.03

Psychophysiologic insomnia

F51.04

Insomnia due to another mental disorder

F51.05, with the psychiatric condition coded also

Other nonorganic insomnia

F51.09

The fork is the provider's determination, not the coder's inference. Choose the nervous system family when the insomnia is unspecified or linked to a medical condition. Choose the mental and behavioral family only when the provider has documented a nonorganic, behavioral, or psychiatric cause.

Primary insomnia is not the fallback. It sounds like the general-purpose answer, and it is not. It requires the provider to have determined that no organic cause is present, which is a clinical finding rather than an absence of information. Where the note simply does not say, G47.00 applies.

A third family sits outside both. Insomnia attributed to alcohol, sedatives, stimulants, or other substances is classified in the substance-related sections, using the character sequence for substance-induced sleep disorder within the relevant substance category.

What the code does not record

Acute or chronic

None

Duration in weeks or months

None

Severity or frequency

None

Sleep-onset against sleep-maintenance pattern

None

Treatment tried

None

There is no chronic insomnia code. Coders search for one, and the classification does not contain a duration axis anywhere in this family. The code turns on cause. Chronic insomnia with no identified cause is still G47.00, and chronic insomnia documented as psychophysiologic is still the psychophysiologic code.

3Clinical picture

Clinical findings documented under G47.00

A record supporting this code establishes a sleep complaint with daytime consequence and offers no cause.

Sleep complaint

Difficulty initiating sleep, difficulty maintaining sleep, early waking, non-restorative sleep

Pattern

Frequency per week, duration of the problem, and whether it is situational

Daytime impact

Fatigue, impaired concentration, mood disturbance, effect on work or driving

Sleep habits

Schedule, environment, screen and caffeine exposure, napping

Screening for other sleep disorders

Snoring, witnessed apnea, restless legs, circadian pattern

Medical and psychiatric review

Conditions and medications that disturb sleep

Substances

Alcohol, stimulants, sedatives, and prescribed agents

The last three rows are where the code changes. A documented medical cause moves the encounter to the medical-condition code. A documented psychiatric or behavioral cause moves it to the mental and behavioral chapter. A substance moves it again.

4Documentation

What the chart must show

  • A provider-stated diagnosis of insomnia
  • Whether a cause has been identified, and what kind
  • The specific sleep complaint, meaning onset, maintenance, or early waking
  • Daytime consequence, since that is what distinguishes the disorder from short sleep
  • Duration and frequency, which do not change the code but do support medical necessity
  • Any medical condition the provider links to the insomnia
  • Any psychiatric condition, and whether the insomnia is attributed to it
  • Substance and medication history
  • Whether sleep apnea or another sleep disorder has been considered

The single most useful sentence a provider can write is the causal one. Insomnia due to chronic pain, insomnia related to depression, insomnia with no identified cause. Each of those routes to a different code family, and without one the claim goes out unspecified while the note may well contain the answer elsewhere.

5Decision guide

When to assign G47.00, and when not to

Insomnia, no cause identified

G47.00

Chronic insomnia, no cause identified

G47.00, since duration is not a coding axis

Organic insomnia

G47.00

Insomnia due to a named medical condition

G47.01, with the condition coded

Other specified insomnia

G47.09

Primary or idiopathic insomnia

F51.01

Adjustment insomnia following a stressor

F51.02

Paradoxical insomnia

F51.03

Psychophysiologic insomnia

F51.04

Insomnia due to a mental disorder

The psychiatric condition first, then F51.05

Alcohol-related or drug-related insomnia

The applicable substance code

Obstructive sleep apnea

G47.33, reportable alongside G47.00

A circadian rhythm disorder

The applicable G47.2 code

Restless legs syndrome

G25.81

Sleep deprivation without a disorder

Z72.820

Difficulty sleeping reported with no diagnosis

Query, since a complaint is not a diagnosis

Query rather than default when the assessment names a medical or psychiatric condition and does not say whether the insomnia arises from it, and when a substance appears in the history without being linked.

6Tabular list

Instructional notes at G47.0 and above

Excludes2 at G47.0

Nonorganic insomnia, and insomnia not due to a substance or known physiological condition (F51.0-)

Excludes2 at G47.0

Primary insomnia and idiopathic insomnia (F51.01)

Excludes2 at G47.0

Insomnia due to a mental disorder (F51.05)

Excludes2 at G47.0

Alcohol related insomnia, and drug-related insomnia across the substance categories

Excludes2 at G47.0

Sleep apnea (G47.3-)

Excludes2 at G47

Nightmares, sleep terrors, sleepwalking, and nonorganic sleep disorders (F51.-)

Code also at G47.01

The associated medical condition

Every note reaching this code is an Excludes2, and there is no Excludes1 anywhere. That is the fact to take away, because the list is long enough to read like a set of prohibitions, and it is the opposite.

Misreading that list as Excludes1 is named in published guidance as one of the most common insomnia coding errors. An Excludes2 means the excluded condition is not part of what the code describes, but a patient may have both and both may be reported. So a patient with obstructive sleep apnea and separately documented insomnia carries both codes. So does a patient with a nonorganic insomnia diagnosis and an unrelated organic sleep complaint, where the documentation supports two distinct conditions.

The practical limit is documentation rather than the note. The permission exists for genuinely separate conditions. Where the provider has already named the insomnia as nonorganic, that is one condition with one code, and adding G47.00 reports the same thing twice.

One sequencing point sits in the mental and behavioral family. Insomnia due to another mental disorder carries a code-also instruction for the psychiatric condition, and claims carrying that code alone, or sequenced ahead of the psychiatric condition, trip sequencing edits.

7Comparison

Codes frequently confused with G47.00

G47.01

Descriptor

Insomnia due to medical condition

Use instead when

A medical condition is documented as the cause, and coded also

G47.09

Descriptor

Other insomnia

Use instead when

Another specified organic insomnia is documented

G47.0

Descriptor

Insomnia

Use instead when

Never, since the subcategory is not billable

F51.01

Descriptor

Primary insomnia

Use instead when

The provider documents primary or idiopathic insomnia

F51.02

Descriptor

Adjustment insomnia

Use instead when

Insomnia follows an identifiable stressor

F51.03

Descriptor

Paradoxical insomnia

Use instead when

Paradoxical insomnia is diagnosed

F51.04

Descriptor

Psychophysiologic insomnia

Use instead when

Psychophysiologic insomnia is diagnosed

F51.05

Descriptor

Insomnia due to other mental disorder

Use instead when

A psychiatric condition is the cause, sequenced first

F51.09

Descriptor

Other insomnia not due to a substance or known physiological condition

Use instead when

Another nonorganic insomnia is documented

G47.33

Descriptor

Obstructive sleep apnea, adult and pediatric

Use instead when

Sleep apnea is diagnosed, reportable alongside

G47.2-

Descriptor

Circadian rhythm sleep disorders

Use instead when

A circadian pattern disorder is documented

G47.1-

Descriptor

Hypersomnia

Use instead when

Excessive sleepiness rather than difficulty sleeping

G47.4-

Descriptor

Narcolepsy and cataplexy

Use instead when

Narcolepsy is diagnosed

G47.8, G47.9

Descriptor

Other and unspecified sleep disorders

Use instead when

A sleep disorder is documented that is not insomnia

G25.81

Descriptor

Restless legs syndrome

Use instead when

Restless legs is diagnosed

F51.3, F51.4, F51.5

Descriptor

Sleepwalking, sleep terrors, nightmare disorder

Use instead when

A parasomnia is documented

Z72.820

Descriptor

Sleep deprivation

Use instead when

Insufficient sleep without a disorder

R41.83, R53.83

Descriptor

Borderline intellectual functioning, other fatigue

Use instead when

Daytime consequences are documented separately

The F51.01 row is the one that decides most claims. Primary insomnia is a positive clinical determination that no organic cause exists. It is not a synonym for insomnia with no cause written down.

8Claim context

Services commonly reported with G47.00

G47.00 supports primary care, psychiatry, neurology, and sleep medicine evaluation and management, along with sleep studies, actigraphy, cognitive behavioral therapy for insomnia, and pharmacologic management.

Sleep studies are the service where the diagnosis code carries weight. Attended polysomnography and home sleep apnea testing are governed by contractor policy, and those policies key on the clinical suspicion the study is meant to test. Insomnia alone is generally not sufficient indication for a sleep study, because the study is designed to detect apnea and other disorders rather than to confirm insomnia, which is a clinical diagnosis. Where a study is ordered, the record should document what other sleep disorder is suspected.

Insomnia and sleep apnea coexist and co-code. Both may appear on the same claim, and both support the medical necessity of a study when both are documented. Sequence by whichever was the focus of the encounter.

Behavioral treatment carries its own requirements. Cognitive behavioral therapy for insomnia is delivered under psychotherapy or health behavior intervention codes depending on the setting and the rendering provider, and coverage rules for those differ by payer and by whether behavioral health is administered under a carve-out.

Confirm the contractor's determination for sleep testing, and the payer's behavioral health policy for structured insomnia therapy.

9Denials

Coding errors that cause denials

Submitting G47.0 without a fifth character

Complete the code, since the subcategory has never been billable

Defaulting to G47.00 when the note names a medical cause

Assign G47.01 and code the condition

Using primary insomnia as the general-purpose insomnia code

Assign G47.00 unless the provider determined the insomnia is nonorganic

Reading the Excludes2 list as prohibitions

Check the note type, since every one is a permission

Reporting both an organic and a nonorganic insomnia code for one condition

Report one, since the permission is for genuinely separate conditions

Dropping the sleep apnea code because insomnia is coded

Report both, since the note is an Excludes2

Reporting insomnia due to a mental disorder without the psychiatric code

Add it, and sequence the psychiatric condition first

Searching for a chronic insomnia code

Assign by cause, since duration is not a coding axis

Coding substance-related insomnia to G47.00

Assign the applicable substance code

Ordering a sleep study on an insomnia diagnosis alone

Document the sleep disorder the study is meant to evaluate

10Sources

Where to verify G47.00

ICD-10-CM Official Guidelines for Coding and Reporting

The Excludes1 and Excludes2 definitions, the code also convention, and the conventions on unspecified codes

ICD-10-CM Tabular List at G47.0 and G47

The full Excludes2 list at both levels, the non-billable status of the subcategory, and the code also at the medical condition code

ICD-10-CM Alphabetic Index at Insomnia

The routing of the unqualified term and of the named insomnia types

CMS ICD-10 code page and the FY 2026 files

Current code files and the annual addenda

Medicare Coverage Database

Search your contractor's determinations for polysomnography and home sleep apnea testing, and the payer's behavioral health policy for structured insomnia therapy.

Find the specificity
before the payer does

TruRev validates diagnosis specificity, sequencing, and medical necessity at charge entry, then routes what fails to a certified coder instead of the clearinghouse.

Last reviewed August 2026

This page is a free reference for billing and coding teams and is not coding, legal, or clinical advice. Code selection depends on the documentation in the record and on the policy of the payer being billed. Verify every code, instructional note, and sequencing rule against the current ICD-10-CM files and the Official Guidelines for Coding and Reporting for the applicable date of service. ICD-10-CM is maintained by the CDC's National Center for Health Statistics and published by CMS. CPT is a registered trademark of the American Medical Association. TruCare is not affiliated with CMS, NCHS, the AHA, or the AMA.

We use cookies to understand how visitors use our site and to improve your experience. You can accept or decline analytics cookies. See our Privacy Policy for details.