Sleep and Anxiety: The Two-Way Relationship
A lesson on how anxiety disrupts sleep, how poor sleep worsens anxiety, and what the evidence says about breaking the cycle.
If you’ve ever lain awake at 2 a.m. with your thoughts racing, you already know that anxiety and sleep don’t mix well. But the relationship goes both ways: anxiety disrupts sleep, and disrupted sleep makes you more anxious the next day. This lesson looks at how that cycle works and what you can do about it.
Learning objective
By the end of this lesson, you should be able to describe the bidirectional link between anxiety and sleep, explain why cognitive arousal matters more than physical arousal at bedtime, and identify two or three sleep practices you can try.
The concept
How anxiety disrupts sleep
The most obvious route is through cognitive arousal: the worry, mental rehearsal and “what if” thinking that accelerate when external distractions stop. Harvey’s study compared people with insomnia and good sleepers on their pre-sleep mental activity. The key finding was that cognitive arousal — racing thoughts and worry — was a stronger predictor of sleep difficulty than somatic arousal like a fast heartbeat or tense muscles [2].
This makes intuitive sense. Your body can be physically tired while your mind runs through tomorrow’s meeting, last week’s argument and next month’s deadline. The arousal that keeps you awake is often mental, not physical.
How poor sleep amplifies anxiety
The other direction is just as important. A systematic review of longitudinal studies found that sleep disturbance predicted subsequent anxiety, not just the reverse [3]. And the mechanism has been studied experimentally: sleep deprivation, particularly the loss of REM sleep, amplifies emotional reactivity in brain regions associated with threat processing [5].
In practical terms: after a bad night, ambiguous situations feel more threatening, your tolerance for uncertainty drops, and the cognitive distortions covered in earlier lessons become more convincing. Ben Simon and Walker showed that even a single night of sleep deprivation increased participants’ next-day anxiety and social withdrawal [1].
The resulting loop
Poor sleep → heightened anxiety → more cognitive arousal at bedtime → poorer sleep → even more anxiety. Each factor worsens the other, and without intervention the cycle tends to intensify.
A worked example
The following is a fictional example used for teaching.
Deepa has a project deadline on Friday. On Tuesday night she lies in bed mentally rehearsing her presentation. She checks the time: 1.17 a.m. The thought “I’m not going to be able to function tomorrow” arrives, and now she’s anxious about not sleeping as well as about the presentation.
- Cognitive arousal: running through slides, anticipating questions, planning what to wear.
- Sleep anxiety: monitoring how long she’s been awake, calculating how few hours are left.
- Behavior: checking her phone (the light further delays sleep), trying to force herself to relax (which creates more tension).
On Wednesday she feels foggy and irritable. She interprets ambiguous feedback from a colleague as criticism (a thinking pattern she might have caught on a well-rested day), which increases her anxiety about Friday, which makes Wednesday night worse.
What works: the evidence
CBT for insomnia (CBT-I)
CBT-I is the first-line recommended treatment for chronic insomnia. A meta-analysis of 20 randomized trials found it produced durable improvements in sleep onset latency, time awake after falling asleep and sleep quality, and these gains held after treatment ended [4]. CBT-I works even when insomnia occurs alongside anxiety or depression.
The core components are:
- Sleep restriction: temporarily limiting time in bed to the time you actually sleep, then gradually increasing it.
- Stimulus control: using the bed only for sleep (and sex), and getting up if you haven’t fallen asleep within about 20 minutes.
- Cognitive restructuring: working on unhelpful beliefs about sleep (“I must get eight hours or I can’t function”).
CBT-I is a structured program best delivered by a trained professional, but understanding its principles can help you spot which of your current habits are working against you.
Sleep hygiene
Sleep hygiene refers to the behavioral and environmental conditions that support good sleep. A review of the evidence found that while no single practice is a cure for insomnia, several have reasonable support [6]:
- Keep a consistent wake time, even on weekends.
- Avoid caffeine in the afternoon and evening.
- Keep the bedroom cool, dark and quiet.
- Limit screens in the hour before bed (light suppresses melatonin).
- Avoid alcohol as a sleep aid; it fragments later sleep stages.
Sleep hygiene alone is not usually enough for established insomnia, but it removes common obstacles.
A common misunderstanding
“I need to relax before I can sleep.” Trying hard to relax often backfires, because the effort itself creates a kind of performance pressure. A more helpful approach is to allow wakefulness rather than fight it. Get up, do something low-key in dim light, and return to bed when sleepy. The aim is to break the association between bed and struggle.
An exercise: the pre-sleep worry download
Set a timer for ten minutes, at least an hour before bed. Write down every worry or task that’s on your mind, plus one small next step for each. Close the notebook. The aim isn’t to solve the problems but to move them from your working memory to paper, so your mind has less to cycle through when you lie down. This is a simplified version of a technique used within structured worry time.
When to talk to a professional. See a GP if poor sleep has continued for more than a few weeks and is affecting your daytime functioning. Mention any anxiety symptoms, since treating the two together is often more effective than treating either alone. If you experience breathing pauses during sleep, loud snoring, or excessive daytime sleepiness, ask about sleep apnea. If you’re in crisis, call or text 988 (US) or contact Samaritans on 116 123 (UK and Ireland).
Recap
- Anxiety and poor sleep reinforce each other in a bidirectional cycle.
- Cognitive arousal at bedtime matters more than physical tiredness.
- Sleep deprivation amplifies emotional reactivity and makes anxious thinking more convincing.
- CBT for insomnia has strong evidence and works even alongside anxiety.
- Sleep hygiene practices can remove common obstacles.
Related lessons: Worry Time teaches a structured way to contain worry before it reaches the bedroom. Controlled Breathing offers a technique that can lower physiological arousal.
Frequently asked questions
Why does anxiety make it hard to sleep?
Anxiety activates the body's arousal system, but the bigger driver of insomnia appears to be cognitive arousal — racing thoughts, worry and mental rehearsal. Research shows that pre-sleep cognitive arousal is a stronger predictor of sleep difficulty than somatic arousal.
Does poor sleep make anxiety worse?
Yes. Experimental studies show that even one night of sleep deprivation increases next-day anxiety levels, and the effect is particularly linked to the loss of REM sleep. Over time, chronic sleep loss amplifies the emotional reactivity that feeds anxiety.
Should I take sleeping pills for anxiety-related insomnia?
Medication can help in the short term, but CBT for insomnia (CBT-I) is recommended as the first-line treatment by most guidelines because it produces lasting improvement without medication side effects or dependence. Discuss options with your doctor.
Will fixing my sleep fix my anxiety?
Improving sleep can significantly reduce anxiety symptoms, but it is usually not the whole answer. Sleep is one maintenance factor among several. Addressing it removes one thing keeping anxiety going, which makes other work easier.
Sources and further reading
- Ben Simon and Walker — Sleep loss causes social withdrawal and loneliness
Nature Communications, 2018;9:3146. Experimental sleep deprivation study showing increased social distancing and anxiety. DOI: 10.1038/s41467-018-05377-0.
- Harvey — Pre-sleep cognitive activity: a comparison of sleep-onset insomniacs and good sleepers
British Journal of Clinical Psychology, 2000;39(3):275–286. Showed cognitive arousal is a stronger predictor of insomnia than somatic arousal. DOI: 10.1348/014466500163284.
- Alvaro, Roberts and Harris — A systematic review assessing bidirectionality between sleep disturbances, anxiety, and depression
Sleep, 2013;36(7):1059–1068. Systematic review of longitudinal studies; sleep problems predicted subsequent anxiety and depression. DOI: 10.5665/sleep.2810.
- Trauer et al. — Cognitive behavioral therapy for chronic insomnia: a systematic review and meta-analysis
Annals of Internal Medicine, 2015;163(3):191–204. Meta-analysis of 20 RCTs; CBT-I produced durable improvements. DOI: 10.7326/M14-2841.
- Goldstein et al. — The role of sleep in emotional brain function
Annual Review of Clinical Psychology, 2013;9:679–702. Review of how sleep loss, particularly REM loss, amplifies emotional reactivity. DOI: 10.1146/annurev-clinpsy-050212-185547.
- Irish, Kline, Gunn, Buysse and Hall — The role of sleep hygiene in promoting public health: a review of empirical evidence
Sleep Medicine Reviews, 2015;22:23–36. Review of evidence for individual sleep hygiene practices. DOI: 10.1016/j.smrv.2014.10.001.
Sources checked October 16, 2026. This is an editorial summary, not a systematic review or individual advice.