Free anxiety tools
Home โ€บ Articles โ€บ Anxiety When Trying to Sleep

Anxiety When Trying to Sleep: Why It Spikes at Bedtime and What Actually Helps

For many people with anxiety, bedtime is the hardest part of the day. The moment they lie down and try to sleep, the thoughts accelerate, the worry spirals begin and the physical tension that was manageable during the day becomes overwhelming.

This is not a random pattern. It has a specific physiological and psychological explanation, and understanding it changes how you approach it. The techniques that work for daytime anxiety are not always the same ones that work for bedtime anxiety, because the conditions are different.

This guide covers exactly why anxiety spikes at bedtime, what makes it worse and what the evidence supports for managing it effectively.

Why anxiety is worst at bedtime: the specific mechanisms

Three overlapping mechanisms explain why anxiety spikes at bedtime specifically.

The first is the removal of external demand and distraction. During the day, tasks, conversations, responsibilities and environmental stimulation all compete with the anxiety for cognitive resource. At bedtime these competitors are removed and the internal noise, which was present all day but partially masked, has no competition. The anxious thoughts that were manageable during the day become the loudest thing in the environment.

The second is cognitive inhibition, the brain ability to suppress irrelevant or intrusive thoughts, which weakens significantly with fatigue. By bedtime, after a full day of cognitive activity, the suppressive capacity that keeps anxious thoughts at a manageable level during the day is depleted. The thoughts that were held back earlier now surface more readily and with greater vividness.

The third is cortisol dynamics. While cortisol follows a natural decline through the day, anxiety maintains higher baseline cortisol that makes the nervous system more reactive. For some people, cortisol follows an abnormal second rise in the late evening, producing a physiological alerting response at precisely the time the body should be winding down.

The anxiety and sleep guide covers the full relationship between anxiety and sleep disruption.

The role of the bed as a conditioned trigger

For people with chronic bedtime anxiety, the bed itself often becomes a conditioned trigger for anxiety and arousal. Through repeated association between lying down and experiencing anxiety, the environmental cues of bedtime, the pillow, the darkness, the routine, begin to automatically produce the alert, watchful state that prevents sleep.

This is classical conditioning operating without any conscious decision. The bed has been paired with anxiety enough times that the association is automatic. This is why some people with bedtime anxiety sleep better on the sofa, in a hotel or anywhere other than their own bed. The conditioned trigger is absent.

Understanding this has a direct practical implication: the bed needs to be un-paired from anxiety through deliberate changes in behaviour. Stimulus control therapy, which involves using the bed only for sleep and getting out of bed when awake rather than lying there anxiously, directly addresses this conditioned association.

What makes bedtime anxiety worse

Several common bedtime habits amplify rather than reduce the anxiety.

Checking your phone in bed exposes the brain, in its most anxiety-susceptible state, to the most anxiety-inducing type of content: news, social comparison, demands and unresolved messages. The blue light suppresses melatonin production. The stimulating content activates rather than dampens the arousal that prevents sleep.

Lying in bed trying to force sleep is counterproductive. The attempt to control sleep produces performance anxiety about sleeping, which is itself arousing. Watching the clock measures the failure and increases pressure. Reviewing the day or planning tomorrow generates new anxiety content in the exact environment associated with sleep.

Alcohol is commonly used to manage bedtime anxiety but produces rebound arousal and fragmented sleep in the second half of the night. The alcohol and anxiety guide explains this mechanism in detail.

Techniques that work for bedtime anxiety specifically

The scheduled worry time technique is particularly effective for bedtime anxiety. The principle is to do your worrying earlier, deliberately, in a designated 15 to 20 minute window in the early evening. When worried thoughts arrive at bedtime, you acknowledge them and direct them to the scheduled time: I will think about this tomorrow at 6pm.

This works because it removes the urgency of bedtime worry. The thoughts feel important partly because they keep recurring, which the brain interprets as significance. Scheduled worry time signals that the thinking is manageable and contained.

The brain dump is a complementary technique: writing down everything that is circulating in your mind before bed, not to solve anything but to externalise it. Once captured on paper, the brain receives a signal that the material does not need to be held in active working memory overnight. The anxiety journal on this site works well for this purpose.

Free quiz
Anxiety and Sleep Quiz
Understand specifically how anxiety is affecting your bedtime and sleep pattern.
Take the Quiz

