Can’t Sleep Because of Anxiety? Why Your Mind Won’t Switch Off and What Helps

If you can’t sleep because of anxiety, writing down tomorrow’s tasks may help quiet some of the thoughts keeping you awake. In a small laboratory study, participants who spent five minutes writing a specific to-do list fell asleep faster, on average, than those who wrote about completed activities (Scullin et al., 2018). The findings are promising, although the study did not specifically examine anxiety-related insomnia and the results may not apply to everyone.

This is one of five practical strategies explored in this article. The others focus on repetitive thinking, redirecting your attention, reducing sleep-related frustration, and relaxing physical tension. Understanding why anxiety interferes with sleep can help you decide which approaches may be most useful.

Why Is Anxiety Keeping Me Awake?

Falling asleep involves a transition from wakefulness to sleep, influenced by both your need for sleep and your level of mental and physical arousal. Anxiety can interfere with this process by keeping you alert, even when you feel tired.

When your need for sleep is strong, you may fall asleep despite lingering worries. But if you feel tired without being particularly sleepy, anxious thoughts and physical arousal may make it harder to drift off. Worrying about sleep itself can add to the problem, creating a cycle that helps maintain insomnia (Harvey, 2002).

To understand why this cycle can become difficult to break, it helps to look at what happens when anxiety follows you into the night.

Why Does Anxiety Feel Worse at Night?

At night, fewer distractions can leave more room for worries and uncomfortable emotions. When you are already anxious, focusing on these thoughts and feelings can make them seem more intense.

Time can also feel distorted. When you lie awake watching the clock and calculating how little sleep remains before morning, the minutes may seem to pass slowly. You may also feel that you have barely slept, even if you got more sleep than you realize. Research has examined this mismatch between how much people with insomnia believe they slept and their sleep as measured by objective methods (Harvey & Tang, 2012). The experience of being awake may feel more prominent than the sleep you actually get, making the night seem longer and more sleepless than it was.

Bedtime can become associated with worry. After several difficult nights, you may begin to anticipate another night of poor sleep before you even get into bed. Monitoring the clock, calculating lost sleep, and worrying about the next day can intensify this response. These patterns can help maintain insomnia (Harvey, 2002), while poor sleep can make emotional difficulties harder to manage (Alvaro et al., 2013).

Recognizing these patterns gives you a starting point. Rather than trying to eliminate every anxious thought, you can practise responding to thoughts and sensations in ways that reduce their hold on your attention.

Diagram of the nighttime anxiety–insomnia cycle: worry, arousal, poor sleep

How Can I Sleep With Anxiety and a Racing Mind at Night?

Trying to force yourself to stop thinking can make racing thoughts more frustrating. Instead, focus on managing repetitive worry, getting unfinished tasks out of your head, and reducing mental and physical arousal.

1. Use cognitive offloading to clear mental reminders.

Cognitive offloading means transferring information from your mind to an external aid, such as a written list, so you do not have to keep actively remembering it. If your mind keeps returning to unfinished tasks, spend five minutes writing down what you need to do tomorrow.

In a small laboratory study, participants who wrote specific to-do lists fell asleep faster, on average, than those who wrote about completed activities (Scullin et al., 2018). The study did not specifically examine anxiety-related insomnia, but its findings suggest that recording upcoming tasks may help some people put them aside for the night.

2. Recognize repetitive negative thinking.

Racing thoughts often involve repeatedly reviewing problems or imagining future outcomes without reaching a solution. This pattern is known as repetitive negative thinking.

When you notice it, ask yourself whether the thought requires action. If it does, write down one practical next step for tomorrow. If it does not, acknowledge that you may not be able to resolve the uncertainty tonight. The aim is not to eliminate every worry, but to disengage from unproductive mental repetition.

3. Practise attentional redirection.

Attentional redirection involves deliberately shifting your focus away from distressing thoughts and toward something neutral. You might focus on the sensation of breathing or the feeling of your body resting against the mattress.

When your mind wanders, gently return your attention to that sensation without criticizing yourself. This is not about forcing your mind to go blank; it is about changing where you place your attention rather than continuing to follow every thought.

4. Use stimulus control to reduce sleep-related frustration.

