Free anxiety tools
Home โ€บ Articles โ€บ Anxiety and Sleep

Anxiety and Sleep: How to Break the Cycle That Keeps You Awake at Night

Anxiety and poor sleep have a bidirectional relationship that creates one of the most difficult cycles to break. Anxiety disrupts sleep through physiological arousal, intrusive thoughts and the conditioned association between bedtime and worry. Poor sleep then worsens anxiety by reducing cognitive inhibition, emotional regulation and the brain ability to manage threat perception.

Many people with anxiety treat the sleep problem as secondary, assuming that if the anxiety resolves the sleep will follow. This is partially true but incomplete. The sleep disruption also actively maintains the anxiety, and addressing both together produces faster and more complete improvement than addressing either alone.

This guide explains the full picture of the anxiety-sleep relationship, why each element maintains the other, and what the evidence shows about the most effective approaches for breaking the cycle.

Why anxiety disrupts sleep: the full picture

Sleep requires a shift from sympathetic nervous system dominance, the alert, activated state, to parasympathetic dominance, the rest and recovery state. Anxiety is characterised by sustained sympathetic activation. The elevated cortisol, the faster heart rate, the muscular tension and the heightened cognitive arousal are all physiologically incompatible with the conditions required for sleep onset.

Beyond the physiological activation, anxiety produces cognitive arousal that keeps the brain engaged when it needs to disengage. The thought loop that begins when you lie down, rehearsing problems, anticipating tomorrow challenges, reviewing the day interactions for evidence of failure, activates the prefrontal cortex and hippocampus in ways that directly compete with sleep onset.

The result is that anxious people often find themselves more alert and mentally active at bedtime than at any other point in the day, precisely because the reduction in external demands allows the internal noise to become louder. This is not a malfunction. It is the predictable result of a hypervigilant nervous system encountering reduced external stimulation.

The anxiety and sleep quiz on this site gives you a detailed profile of how anxiety is specifically affecting your sleep pattern.

How poor sleep makes anxiety worse: the neuroscience

The relationship runs in both directions. A single night of poor sleep measurably increases anxiety the following day in people with and without anxiety disorders. Across multiple nights, sleep deprivation produces significant changes in anxiety-relevant brain functioning that are well-documented in neuroscience research.

The amygdala, the brain threat-detection centre, becomes more reactive with sleep loss, responding more intensely to potential threats. The prefrontal cortex, which provides the cognitive perspective and emotional regulation that counters anxious threat perception, is particularly sensitive to sleep deprivation and functions significantly less effectively when sleep-deprived.

The result is that after a poor night, threats are perceived as more significant, emotional reactions are more intense and the cognitive tools that normally manage anxiety are less available. This directly worsens the anxiety that disrupts the next night sleep. Each poor night makes the next night more likely to be poor as well.

Cortisol, the primary stress hormone, also follows a pattern that is disrupted by poor sleep. Sleep deprivation increases cortisol levels and dysregulates the normal cortisol awakening response, which is why many people with poor sleep wake with anxiety already present before they have had time to engage with any actual stressor.

The conditioned arousal problem: why the bedroom itself becomes a trigger

For many people with chronic anxiety-related insomnia, the bedroom itself has become a conditioned trigger for arousal. Through repeated association between being in bed and experiencing anxiety, lying down begins to automatically produce the alert, watchful state that prevents sleep.

This conditioned arousal is one of the reasons that anxious people sometimes sleep better away from home, or fall asleep easily on the sofa but become alert when they move to bed. The environment has become associated with the anxiety rather than with rest.

Stimulus control, a component of CBT for insomnia, directly addresses this by systematically rebuilding the association between the bed and sleep. This involves using the bed only for sleep, getting out of bed when lying awake for more than 20 minutes and returning only when genuinely sleepy, and removing all wakeful activities from the bed environment.

This feels counterintuitive because it involves spending less time in bed, which seems like it should make things worse. In practice, it rapidly improves sleep continuity by rebuilding the conditioned association that sustained anxiety-related insomnia has disrupted.

CBT for insomnia: the gold standard treatment

CBT for insomnia, CBT-I, is recommended as the first-line treatment for chronic insomnia by sleep medicine guidelines internationally, including the American Academy of Sleep Medicine and the UK National Institute for Health and Care Excellence. It is more effective than sleep medication in the long term and its effects are more durable because it addresses the maintaining mechanisms rather than suppressing symptoms.

Sleep restriction therapy, the most powerful component of CBT-I, involves temporarily limiting time in bed to the actual amount of time being slept, then gradually extending it as sleep efficiency improves. This builds sleep pressure, the physiological drive toward sleep, and rapidly improves sleep continuity. It is temporarily uncomfortable but produces faster improvement than any other single intervention.

