To fall asleep with anxiety, calm your body and give your worries somewhere else to go. Start winding down an hour before bed with dim light and fewer screens. Write tomorrow's tasks and worries on paper. Once you lie down, breathe slowly with a longer exhale. And if you're still awake after about 20 minutes, get up and do something quiet in low light until you feel sleepy.
Why does anxiety keep you awake?
Sleep needs the body to power down, and anxiety is the body powering up: a faster heart, tight muscles, a mind scanning for problems. During the day, work and people drown that out. At night, in the dark and quiet, worries get the whole stage.
Then a second loop starts. You notice you're not sleeping, you worry about tomorrow, and that worry keeps you awake. Most of what helps works by breaking one of these loops: calming the body, emptying the mind, or taking the pressure off the bed itself.
What should you do in the hour before bed?
Think of the last hour as a landing strip, not a cliff edge.
- Dim the lights. The American Academy of Sleep Medicine (AASM) recommends limiting bright light in the evening [1].
- Put screens down. The AASM suggests turning off electronic devices at least 30 minutes before bed [1]. If you can't, make them dim and calm; our guide to screens before bed has practical tips.
- Keep the same routine. A relaxing, repeatable ritual, like a shower, tea and a few pages of a paper book, tells your body what comes next. Get up at the same time every day, even after a bad night [1].
- Go easy on caffeine and alcohol. Avoid caffeine in the afternoon and evening, and alcohol close to bedtime [1].
How do you stop worrying when you lie down?
Give your worries a place to live that isn't your head.
Write a to-do list. In a sleep-lab study, 57 young adults spent 5 minutes before bed writing either a to-do list for the coming days or a list of things they'd already done. The to-do group fell asleep significantly faster, and the more specific their list, the faster they fell asleep [2]. Writing it down seems to let the brain stop rehearsing it.
Add a worry column. Next to each task, write one worry and one small next step: "Rent is late → call the landlord at 10". You're not solving it tonight. You're booking it for tomorrow.
Keep paper by the bed. If a new thought shows up at 1 a.m., jot it down in the dark and tell yourself, "It's on the list."
For more on loops of thoughts at night, see racing thoughts at night.
What can you do in bed when your mind races?
- Breathe slowly with a long exhale. Try 4 seconds in, 6 seconds out, for 5 to 10 minutes. In a small study of people with insomnia, 20 minutes of slow, paced breathing before bed was followed by falling asleep faster and waking less [3]. Our guide to 4-6 breathing for sleep explains it step by step.
- Relax your body in sections. Tense your feet for 5 seconds, then let go. Move up through calves, thighs, belly, hands, shoulders and face. The AASM's 2021 guideline lists relaxation therapy as one of the treatments clinicians may use for chronic insomnia [4].
- Turn the clock away. Checking the time feeds the "I'm running out of night" panic.
- Change the goal. Instead of "I must sleep now", try "I'm resting". Lying quietly with your eyes closed is still rest, and the pressure to sleep is often what keeps sleep away.
What if you can't fall asleep after 20 minutes?
Get up. It feels backwards, but it's one of the most reliable sleep rules there is.
The AASM's advice is simple: if you don't fall asleep after 20 minutes, get out of bed and do a quiet activity without a lot of light, and especially avoid electronics [1]. This is part of a technique called stimulus control, which the AASM's clinical guideline lists as a treatment option for chronic insomnia [4]. The goal is to keep your bed linked with sleep, not with tossing, turning and worry.
Good things to do: read something dull under a dim lamp, fold laundry, sit and breathe slowly, write down what's on your mind. When your eyes feel heavy, go back to bed. If you're still awake after another 20 minutes or so, repeat. Then get up at your usual time in the morning, even if the night was short.
Is it insomnia, and when does CBT-I help?
Short spells of bad sleep during stressful times are common. Insomnia that lasts three months or more is considered long-term [5].
For chronic insomnia, the first-choice treatment isn't a sleeping pill. Both the American College of Physicians and the AASM recommend cognitive behavioural therapy for insomnia, or CBT-I [4][6]. It usually combines several parts: stimulus control, a sleep schedule, relaxation, and work on the anxious thoughts about sleep itself. The NHS notes it can be offered face to face or through an online self-help programme [5].
One interesting detail: the AASM suggests clinicians not use general "sleep hygiene" advice on its own as the treatment for chronic insomnia [4]. The habits in this article help, but if your sleep has been poor for months, it's worth getting proper support.
When should you talk to a doctor?
Talk to a doctor if:
- you've had trouble sleeping for three months or more, or it's making daily life hard [5]
- you have panic attacks at night, or wake with your heart racing
- anxiety, worry or low mood are with you most days
- you snore loudly, gasp or stop breathing in your sleep (a partner may notice this first)
Our guide on when to seek professional help can help you take the first step. If you're in crisis or thinking about hurting yourself, go to our Safety page for helplines.
Can an app help you wind down at night?
If you do reach for your phone at bedtime, it helps if what's on it is dark and slow. Stillfy's Sleep mode has no flashes at all, lets you hold a finger on the screen to breathe 4 seconds in and 6 seconds out, and fades its light out on its own over 10 minutes, free.
Sources
- American Academy of Sleep Medicine (n.d.). Healthy sleep habits. Sleep Education. link
- Scullin MK, Krueger ML, Ballard HK, Pruett N, Bliwise DL (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: General. link
- Tsai HJ, Kuo TB, Lee GS, Yang CC (2015). Efficacy of paced breathing for insomnia: enhances vagal activity and improves sleep quality. Psychophysiology. link
- Edinger JD, Arnedt JT, Bertisch SM, et al. (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. link
- NHS (2024). Insomnia. NHS.uk. link
- Qaseem A, Kansagara D, Forciea MA, Cooke M, Denberg TD (2016). Management of chronic insomnia disorder in adults: a clinical practice guideline from the American College of Physicians. Annals of Internal Medicine. link
Questions and answers
Why does anxiety get worse at night?
During the day, tasks and people keep your mind busy. In a dark, quiet bedroom there's nothing left to compete with worries, so they get louder. Lying awake and worrying about not sleeping can then add a second layer of tension.
Should I stay in bed if I can't fall asleep?
Sleep experts advise getting up if you're still awake after about 20 minutes. Do something quiet in dim light, without screens, and go back to bed when you feel sleepy. This keeps your bed linked with sleep rather than with worry.
Does writing a to-do list before bed help you sleep?
It may. In a sleep-lab study, young adults who spent 5 minutes writing a specific to-do list at bedtime fell asleep faster than those who wrote about tasks they had already finished.
What is CBT-I?
CBT-I is cognitive behavioural therapy for insomnia, a structured programme that changes the habits and thoughts that keep you awake. Major medical guidelines recommend it as the first treatment for chronic insomnia, and it's available in person and as guided online programmes.
When should I see a doctor about anxiety and sleep?
See a doctor if poor sleep has lasted three months or more, if it makes daily life hard, or if anxiety, panic or low mood are present most days. If you feel unsafe, contact a crisis line or emergency services right away.
This article is for general information and isn't medical advice. If you are in danger or thinking about harming yourself, see our Safety page for helplines.