When you repeatedly lie awake feeling frustrated, your bed can become associated with wakefulness and worry. Stimulus control is a behavioural technique that aims to strengthen the association between bed and sleep.

Turn your clock away to reduce time-checking. If you become increasingly frustrated while awake, get out of bed and do something quiet in dim light, then return when you feel sleepy. Stimulus control is a core component of cognitive behavioural therapy for insomnia (CBT-I), which the American Academy of Sleep Medicine recommends for adults with chronic insomnia (Edinger et al., 2021).

5. Reduce physical arousal with progressive muscle relaxation.

Anxiety can leave your body tense and alert, even when you feel tired. Progressive muscle relaxation involves gently tensing and then relaxing different muscle groups, moving gradually from your feet toward your face.

Notice the contrast between tension and relaxation, keeping each movement comfortable rather than forceful. This technique may help reduce physical tension and promote relaxation, although it does not guarantee that you will fall asleep.

These strategies address different parts of the nighttime anxiety cycle. Writing things down and responding differently to repetitive thoughts can help with mental overload, while attentional redirection, stimulus control, and muscle relaxation address attention, sleep-related frustration, and physical tension. You can try one or two approaches rather than attempting all five at once.

A short 'Tomorrow' to-do list on a notepad, a strategy to quiet racing thoughts before sleep

Do Simple Sleep Strategies Actually Work?

Sleep strategies are better understood as skills to develop than quick fixes. Their usefulness may depend on what is keeping you awake, and no single technique works for everyone.

For persistent insomnia, a structured treatment may be more effective than relying on individual strategies alone. In a randomized clinical trial, Morin et al. (2009) found that improvements following CBT-I were maintained at a six-month follow-up. CBT-I combines approaches that address sleep-related thoughts and behaviours, helping people develop more sustainable patterns over time.

Knowing when self-directed strategies may not be enough is an important part of managing sleep difficulties. The next step is to recognize when anxiety or insomnia warrants professional support.

When Should You Seek Help for Anxiety and Insomnia?

Consider speaking with a healthcare professional if anxiety or sleep difficulties persist, affect your daily functioning, or become increasingly difficult to manage on your own. Specific signs to watch for include:

  • Sleep difficulties at least three nights a week for three months or longer. This pattern is consistent with the frequency and duration criteria for chronic insomnia when accompanied by significant distress or daytime impairment.
  • Ongoing daytime effects. You regularly feel exhausted, have difficulty concentrating, experience irritability, or struggle to manage work, school, or daily responsibilities.
  • Persistent anxiety or worry. Anxiety interferes with your ability to relax, affects several areas of your life, or leads you to avoid activities and responsibilities.
  • Increasing reliance on sleep aids or substances. You regularly rely on alcohol, cannabis products containing THC, melatonin, or other sleep aids to fall asleep, or feel unable to sleep without them. These products have different effects and potential risks, so discuss regular use with a healthcare professional, particularly if you are combining substances or increasing your use.
  • Symptoms that suggest another sleep or health condition. Examples include loud snoring with gasping or pauses in breathing, uncomfortable urges to move your legs at night, or persistent pain that disrupts sleep.

If this pattern sounds familiar, you don’t have to work through it alone. Structured CBT-I for insomnia is the first-line, drug-free treatment for chronic sleeplessness, and online anxiety therapy in Ontario can help quiet the racing thoughts that keep you awake at night.

You do not need to wait three months to seek support. If sleep difficulties are affecting your wellbeing, a healthcare professional can help assess possible causes and discuss treatment options.

A thorough assessment matters. A healthcare professional should explore your sleep patterns, anxiety, medical history, medications, and daily functioning before recommending treatment. If you feel your concerns have not been adequately explored, it is reasonable to seek a second opinion.

For chronic insomnia, cognitive behavioural therapy for insomnia (CBT-I) is recommended as a first-line treatment. Unlike medication, CBT-I does not carry medication-related risks such as drug interactions or dependence, although some components may temporarily increase daytime sleepiness or fatigue. A therapist with specific training in insomnia can help assess your difficulties and provide this evidence-based treatment. The most appropriate approach will depend on your individual circumstances.

A Final Thought

