Racing mind at night: anxiety & sleep
When the lights go out and the worries switch on, you are not alone, and there are gentle ways to quiet the noise.
By the numbers
What research tells us about worry, anxiety and sleep.
Sleep & anxiety
United States
Why anxiety and sleep clash
Your body’s alarm system and your sleep system don’t mix well.
Sleep needs your body and mind to feel safe enough to switch off. When you feel stressed or anxious, your body becomes more alert, which makes it harder to drift off.
Trouble falling or staying asleep is one of the common signs of generalized anxiety. Stress about work, school, money, relationships or a loss also raises the chance of insomnia.
Read more
Anxiety can show up in the body as tension, headaches, stomach aches, sweating or feeling out of breath. These are the same signals your body uses to keep you ready for danger, so they work against sleep.
Read more
During the day, tasks and people keep your mind busy. At bedtime, there is nothing else to hold your attention, so worrying thoughts can take over.
People who find it hard to control their worries during the day often notice it most at night.
Read more
Worrying about getting enough sleep, and watching the clock, can raise the risk of insomnia or make it worse.
A well-known model of insomnia describes how worry about sleep and about the next day triggers arousal and distress, which then makes sleep harder still.
Read more
In a Berkeley study, a sleepless night raised anxiety levels by up to 30%. Brain scans showed that a part of the brain that helps keep anxiety in check (the medial prefrontal cortex) was less active after sleep loss.
The researchers found that deep sleep seemed to calm and reset the anxious brain. People who got more deep sleep felt less anxious the next day.
The night-time worry loop
How worry, watching and trying hard keep you awake.
Researchers describe a loop that keeps many people awake. Worry wakes the body up. Then you start watching for signs you’re not sleeping, which feeds more worry.
How the loop can go
- A worry pops up: “I have a big day tomorrow.”
- Your body tenses and your heart speeds up.
- You notice you’re still awake and check the time.
- You start to worry about how tired you’ll be.
- Sleep feels further away, and the loop starts again.
Read more
When you’re anxious, attention narrows onto possible threats, inside and outside the body. At night that can mean noticing every sound, every heartbeat and every minute awake.
This close watching can trick you into thinking you slept less, or are coping worse, than you really are.
Read more
In two experiments, people asked to watch a clock while trying to sleep worried more and took longer to fall asleep. People with insomnia who watched the clock also overestimated how long it took them to drop off.
Read more
Pushing thoughts away, trying to control images in your mind, or holding feelings in are all things people do to try to sleep. Research suggests these efforts can actually keep the worry going.
Sleep comes more easily when you stop chasing it. Aim to rest, not to “make” yourself sleep.
Read more
Some people believe worry helps them prepare or stay safe. Unhelpful beliefs like this, about worry and about sleep, are named as things that keep insomnia going.
Planning helps. Going over the same worry again and again at 2 a.m. usually doesn’t. The next section has a way to plan earlier in the evening instead.
Settle worries before bed
Give worries a time and a place earlier in the evening.
Many worries show up at bedtime simply because it’s the first quiet moment of the day. Giving them attention earlier can mean they knock less loudly at night.
Read more
Researchers developed a simple method sometimes called “constructive worry.” Well before bed, you write down what’s on your mind and a next step for each worry. In a study of students with insomnia, this lowered mental busyness before sleep.
Try it
- Pick a time early in the evening, well before bed.
- Set a timer for about 15 minutes.
- In one column, write each worry.
- In the next column, write one small next step, or “not mine to solve tonight.”
- Fold the page and put it away.
Read more
In a sleep-lab study, people who spent five minutes writing a detailed to-do list before bed fell asleep faster than those who wrote about tasks they had already done.
The “Insomnia & trouble sleeping” guide has a “Worry dump” worksheet you can use for this.
Read more
Healthy sleep habits include putting screens away at least half an hour before bed, keeping the bedroom quiet and cool, and avoiding big meals and alcohol close to bedtime.
Use the buffer for something soothing: a shower, stretching, a paper book or quiet music. The “Screens, sleep & your brain” guide has a full screen wind-down plan.
Read more
Some worries have no next step right now, like waiting for test results. For these, it can help to write them down and tell yourself, “I’ve noted this. I’ll come back to it tomorrow.”
You are not ignoring the worry. You are choosing a better time to give it your attention.
When your mind races in bed
Gentle things to try instead of fighting your thoughts.
Sleep experts recommend therapy that includes relaxation and “stimulus control” (using your bed mainly for sleep) for long-term insomnia. These ideas can help when worry keeps you up.
Read more
Instead of arguing with a worry, try noticing it: “There’s the work worry again.” Then gently bring your attention back to your breath or the feel of the sheets.
A review of 18 trials found early evidence that mindfulness meditation may help with some sleep problems.
Read more
Relaxation therapy is one of the approaches sleep experts suggest for long-term insomnia.
Try it
- Start with your feet. Squeeze the muscles for about five seconds.
- Let go and notice the difference for a few breaths.
- Move up to your legs, belly, hands, arms, shoulders and face.
- Finish with a few slow breaths.
Read more
Imagine a calm place in detail: a beach, a forest path, a favourite room. What can you see, hear and smell? A detailed, gentle scene gives your mind something to rest on besides worry.
Read more
Stimulus control means keeping the bed linked with sleep, not with worry. If you can’t sleep, get up, do something calm in dim light, and come back when you feel sleepy.
The “Insomnia & trouble sleeping” guide has a “My can’t-sleep plan” worksheet to plan this ahead.
Read more
Slow breathing is one of the simplest ways to settle a body on alert. The “Breathing for sleep & rest” guide walks you through several bedtime breathing routines.
Waking at 3 a.m. with worries
What to do when worries wake you in the middle of the night.
Many people sleep fine at first, then wake in the night with a busy mind. Problems can feel bigger in the dark, when you’re tired and alone with your thoughts.
Read more
Clock-watching has been shown to raise worry and slow sleep. Trust your alarm to do its job.
Read more
If a worry or task wakes you, jot down a few words in dim light. Then tell yourself you’ll deal with it in the morning.
Writing things down is part of the constructive worry approach that helped lower mental busyness before sleep.
Read more
Night-time news or social media can feed worry and keep your mind busy. The “Screens, sleep & your brain” guide has ideas for night-time worry scrolling.
Read more
Try saying: “This feels huge right now because I’m tired. I’ll look at it in daylight.” Being kind to yourself works better than telling yourself off for being awake.
Anxiety can make you think you slept less, or will cope worse, than you really will.
Waking up in panic
Night-time panic attacks: frightening, but not dangerous.
A night-time (nocturnal) panic attack is a sudden wave of fear that wakes you from sleep. Your heart may race, you may sweat, and it can feel hard to breathe.
Symptoms usually peak within about 10 minutes. Unlike night terrors, you are awake and aware of the fear.
Read more
Once a panic attack starts, the feelings need to run their course. Slow, steady breathing or relaxing your muscles may make it less intense.
Try this
- Sit up and put your feet on the floor.
- Turn on a soft light.
- Breathe in gently, then breathe out slowly, longer than the in-breath.
- Tell yourself: “This is panic. It will pass.”
- When it settles, do something calm before going back to bed.
Read more
Some health conditions, such as heart or thyroid problems, can cause similar feelings. Call a provider if you have chest pain, breathing problems, or panic that lasts more than 15 minutes.
Loud snoring or gasping for breath can also be a sign of sleep apnea, which is worth mentioning. See the “Sleep apnea & your mental health” guide.
Read more
CBT helps you spot triggers and change how you think about and respond to panic. Over time, panic attacks often decrease and may stop completely.
For any other treatment options, please consult your clinical provider.
Daytime habits that calm night-time worry
What you do in the day shapes how your mind feels at night.
Good nights often start in the morning. Healthy habits like cutting back on caffeine and getting enough sleep can help reduce anxiety, alongside proper care.
Read more
A consistent schedule for going to bed and waking up is one of the main healthy sleep habits.
Sleeping in after a rough night can make it harder to fall asleep the next night, which can feed the worry loop.
Read more
Exercise, mindfulness and meditation can reduce anxiety symptoms and add to the benefits of therapy.
Staying physically active is also one of the CDC’s healthy sleep habits.
Read more
Reducing caffeine is one of the habits that can help with anxiety. For sleep, limit caffeine in the afternoon and evening.
Read more
Moving worry to a set time earlier in the day, instead of at bedtime, is the idea behind constructive worry.
When a worry pops up at other times, jot it down and save it for your worry slot.
Read more
Talking to a friend, family member, faith leader or support group gives worries somewhere to go before bedtime. Feeling understood can make the night feel less lonely.
How to support someone
When a partner, child or friend lies awake worrying.
Watching someone you love struggle with night-time worry can be hard. You don’t need to fix it. Calm, patient company often helps most.
Read more
Ask open questions like “What’s been on your mind lately?” Listen without rushing to solve. A daytime chat can take some weight off bedtime.
Read more
Pressure to sleep can add to worry about sleep. Try “Rest is still good for you” instead.
Read more
Agree ahead of time that it’s fine to leave the bed for a while if they can’t sleep. Keep a soft lamp and a blanket ready in another room.
Read more
Spend a few minutes before lights out talking through the day. Help them write or draw a worry and “put it away” in a box until morning.
If worries are keeping them up most nights, talk to their pediatrician or school counselor.
When and where to get help
Signs it’s time to reach out, and where to start.
Anxiety and sleep problems both respond well to the right help. Cognitive behavioral therapy (CBT) is considered the “gold standard” therapy for generalized anxiety, and CBT for insomnia (CBT-I) is the most strongly recommended approach for long-term insomnia.
Treating insomnia can help anxiety too. A review of 10 trials found that online CBT-I eased anxiety and low mood as well as improving sleep.
Talk to your clinical provider if…
- Panic attacks wake you, or you have chest pain or trouble breathing at night
- Someone notices you snore loudly or gasp in your sleep
- Worry keeps you awake on most nights for weeks
- You feel exhausted, on edge or low during the day
- Your sleep or worry is affecting work, school or relationships
📝 Worksheets for this guide
Fill these in privately in the app. Your answers stay on your phone.
Sources
- NHS (UK National Health Service). How to fall asleep faster and sleep better (Every Mind Matters)
- National Institute of Mental Health (NIMH). Generalized Anxiety Disorder: When Worry Gets Out of Control
- National Institute of Mental Health (NIMH). Anxiety Disorders
- National Heart, Lung, and Blood Institute (NHLBI), NIH. Insomnia: Causes and Risk Factors
- Behaviour Research and Therapy (peer-reviewed) (2002). A cognitive model of insomnia (Harvey, Behaviour Research and Therapy 40(8): 869–893)
- University of California, Berkeley (2019). Stressed to the max? Deep sleep can rewire the anxious brain
- Nature Human Behaviour (peer-reviewed) (2020). Overanxious and underslept (Ben Simon, Rossi, Harvey & Walker, Nature Human Behaviour 4(1): 100–110)
- Journal of Behavior Therapy and Experimental Psychiatry (peer-reviewed) (2007). Sleeping with the enemy: clock monitoring in the maintenance of insomnia (Tang, Schmidt & Harvey, Journal of Behavior Therapy and Experimental Psychiatry 38: 40–55)
- Behavioral Sleep Medicine (peer-reviewed) (2006). Effects of a structured problem-solving procedure on pre-sleep cognitive arousal in college students with insomnia (Carney & Waters, Behavioral Sleep Medicine 4: 13–28)
- Scullin et al. (peer-reviewed) (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)
- Centers for Disease Control and Prevention (CDC). About Sleep
- Centers for Disease Control and Prevention (CDC). Adults Sleep Facts and Stats
- American Academy of Sleep Medicine (AASM) (2021). Behavioral and psychological treatments for chronic insomnia disorder in adults: an American Academy of Sleep Medicine clinical practice guideline (Edinger et al., Journal of Clinical Sleep Medicine 17(2): 255–262)
- Annals of the New York Academy of Sciences (peer-reviewed) (2019). The effect of mindfulness meditation on sleep quality: a systematic review and meta-analysis of randomized controlled trials (Rusch et al., Annals of the New York Academy of Sciences 1445(1): 5–16)
- Cleveland Clinic. Nocturnal Panic Attacks
- PLoS One (peer-reviewed) (2015). Internet-based cognitive behavioral therapy for insomnia (ICBT-i) improves comorbid anxiety and depression: a meta-analysis of randomized controlled trials (Ye et al., PLoS One)
- 988 Suicide & Crisis Lifeline. 988 Suicide & Crisis Lifeline
- Crisis Text Line. Crisis Text Line
- Find A Helpline (ThroughLine), in partnership with the International Association for Suicide Prevention. Find A Helpline
This guide is for education and self-care. It is not a diagnosis or a substitute for professional care. Please talk to a counselor or clinical provider about your health. Reviewed October 2026.

