# Anxiety at night: why it hits when you go to bed and how to stop it

> You hold it together all day and, the moment the light goes off, your heart races and your mind will not stop. Why anxiety waits for night-time and what works to stop it.

*https://mypsicotest.com/en/blog/anxiety-at-night/ · Published: 2026-09-26 · 8 min read · MyPsicoTest team*

You get through the whole day reasonably well. You work, you answer messages, you have dinner. And the moment the light goes off, something switches on: your heart speeds up for no reason, your mind starts running through everything outstanding, and your body, which ought to feel heavy with tiredness, is on alert. At one o'clock you are still awake. At twenty to five you wake with a jolt and there is no getting back.

**Anxiety at night** is one of the most common and most draining forms of anxiety, because it attacks exactly what would make it bearable: rest. This guide explains why it shows up when you go to bed, what to do that same night, and what to change to break the loop that ties it to insomnia.


## Why anxiety rises just as you go to bed

It is not that anxiety appears at night. It is that at night it stops having competition.

During the day your attention is occupied: tasks, conversations, screens, noise. All of that works as a buffer. When you get into bed it disappears at once, and whatever you had not been listening to for hours takes up all the space. The worries are not new; there is simply nothing else now.

On top of that there is a mismatch between body and mind. To fall asleep, the body needs to lower its level of arousal. If the mind is still in problem-solving mode, the body receives the opposite signal and stays alert. And the harder you try to sleep, the more arousal you generate: sleep is one of the few things that gets worse the more you try.

A third factor settles in over time. If bed has become the place where you turn things over, the brain learns the association. There comes a point where simply lying down is enough to switch it on, even if ten minutes earlier on the sofa you were half asleep.


## The three most common forms

### The kind that stops you falling asleep