Physiological techniques for the bedtime period

The extended exhale breathing pattern is the most directly effective physiological intervention for bedtime anxiety. Breathe in for 4 counts, hold for 2, breathe out for 6 to 8 counts. The extended exhale activates the parasympathetic nervous system and directly reduces the physiological arousal that is preventing sleep onset.

Progressive muscle relaxation, systematically tensing and releasing muscle groups from feet to head, produces physical release from the chronic muscle tension that anxiety maintains and shifts the physiological state toward one more compatible with sleep.

A body scan meditation, moving attention deliberately through different parts of the body with neutral curiosity rather than anxiety-focused monitoring, redirects attention inward in a non-threatening way that is conducive to sleep onset. The anxiety body scan tool can be useful for developing this skill.

Getting out of bed: when and why

One of the most counterintuitive but evidence-supported techniques for bedtime anxiety is getting out of bed when you have been lying awake for more than 20 minutes.

Lying in bed anxious deepens the conditioned association between the bed and arousal. Getting up and doing something quiet in low light, reading a physical book, gentle stretching, sitting quietly, breaks the association and reduces the arousal. Return to bed only when you feel genuinely sleepy.

This technique feels wrong because it seems like giving up on sleep. In practice it typically produces faster sleep onset than lying frustrated in bed, and over weeks of consistent practice it progressively reduces the conditioned arousal that makes bedtime anxiety so persistent.

When bedtime anxiety warrants professional support

If bedtime anxiety has been significantly disrupting your sleep for more than a few weeks, if you are lying awake for more than 30 to 45 minutes most nights, or if the disruption is meaningfully affecting your daytime functioning, professional support is warranted.

CBT for insomnia, CBT-I, is the most evidence-based treatment for anxiety-related sleep disruption. It is more effective than sleep medication in the long term and its effects are durable because it addresses the maintaining mechanisms rather than suppressing symptoms.

The anxiety and sleep quiz gives you a detailed profile of how anxiety is specifically affecting your sleep. The Do I Need Therapy quiz helps you assess whether professional support is the right next step.

Address both anxiety and sleep
CBT for Anxiety and Insomnia Online
Evidence-based support for anxiety-related sleep disruption. 20% off your first month.
Find a Therapist
Frequently asked questions
Why do I suddenly feel anxious when I try to sleep?+

The sudden onset of anxiety at bedtime is not sudden in the physiological sense. The anxiety was present during the day but partially managed by external demands and stimulation. Bedtime removes these competing inputs, the anxiety has nothing masking it, and the depleted cognitive inhibition of fatigue means the brain can no longer suppress the anxious thoughts as effectively as it did earlier. What feels sudden is actually the unmasking of anxiety that was already present.

Should I try to think about something else when anxious in bed?+

Actively trying to replace anxious thoughts with positive or neutral thoughts often increases rather than decreases the anxious thoughts through the ironic process. Deliberately trying not to think about something makes it more likely to surface. A better approach is acknowledgement and redirection: I notice I am anxious, I have written this down, I will return to it tomorrow, and then redirect attention to the breath or the body scan rather than to a competing thought.

Is CBD or melatonin helpful for bedtime anxiety?+

Melatonin can help with sleep onset timing but does not directly address anxiety. It is most useful when the sleep disruption is primarily about the timing of sleep rather than the anxiety component. The evidence for CBD for anxiety and sleep is limited and inconsistent. Neither addresses the maintaining mechanisms of bedtime anxiety and should not be relied upon as primary treatments.

Why do I fall asleep fine but then wake up anxious at 3am?+

Waking in the early hours with anxiety is common and has a specific physiological basis. Sleep architecture means you are in lighter sleep stages in the second half of the night. Cortisol begins its natural morning rise from around 2 to 3am. For people with anxiety, this cortisol rise is often more pronounced and produces an alert, anxious awakening rather than a gradual transition toward waking.

Can bedtime routines really help with anxiety?+

Yes, significantly. A consistent wind-down routine signals to the nervous system that the processing day is ending and the arousal required for daytime functioning is no longer needed. The consistency is the key element: the predictability of the routine becomes a conditioned cue for reduced arousal in the same way that the bed can become a conditioned cue for anxiety. A simple, consistent 30-minute routine practised daily produces measurable improvement in sleep onset time within two to three weeks.