May 23, 2026
Sleep anxiety and racing thoughts at bedtime — what is actually happening
Lying awake with a racing mind is a cognitive arousal problem, not a relaxation problem. Here is what drives it and what interventions actually work.
You are tired. You want to sleep. Your mind will not stop.
The thoughts are not particularly dramatic — they cycle through the next day's tasks, a conversation from three weeks ago, a worry you cannot resolve, something you forgot to do. You are exhausted and you cannot switch off.
This is one of the most common sleep complaints, and it responds poorly to standard sleep hygiene advice because it is not a hygiene problem. It is a cognitive arousal problem.
What cognitive arousal is
Your nervous system has two operating modes: parasympathetic (rest and digest) and sympathetic (alert and active). Sleep requires the parasympathetic system to dominate. Cognitive arousal is the sympathetic system failing to fully disengage at bedtime — the brain remaining in alert mode, scanning for unresolved problems or threats.
The content of the thoughts is almost irrelevant. What matters is the activation level. A racing mind at bedtime is the brain doing its job (scanning for open loops, processing incomplete information) at the wrong time.
This is why trying to "stop thinking" or "relax" rarely works. You cannot directly suppress cognition by effort. What you can do is redirect where attention goes and reduce the system's reasons to stay active.
What makes it worse
Open cognitive loops. Unfinished tasks, unresolved decisions, and upcoming demands all sit in working memory as "active." The brain keeps returning to them because they are not resolved. More demands unresolved = more activation at bedtime.
Phone use in bed. Even a few seconds of screen interaction — checking messages, reading a notification — signals the brain that the environment is still active and information-rich. This is enough to raise arousal and delay sleep onset.
Lying in bed awake. This is the most insidious factor. The bed begins to be associated with wakefulness and mental activity. Over time, getting into bed itself becomes a trigger for the arousal response. This is the mechanism behind psychophysiological insomnia — where the sleep environment has become a conditioned stimulus for alertness.
Caffeine later than you think. Caffeine's half-life is 5–7 hours. A coffee at 2pm still has significant active levels at 9pm. For people with slow caffeine metabolism (a genetic variation), even morning coffee can affect sleep architecture at night.
What actually works
Brain dump — 15 minutes before bed, not in bed. Write down everything on your mind. Not a to-do list — a brain dump. Worries, tasks, thoughts, open loops, things you are anxious about. The act of writing externalises the information and signals to the working memory system that the items have been captured. The brain no longer needs to actively hold them.
Research by Michael Scullin and colleagues found that spending 5 minutes writing a to-do list before bed significantly reduced the time taken to fall asleep — and more complete lists produced faster sleep onset than vague ones. The mechanism is offloading cognitive load.
Scheduled worry time — genuinely strange, genuinely effective. Designate 20 minutes during the day, before 6pm, as your worry window. During this time, actively think about your worries and concerns. When worrying thoughts appear at night, consciously note them ("this is a worry, I have a time for this") and redirect attention. The counterintuitive effect is that actively engaging with worry in a scheduled way reduces its nocturnal grip.
Stimulus control — out of bed when awake. If you have been awake for more than 20 minutes and are not feeling sleepy, get out of bed. Go to another room. Do something calm in very low light (reading, light stretching, quiet sitting). Return to bed only when you feel genuine sleepiness. This breaks the conditioning between bed and wakefulness. It is uncomfortable in the short term and effective in the long term.
Body scan — attention redirection, not relaxation. The goal of a body scan is not to relax. The goal is to move attention away from thought content and onto physical sensation. Starting from the feet and moving upward, notice sensation in each body part without judgment. It works by displacing cognitive activity with sensory attention — a different attentional channel that competes with thought loops.
Reducing total cognitive load before bed. The brain's arousal at bedtime reflects its actual workload. If the evening is filled with emails, decision-making, and screen-based stimulation up until the moment of sleep attempt, the transition to sleep requires a larger shift. A 60-minute wind-down period — low stimulation, low light, no work — reduces the magnitude of this shift.
The difference from generalised anxiety
Sleep-specific anxiety is different from generalised anxiety disorder, though they often overlap. Sleep-specific anxiety centres on bed and bedtime — the bedroom becomes associated with the anxiety itself. In this case, the cognitive-behavioural interventions above (particularly stimulus control and sleep restriction, covered in the sleep reset guide) are typically more appropriate than anxiety medication.
If anxiety is pervasive across multiple life domains and significantly impairing daytime function, assessment by a mental health professional is appropriate alongside sleep-specific interventions.
For the full 14-night protocol including night-by-night guidance for recalibrating sleep when anxiety is the primary driver — the Sleep Like You Mean It guide covers the complete framework.