The most recognisable one. You go to bed tired and the moment your head touches the pillow the replay begins: what you said, what you have to do tomorrow, what could go wrong. Half an hour passes, an hour, and on top of the original worry comes the worry about not sleeping. That mechanism of going over the same ground is covered in [Overthinking: why you cannot stop turning things over](https://mypsicotest.com/en/blog/overthinking/).

### The kind that wakes you in the early hours

You fall asleep without trouble, but at three or four you wake with your mind at full speed and cannot get back to sleep. It is very common during periods of sustained stress. It deserves attention when it repeats for weeks alongside low mood, because early-morning waking is also a characteristic symptom of depression.

### The kind that wakes you with a racing heart

Less common but the most frightening: you wake suddenly with a pounding heart, sweating, short of breath and with a sense of imminent danger. These are nocturnal panic attacks, and they work the same way as daytime ones: the [NHS](https://www.nhs.uk/conditions/panic-disorder/) notes that most last between five and twenty minutes and that, frightening as they are, they are not dangerous. What they are and what to do is in our guide on the [Panic attack: what it is, why it feels like a heart attack and what to do](https://mypsicotest.com/en/blog/panic-attack/). The first time, as with any chest pain or breathlessness you do not recognise, get it checked by a doctor.


## The loop between anxiety and insomnia

The [UK's National Health Service](https://www.nhs.uk/conditions/insomnia/) lists stress, anxiety and depression among the most common causes of insomnia, and notes that adults need between **seven and nine hours** of sleep. When the problems last less than three months it is called short-term insomnia; beyond that, long-term insomnia.

What turns a few bad nights into a sustained problem is the loop that forms. Anxiety makes sleep harder. Sleeping badly reduces your capacity to regulate emotions the next day, so anxiety rises. And a new piece appears: **fear of not sleeping**. Past a certain point it is no longer only work or health that worries you, it is the night itself, and that worry starts switching on around eight in the evening.

By then the original problem has often moved into the background. The insomnia has taken on a life of its own, and needs treating as such.


## What to do that same night

None of this works like a switch, but all of it helps avoid feeding the loop.

- **Do not look at the clock.** Working out how many hours you have left is one of the most arousing things you can do. Turn the clock round or leave your phone out of reach.
- **If you are not asleep within about twenty minutes, get up.** Go to another room with dim light and do something calm and boring until you feel sleepy. This is a standard step in treating insomnia: bed needs to be associated with sleeping again, not with fighting to sleep.
- **Write down what is on your mind.** Getting worries out of your head and onto paper, with a line on what you will do about each one tomorrow, takes some of the urgency out of them.
- **Breathe slowly.** Lengthening the out-breath — in for a count of four, out for six or eight — helps bring down physical arousal.
- **Do not start solving things.** Three in the morning is not the time to decide anything. If something important comes up, write it down and postpone it.
- **Avoid your phone.** Not only because of the light: social media and email add stimulation exactly when you need to remove it.


## What to change during the day

Much of what happens at night is decided earlier. The NHS sets out the guidance clearly:

- **Get up at the same time every day**, including after a bad night. Staying in bed to catch up throws the rhythm off further.
- **Only go to bed when you feel sleepy**, not at the usual time if you are wide awake.
- **Relax for at least an hour before bed.** A bath, reading, something unrelated to work.
- **No alcohol, coffee, tea or smoking in the six hours before bed.** Alcohol helps you drop off but fragments sleep and encourages early waking.
- **Exercise during the day**, but not in the four hours before bed.
- **Avoid naps** while the problem lasts.
- **Put screens away** before going to bed.



![Woman in bed under dim light writing in a notebook before sleeping to get her worries out of her head](https://mypsicotest.com/assets/img/blog-rutina-antes-de-dormir-ansiedad-1200.webp)



There is one more change that rarely appears on the lists and helps a great deal: **give worry its own time slot**. Setting aside a fixed period in the late afternoon, well away from bedtime, to go over what is outstanding and write it down means the night stops being the only place your mind can process the day. [MedlinePlus](https://medlineplus.gov/insomnia.html) has more general information on insomnia and its causes.


## When it points to something more

A few bad weeks during a stressful period are to be expected. It is worth looking more closely when it goes on beyond a month, when you are struggling to function during the day, when the dread of night-time starts in the afternoon, or when other things come with it.

Screening questionnaires help show what lies underneath. The [Insomnia Test](https://mypsicotest.com/en/insomnia-test/) measures how far the sleep problem has become entrenched in its own right. The [Anxiety Test](https://mypsicotest.com/en/anxiety-test/) is useful if worry and arousal dominate during the day too. And the [Depression Test](https://mypsicotest.com/en/depression-test/) is the one to take if early waking comes together with apathy or low mood. They are in the [psychological tests](https://mypsicotest.com/en/psychological-tests/) catalogue, free and anonymous, and the result is calculated on your own device. Our guide on the [Mental health test: what it measures, which ones exist and how to read your result](https://mypsicotest.com/en/blog/mental-health-test/) explains how to read those scores.


## Which treatment works

The first-line treatment for insomnia is not a drug. The NHS recommends **cognitive behavioural therapy for insomnia**, face to face or through guided self-help programmes, because it works precisely on the thoughts and behaviours that keep the problem going: fear of not sleeping, time spent awake in bed, irregular hours. How this approach works in general is covered in [Cognitive behavioural therapy: what it is, how it works and what it treats](https://mypsicotest.com/en/blog/cognitive-behavioural-therapy/).

On sleeping pills, the same service is clear: GPs **now rarely prescribe sleeping pills** for insomnia, because they can have serious side effects and cause dependence, and when they are used it is only for a few days or a few weeks at most. Over-the-counter pharmacy products do not cure it either; at best they help for one or two weeks. If you already take something for sleep or anxiety, do not stop on your own; [Anxiety medication or therapy: what works better for anxiety](https://mypsicotest.com/en/blog/anxiety-medication-or-therapy/) explains why and how it is done.

And if night-time anxiety is the visible part of anxiety that stays with you all day, treating only the sleep falls short: both need working on.

## Frequently asked questions

### Why do I get anxiety at night and not during the day?

Because at night the distractions that keep your attention busy during the day disappear, and the worries fill all the space. The body also needs to lower its arousal to sleep, and if the mind keeps working it sends the opposite signal. Over time, bed itself can become associated with turning things over.

### Is it normal to wake in the early hours with anxiety?

It is common during stressful periods, but it should not be normalised if it repeats for weeks. Waking in the early hours without being able to get back to sleep is also a characteristic symptom of depression, especially alongside low mood or loss of interest, so it is worth having it assessed.

### What should I do if I have been in bed for half an hour unable to sleep?

Get up, go to another room with dim light and do something calm until you feel sleepy; then go back to bed. Carrying on fighting to sleep raises arousal and teaches your brain that bed is the place where you suffer. Do not look at the clock or your phone in the meantime.

### Do sleeping pills help?

They can help occasionally, but they do not treat the cause. The UK's National Health Service notes that they are now rarely prescribed for insomnia, and only for days or a few weeks, because of side effects and the risk of dependence. The best-supported treatment is cognitive behavioural therapy for insomnia.

### Does looking at my phone in bed make anxiety worse?

It usually does. Screen light keeps you more awake, and the content — news, email, social media — adds stimulation and fresh worries exactly when you need less of both. Keeping it out of the bedroom, or at least away from the bed, is one of the simplest and most effective changes.

### Can an online test tell me whether I have insomnia?

It does not diagnose it, but it does estimate how severe the sleep problem is and whether anxiety or low mood lie behind it, which is what guides treatment. It is useful for arriving at an appointment with a concrete measure and for tracking how things change over time.
