When Insomnia Is a Symptom: The Medical Conditions Behind Persistent Sleeplessness
Patients arrive at CED asking for help with sleep more often than for almost any other symptom. A meaningful share of them have an untreated medical condition driving the insomnia, and starting any sleep intervention before that is identified risks masking it.
Chronic insomnia is frequently a symptom of something else. Community data show that people with heart disease, breathing problems, chronic pain, gastrointestinal disease, urinary problems, or neurologic disease report chronic insomnia at roughly two to three times the rate of people without those conditions. Identifying the driver changes what treatment makes sense.
The clinical question worth asking first is not which sleep aid to try. It is whether the insomnia is the problem or the presenting sign of a problem. Those lead to very different plans.
Insomnia and medical illness also run in both directions. Poor sleep worsens pain sensitivity, glycemic control, and mood, which in turn worsen sleep. That loop is one reason chronic insomnia rarely resolves when only one end of it is addressed.
| Audience | Patients, caregivers, and clinicians |
| Primary Topic | Medical conditions that cause or sustain chronic insomnia |
| Source | Read the full source |
Chronic insomnia disorder is defined by difficulty initiating or maintaining sleep on at least three nights per week for at least three months, with daytime consequences. Nothing in that definition specifies a cause, which means the diagnosis can be correctly applied to a patient whose underlying condition has never been looked for.
Treating the sleep complaint without evaluating for a medical driver can delay recognition of untreated sleep apnea, heart failure, reflux disease, or an unrecognized movement disorder. In some of those cases, sedation is not a neutral intervention.
The most cited community-level estimate comes from a study of 772 men and women aged 20 to 98, published in Sleep in 2007 by Taylor and colleagues. Participants completed self-report measures of sleep, health, depression, and anxiety, and the analysis compared insomnia rates across medical conditions in both directions.
Looked at from the illness side, the proportions are striking. Chronic insomnia was reported by 66.7 percent of people with neurologic disease versus 24.3 percent of those without, 59.6 percent of those with breathing problems versus 21.4 percent, 55.4 percent with gastrointestinal problems versus 20.0 percent, 48.6 percent with chronic pain versus 17.2 percent, 44.1 percent with heart disease versus 22.8 percent, 44.0 percent with high blood pressure versus 19.3 percent, 41.5 percent with urinary problems versus 23.3 percent, and 41.4 percent with cancer versus 24.6 percent.
When all medical problems were entered together, only hypertension, breathing problems, urinary problems, chronic pain, and gastrointestinal problems remained independently associated with higher insomnia rates. That adjustment matters: it suggests some of the single-condition associations reflect clustering of illness rather than separate causal pathways.
The mechanisms are not interchangeable, and knowing which one is operating tells you where to intervene. Respiratory conditions fragment sleep through repeated arousals and nocturnal desaturation. Pain conditions work through nociceptive arousal compounded by the hyperalgesia that sleep loss itself produces. Cardiac conditions interrupt sleep through orthopnea, paroxysmal nocturnal dyspnea, and nocturnal diuresis.
Gastrointestinal conditions, particularly reflux disease, produce arousals tied to recumbency. Urologic conditions act through nocturia, whether from prostatic obstruction, overactive bladder, diuretic timing, or chronic kidney disease. Neurologic conditions are the most heterogeneous group, encompassing restless legs syndrome, REM sleep behavior disorder, circadian disruption in dementia, and the sleep architecture changes of Parkinson disease.
Hormonal contributors follow their own pattern. In 3,045 women aged 42 to 52 followed across seven annual assessments in the Study of Women’s Health Across the Nation, more frequent vasomotor symptoms were associated with higher odds of difficulty falling asleep, difficulty staying asleep, and early morning awakening, and adjusted odds for the first two rose through the menopausal transition.
Restless legs syndrome is the clearest example of a treatable condition that reaches clinicians as a sleep complaint. In a survey of 15,391 completed questionnaires from adults aged 18 and over, symptoms occurring at least twice weekly and rated moderately or severely distressing were present in 2.7 percent. Of that group, 81.0 percent had discussed their symptoms with a primary care physician, and only 6.2 percent had received a diagnosis of restless legs syndrome.
Obstructive sleep apnea presents similarly. Patients frequently describe the problem as insomnia rather than as snoring or daytime sleepiness, particularly women and older adults, and the sleep maintenance pattern can look identical to primary insomnia from the history alone.
The practical implication is that a sleep complaint deserves a history that reaches past the sleep itself: what wakes the person, what position they sleep in, what happens to their legs in the evening, what medications they take and when, and what their bladder, chest, joints, and stomach are doing overnight.
The American College of Physicians recommends cognitive behavioral therapy for insomnia as the initial treatment for chronic insomnia disorder in all adult patients, a strong recommendation based on moderate-quality evidence, with pharmacotherapy considered through shared decision-making only when that approach has not succeeded.
The American Academy of Sleep Medicine’s 2017 pharmacologic guideline is notable for what it advises against. Using GRADE methodology, the task force suggested that clinicians not use trazodone, diphenhydramine, melatonin, tryptophan, or valerian for sleep onset or sleep maintenance insomnia. Several of those are the exact agents patients reach for without a prescription.
None of that argues against treating the sleep complaint. It argues that sedation is a weak tool applied to a symptom whose cause has not been characterized, and that the agents most readily available over the counter have the least support behind them.
The honest summary of the cannabinoid sleep literature is that it is mixed and methodologically limited. A systematic review of 39 publications examining cannabinoid administration and quantitative sleep measures in humans reported varied effects across sleep outcomes and concluded that methodological problems in the majority of studies precluded any definitive conclusion.
A widely cited retrospective chart review of 72 adults at a psychiatric clinic found sleep scores improved within the first month in 66.7 percent of patients but fluctuated over time. A retrospective case series with no control group and a fluctuating outcome is hypothesis-generating, and it is regularly quoted as though it were a trial.
For obstructive sleep apnea specifically, the position is explicit. A phase II randomized trial of 73 adults with moderate or severe apnea found that dronabinol reduced the apnea-hypopnea index in a dose-dependent fashion, but the American Academy of Sleep Medicine subsequently issued a position statement that medical cannabis and its synthetic extracts should not be used to treat obstructive sleep apnea, citing unreliable delivery methods and insufficient evidence on effectiveness, tolerability, and safety, and recommending that apnea be excluded from state medical cannabis program condition lists.
Anyone using cannabis for sleep who has not been evaluated for apnea is in exactly the situation that position statement was written about.
A sleep history that specifies the pattern matters more than a global complaint of poor sleep. Difficulty falling asleep, difficulty staying asleep, and early morning awakening point in different directions, and the answer to what wakes the person is often the diagnosis.
A medication and substance review belongs in the same visit, covering timing as well as agents: diuretic dosing, stimulant dosing, corticosteroids, and alcohol used as a sleep aid are common and modifiable contributors.
Depending on that history, evaluation may reasonably extend to screening for sleep-disordered breathing, assessment for restless legs syndrome, thyroid function testing, review of reflux and urologic symptoms, and screening for depression and anxiety, which are both common comorbidities and independent predictors. A pooled analysis of 21 longitudinal epidemiological studies found that people with insomnia and no depression at baseline had roughly twice the odds of developing depression at follow-up, with a random-effects odds ratio of 2.60.
None of this is a protocol a patient should work through alone. It is the shape of a conversation worth having with a clinician who will take the overnight details seriously.
| Neurologic | Parkinson disease, dementia, stroke, restless legs syndrome, REM sleep behavior disorder. Chronic insomnia reported by 66.7 percent of people with neurologic disease versus 24.3 percent without (Taylor 2007, Sleep 30:213, PMID 17326547). |
| Respiratory and airway | Obstructive sleep apnea, chronic obstructive pulmonary disease, nocturnal asthma. Mechanism: repeated arousals and nocturnal desaturation. 59.6 percent versus 21.4 percent (Taylor 2007). |
| Gastrointestinal | Gastroesophageal reflux, irritable bowel syndrome, inflammatory bowel disease. Mechanism: recumbency-related arousal. 55.4 percent versus 20.0 percent (Taylor 2007). |
| Pain | Osteoarthritis, neuropathy, inflammatory arthritis, headache disorders. Mechanism: nociceptive arousal plus sleep-loss hyperalgesia, a bidirectional loop. 48.6 percent versus 17.2 percent (Taylor 2007). |
| Cardiovascular | Heart failure with orthopnea or paroxysmal nocturnal dyspnea, arrhythmia, angina. 44.1 percent versus 22.8 percent for heart disease; 44.0 percent versus 19.3 percent for hypertension (Taylor 2007). |
| Genitourinary | Nocturia, benign prostatic hyperplasia, overactive bladder, chronic kidney disease, diuretic timing. 41.5 percent versus 23.3 percent (Taylor 2007). |
| Oncologic | Cancer and its treatment. 41.4 percent versus 24.6 percent (Taylor 2007). |
| Hormonal and reproductive | Menopausal transition. Across 3,045 women aged 42 to 52 followed for 7 annual assessments, more frequent vasomotor symptoms were associated with higher odds of trouble falling asleep, staying asleep, and early morning awakening (Kravitz 2008, Sleep 31:979, PMID 18652093). |
| Psychiatric | Depression and anxiety disorders. In a pooled analysis of 21 longitudinal studies, insomnia without baseline depression predicted later depression with a random-effects odds ratio of 2.60 (95% CI 1.98 to 3.42) (Baglioni 2011, J Affect Disord 135:10, PMID 21300408). |
| Underdiagnosed movement disorder | Clinically significant restless legs syndrome affected 2.7 percent of 15,391 survey respondents; 81.0 percent had raised symptoms with a primary care physician and only 6.2 percent had received the diagnosis (Allen 2005, Arch Intern Med 165:1286, PMID 15956009). |
| Why identification matters | Insomnia with polysomnography-confirmed short sleep under 6 hours was associated with 29 percent higher incident cardiovascular disease risk over a median 11.4 years in 4,437 participants (HR 1.29, 95% CI 1.00 to 1.66) (Bertisch 2018, Sleep 41:zsy047, PMID 29522193). |
The comorbidity estimates come largely from cross-sectional community surveys using self-report. That design is appropriate for establishing that insomnia and medical illness travel together, and it establishes that clearly and consistently. It cannot establish which came first.
The prognostic and longitudinal material is stronger. The cardiovascular association used objective polysomnography with a median 11.4 years of follow-up, and the depression association pooled 21 longitudinal studies. Those designs support directional claims that the cross-sectional work cannot.
The headline comorbidity percentages are frequently quoted without the multivariate adjustment that accompanied them. When all medical problems were considered together, only hypertension, breathing problems, urinary problems, chronic pain, and gastrointestinal problems retained an independent association. Quoting the unadjusted figure for cancer or neurologic disease overstates what the analysis showed.
Self-reported medical history and self-reported sleep also share measurement error in a predictable direction: people who feel unwell report both more illness and worse sleep. The cardiovascular finding is more robust precisely because sleep duration there was measured objectively rather than reported.
This literature does not show that treating an underlying medical condition resolves the insomnia. That is a reasonable clinical expectation in many cases and it has been tested in relatively few. The authors of the comorbidity study said as much, noting that the efficacy of treating insomnia in most of these comorbid conditions has not been tested.
It also does not support ranking these conditions by how often they cause insomnia in an individual patient. Community prevalence is not diagnostic probability, and a patient’s own history carries far more weight than a population percentage.
Sleep medicine spent decades separating primary from secondary insomnia, then largely abandoned the distinction because it proved unreliable and because it encouraged clinicians to defer treating sleep until the other condition resolved. Current guidelines treat insomnia as a comorbid disorder deserving its own attention.
That shift should not be read as permission to skip the evaluation. The contemporary position is that both deserve treatment, not that the underlying cause stopped mattering. The conditions most commonly missed, apnea and restless legs syndrome, are also among the most treatable.
The question I ask that changes the visit most often is not how long it takes someone to fall asleep. It is what wakes them up. Patients describe it precisely when asked: a full bladder, a coughing fit, reflux burning, a leg that will not settle, or waking with a start and no idea why. Each of those points somewhere different.
I see a lot of people who have been using cannabis for sleep for years and have never had an apnea evaluation. That combination worries me. The sleep specialty organizations have been clear that cannabis is not a treatment for apnea, and a product that makes the nights feel shorter can delay recognition of something that is quietly damaging the heart.
None of this means sleep should be left untreated while a workup proceeds. It means both threads get pulled at once, which is what current guidelines actually say.
Chronic insomnia frequently accompanies an identifiable medical condition, and the mechanism differs enough between conditions that the differential changes the plan. Ask what wakes the patient, review medication timing, and consider evaluation for sleep-disordered breathing and restless legs syndrome before settling on a sedating intervention. Treating the sleep and investigating the cause are parallel tasks, not sequential ones.
Carry forward the mechanism framework and the two conditions most often missed, sleep apnea and restless legs syndrome. Carry forward the adjusted rather than the unadjusted comorbidity findings. Leave behind any published table assigning confidence intervals to cannabinoid effects on individual sleep stages. Those numbers circulate widely and are not derived from measured data.
How to read comorbidity data without turning it into a diagnosis
Medical Causes of Chronic Insomnia, Seen From Eight Angles
A clinical reference read through the lenses that matter in practice.
What wakes you is the useful detail
A clinician can do more with a specific account than with a general one. Waking to urinate, waking coughing, waking with heartburn, waking because a leg will not settle, and waking with no identifiable reason point toward different conditions.
Bring the timing too: when medications are taken, when the last meal and last drink happened, and what time the waking occurs. That detail is often where the answer is.
Structure the history around arousal
Separating sleep onset difficulty from maintenance difficulty from early morning awakening narrows the differential quickly, and asking what terminates sleep narrows it further. Bed partner report adds information the patient cannot supply.
Medication timing review is fast and frequently productive: diuretics dosed late, stimulants dosed late, corticosteroids, and alcohol used as a sleep aid are common and modifiable.
Correlation is doing a lot of work here
The comorbidity percentages come from cross-sectional self-report, where people who feel unwell reliably report both more illness and worse sleep. That shared measurement error inflates associations in a predictable direction.
The multivariate adjustment in the same study is the more informative result, and it narrowed the list considerably. It is also the part most often dropped when these figures are quoted.
The cannabinoid sleep tables deserve scrutiny
Patient-facing charts assigning percentage confidence intervals to cannabinoid effects on individual sleep stages appear throughout the online literature. Those values are not derived from measurement, and the systematic review of human cannabinoid sleep studies concluded that methodological problems precluded definitive conclusions.
A retrospective chart review without a control group, however large, does not support a numeric effect estimate for a sleep stage.
From secondary insomnia to comorbid insomnia
Sleep medicine once classified insomnia as primary or secondary and often deferred treating the sleep until the other condition improved. That distinction proved unreliable in practice and was largely set aside.
The current framing treats insomnia as a comorbid disorder warranting its own treatment, which is a change in emphasis rather than a statement that underlying causes stopped mattering.
What usually changes first
Medication timing, evening fluid intake, and evaluation for sleep-disordered breathing are the interventions most likely to produce a visible change early, because they address arousal rather than sedating through it.
Cognitive behavioral therapy for insomnia is the guideline-recommended initial treatment for chronic insomnia disorder in adults, and it is compatible with ongoing evaluation for a medical driver.
The trials that have not been run
The comorbidity authors noted directly that the efficacy of treating insomnia in most of these comorbid conditions has not been tested. Condition-specific trials, particularly in cardiac, renal, and gastrointestinal disease, would fill a real gap.
On the cannabinoid side, adequately powered trials with polysomnographic endpoints and defined products would replace a literature currently dominated by case series and small crossovers.
Condition lists and sleep apnea
The American Academy of Sleep Medicine has taken the position that medical cannabis and its synthetic extracts should not be used to treat obstructive sleep apnea, and that apnea should be excluded from state medical cannabis program condition lists.
That position rests on unreliable delivery methods and insufficient evidence on effectiveness, tolerability, and safety, not on a claim that the pilot pharmacology was uninteresting.
Join the Conversation
Have a question about how this applies to your situation? Ask Dr. Caplan
Want to discuss this topic with other patients and caregivers? Join the forum discussion
Frequently Asked Questions
What medical conditions most often cause chronic insomnia?
In a community study of 772 adults, chronic insomnia was reported by 66.7 percent of people with neurologic disease, 59.6 percent with breathing problems, 55.4 percent with gastrointestinal problems, 48.6 percent with chronic pain, 44.1 percent with heart disease, 41.5 percent with urinary problems, and 41.4 percent with cancer. After adjusting for co-occurring illness, hypertension, breathing problems, urinary problems, chronic pain, and gastrointestinal problems retained independent associations.
How is chronic insomnia formally defined?
Chronic insomnia disorder requires difficulty initiating or maintaining sleep on at least three nights per week for at least three months, accompanied by daytime consequences such as fatigue, impaired concentration, or mood disturbance, despite adequate opportunity for sleep. The definition does not specify a cause, which means it can be correctly applied to a patient whose underlying medical driver has not yet been identified.
Which treatable conditions are most often mistaken for insomnia?
Obstructive sleep apnea and restless legs syndrome. In a survey with 15,391 completed questionnaires, clinically significant restless legs syndrome affected 2.7 percent of respondents; 81.0 percent had raised their symptoms with a primary care physician and only 6.2 percent had received the diagnosis. Sleep apnea is similarly under-recognized when patients describe the problem as difficulty staying asleep rather than as snoring or daytime sleepiness.
What is the recommended first treatment for chronic insomnia?
The American College of Physicians recommends cognitive behavioral therapy for insomnia as the initial treatment for all adult patients with chronic insomnia disorder, a strong recommendation based on moderate-quality evidence. Pharmacologic therapy is recommended only through shared decision-making, after that approach has not succeeded, with explicit discussion of benefits, harms, and costs of short-term medication use.
Are over-the-counter sleep aids supported by guidelines?
Largely not. The 2017 American Academy of Sleep Medicine pharmacologic guideline suggested that clinicians not use diphenhydramine, melatonin, tryptophan, valerian, or trazodone for sleep onset or sleep maintenance insomnia in adults. Those recommendations were graded weak, reflecting limited evidence rather than demonstrated harm, but they cover several of the agents patients most commonly reach for without medical advice.
Does cannabis help chronic insomnia?
The evidence is mixed and methodologically limited. A systematic review of 39 human studies of cannabinoid administration and quantitative sleep measures found varied effects and concluded that methodological problems precluded definitive conclusions. A widely cited retrospective chart review of 72 adults reported sleep score improvement in 66.7 percent within the first month, but scores fluctuated over time and the study had no control group.
Can cannabis be used to treat sleep apnea?
The American Academy of Sleep Medicine position statement says it should not be. A phase II randomized trial of 73 adults found that dronabinol reduced the apnea-hypopnea index in a dose-dependent manner, but the Academy concluded that medical cannabis and its synthetic extracts should not be used for obstructive sleep apnea, citing unreliable delivery methods and insufficient evidence on effectiveness, tolerability, and safety, and recommended excluding apnea from state program condition lists.
Why does identifying the cause of insomnia matter if the sleep is treated anyway?
Because some causes carry independent risk. Insomnia accompanied by polysomnography-confirmed sleep under six hours was associated with a 29 percent higher risk of incident cardiovascular disease over a median 11.4 years among 4,437 participants. Sedating a sleep complaint without characterizing its cause can also delay recognition of untreated apnea, heart failure, reflux disease, or a movement disorder that has its own effective treatment.