Can’t sleep because of anxiety? What to do when you are lying awake
It is late, you are exhausted, and your mind will not stop. What to do when anxiety keeps you awake or wakes you at 3 a.m., with a guided 4-7-8 breath you can follow in the dark.
- By Sergio Gualda
- 4 min read
- Updated November 3, 2026
The house is quiet and your mind is not. Maybe you have not fallen asleep yet, or you woke at three and the worries were waiting. The harder you try to sleep, the more awake you feel. This page is for right now: the breath above is 4-7-8, slow and dim enough to follow in bed, with sound if you want to close your eyes. Below is what else helps.
Stop trying to sleep
This sounds backwards, but it is the core of good sleep advice. Sleep cannot be forced, and effort is a kind of alertness. Change the goal from falling asleep to resting. Lying quietly with a slow breath is restful even if you stay awake, and taking the pressure off is often what lets sleep arrive.
Give your body a slower rhythm
Anxiety speeds the body up: a faster heart, shallow breathing, tense muscles. A slow breath with a long exhale nudges it the other way. Follow the light above, or count on your own:
- Breathe in through your nose for four.
- Hold gently for seven.
- Breathe out slowly for eight.
- Repeat four to eight times, then let the breath go back to normal.
If the hold feels uncomfortable, skip it: in for four, out for six works just as well. The counting also gives a busy mind something quiet to hold. More on why in 4-7-8 breathing.
Put the worries somewhere
Night-time worry loops because the mind is afraid of forgetting. Give it a place to put things:
- Write them down. Keep paper by the bed. One line per worry, and a word about the next step. Then close the notebook.
- Schedule them. Tell yourself you will think about it tomorrow at a set time. The mind is surprisingly willing to wait if it knows when.
- Do not solve anything after midnight. Problems look bigger in the dark. They will look different in the morning.
How to stop overthinking at night goes further into this.
If you have been awake a long time
If you have been lying awake for what feels like more than twenty minutes, get up. Go somewhere dim, do something quiet and dull, such as reading a paper book or folding laundry, and come back to bed when you feel sleepy. This keeps the bed linked with sleep rather than with worrying, and it is standard advice for insomnia (NHS).
Avoid the phone if you can. Not only because of the light, but because checking the time and counting the hours left is one of the most reliable ways to stay awake.
During the day
What happens in the evening starts earlier. A regular wake-up time, daylight in the morning, less caffeine after lunch and a calm last hour before bed all make anxious nights less likely. A few minutes of slow breathing earlier in the evening, such as coherent breathing, can help you arrive at bedtime already slower (Laborde et al., 2019).
When to talk to a doctor
If anxiety keeps you awake most nights for more than a few weeks, or it affects your days, talk to a doctor. Insomnia and anxiety both respond well to treatment, especially cognitive behavioural therapy for insomnia. If you are having thoughts of harming yourself, please seek urgent help now.
Frequently asked questions
How can I calm anxiety at night to sleep?
Slow your breathing with a long exhale, such as 4-7-8, write down what is worrying you, and stop trying to force sleep. If you have been awake for more than twenty minutes, get up for a while and do something quiet.
Why does anxiety get worse at night?
There are fewer distractions, you are tired, and the dark makes problems feel bigger. A mind with nothing else to do turns to what is unresolved.
Why do I wake up at 3 a.m. with anxiety?
Light sleep in the second half of the night makes waking common, and stress hormones begin to rise toward morning. Waking is normal; what keeps you awake is usually the worrying that follows.
Is it bad to get out of bed if I cannot sleep?
No. Getting up after about twenty minutes awake, and returning when sleepy, is a standard part of insomnia treatment.
Sources
- NHS. Insomnia. nhs.uk/conditions/insomnia
- Laborde, S., Hosang, T., Mosley, E., & Dosseville, F. (2019). Influence of a 30-day slow-paced breathing intervention compared to social media use on subjective sleep quality and cardiac vagal activity. Journal of Clinical Medicine, 8(2), 193. doi:10.3390/jcm8020193
- Vierra, J., Boonla, O., & Prasertsri, P. (2022). Effects of sleep deprivation and 4-7-8 breathing control on heart rate variability, blood pressure, blood glucose, and endothelial function in healthy young adults. Physiological Reports, 10(13), e15389. doi:10.14814/phy2.15389
Keep reading
How to stop overthinking at night
Why thoughts get louder when the lights go off, and gentle ways to give a looping mind something else to hold so sleep can come.
5 minBreathing exercises for sleep: a simple routine for winding down
Four gentle breathing exercises to help you relax at bedtime or fall back asleep at night, how to put them together into a ten-minute routine, and what the research says.
5 minWhy breathing out slowly calms you down
The exhale is where the calming happens. A plain-language explanation of the heart, the vagus nerve, and why the length of your out-breath matters.
5 min