Sleep
Waking up in the middle of the night with anxiety: what to do
By Carol PocockPublished 8 min read

The short answer
If you wake up in the middle of the night with anxiety, stay where you are, keep the lights low and breathe slowly: in for a count of 5, out for a count of 5, for a few minutes. Then notice what you can feel and hear. If you are still wide awake after about 20 minutes, get up and sit somewhere dim and quiet. Chest pain, breathlessness or fainting need emergency help.
You wake in the dark with your heart thumping and a feeling that something is wrong, though nothing is. Your thoughts are already running. If you wake up in the middle of the night with anxiety like this, you are not alone, and there is a calm, simple way to meet it.
This guide is about that jolt of fear or dread itself. If your main trouble is lying awake afterwards, our guide to getting back to sleep at 3am covers that side of things in detail.
Why you may wake up in the middle of the night with anxiety
There is rarely one neat cause. A few things often come together.
- Stress and worry. The National Heart, Lung, and Blood Institute lists stress and worry, about money, family, health or loss, among the things that raise the risk of sleep problems. A mind that carries a lot by day often keeps working at night.
- Age. The same institute notes that the chances of insomnia increase as you get older, so there are more wakeful moments in the night when a worry can catch hold.
- Worry about sleep itself. The same institute notes that fretting about whether you will get enough sleep, and watching the clock, can make sleep problems worse. Waking anxious one night can make you braced for it the next.
- Caffeine, alcohol and some medicines. All three can disturb sleep, and caffeine and alcohol can also bring on palpitations.
- Night-time panic. Sometimes it is a panic attack. The US National Institute of Mental Health says panic attacks can happen at any time, sometimes even during sleep.
Waking with your heart racing
A racing heart in the night is frightening, especially when you wake straight into it.
The NHS describes palpitations as a heartbeat that feels racing, pounding, fluttering or irregular. It lists stress and anxiety, lack of sleep, alcohol, caffeine, nicotine and some medicines among the common causes, and says palpitations are usually harmless. A panic attack can bring a racing heart, shortness of breath and chest pain all at once, and most attacks last between 5 and 20 minutes.
Usually harmless does not mean always harmless. Some symptoms need a doctor, and some need help straight away. Those are listed clearly in the section on red flags below. Please read it even if your nights are mostly fine.
A calm routine for the moment you wake
The aim here is not to argue with the fear or force yourself back to sleep. The aim is to let your body settle so the feeling can pass on its own. NHS guidance for a panic attack is to stay where you are, breathe slowly and deeply, and remind yourself that it will pass and is not life threatening.
- Stay where you are (10 seconds). Do not jump up or reach for your phone. Lie still, or sit up against the headboard if lying down feels worse. Tell yourself, in plain words: "This is anxiety. It will pass."
- Breathe slowly (5 minutes). Breathe in gently through your nose for a count of 5, then out gently for a count of 5. Let your belly rise rather than your chest. You may not reach 5 at first, and that is fine. Keep going for about five minutes. Easier option: count to 3 in and 3 out, or simply make each breath out a little slower than the one before.
- Notice what is around you (2 minutes). Move your attention outward, one sense at a time. Feel the weight of the blanket, the pillow under your head and your feet against the sheet. Listen for three sounds: a car, the fridge, your own breath. If a calm picture helps more, bring one to mind, a quiet beach or a garden you know, and stay with it.
- Soften your body (1 minute). On each breath out, let one part go: your jaw, then your shoulders, then your hands. Let your tongue rest loosely in your mouth.
- Check in. If the wave has passed and you feel drowsy, turn on your side and let the breathing carry on by itself.
- If you are wide awake after about 20 minutes, get up. Go to another room with a low light and do something quiet: a paper book, folding laundry, more slow breathing in a chair. Return to bed when your eyes feel heavy. Getting out of bed when you cannot sleep is part of an approach called stimulus control, which is one of the treatments sleep medicine guidelines recommend for long-lasting insomnia.
If you already know 4-7-8 breathing and like it, it can stand in for step 2. If a breath hold makes you feel more panicky in the night, leave it out and use the even count above.
What not to do at 3am
- Do not check the time. Clock-watching feeds worry about sleep.
- Do not search your symptoms on your phone. The bright screen and the search results will both wake you further.
- Do not try to solve the problem now. If a worry is loud, write one line on a notepad by the bed, such as "call the bank", and let the paper hold it until morning.
- Do not fight the feeling. The NHS notes that panic is not life threatening. Letting the wave rise and fall, while you keep breathing, usually works better than pushing against it.
Daytime habits that may help your nights
What you do in the day shapes how your nights feel. None of these is a cure, but together they may make night waking less frequent and less frightening.
- Practise the breathing in daylight. NHS guidance says you get the most from calming breathing when you do it regularly, not only in a crisis. Five minutes after breakfast makes it familiar, so it comes more easily at night.
- Give worries a set time. The NHS suggests a daily "worry time": a fixed slot, perhaps 15 minutes in the late afternoon, where you write down what is on your mind and what, if anything, you can do about it. When a worry turns up at night, you can remind yourself that it has a time slot tomorrow.
- Keep a short diary for two weeks. Note when you wake, how you felt, and what you ate, drank and did that day. Patterns are easier to see on paper.
- Ease off caffeine and alcohol. The NHS advises avoiding tea, coffee and alcohol for at least six hours before bed. Tea counts as well as coffee.
- Keep a regular wake time, even after a broken night.
- Move gently during the day. A walk, or some gentle yoga, gives the body somewhere to put the day's tension.
When to see a doctor, and when to call for help
Call emergency services (911 in the US and Canada, 999 in the UK) if:
- you have chest pain
- you are short of breath, or feel faint, or you faint
- a racing, pounding or irregular heartbeat does not go away
Do not wait to see whether these settle, and do not assume it is only anxiety. Panic can feel like a heart attack, which is exactly why a doctor needs to check.
Make an appointment with your doctor if:
- palpitations keep coming back, are happening more often, or last longer than a few minutes
- you have a heart condition, or heart problems run in your family
- night panic keeps happening, or you have started to dread going to bed
- anxiety is affecting your daily life
- you have trouble sleeping on most nights and it has gone on for weeks
Your doctor can check for physical causes first, review your medicines and talk through treatment. Panic disorder and anxiety are treatable, most often with talking therapies such as cognitive behavioural therapy, sometimes with medicine as well. Do not start or stop any medicine without speaking to your doctor or pharmacist.
If you are in distress and cannot keep yourself safe, call emergency services or a crisis line straight away.
Where to go next
If your waking happens at the very same hour night after night, our guide to waking up at the same time every night explains the sleep biology behind it. For a deeper look at how slow breathing settles the body, read about breathwork for nervous system regulation.
And if you would like a gentle place to start practising by day, the free 7-day starter teaches one short breathing practice at a time, so it is ready when you need it at night.
A softer way through the night
A frightening wake-up does not mean something is broken. It is your body raising an alarm that, most of the time, does not need answering. Stay where you are, breathe slowly, feel the bed beneath you and let the wave pass. Then, in daylight, give your worries a time and a place of their own, and let the night be for rest.
Common questions
- Why do I wake up in the middle of the night with anxiety?
- Stress and worry are well known to raise the risk of poor sleep, and the chances of insomnia increase with age. Caffeine, alcohol and worry about sleep itself can add to it. For some people it is a panic attack, which health bodies say can happen during sleep.
- Why do I wake up in the middle of the night with my heart racing?
- A pounding or racing heart is a common symptom of anxiety and panic. Caffeine, alcohol, lack of sleep and some medicines can also cause palpitations. They are usually harmless, but get checked if they keep coming back or last more than a few minutes.
- Can you have a panic attack in your sleep?
- Yes. The US National Institute of Mental Health says panic attacks can occur at any time, sometimes even during sleep. Most panic attacks pass within 5 to 20 minutes. If they keep happening, talk to your doctor, because panic disorder is treatable.
- Why is my anxiety worse in the morning?
- There is no single simple answer, and it varies from person to person. The same daytime steps may help: slow breathing practised regularly, a steady wake time, less caffeine and a set worry time later in the day. If anxiety affects most of your days, talk to your doctor.
- When is waking with a racing heart an emergency?
- Call emergency services if a racing or pounding heartbeat does not go away, or if it comes with chest pain, shortness of breath, or feeling faint or fainting. Do not wait to see whether it settles.
Sources
- National Institute of Mental Health. Panic Disorder: When Fear Overwhelms.
- NHS. Panic disorder.
- NHS. Heart palpitations.
- NHS. Breathing exercises for stress.
- NHS Every Mind Matters. Anxiety.
- National Heart, Lung, and Blood Institute. Insomnia: Causes and Risk Factors.
- Edinger J. D. 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.