Cognitive restructuring addresses the unhelpful beliefs about sleep that are themselves maintaining the arousal: that you need exactly eight hours every night, that poor sleep will ruin tomorrow, that lying awake is harmful, that you should be able to control your sleep. These beliefs generate performance anxiety about sleep that becomes one of the primary obstacles to it.

The anxiety reduction guide covers the lifestyle approaches, including exercise and caffeine management, that support the formal CBT-I work.

Free quiz
Anxiety and Sleep Quiz
Understand how anxiety is specifically affecting your sleep with a detailed personalised profile.
Take the Quiz

What to do when anxiety strikes at night

When anxiety arrives at night, the most counterproductive response is to try to force sleep or to lie in bed trying to suppress the thoughts. Both increase arousal and deepen the conditioned association between bed and wakefulness.

Getting up and doing something quiet and unstimulating in low light for 20 to 30 minutes is more effective than lying frustrated in bed. Reading a physical book, doing gentle stretching, writing in the anxiety journal, are all appropriate activities. Return to bed only when you feel genuinely sleepy.

If the overthinking loop has started, writing the thoughts down rather than holding them externalises them and reduces the need to keep them in active mental circulation. The paper holds them so your brain does not have to.

Slow breathing with an extended exhale, 4 counts in, 6 to 8 counts out, activates the parasympathetic response and reduces the physiological arousal component within minutes. This does not cure the anxiety but it shifts the physiological state toward one more compatible with sleep onset.

For techniques that work specifically in the moment of acute anxiety, the calm anxiety fast guide has a full set of evidence-based approaches.

Sleep hygiene: what actually matters and what does not

Sleep hygiene advice is often presented as a comprehensive solution, but the evidence is clear that sleep hygiene alone is insufficient for anxiety-related insomnia. It supports but does not replace the behavioural and cognitive components of CBT-I.

The practices with the strongest evidence are: consistent wake time regardless of how much you slept the previous night, which is the single most important practice because it anchors the circadian rhythm; limiting caffeine after noon; keeping the bedroom cool, dark and quiet; and avoiding alcohol within three hours of bed, since alcohol fragments sleep in the second half of the night despite causing initial sedation.

Reducing bright screen exposure in the hour before bed supports melatonin production. The issue is less the blue light specifically and more the stimulating content, news, social media, emails, that screens typically deliver in the period before sleep.

Consistent wake time is the highest-leverage single practice. Even after a poor night, maintaining the same wake time builds sleep pressure that makes the subsequent night more likely to be restorative.

When to seek professional support

If anxiety-related sleep disruption has been present for more than a few weeks, if it is significantly affecting your daily functioning, or if self-directed approaches are producing limited improvement, professional support for both the anxiety and the sleep disruption is warranted.

CBT-I delivered by a trained therapist or through guided online programmes is effective and typically produces significant improvement within 4 to 8 weeks. Addressing the anxiety simultaneously, through CBT for anxiety, produces better combined outcomes than addressing either condition alone.

The Do I Need Therapy quiz helps you assess whether professional support is the right next step, and the how long does therapy take guide gives you a realistic picture of what to expect from the process.

Address both together
CBT for Anxiety and Insomnia Online
Professional support for anxiety-related sleep disruption. Evidence-based, accessible. 20% off.
Find a Therapist
Frequently asked questions
How much sleep do I need if I have anxiety?+

Sleep need varies between individuals but most adults need 7 to 9 hours. For people with anxiety, quality often matters more than quantity. Fragmented sleep with multiple waking periods is more impairing than a solid 6.5 hours of continuous sleep. Focusing on sleep continuity as well as total duration is important.

Should I take sleep medication for anxiety-related insomnia?+

Sleep medication can provide short-term relief but does not address the underlying causes of anxiety-related insomnia and can create dependence with regular use. CBT-I has stronger evidence for long-term outcomes. If you are considering medication, discussing both medication and CBT-I with a doctor is the most informed approach.

Does exercise help with anxiety and sleep?+

Yes, substantially. Regular exercise reduces anxiety and improves sleep quality through overlapping mechanisms. Timing matters for some people: intense exercise within 2 hours of bedtime can delay sleep onset for those who are sensitive to it, though the evidence on this is mixed. Morning or afternoon exercise has the most consistent benefit for sleep.

Why do I wake up at 3am with anxiety?+

Waking in the early hours is common in anxiety and depression. Sleep architecture means lighter sleep stages are more common in the second half of the night, making waking easier. Cortisol begins rising in the early hours as part of the normal awakening process, and people with anxiety tend to have higher cortisol sensitivity, which can contribute to earlier waking with an alert, anxious quality.

Is it normal to feel anxious before sleep every night?+

Anticipatory anxiety about sleep, the worry that you will not sleep, is itself a common maintaining factor in anxiety-related insomnia. It is a form of performance anxiety that increases physiological and cognitive arousal at the very time sleep requires the opposite. Addressing this cognitive component is a specific target of CBT-I.