Black Friday: 50% off Rootd PremiumUS$79.99 US$39.99Get the deal

The short answer: Anxiety can keep you awake because, as the NHS puts it, “When you feel stressed or anxious, your body may feel more alert. Your mind may also be full of worrying thoughts.” What helps most is a steady routine: going to bed and getting up at the same time, giving yourself time to relax before bed, cutting caffeine later in the day, and getting out of bed if you can’t sleep. If poor sleep lasts for months or makes it hard to cope, see a doctor.

Lying awake with racing thoughts? Rootd is free to download, with guided deep breathing, an anxiety journal and sleep sounds and stories for winding down.

Download Rootd, free on iPhone and Android App Store Play Store Scan with your phone

Having a sleepless night every once in a while is a pretty common thing for most people. However, if you struggle with anxiety, you might have too many nights where you toss and turn, anxiously staring at the clock and counting down the hours you have until you need to get up, worrying about how you will be able to focus on your day with so little sleep. Anxiety can make it hard for you to get a good night’s sleep, so we have put this guide together for you with tips to help you sleep when you have anxiety.

Why Does Anxiety Keep You Up at Night?

Sleep and anxiety are closely linked. The NHS lists “stress, anxiety or depression” first among the most common causes of insomnia, and “difficulty sleeping” is one of the symptoms of generalised anxiety disorder (GAD). It can work the other way too. Cleveland Clinic notes that “About half the people with chronic insomnia also have at least one other mental health disorder, like anxiety or depression,” and lists mood changes, like anxiety, among the effects of insomnia.

Insomnia can mean finding it hard to fall asleep, waking up several times in the night, lying awake, or waking up early and being unable to get back to sleep (NHS). Most adults need around 7 to 9 hours of sleep a night, although the exact amount differs from person to person (NHS Every Mind Matters).

Keep a Sleep Schedule

Make a set sleep schedule and follow it routinely so that your body will get used to it. The NHS suggests you “wake up and get out of bed at the same time every day” and only go to bed when you’re sleepy. Try to keep the same times on weekends too (NHLBI), and avoid sleeping in after a bad night, since sticking to your regular hours helps your body stay in its rhythm.

Give Yourself Time to Wind Down

In addition to giving yourself a set bedtime, give yourself a designated time to wind down before you go to bed, whether you are taking a bath, listening to music, reading, or meditating. The NHS recommends you “relax at least 1 hour before bed.” Having a good transition ritual can help your brain link these activities with getting ready to sleep.

Exercise Earlier in the Day

Regular exercise is good for both sleep and anxiety. The NHS says activities such as running, walking, swimming and yoga “can reduce anxiety and stress” (NHS). Timing matters, though. The NHS advises you to exercise regularly during the day and avoid exercise for at least 4 hours before bed, and the National Heart, Lung, and Blood Institute (NHLBI) notes that “Exercising close to bedtime can make it harder to fall asleep.” A walk earlier in the day is a good place to start.

Meditate Before Bed

Meditation and slow breathing can help calm your mind before bedtime. The NHLBI mentions meditation and yoga among the ways a doctor may suggest to help you relax (NHLBI). One simple option is the NHS calming breathing exercise: breathe in gently through your nose, counting from 1 to 5 if that helps, then breathe out through your mouth for the same count, and repeat for at least 5 minutes (NHS). You can also try a deep breathing app or a guided meditation to get started.

Journal

Part of what keeps you up at night is your thoughts going on and on, which is why journaling or jotting down your worries can be helpful. Getting your thoughts, worries, and feelings onto paper gives them somewhere to go. If you have a to-do list for tomorrow swirling around in your mind, writing it down means you don’t have to hold on to it all night. Stream-of-consciousness writing can help, too, since it gets everything that is on your mind out. If worries feel bigger than usual, our guide to feeling overwhelmed and anxious has more ideas.

Want a calmer bedtime routine? Rootd has an anxiety journal for getting worries out of your head, plus white noise, sleep stories and relaxing sounds.

Try guided breathing in Rootd, free App Store Play Store Scan with your phone

Avoid Stressful Activities Before Bed

Try to keep the last part of your evening low on stress. That can mean putting down social media, turning off the news, and leaving work at the door. The NHS also advises against using devices like smartphones right before bed, because the blue light makes you more awake. Light reading or a show you have already seen can be a good choice, while a gripping new book or series can keep you up for “one more” chapter or episode.

Watch what you drink, too. The NHS recommends you don’t smoke or drink alcohol, tea or coffee at least 6 hours before going to bed (NHS Every Mind Matters), and says caffeine “can disrupt your sleep and make it harder to control your anxiety” (NHS). Alcohol may make you feel sleepy at first, but it can lead to poor sleep later in the night. Read more in our guide to how caffeine affects anxiety.

Don’t Lie in Bed Awake

If you have been lying awake for a while and can’t fall asleep, get up and give yourself a do-over. Leave your bedroom, do something calm from your wind-down routine in low light, and go back to bed when you feel sleepy. This is part of a technique called stimulus control, which the NHLBI describes as “going to bed only when you are sleepy, getting out of bed if you cannot sleep, and using your bed only for sleep and sexual activity.” It helps your brain link being in bed with being asleep.

What to Do If Anxiety or Panic Wakes You Up at Night

Some people wake with a racing heart or a wave of panic. If that happens, try the slow breathing exercise above and remind yourself that the feeling will pass. Our guide on how to calm an anxiety attack at night walks through more steps, and if you feel wiped out the next day, read about why you feel tired after a panic attack. If you have chest pain or trouble breathing and you are unsure of the cause, get urgent medical help.

When to Get Help for Anxiety and Sleep Problems

A few bad nights are usually nothing to worry about. The NHS suggests seeing a GP if changing your sleeping habits has not helped, you’ve had trouble sleeping for months, or your insomnia is making it hard to cope with daily life. A doctor will look for what is causing it. One common option is cognitive behavioral therapy for insomnia (CBT-I), which the NHLBI describes as “a 6- to 8-week treatment plan” that “is usually recommended as the first treatment option for long-term insomnia.” If anxiety is affecting your daily life, talking to a doctor or therapist about the anxiety itself can help too.

FAQ: Anxiety and Sleep

Can anxiety cause insomnia?

Yes. The NHS names stress, anxiety or depression among the most common causes of insomnia, and difficulty sleeping is a listed symptom of generalised anxiety disorder.

Why does my anxiety feel worse when I try to sleep?

When you feel stressed or anxious, your body may feel more alert and your mind may fill with worrying thoughts (NHS Every Mind Matters). Lying still in a quiet room can leave more space for those thoughts, which is why a wind-down routine, journaling and slow breathing can help.

Should I get out of bed if I can’t sleep?

Yes. Getting out of bed if you cannot sleep, and going back when you feel sleepy, is part of stimulus control therapy, one of the parts of CBT-I (NHLBI).

How much sleep do adults need?

Most healthy adults need around 7 to 9 hours a night, though it varies from person to person (NHS Every Mind Matters).

When should I see a doctor about anxiety and sleep?

See a doctor if better sleep habits haven’t helped, the problem has lasted for months, or it is affecting your daily life (NHS).

Ready to try a calmer night? Rootd brings breathing exercises, journaling and sleep sounds together in one app.

Use the anxiety journal, free on iPhone and Android App Store Play Store Scan with your phone

Sources

Medical disclosure: This article is for general information and is not a diagnosis or a substitute for professional medical advice or treatment. New, severe, or unexplained symptoms need medical assessment. For a possible medical emergency, call your local emergency number.