How anxiety and depression affect your sleep
If you find yourself lying awake at night and wondering, can anxiety or depression cause sleep problems, you are not alone. Anxiety, depression, and insomnia are closely linked, and each one can make the others worse over time.
Research shows that mental health conditions like anxiety and depression often disrupt sleep and can lead to chronic insomnia (Mayo Clinic). Understanding how they connect is the first step toward breaking the cycle and getting more restful nights.
Recognize the common sleep problems
When anxiety or depression affects your sleep, it often shows up in a few familiar patterns.
Sleep problems linked to anxiety
If you live with anxiety, you might notice:
- Trouble falling asleep because your mind will not slow down
- Waking up throughout the night and struggling to drift back off
- Feeling tense or “on alert” in bed
- Worrying in advance about whether you will sleep at all
This pattern is sometimes called sleep anxiety, which is a fear or worry about going to sleep that leads to difficulty falling or staying asleep and less restful sleep overall (Cleveland Clinic).
You might also experience:
- Disturbing dreams or nightmares that wake you from REM sleep (Cleveland Clinic)
- Nighttime panic attacks that jolt you awake with intense fear, a racing heart, or shortness of breath
People with anxiety disorders often have higher “sleep reactivity,” which means stress is more likely to trigger insomnia for you compared with someone who does not live with anxiety (Sleep Foundation).
Sleep problems linked to depression
Depression can change your sleep in several ways. You might notice:
- Insomnia, such as difficulty falling asleep, waking up often, or waking too early
- Sleeping much more than usual and still feeling tired
- Heavy daytime sleepiness
Up to 80% of people with depression experience episodes of insomnia, including problems falling asleep and early morning awakenings (Sleep Foundation). Others develop hypersomnia, or excessive sleep, and some also have sleep disorders like obstructive sleep apnea (Sleep Foundation).
Sleep issues are so common in depression that they are considered a core symptom, not just a side effect.
Understand the two-way relationship
You might wonder which came first, your mood changes or your poor sleep. In many cases, they feed into each other.
How poor sleep can lead to anxiety or depression
Long stretches of short or broken sleep can:
- Heighten emotional sensitivity
- Make stress feel harder to handle
- Lower your resilience and patience
Over time, this can make you more vulnerable to developing anxiety or depression. Both anxiety and depression have a bidirectional relationship with sleep problems, which means poor sleep can contribute to these conditions and these conditions can make sleep worse (Sleep Foundation, Sleep Foundation).
How anxiety and depression make sleep worse
Anxiety ramps up your body’s stress response. Before bed, that might look like:
- Elevated stress hormones that keep your body alert instead of relaxed
- Nighttime rumination, where you replay worries or imagine worst-case scenarios
- Middle-of-the-night awakenings with racing thoughts that will not let you drift back to sleep
Chronic anxiety can keep your stress hormones high at night, which makes it harder to fall asleep and stay asleep, and can also lead to waking up with worries that block your return to sleep (Cleveland Clinic).
Depression can disrupt your internal body clock, your stress system, and the way your brain uses serotonin, which is involved in both mood and sleep regulation. These changes can increase your vulnerability to sleep disturbances and make it harder to keep a steady sleep-wake rhythm (Sleep Foundation).
When you put this all together, you get a self-reinforcing cycle:
- Anxiety or depression makes it hard to sleep.
- Poor sleep intensifies anxiety and low mood.
- Increased symptoms make it even harder to rest.
Breaking this cycle is possible, but it usually requires addressing both your sleep habits and your mental health.
Notice signs your sleep is being affected
Not every rough night is a sign of a deeper issue. However, if you recognize several of the patterns below, anxiety or depression may be playing a role in your sleep problems.
Emotional and mental signs
- You dread bedtime because you are afraid of not sleeping.
- Your thoughts speed up as soon as you lie down.
- You notice more irritability, tearfulness, or hopelessness during the day.
- Worries or negative thoughts feel louder and more persistent at night.
Physical and daytime signs
- You wake up feeling unrefreshed even after a full night in bed.
- You struggle to focus, remember things, or make decisions.
- You rely heavily on caffeine to get through the day.
- You often nap out of exhaustion, even when you intend not to.
If these patterns last longer than a few weeks, or if they interfere with your work, relationships, or daily responsibilities, it is a good idea to reach out to a healthcare professional.
Learn about common conditions behind sleep problems
Sleep issues can be tied to several specific mental health conditions. Understanding them can help you put your experience in context.
Generalized anxiety and other anxiety disorders
Anxiety disorders affect roughly 20% of American adults and often involve chronic worry and unease that spills into the night (Sleep Foundation). You might live with:
- Generalized anxiety, with ongoing worry about many areas of life
- Panic disorder, including nocturnal panic attacks
- PTSD, which often includes nightmares and severe insomnia
Many people with these conditions also report some level of sleep disruption, and some groups, such as combat veterans with PTSD, show very high rates of insomnia symptoms (Sleep Foundation).
Depression and related sleep disorders
With depression, both insomnia and oversleeping are common. About 20% of people with depression have obstructive sleep apnea and about 15% experience hypersomnia, which shows how often other sleep disorders show up alongside depression (Sleep Foundation).
You may also experience:
- Very early morning awakenings with a low mood
- Difficulty getting out of bed
- Increased napping that still does not leave you rested
When anxiety and depression overlap
Nearly half of people with depression also have an anxiety disorder, which means you might be dealing with both at the same time (Sleep Foundation). When anxiety and depression overlap, sleep problems often become more intense and more persistent.
Explore treatment options that can help
If you have been wondering, can anxiety or depression cause sleep problems, it can help to know that effective treatments are available. You do not have to choose between working on your mood and working on your sleep. Addressing both together often brings the best results.
Cognitive behavioral therapy (CBT and CBT-I)
Cognitive behavioral therapy is a structured form of talk therapy that helps you:
- Notice unhelpful thought patterns
- Replace them with more realistic and balanced thoughts
- Build healthier behaviors around sleep and daily routines
The Mayo Clinic notes that CBT is an effective treatment for long-term sleep problems, including insomnia that is linked to anxiety and depression. Unlike sleeping pills, CBT targets the underlying causes of insomnia, such as negative thoughts and worries, rather than just the symptoms (Mayo Clinic).
There is also a specific form called CBT for insomnia (CBT-I) that focuses directly on:
- Resetting your sleep schedule
- Simplifying and strengthening your bedtime routine
- Changing thought patterns that keep you “on alert” in bed
CBT and CBT-I can be used together when anxiety or depression and insomnia are both present.
Medication and professional support
Depending on your situation, your provider might recommend:
- Short-term sleep medication to help you reset your sleep while other treatments take effect
- Antidepressants or anti-anxiety medications
- Treatment for any related sleep disorder, such as sleep apnea
Because ongoing lack of sleep can increase the risk of worsening mental health and other health problems, it is important to work with a professional instead of trying to push through on your own (Mayo Clinic).
Build habits that support better sleep
Therapy and medical care are important, but your everyday habits also play a big role in how you sleep. Small, steady changes can help your body relearn how to wind down at night.
Strengthen your sleep routine
Try focusing on:
- Consistent bed and wake times, even on weekends
- A wind-down period of 30 to 60 minutes away from work, email, and intense conversations
- Dimmer lights in the evening to signal to your brain that night is coming
- A calming activity before bed, such as reading, stretching, or listening to soft music
Calm your mind before bed
If worry is your main barrier, gentle mental strategies can help:
- Keep a “worry notebook” and write down your concerns and to-dos earlier in the evening.
- Practice slow, deep breathing to lower physical tension.
- Use brief, simple relaxation techniques, such as scanning your body from head to toe and releasing tight muscles.
If thoughts race the moment you lie down, you might also experiment with:
- Setting a specific “worry time” earlier in the day so your brain does not save everything for bedtime
- Getting out of bed if you cannot sleep after about 20 minutes, doing something calm in low light, then returning to bed when you feel sleepy again
Create a bedroom that supports sleep
Your environment can make it easier for your brain to switch into sleep mode. If possible:
- Keep your bedroom cool, quiet, and dark.
- Reserve your bed mainly for sleep and intimacy, not work or scrolling.
- Limit large, bright screens for at least 30 to 60 minutes before bed.
None of these steps is a magic fix on its own, but together they can help your body and mind associate bedtime with rest instead of stress.
Know when to seek extra help
You do not need to reach a crisis point before asking for support. Consider talking with a healthcare provider, therapist, or sleep specialist if:
- You have trouble falling or staying asleep at least three nights a week for more than a month.
- You feel anxious or low most days and notice it is getting worse.
- Sleep problems affect your ability to work, take care of responsibilities, or enjoy activities you used to like.
- You experience nightmares, nocturnal panic attacks, or other distressing nighttime events on a regular basis.
Insomnia that is linked to anxiety or depression may not improve without treatment. Addressing the underlying condition is often necessary for your sleep to truly recover (Mayo Clinic).
Takeaway: You can break the cycle
So, can anxiety or depression cause sleep problems? Yes, they often do. Anxiety, depression, and insomnia are deeply intertwined. Anxiety can keep your mind and body on high alert at night. Depression can disrupt your body clock and change your sleep patterns. Poor sleep, in turn, can intensify both conditions.
The encouraging part is that you are not stuck with this cycle. With a combination of:
- Professional care, such as CBT, CBT-I, and, when needed, medication
- Thoughtful sleep habits and a consistent routine
- Gentle, realistic expectations as you experiment and learn what helps you
you can move toward more predictable, restorative nights.
If your sleep has been off for a while and you suspect anxiety or depression might be part of the picture, reaching out for help is a strong and practical next step. You deserve rest that leaves you feeling more like yourself in the morning.
