Sleep & Wellness
If you’ve ever noticed that a bad night’s sleep makes everything feel a little heavier, the inbox more overwhelming, a minor comment more hurtful, a normal worry more consuming, you’ve already experienced the sleep-mental health connection firsthand. It isn’t just in your head, or rather, it is in your head, but in a very literal, measurable way. Sleep and mental health are tied together by a genuine two-way relationship: poor sleep can worsen anxiety and depression, and anxiety and depression can, in turn, wreck your sleep, creating a loop that can be hard to break from either direction. This is one of the most consistently replicated findings in sleep science, and it matters well beyond the occasional rough week. This guide walks through what researchers actually know about how sleep and mental health influence each other, what happens in the brain during REM sleep that helps explain the connection, why insomnia is treated as both a symptom and a risk factor in its own right, and what evidence-based approaches like CBT-I can do when sleep and mood problems show up together. It is written to inform, not diagnose, if you are struggling with your mental health, please see the note near the end of this guide about talking to a professional.
Quick answer: how are sleep and mental health connected?
Sleep and mental health have a bidirectional relationship, meaning each one can cause or worsen problems in the other. Poor sleep is a well-documented symptom of depression and anxiety disorders, but a large body of research also shows that chronic sleep problems, especially insomnia, independently raise the risk of developing depression and anxiety in people who didn’t have those conditions before. On a biological level, insufficient or disrupted sleep, particularly reduced or fragmented REM sleep, appears to impair the brain’s ability to regulate emotional reactivity, partly through effects on the amygdala and the prefrontal cortex circuits that normally keep it in check. Because the relationship runs in both directions, treating sleep problems (through approaches like cognitive behavioral therapy for insomnia, or CBT-I) is now recognized as a meaningful part of supporting mental health, not just a side issue to deal with once mood improves.
The bidirectional relationship: how sleep and mental health drive each other
For a long time, disrupted sleep was mostly understood as a downstream symptom of mental illness, something that happened because a person was depressed or anxious, rather than something contributing to it. Sleep researchers now describe the relationship differently: as bidirectional, with sleep and mood problems each capable of triggering, worsening, and maintaining the other. Stanford researchers summarizing this body of work have described sleep and mental health as sitting on a two-way street, where disrupted sleep can be both an early warning sign of a mood or anxiety disorder and an active contributor to how severe it becomes.
Poor sleep as a symptom of anxiety and depression
Sleep disturbance is one of the most common features of both depression and anxiety disorders, which is part of why it appears directly in clinical diagnostic criteria for major depressive disorder (as either insomnia or hypersomnia) and shows up constantly in generalized anxiety disorder, PTSD, and panic disorder as well. Depression often disrupts sleep architecture in specific ways, including earlier and more intense REM sleep and reduced deep, slow-wave sleep, alongside the more obvious complaints of trouble falling asleep, waking during the night, or waking too early and being unable to fall back asleep. Anxiety tends to interfere with sleep differently, most often by keeping the mind racing at bedtime (delaying sleep onset) or by producing a lighter, more easily disrupted sleep overall, since a nervous system on high alert doesn’t settle easily into deep rest.
Poor sleep as a risk factor, not just a symptom
The more striking finding in recent decades is that this relationship doesn’t only run one way. Multiple large, prospective cohort studies, ones that track people without depression over time and see who develops it later, have found that people with insomnia at the start of the study have a substantially higher risk of developing depression down the line than people without sleep problems. A widely cited meta-analysis of prospective studies found that people with insomnia were roughly twice as likely to develop depression later on compared with people who didn’t have insomnia, even after accounting for other factors. Similar patterns show up for anxiety: chronic poor sleep is associated with an increased likelihood of developing an anxiety disorder later, not just experiencing anxiety symptoms as sleep gets worse. This is exactly why sleep researchers increasingly argue that sleep problems deserve attention in their own right, rather than being treated as something that will simply resolve once an underlying mood issue is addressed, in many cases, the sleep problem is not purely downstream of the mood issue, and can be part of what’s driving it.
What happens in the brain: REM sleep, the amygdala, and emotional regulation
Part of why sleep loss and mood problems are so closely linked has to do with what’s actually happening inside the brain during sleep, and specifically during REM (rapid eye movement) sleep, the stage most associated with vivid dreaming.
REM sleep and overnight “emotional processing”
Sleep researchers, including Matthew Walker’s lab at UC Berkeley, have proposed that REM sleep plays a role in taking the sharp emotional edge off memories formed during the day, a process sometimes described as overnight emotional first aid. In functional brain imaging studies, sleep-deprived participants showed a much larger amygdala response to disturbing images the next day compared with well-rested participants, along with weaker connectivity between the amygdala and the prefrontal cortex, the brain region that normally helps regulate and dampen the amygdala’s alarm-like response. In simpler terms, the emotional brain became more reactive, and the brain region responsible for keeping that reactivity in check became less effective at doing so. Later research examining REM sleep specifically found that revisiting an emotional memory after a period rich in REM sleep produced a smaller amygdala response than revisiting it after a period with less REM sleep, supporting the idea that REM sleep itself, not just sleep generally, helps “depotentiate” or soften the emotional charge attached to a memory over time.
What happens when REM sleep is disrupted
If REM sleep helps process and soften emotional reactivity overnight, it follows that disrupting it should have the opposite effect, and that’s largely what studies have found. Research that selectively suppressed REM sleep, published in Scientific Reports, found that participants reported more negative affect the next day and showed heightened amygdala responses to social exclusion compared with a control condition, suggesting REM sleep loss specifically, not just less total sleep, can leave people more emotionally reactive and more vulnerable to feeling rejected or distressed by social situations. This matters clinically because several mental health conditions, including depression and PTSD, are associated with disrupted REM sleep patterns, and some researchers believe this disruption may be part of why emotional regulation is so often impaired in these conditions, not simply a side effect of feeling unwell, but a contributing mechanism.
Anxiety and sleep: a self-reinforcing loop
Anxiety and sleep problems frequently feed each other in a pattern that’s easy to recognize once you know to look for it. A stressful day leaves the mind racing at bedtime, which delays sleep onset and shortens total sleep. The resulting fatigue and reduced emotional regulation the next day make ordinary stressors feel more threatening and harder to manage, which raises anxiety further. That heightened anxiety then makes the following night’s sleep harder to achieve, and the cycle continues. Some people also develop a specific fear of not being able to sleep, sometimes called sleep anxiety, where the anticipation of a bad night becomes its own source of pre-bedtime stress, ironically making poor sleep more likely. Cognitive and behavioral treatments for insomnia directly target this loop, because breaking the anticipatory anxiety around sleep itself is often necessary before sleep can normalize, even when a person’s daytime anxiety is being treated separately.
Insomnia specifically: symptom, risk factor, and its own diagnosis
Insomnia deserves particular attention in this conversation because it occupies an unusual position: it’s extremely common as a symptom of other mental health conditions, it’s an independent risk factor for developing them, and it can also be diagnosed and treated as a standalone sleep disorder even when no other mental health condition is present. Chronic insomnia is generally defined as difficulty falling asleep, staying asleep, or both, occurring at least three nights a week for three months or longer, along with meaningful daytime impairment. Clinically, this distinction matters a great deal: a person can have insomnia disorder on its own, insomnia as a feature of depression or anxiety, or both existing together (what’s often called comorbid insomnia). Historically, comorbid insomnia was treated as “secondary” and expected to resolve once the primary mental health condition improved, but clinical guidelines have shifted meaningfully on this point, current practice increasingly recommends treating the insomnia directly, alongside the mood or anxiety disorder, rather than waiting for it to resolve on its own, precisely because it often doesn’t.
What actually helps: CBT-I and the evidence for treating sleep and mood together
Cognitive behavioral therapy for insomnia, or CBT-I, is the treatment sleep medicine organizations, including the American Academy of Sleep Medicine, recommend as the first-line approach for chronic insomnia, ahead of sleep medication. It’s a structured, typically multi-week program that combines several evidence-based components: stimulus control (rebuilding the association between bed and sleep, rather than bed and wakeful frustration), sleep restriction therapy (temporarily limiting time in bed to consolidate sleep and rebuild sleep drive), cognitive restructuring (addressing unhelpful beliefs and worry about sleep itself), and relaxation training.
Why CBT-I works even when depression or anxiety is also present
What makes CBT-I particularly relevant to the sleep-mental health connection is the growing evidence that treating insomnia directly can improve depression and anxiety symptoms too, not just sleep. Several systematic reviews and meta-analyses, including ones examining internet-delivered and digital CBT-I programs, have found that treating insomnia produced meaningful reductions in co-occurring depression and anxiety symptoms, in some cases with effect sizes comparable to what’s seen with treatments aimed directly at mood. Other reviews focused specifically on patients with major depressive disorder and comorbid insomnia found that adding CBT-I to standard depression treatment improved both sleep and depressive symptoms more than treating depression alone. This is a meaningful shift in how sleep is understood clinically: rather than a symptom to wait out, insomnia is increasingly treated as a modifiable factor that, when addressed, can genuinely support recovery from depression and anxiety, not just make the nights more bearable while other treatment does the real work.
What about sleep medication?
Sleep medications, whether over-the-counter or prescription, can have a place in short-term management of severe insomnia, particularly during an acute crisis, but they don’t address the underlying patterns of thought and behavior that maintain chronic insomnia, and most are not intended for long-term nightly use. This is one reason CBT-I is preferred as a first-line, longer-term approach: its benefits have been shown in research to persist well after treatment ends, whereas the benefits of medication typically don’t extend much beyond the period of active use. Anyone currently taking a sleep medication, or considering one, should discuss the decision with a prescribing doctor rather than starting, stopping, or adjusting it independently.
Building better sleep habits alongside mental health care
Good sleep hygiene, on its own, is rarely enough to resolve insomnia that’s tangled up with depression or anxiety, but it’s still a meaningful foundation to build alongside professional treatment, not instead of it. A few habits with a solid evidence base:
- Keep a consistent wake time every day, including weekends, since it’s one of the strongest anchors for circadian rhythm and, over time, for mood stability too.
- Get natural light exposure earlier in the day, which helps regulate both the sleep-wake cycle and, in some research, mood itself.
- Move your body during the day; regular physical activity is associated with better sleep quality and has its own independent evidence base for reducing anxiety and depression symptoms.
- Limit alcohol in the evening; it may feel calming in the moment, but it fragments sleep later in the night and can worsen next-day anxiety for many people.
- Protect a wind-down period before bed that’s free of stressful conversations, doomscrolling, or work email, since mental arousal close to bedtime is one of the more common insomnia triggers.
- If racing thoughts or worry consistently keep you up, try writing them down earlier in the evening rather than at bedtime, so the bed doesn’t become the place where problem-solving happens.
- Give changes real time to work; sleep and mood both tend to improve gradually over weeks with consistency, not overnight.
If sleep struggles are showing up alongside changes in mood, energy, or motivation, it’s also worth reading about the broader picture of what counts as a serious sleep problem, our guide on how to know if you’re sleep-deprived walks through the everyday signs worth paying attention to, and our guide on the warning signs of sleep apnea covers a physical sleep disorder that can itself produce mood changes, irritability, and brain fog that are easy to mistake for a primary mental health issue.
Frequently asked questions
Can lack of sleep cause anxiety and depression, or does it only make existing symptoms worse?
Both appear to be true. Poor sleep clearly worsens existing anxiety and depression symptoms, but a substantial body of prospective research also shows that chronic sleep problems, particularly insomnia, independently raise the risk of developing depression or an anxiety disorder in people who didn’t have one before. Researchers describe this as a bidirectional relationship rather than a simple one-way cause, meaning sleep problems and mental health conditions can each set the other in motion.
Which comes first, poor sleep or depression?
It depends on the person, and often it isn’t possible to say for certain in any individual case. Sleep problems frequently appear before a depressive episode is fully recognized, which is part of why some clinicians view worsening insomnia as an early warning sign worth taking seriously. In other cases, sleep disruption develops after depression sets in, as a direct symptom of the condition. Because the relationship runs both ways, most current treatment guidance focuses on addressing whichever piece is more actionable at a given time, often both together, rather than waiting to determine which came first.
What is CBT-I, and is it better than sleep medication for insomnia related to anxiety or depression?
CBT-I (cognitive behavioral therapy for insomnia) is a structured, evidence-based program that addresses the thoughts, habits, and routines that maintain chronic insomnia. It’s recommended by sleep medicine organizations as the first-line treatment for chronic insomnia, including when it occurs alongside depression or anxiety, and several meta-analyses have found it can meaningfully improve co-occurring mood symptoms as well as sleep. Medication can be useful for short-term relief, but its benefits tend not to persist once it’s stopped, whereas CBT-I’s benefits are more likely to last. The right approach for any individual is a decision to make with a doctor or sleep specialist, since severity and personal circumstances vary.
Does REM sleep really affect mood and emotional regulation?
Growing research suggests it does. Studies using brain imaging have found that sleep deprivation increases the amygdala’s reactivity to negative or disturbing stimuli and weakens its connection to the prefrontal cortex, the region that normally helps regulate emotional response. More targeted research on REM sleep specifically has found that a memory revisited after a period rich in REM sleep produces a smaller emotional brain response than the same memory revisited after less REM sleep, and that suppressing REM sleep increases next-day negative mood and emotional reactivity. This supports the idea that REM sleep plays a genuine role in emotional processing, not just in dreaming.
Can improving my sleep alone fix my anxiety or depression?
Not necessarily on its own, but it can genuinely help, and for some people it’s a meaningful part of recovery. Research on treating insomnia directly, including with CBT-I, has found real improvements in co-occurring depression and anxiety symptoms, not just sleep. That said, depression and anxiety are complex conditions influenced by many factors beyond sleep, and sleep improvement generally works best as part of a broader treatment plan rather than a replacement for therapy or other appropriate care when symptoms are significant.
Is it normal to feel anxious about not being able to sleep?
It’s common, and it has a name: sleep anxiety, or anticipatory anxiety about sleep. Worrying about whether you’ll be able to fall asleep can itself raise physiological arousal in a way that makes falling asleep harder, reinforcing the worry the next night. This pattern is specifically addressed in CBT-I through techniques that rebuild a calmer association with bedtime, and it’s worth mentioning to a doctor or therapist if it’s become a persistent, distressing pattern rather than an occasional bad night.
One thing worth saying plainly and directly: this guide describes general patterns from sleep and mental health research, not a diagnosis or a treatment plan for any individual. If you’re experiencing ongoing symptoms of depression or anxiety, or notice your sleep problems are connected to changes in mood, hopelessness, or your ability to function day to day, please reach out to a doctor or a mental health professional, these are common, treatable conditions, and support is available. If you or someone you know is in crisis or thinking about suicide, please contact a local emergency service or a crisis helpline in your area right away.








Leave a Reply