If you can’t sleep because of anxiety, you may feel physically tired but mentally wide awake. Your thoughts may keep racing, you may repeatedly worry about tomorrow, or you may become anxious about not getting enough sleep.
This can create a frustrating cycle:
Anxiety → racing thoughts and physical tension → difficulty sleeping → worry about sleep → more anxiety → even more difficulty sleeping.
Stress and worrying about work, relationships, finances, health, or other problems can increase the risk of insomnia. Worrying specifically about whether you will sleep enough—and watching the clock—can make insomnia worse.
The good news is that anxiety-related sleep problems are treatable. Healthy sleep habits can help, and when insomnia persists, cognitive behavioral therapy for insomnia (CBT-I) is one of the best-supported treatments.
Why Can’t I Sleep Because of Anxiety?
Anxiety can interfere with sleep because it keeps the brain and body in a state of heightened alertness. Instead of naturally winding down, you may continue thinking about problems, anticipating possible dangers, or worrying about the next day.
Common reasons include:
- Racing or repetitive thoughts
- Excessive worrying about the future
- Stress from work, school, relationships, finances, or health
- Fear of not sleeping enough
- Checking the clock repeatedly
- Muscle tension or feeling restless
- Fast heartbeat or feeling “on edge”
- Difficulty relaxing at bedtime
- Caffeine or nicotine use
- Alcohol use near bedtime
- An inconsistent sleep schedule
- Spending too much time awake in bed
Can’t Sleep Because of Anxiety disorders themselves can also cause sleep difficulties. For example, people with generalized anxiety disorder may have trouble falling asleep or staying asleep and may feel tired during the day.
How Anxiety and Insomnia Affect Each Other
Anxiety and insomnia can reinforce each other.
Suppose you have an important event tomorrow. You start thinking:
“I have to sleep tonight.”
Then you look at the clock and realize it is getting late. You become worried that you will be exhausted tomorrow. That worry makes it even harder to relax.
Eventually, your bed can become associated with worrying and being awake rather than sleeping.
This is one reason CBT-I includes techniques such as stimulus control and cognitive therapy. The goal is to break the connection between being in bed and feeling anxious about sleep.
Common Causes of Anxiety-Related Sleep Problems
1. Racing thoughts
One of the most common experiences is a mind that seems unwilling to “switch off.”
You might think about:
- Something that happened earlier in the day
- What could go wrong tomorrow
- Work or school responsibilities
- Money
- Relationships
- Health concerns
- Family problems
- An upcoming appointment or event
Trying to force yourself to stop thinking can sometimes make you focus even more intensely on those thoughts.
2. Stress
Short-term stress can temporarily interfere with sleep. Ongoing stress can contribute to persistent sleep problems.
Stress does not always have to be dramatic. A busy schedule, unresolved conflict, excessive responsibilities, or uncertainty about the future can keep your mind activated at night.
3. Anxiety about sleep itself
After several difficult nights, you may start worrying:
“What if I can’t sleep tonight?”
That thought can become part of the problem.
NHLBI notes that worrying about getting enough sleep and watching the clock can increase the risk of insomnia or make it worse.
4. Caffeine and nicotine
Caffeine can make it harder to fall asleep, particularly when consumed later in the day. Nicotine can also interfere with sleep.
If anxiety is already making you feel alert, stimulants may make the problem more noticeable.
5. Alcohol
Alcohol may initially make some people feel sleepy, but it can produce lighter, less restorative sleep and increase nighttime awakenings.
6. Irregular sleep schedules
Going to bed and waking at dramatically different times can make it harder for your body to maintain a consistent sleep-wake rhythm.
A regular schedule—including on weekends—can help establish a more consistent routine.
What to Do When You Can’t Sleep Because of Anxiety
The goal is not to force sleep. Instead, focus on reducing mental and physical arousal.
1. Keep the same sleep and wake time
Try to:
- Go to bed around the same time each night.
- Wake up around the same time every morning.
- Keep your schedule reasonably consistent on weekends.
- Avoid repeatedly sleeping very late after a bad night.
A consistent sleep-wake schedule helps support your body’s sleep rhythm.
2. Start relaxing about an hour before bed
Give yourself a transition period between daytime activities and sleep.
For example:
One hour before bed:
- Dim the lights.
- Put away stressful work.
- Reduce stimulating activities.
- Take a warm bath or shower.
- Read something relaxing.
- Listen to calming music.
- Practice gentle breathing.
- Try progressive muscle relaxation.
NHLBI recommends creating a wind-down routine and gives examples such as reading, soothing music, a hot bath, meditation, massage, and yoga.
3. Try slow, deep breathing
Deep breathing can be a simple way to reduce physical tension before bed.
Try this:
- Sit or lie comfortably.
- Slowly inhale through your nose.
- Allow your abdomen to expand naturally.
- Slowly exhale through your mouth.
- Continue gently for several minutes.
- Keep your attention on the sensation of breathing rather than trying to force yourself to sleep.
The purpose is relaxation—not making yourself fall asleep immediately.
Breathing and relaxation techniques are also incorporated into evidence-based psychological approaches to anxiety and insomnia.
4. Practice progressive muscle relaxation
Progressive muscle relaxation involves gently tensing and then relaxing different muscle groups.
For example:
- Tighten your shoulders gently.
- Hold briefly.
- Release and notice the difference.
- Move to your arms, hands, legs, and other muscle groups.
- Keep the exercise comfortable rather than forceful.
This can help shift attention away from worrying thoughts and toward physical relaxation.
5. Don’t try to force sleep
If you’re lying awake becoming increasingly frustrated, continuing to stay in bed may strengthen the association between your bed and wakefulness.
Stimulus control—a component of CBT-I—encourages going to bed when sleepy and getting out of bed when you cannot sleep, returning when you feel sleepy again.
Keep the activity quiet and relaxing rather than doing something highly stimulating.
6. Stop watching the clock
Constantly calculating how many hours remain before you have to wake up can increase anxiety.
If possible, avoid repeatedly checking the time during the night.
7. Keep a notebook nearby
If worries repeatedly appear at bedtime, write them down.
You might make two short lists:
Things I’m worried about:
- Work deadline
- Tomorrow’s appointment
- Financial issue
What I can do tomorrow:
- Email my coworker
- Make the appointment
- Review my budget
This can help move problem-solving out of bedtime and into a more appropriate part of the day.
Sleep Habits That Can Make a Difference
Healthy sleep habits can support better sleep, although they may not be enough by themselves when chronic insomnia is present.
During the day
- Get regular physical activity.
- Spend time outside and get natural daylight.
- Avoid excessive caffeine.
- Maintain a regular daily schedule.
- Avoid long or late naps when they interfere with nighttime sleep.
In the evening
- Avoid caffeine close to bedtime.
- Avoid nicotine close to bedtime.
- Avoid alcohol close to bedtime.
- Avoid large or late meals.
- Limit excessive fluids close to bedtime if nighttime bathroom trips disturb your sleep.
- Begin winding down before bed.
In the bedroom
Keep your sleep environment:
- Cool
- Quiet
- Dark
- Comfortable
Electronic devices and bright light close to bedtime can also interfere with sleep for some people.
What About Daylight and Morning Light?
Daylight is an important environmental signal for the body’s sleep-wake cycle.
Getting outside during the day—particularly earlier in the day—can support a consistent daily rhythm. This works best as part of a broader routine that includes regular wake and sleep times.
If you have a diagnosed sleep disorder or are considering specialized light therapy, talk with a healthcare professional, particularly if you have an eye condition or take medication that increases sensitivity to light.
What Happens When You Can’t Sleep Because of Anxiety?
When you can’t sleep because of anxiety, your body may feel tired while your mind remains active. Anxiety can trigger a stress response that makes you feel alert, tense, or restless at a time when you are trying to relax.
This can become a cycle. Can’t sleep because of anxiety may lead to worrying about sleep, and worrying about sleep can make it even harder to fall asleep.
Why Does Anxiety Keep You Awake at Night?
One reason anxiety keeps you awake at night is that nighttime gives you fewer distractions. During the day, work, conversations, activities, and other responsibilities may occupy your attention. Once you get into bed, unresolved worries can become much more noticeable.
For someone who can’t sleep because of anxiety, common nighttime thoughts may include
Can’t Sleep Because of Anxiety and Racing Thoughts
Racing thoughts are one of the most frustrating parts of nighttime anxiety. You may move from one concern to another without reaching a solution.
For example, you might start worrying about work, then think about money, then remember something you said earlier, and finally become concerned about not sleeping.
If you can’t sleep because of anxiety and racing thoughts, try writing your concerns in a notebook before bed. You can separate the thoughts into two categories:
Things I can deal with tomorrow
Write down practical tasks that can wait until the next day.
Things I cannot solve tonight
Acknowledge these worries without trying to solve them while lying in bed.
This simple exercise can help create a mental boundary between nighttime and problem-solving time.
How to Calm Anxiety When You Can’t Sleep
If you can’t sleep because of anxiety, try focusing on relaxation rather than forcing yourself to fall asleep.
How Long Does Anxiety-Related Insomnia Last?
There is no single timeline. can’t sleep because of anxiety during a short period of stress, your sleep may improve when the stressful situation resolves.
However, if anxiety and insomnia continue for weeks or begin affecting your daily life, it is worth seeking professional advice.
Persistent insomnia does not have to be something you simply learn to live with. Effective treatments are available.
Can’t Sleep Because of Anxiety Tonight? Try This
If you’re awake tonight because of anxiety, keep things simple:
Step 1: Stop checking the clock.
Step 2: Take several minutes of slow, comfortable breaths.
The Most Important Treatment: CBT-I
If anxiety is repeatedly preventing you from sleeping, changing bedtime habits may not be enough.
Cognitive behavioral therapy for insomnia (CBT-I) is a structured treatment designed specifically for persistent insomnia.
It generally combines several approaches, including:
- Cognitive therapy
- Stimulus control
- Sleep education
- Sleep restriction therapy
- Relaxation techniques
CBT-I typically takes several weeks and can be delivered in person, by telephone, or online. NHLBI describes a typical treatment plan as about 6–8 weeks.
The American Academy of Sleep Medicine gives CBT-I a strong recommendation for chronic insomnia, reflecting its substantial evidence base.
How CBT-I helps anxiety about sleep
CBT-I can address thoughts such as:
- “If I don’t sleep eight hours, tomorrow will be a disaster.”
- “I have to fall asleep right now.”
- “I won’t be able to function tomorrow.”
- “Something is wrong with me because I can’t sleep.”
Treatment helps you identify unhelpful patterns, change behaviors that perpetuate insomnia, and rebuild a healthier relationship with sleep.
Treating the Anxiety Itself
Sometimes the most effective way to improve sleep is to address the underlying anxiety.
Treatment may include:
Psychotherapy
Cognitive behavioral therapy (CBT) is a well-studied treatment for anxiety disorders. It can help people recognize unhelpful thought patterns and develop healthier ways of responding to anxiety.
Other forms of psychotherapy may also be appropriate depending on the type of anxiety and the person’s needs.
Medication
Healthcare professionals may prescribe medication for certain anxiety disorders. Depending on the diagnosis, medications can include antidepressants such as SSRIs or SNRIs, buspirone, or, in selected circumstances, benzodiazepines.
Medication decisions should be individualized. Some medications can cause side effects, and some anxiety medications can lead to tolerance or dependence. Do not start, stop, or change psychiatric medication without discussing it with a healthcare professional.
Treating both problems
If you have both significant anxiety and persistent insomnia, your clinician may need to address both the anxiety and the sleep disorder rather than treating sleep in isolation.
Should You Take a Sleeping Pill for Anxiety?
Not necessarily.
Medication can have a role in treating insomnia or anxiety for some people, but it is not automatically the best first step.
For chronic insomnia, behavioral treatment—particularly CBT-I—is strongly supported by evidence and is recommended as an initial treatment approach.
Over-the-counter sleep aids, supplements, antihistamines, or herbal products are not automatically safe or effective simply because they are available without a prescription.
If you’re considering a sleep medication, ask a healthcare professional or pharmacist about:
- Whether it is appropriate for you
- Possible side effects
- Drug interactions
- How long it should be used
- Whether it treats the underlying anxiety
- Whether CBT-I or anxiety treatment would be more appropriate
A Simple Bedtime Routine for Anxiety
If Can’t Sleep Because of Anxiety keeps you awake, you could try this routine:
1 hour before bed:
Stop stressful work and begin winding down.
45 minutes before bed:
Take a warm bath or shower, read, or listen to relaxing music.
30 minutes before bed:
Write down worries and anything you need to handle tomorrow.
15 minutes before bed:
Practice slow breathing or progressive muscle relaxation.
At bedtime:
Go to bed when you feel sleepy.
If you remain awake and frustrated:
Get out of bed and do something quiet in low light. Return to bed when you become sleepy.
In the morning:
Wake at your planned time rather than repeatedly changing your schedule after a poor night.
These strategies are consistent with behavioral approaches used for insomnia, although persistent insomnia may require structured CBT-I rather than sleep-hygiene measures alone.
However, long or late naps can make it harder to sleep at night. If you regularly can’t sleep because of anxiety, maintaining a consistent daily schedule may be more helpful than repeatedly trying to compensate for lost sleep.
Can’t Sleep Because of Anxiety Even When You Are Tired
One of the most confusing experiences is feeling physically exhausted but still being unable to sleep. If you can’t sleep because of anxiety, tiredness does not necessarily mean your mind is ready to settle down.
Frequently Asked Questions
Why does anxiety get worse at night?
Nighttime is often quieter and contains fewer distractions. This can give worries more mental space. If you are already concerned about sleeping, the quiet environment may also make you focus more strongly on physical sensations and anxious thoughts.
Can anxiety cause insomnia?
Yes. Anxiety and excessive worry can make it difficult to fall asleep or stay asleep. Anxiety disorders, including generalized anxiety disorder, commonly involve sleep difficulties.
How can I calm anxiety quickly before bed?
Try slow breathing, progressive muscle relaxation, writing down worries, listening to relaxing music, or another quiet activity that helps you wind down. The objective is to reduce arousal rather than force yourself to fall asleep.
Should I stay in bed if I can’t sleep?
If you’re awake and becoming frustrated, stimulus-control principles used in CBT-I recommend getting out of bed and returning when you feel sleepy. This helps strengthen the association between bed and sleep.
Does caffeine make anxiety-related insomnia worse?
It can. Caffeine is a stimulant and can make sleep more difficult, particularly when consumed close to bedtime. Reducing caffeine can also be part of managing anxiety symptoms.
Does alcohol help you sleep?
Although alcohol can initially make you feel sleepy, it can lead to lighter sleep and more nighttime awakenings. It is therefore not a reliable treatment for insomnia.
Is CBT-I effective for anxiety-related insomnia?
CBT-I is one of the best-supported treatments for chronic insomnia. It specifically addresses behaviors and thoughts that keep insomnia going. If anxiety is also present, anxiety-focused treatment such as CBT may be useful as part of the overall treatment plan.
How long does anxiety-related insomnia last?
It varies. Short periods of stress may cause temporary sleep problems, while persistent anxiety can contribute to longer-lasting insomnia. If sleep problems continue or significantly affect daytime functioning, professional assessment is appropriate.
Can’t Sleep Because of Anxiety You’re not alone. Anxiety can make it difficult to fall asleep, stay asleep, or relax at bedtime.
If you can’t sleep because of anxiety, racing thoughts and worries may keep your brain alert when your body needs to rest.
When anxiety keeps you awake at night, relaxation techniques, a consistent sleep schedule, and appropriate treatment can help.
If you regularly can’t sleep because of anxiety, CBT-I and treatment for the underlying anxiety may be helpful.
If you can’t sleep because of anxiety, you’re dealing with a problem that many people experience, and there are effective ways to manage it. A consistent sleep schedule, daytime activity and daylight, reduced caffeine and alcohol, a relaxing bedtime routine, deep breathing, progressive muscle relaxation, and appropriate treatment can all play a role.
Why Checking the Time Can Make Sleep Anxiety Worse
When you can’t sleep because of anxiety, repeatedly looking at the clock can make the situation feel more urgent.
If you can’t sleep because of anxiety, scrolling through social media, reading stressful news, checking work messages, or searching for symptoms online may increase mental stimulation.