If you can’t sleep because of anxiety, it can be tempting to monitor every thought, sensation, and passing minute in an effort to make sleep happen. Yet this effort can add to the pressure you already feel.

Instead, focus on small, repeatable changes: put tomorrow’s tasks on paper, notice when worry becomes repetitive, and practise shifting your attention or relaxing your body. These approaches may help you respond differently to difficult nights, even if they do not produce an immediate change in sleep.

Frequently Asked Questions

Can anxiety cause insomnia?

Yes. Anxiety can increase mental and physical arousal, making it harder to fall asleep or stay asleep. Poor sleep can also make anxiety more difficult to manage, creating a cycle that may persist without appropriate support (Alvaro et al., 2013).

What should I do when anxiety keeps me awake?

Try writing down tasks for the next day, redirecting your attention to a neutral sensation, or practising progressive muscle relaxation. If you become increasingly frustrated while awake in bed, stimulus control recommends getting up for a quiet activity in dim light and returning when you feel sleepy. No single strategy works for everyone, so focus on approaches that help you respond to worry without adding pressure to fall asleep.

What is the most effective treatment for chronic insomnia?

Cognitive behavioural therapy for insomnia (CBT-I) is a recommended first-line treatment for adults with chronic insomnia. It combines strategies that address sleep-related thoughts and behaviours and aims to improve sleep over time. A qualified healthcare professional can help determine whether CBT-I is appropriate for your circumstances.

References

Alvaro, P. K., Roberts, R. M., & Harris, J. K. (2013). A systematic review assessing bidirectionality between sleep disturbances, anxiety, and depression. Sleep, 36(7), 1059–1068. https://doi.org/10.5665/sleep.2810

Edinger, J. D., Arnedt, J. T., Bertisch, S. M., Carney, C. E., Harrington, J. J., Lichstein, K. L., Sateia, M. J., Troxel, W. M., Zhou, E. S., Kazmi, U., Heald, J. L., & Martin, J. L. (2021). Behavioral and psychological treatments for chronic insomnia disorder in adults: An American Academy of Sleep Medicine clinical practice guideline. Journal of Clinical Sleep Medicine, 17(2), 255–262. https://doi.org/10.5664/jcsm.8986

Harvey, A. G. (2002). A cognitive model of insomnia. Behaviour Research and Therapy, 40(8), 869–893. https://doi.org/10.1016/S0005-7967(01)00061-4

Harvey, A. G., & Tang, N. K. Y. (2012). (Mis)perception of sleep in insomnia: A puzzle and a resolution. Psychological Bulletin, 138(1), 77–101. https://doi.org/10.1037/a0025730

Morin, C. M., Vallières, A., Guay, B., Ivers, H., Savard, J., Mérette, C., Bastien, C., & Baillargeon, L. (2009). Cognitive behavioral therapy, singly and combined with medication, for persistent insomnia: A randomized controlled trial. JAMA, 301(19), 2005–2015. https://doi.org/10.1001/jama.2009.682

Scullin, M. K., Krueger, M. L., Ballard, H. K., Pruett, N., & Bliwise, D. L. (2018). The effects of bedtime writing on difficulty falling asleep: A polysomnographic study comparing to-do lists and completed activity lists. Journal of Experimental Psychology: Applied, 24(1), 50–60. https://doi.org/10.1037/xap0000159


When to seek support: If anxiety or sleep difficulties continue to affect your daily life, consider speaking with a healthcare professional who will take the time to understand your experience and discuss appropriate treatment options.

Ontario disclaimer: This article is for informational and educational purposes only and is not a substitute for professional medical advice, diagnosis, or treatment. If you are in Ontario, consult a qualified healthcare professional for advice specific to your circumstances.

If you would like to learn more about persistent sleep difficulties, explore how CBT-I works and what to expect from treatment.

Maanya Chaba, Registered Psychotherapist in Toronto
About the Author

Maanya Chaba

Maanya Chaba is a Registered Psychotherapist (RP) with the College of Registered Psychotherapists of Ontario (CRPO) and a Master of Arts in Counselling Psychology (MACP). She has five years of clinical experience and offers online therapy across Ontario, with specialized training in CBT-I for insomnia, alongside CBT and ACT. Her approach is direct, practical, and focused on what actually helps.