Anxiety and Sleep: Why Your Mind Won't Switch Off at Night
For anxious people, bedtime is often the worst part of the day. The demands and distractions that occupied the mind during waking hours are gone, and what remains is a quiet room and a brain that has no intention of quieting down. This experience is not a character flaw or a discipline problem. It is a specific biological state called hyperarousal, and understanding it makes the path forward considerably clearer.
What Hyperarousal Is
Hyperarousal is a state of heightened physiological and cognitive activation. In the context of insomnia and anxiety, it describes a nervous system that is running too hot for sleep to initiate and sustain normally.
Physiological markers of hyperarousal include elevated heart rate and heart rate variability, higher core body temperature than normal for the time of night, elevated cortisol and adrenaline, and higher metabolic rate. Cognitive hyperarousal includes racing thoughts, intrusive worries, mental rehearsal of future events, and a hypervigilant monitoring of the sleep environment and bodily sensations.
Both forms are present in most anxious poor sleepers, and they interact with each other. Physiological arousal makes cognitive arousal worse, and vice versa. The result is a system that feeds itself.
The Cortisol Pathway
Cortisol is the most direct link between anxiety and disrupted sleep. It is both a stress hormone and a thermoregulatory hormone. When elevated at night, it raises core body temperature, keeps the sympathetic nervous system partially active, and suppresses the deep sleep stages where physical restoration occurs.
In people with chronic anxiety, the diurnal cortisol rhythm is often flattened or shifted. Instead of the steep morning peak and gradual daytime decline, cortisol remains elevated at night or spikes abnormally in the early morning hours. The natural 3 to 4am cortisol uptick, which is normal at low amplitude, becomes pronounced in chronically anxious people, producing sharp waking with a racing mind that cannot return to sleep.
Magnesium deficiency compounds this. Magnesium is required for HPA axis regulation, and low magnesium allows the cortisol response to become more reactive. The common pattern of chronic stress depleting magnesium, and reduced magnesium amplifying the cortisol response, creates a cycle that is difficult to break without addressing both simultaneously.
Why Standard Sleep Hygiene Often Fails for Anxious People
Sleep hygiene advice, keep a consistent schedule, avoid screens, limit caffeine, make the bedroom dark and cool, is good advice. It addresses the environmental and behavioural inputs to sleep. But for anxious people, the barrier to sleep is primarily internal. The environment is fine. The nervous system is not cooperating.
Standard sleep hygiene does not address cortisol. It does not address the GABA system that is underactive in anxiety. It does not address the cognitive arousal that fills the bedroom the moment the distractions of the day are removed. This is why many anxious people report following every piece of sleep advice faithfully and still lying awake for hours.
The interventions that work for anxious sleepers address the internal state. Some of these are behavioural, some are neurochemical, and the most effective approaches combine both.
What Actually Helps
Addressing the cognitive arousal directly. The brain at night defaults to its default mode network, which processes self-referential information including worry, regret, and anticipation. Giving the brain a task that is absorbing but not stimulating can interrupt this pattern. The cognitive shuffle technique involves visualising random unconnected objects, words, or scenes, which disrupts the sequential logic of anxious thought without increasing arousal. For more on this, see our article on racing thoughts at night.
Slow exhale breathing. Extended exhalation activates the vagus nerve and shifts autonomic balance toward parasympathetic dominance. Inhaling for four counts and exhaling for six to eight counts, repeated for five to ten minutes, measurably reduces heart rate and cortisol in the pre-sleep window. This is physiological change, not relaxation in a general sense.
Scheduled worry time. Research in cognitive behavioural therapy shows that containing worry to a specific designated period in the early evening, 20 to 30 minutes of deliberate problem-solving and worry processing, reduces intrusive worry at bedtime. The brain is less likely to surface unprocessed concerns at night if they have been given designated processing time during the day.
GABA pathway support. The GABAergic inhibitory system is what allows arousal to be turned down. Lemon balm inhibits the enzyme that breaks down GABA in the brain, extending its calming action. Clinical trials in stressed adults have shown consistent improvements in anxiety scores and sleep quality. For the evidence, see our article on lemon balm for sleep.
Apigenin from standardised chamomile extract binds directly to GABA-A receptors and reduces anxiety with an effect that has been compared to low-level benzodiazepine action, without the dependence risk. For the evidence, see our article on apigenin for sleep.
Magnesium for cortisol regulation. Magnesium bisglycinate supports HPA axis regulation and reduces cortisol reactivity. For anxious people who also have low magnesium, which is common given that stress depletes magnesium, supplementation addresses both the deficiency and the resulting cortisol amplification.
Cognitive Behavioural Therapy for Insomnia (CBT-I). For people with persistent anxiety-driven insomnia, CBT-I is the most evidence-based long-term treatment. It addresses sleep effort (the anxious attempt to force sleep, which increases arousal), catastrophic thinking about sleep, and the conditioned arousal that makes the bedroom a stimulus for wakefulness rather than rest. For more detail, see our article on CBT for insomnia.
The Sleep Effort Paradox
One of the most counterproductive patterns in anxiety-driven insomnia is sleep effort: the harder someone tries to sleep, the more aroused they become. Sleep cannot be forced. It is a passive state that occurs when arousal is low enough. Actively trying to sleep increases monitoring of bodily sensations and sleep-related worry, which increases arousal, which makes sleep less likely.
Understanding this paradox is one of the most practically useful things an anxious poor sleeper can learn. The goal before bed is not to sleep. The goal is to create the physiological and cognitive conditions in which sleep can happen. This reframing reduces the performance anxiety around sleep that compounds the primary anxiety driving the problem.
What This Means for Your Sleep
Anxiety-driven sleep disruption is caused by hyperarousal, cortisol dysregulation, and underactive GABAergic inhibition. The interventions that work address these mechanisms directly: slow breathing for autonomic regulation, GABA pathway support through lemon balm and apigenin, cortisol regulation through magnesium, and cognitive approaches that disrupt the worry patterns that keep the system alert.
Sources
- Harvey AG. (2002). A cognitive model of insomnia. https://pubmed.ncbi.nlm.nih.gov/12065137/
- Boyle NB, et al. (2017). The effects of magnesium supplementation on subjective anxiety and stress. https://pubmed.ncbi.nlm.nih.gov/28445426/
- Cases J, et al. (2011). Pilot trial of Melissa officinalis leaf extract in volunteers with mild-to-moderate anxiety disorders and sleep disturbances. https://pubmed.ncbi.nlm.nih.gov/22207695/
- Amsterdam JD, et al. (2009). A randomized, double-blind, placebo-controlled trial of oral Matricaria recutita (chamomile) extract therapy for generalized anxiety disorder. https://pubmed.ncbi.nlm.nih.gov/19593530/
- Morin CM, et al. (2006). Psychological and behavioral treatment of insomnia. https://pubmed.ncbi.nlm.nih.gov/17053484/
Related reading: How to Stop Racing Thoughts at Night | Lemon Balm for Sleep: The GABA Pathway Explained
About the Author

Nima Koucheki
Founder, Sleep Improvers
Nima Koucheki is the founder of Sleep Improvers. He hosts a podcast and YouTube channel dedicated to sleep science, translating peer-reviewed research into protocols anyone can apply tonight.