Sleep
What Causes Insomnia? Understanding the Real Roots of Chronic Sleeplessness
Insomnia typically has multiple overlapping causes rather than one. The three main categories are life circumstances and stress (what starts it), psychological patterns (what keeps it going), and medical or psychiatric conditions and medications (what underlies it). Identifying which category applies matters, because each points to a different treatment approach.
Talk to a clinician
Amelia Reyes, LCSW — Behavioral Health Clinician
anxiety, depression & burnout. Gale can match you with a licensed clinician for a visit.
Find care →How does insomnia start?
Most insomnia begins with a triggering event — a stressful life change, an illness, travel, a schedule disruption. For most people, sleep returns to normal once the stressor resolves. For others, the insomnia outlives its trigger.
This is where the most important mechanism kicks in: the brain begins to associate the bed and bedtime with wakefulness, frustration, and anxiety rather than with rest. This conditioned arousal — sometimes called hyperarousal — is the central engine of chronic insomnia. The body becomes physiologically alert precisely when it is trying to sleep 1Ref 1Edinger JD, Arnedt JT, Bertisch SM, et al. (2021).Behavioral and Psychological Treatments for Chronic Insomnia Disorder in Adults: An American Academy of Sleep Medicine Clinical Practice Guideline.Hyperarousal as the central mechanism of chronic insomnia; CBT-I as first-line behavioral treatment.
What psychological patterns keep insomnia going?
Chronic insomnia is often maintained by a set of interacting habits and thought patterns. Clock-watching increases anxiety about remaining sleep time. Spending more time in bed trying to catch up weakens the mental connection between bed and sleep. Catastrophizing — "if I do not sleep tonight, tomorrow will be ruined" — raises arousal further. Excessive pre-sleep rituals and reorganizing daily life around sleep all reinforce the cycle.
These patterns are highly treatable. Cognitive Behavioral Therapy for Insomnia (CBT-I) was designed specifically to address them 1Ref 1Edinger JD, Arnedt JT, Bertisch SM, et al. (2021).Behavioral and Psychological Treatments for Chronic Insomnia Disorder in Adults: An American Academy of Sleep Medicine Clinical Practice Guideline.Hyperarousal as the central mechanism of chronic insomnia; CBT-I as first-line behavioral treatment. A systematic review and meta-analysis found CBT-I produces meaningful, durable improvements in sleep onset latency, waking after sleep onset, and overall sleep efficiency 2Ref 2Trauer JM, Qian MY, Doyle JS, Rajaratnam SMW, Cunnington D (2015).Cognitive Behavioral Therapy for Chronic Insomnia: A Systematic Review and Meta-analysis.CBT-I produces durable improvements in sleep onset latency, waking after sleep onset, and sleep efficiency.
What medical and psychiatric conditions cause insomnia?
Insomnia is often a symptom of something else:
Depression classically presents with early-morning awakening — waking at 3 or 4 a.m. and being unable to return to sleep 3Ref 3National Institute of Mental Health (2023).Depression.Depression causes early-morning awakening; anxiety produces hyperarousal that disrupts sleep.
Anxiety disorders produce the hyperarousal and racing thoughts that prevent sleep onset and maintenance 3Ref 3National Institute of Mental Health (2023).Depression.Depression causes early-morning awakening; anxiety produces hyperarousal that disrupts sleep.
Obstructive sleep apnea causes hundreds of micro-arousals per night that the sleeper may experience as insomnia rather than breathing stops 4Ref 4Kapur VK, Auckley DH, Chowdhuri S, et al. (2017).Clinical Practice Guideline for Diagnostic Testing for Adult Obstructive Sleep Apnea: An American Academy of Sleep Medicine Clinical Practice Guideline.Sleep apnea micro-arousals presenting as insomnia; CPAP as required treatment for OSA.
Chronic pain, acid reflux, heart failure, thyroid disease, and hormonal changes — especially perimenopause — are common medical drivers.
Restless legs syndrome causes an uncomfortable urge to move the legs in bed that prevents sleep onset 5Ref 5Allen RP, Picchietti DL, Garcia-Borreguero D, et al. (2014).Restless Legs Syndrome/Willis-Ekbom Disease Diagnostic Criteria: Updated International Restless Legs Syndrome Study Group (IRLSSG) Consensus Criteria.Restless legs syndrome as a cause of sleep-onset insomnia through uncomfortable urge to move legs at night.
These causes require their own treatments. Behavioral therapy alone will not fix a blocked airway or an untreated thyroid disorder.
What medications and substances are overlooked causes?
Caffeine has a longer active life in the body than most people realize — for many adults, caffeine consumed after noon is still meaningfully active at bedtime 6Ref 6Drake C, Roehrs T, Shambroom J, Roth T (2013).Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed.Caffeine consumed six hours before bedtime still significantly disrupts sleep. Alcohol is perhaps the most misunderstood sleep disruptor: it helps initiate sleep but fragments the second half of the night and suppresses restorative sleep stages 7Ref 7Ebrahim IO, Shapiro CM, Williams AJ, Fenwick PB (2013).Alcohol and Sleep I: Effects on Normal Sleep.Alcohol helps initiate sleep but fragments the second half of the night and suppresses restorative sleep stages. Nicotine is a stimulant.
Corticosteroids, some antidepressants, stimulant medications, beta-blockers, and decongestants can all cause or worsen insomnia. Reviewing the full medication list with a clinician or pharmacist is a straightforward step with real potential value.
Why does identifying the cause matter for treatment?
The cause of insomnia determines the treatment. Behaviorally-maintained chronic insomnia responds best to CBT-I 1Ref 1Edinger JD, Arnedt JT, Bertisch SM, et al. (2021).Behavioral and Psychological Treatments for Chronic Insomnia Disorder in Adults: An American Academy of Sleep Medicine Clinical Practice Guideline.Hyperarousal as the central mechanism of chronic insomnia; CBT-I as first-line behavioral treatment2Ref 2Trauer JM, Qian MY, Doyle JS, Rajaratnam SMW, Cunnington D (2015).Cognitive Behavioral Therapy for Chronic Insomnia: A Systematic Review and Meta-analysis.CBT-I produces durable improvements in sleep onset latency, waking after sleep onset, and sleep efficiency. Insomnia driven by depression responds to treatment of the depression 3Ref 3National Institute of Mental Health (2023).Depression.Depression causes early-morning awakening; anxiety produces hyperarousal that disrupts sleep. Sleep apnea requires CPAP or another airway intervention — behavioral therapy will not fix a mechanical obstruction 4Ref 4Kapur VK, Auckley DH, Chowdhuri S, et al. (2017).Clinical Practice Guideline for Diagnostic Testing for Adult Obstructive Sleep Apnea: An American Academy of Sleep Medicine Clinical Practice Guideline.Sleep apnea micro-arousals presenting as insomnia; CPAP as required treatment for OSA. Circadian disorders require light therapy and chronobiological interventions. Medication-caused insomnia may resolve by adjusting timing or switching the offending drug.
This is why a clinician's assessment is genuinely valuable — not just to reassure, but to point treatment in the right direction.
Common questions
Can insomnia be caused by anxiety and depression?
Yes, and the relationship runs both ways — anxiety and depression worsen insomnia, and insomnia worsens both conditions. Early-morning awakening is a classic sign of depression; racing thoughts at bedtime are typical of anxiety-driven insomnia. Treating the mood condition often improves sleep substantially.
Does sleep apnea cause insomnia?
It can. Sleep apnea causes repeated micro-arousals that some people experience as insomnia — difficulty staying asleep — rather than as breathing stops. The two conditions commonly coexist and each needs to be addressed.
Is CBT-I better than sleep medication?
For chronic insomnia, CBT-I is the first-line treatment recommended by clinical guidelines — its results tend to outlast those of medication and it carries no dependence risk. Medication may have a role in specific circumstances, but CBT-I is the more durable option for most people.
Can caffeine really keep me awake if I drink it in the afternoon?
Yes. Research shows caffeine consumed six hours before bedtime still significantly disrupts sleep. Many people underestimate how long caffeine stays active in their system.
When should I see a clinician about insomnia?
If poor sleep has persisted most nights for three months or more, is significantly affecting your daytime function, or is accompanied by mood symptoms, snoring, or gasping, see a clinician. Both the cause and the right treatment benefit from professional assessment.
Talk to a clinician
Amelia Reyes, LCSW — Behavioral Health Clinician
anxiety, depression & burnout. Gale can match you with a licensed clinician for a visit.
Find care →When to reach out now
- —Persistent inability to sleep accompanied by low mood, hopelessness, or thoughts of self-harm — reach out to 988 or your clinician immediately
- —New-onset insomnia with chest pain, shortness of breath, or heart palpitations — seek medical evaluation promptly
- —Significant unintended weight loss, night sweats, or fever alongside insomnia — warrant prompt evaluation to rule out serious underlying conditions
- —Insomnia so severe that you cannot function safely — including driving while severely sleep-deprived
- —Sudden onset of insomnia with no clear cause, especially if accompanied by confusion or neurological symptoms
If insomnia is accompanied by thoughts of self-harm or suicide, call or text 988 (Suicide and Crisis Lifeline) now, or go to your nearest emergency department.
This article provides general health education and is not a diagnosis or personalized medical advice. Insomnia has many possible causes, some of which require clinical evaluation and treatment. If your sleep problem is persistent, affecting your health or safety, or accompanied by mood symptoms, please see a licensed clinician.
References
- 1.Edinger JD, Arnedt JT, Bertisch SM, et al. (2021). Behavioral and Psychological Treatments for Chronic Insomnia Disorder in Adults: An American Academy of Sleep Medicine Clinical Practice Guideline. Journal of Clinical Sleep Medicine. doi:10.5664/jcsm.8986 ✓Hyperarousal as the central mechanism of chronic insomnia; CBT-I as first-line behavioral treatment
- 2.Trauer JM, Qian MY, Doyle JS, Rajaratnam SMW, Cunnington D (2015). Cognitive Behavioral Therapy for Chronic Insomnia: A Systematic Review and Meta-analysis. Annals of Internal Medicine. doi:10.7326/M14-2841 ✓CBT-I produces durable improvements in sleep onset latency, waking after sleep onset, and sleep efficiency
- 3.National Institute of Mental Health (2023). Depression. NIMH Health Topics. link ✓Depression causes early-morning awakening; anxiety produces hyperarousal that disrupts sleep
- 4.Kapur VK, Auckley DH, Chowdhuri S, et al. (2017). Clinical Practice Guideline for Diagnostic Testing for Adult Obstructive Sleep Apnea: An American Academy of Sleep Medicine Clinical Practice Guideline. Journal of Clinical Sleep Medicine. doi:10.5664/jcsm.6506 ✓Sleep apnea micro-arousals presenting as insomnia; CPAP as required treatment for OSA
- 5.Allen RP, Picchietti DL, Garcia-Borreguero D, et al. (2014). Restless Legs Syndrome/Willis-Ekbom Disease Diagnostic Criteria: Updated International Restless Legs Syndrome Study Group (IRLSSG) Consensus Criteria. Sleep Medicine. doi:10.1016/j.sleep.2014.03.025 ✓Restless legs syndrome as a cause of sleep-onset insomnia through uncomfortable urge to move legs at night
- 6.Drake C, Roehrs T, Shambroom J, Roth T (2013). Caffeine Effects on Sleep Taken 0, 3, or 6 Hours before Going to Bed. Journal of Clinical Sleep Medicine. doi:10.5664/jcsm.3170 ✓Caffeine consumed six hours before bedtime still significantly disrupts sleep
- 7.Ebrahim IO, Shapiro CM, Williams AJ, Fenwick PB (2013). Alcohol and Sleep I: Effects on Normal Sleep. Alcoholism: Clinical and Experimental Research. doi:10.1111/acer.12006 ✓Alcohol helps initiate sleep but fragments the second half of the night and suppresses restorative sleep stages
7 sources, numbered by first appearance. General health information, not medical advice — synthetic demonstration content.