Anxiety and depression create a frustrating cycle with sleep: racing thoughts keep you awake, poor sleep worsens your mood, and a worse mood makes the next night harder. Breaking that cycle requires addressing both the mental and physical barriers that stand between you and rest. The strategies below work on different parts of the problem, so you can combine the ones that fit your situation.
Why Anxiety and Depression Disrupt Sleep Differently
Anxiety and depression don’t sabotage sleep in the same way. Anxiety tends to make falling asleep difficult. Your nervous system stays in a heightened state, scanning for threats, and your mind replays worries or generates new ones the moment things get quiet. Depression, on the other hand, often fragments sleep architecture. You may fall asleep but wake repeatedly, or sleep for long stretches yet feel completely unrefreshed. Some people with depression sleep too much, others too little.
When both are present, you can get the worst of each: lying awake with anxious thoughts, finally drifting off, then waking at 3 a.m. feeling heavy and hopeless. Understanding which pattern dominates your nights helps you choose the right tools. If your main problem is getting to sleep, focus on the relaxation and rumination techniques below. If staying asleep or sleeping too much is the issue, the circadian and behavioral strategies will matter more.
Slow Your Nervous System Before Bed
Your body has a built-in calming system (the parasympathetic nervous system) that counteracts the fight-or-flight response. The trick is activating it deliberately. Two techniques have strong evidence behind them.
4-7-8 Breathing
Inhale through your nose for four counts, hold your breath for seven counts, then exhale slowly through your mouth for eight counts. The extended exhale is the key. It signals your nervous system to shift from alert mode into a calmer state. Repeat four cycles. It feels awkward the first few times, but the rhythm becomes automatic with practice, and many people notice a difference within a week of nightly use.
Progressive Muscle Relaxation
Start at your feet: curl your toes and arch your feet, hold for about five seconds, then release and let them sink into the mattress. Move slowly upward through your calves, thighs, buttocks, lower back, abdomen, upper back, shoulders, arms, hands, neck, jaw, and forehead. Tense each area briefly, then let it go completely. The full sequence takes about 10 to 15 minutes. Harvard Health recommends this specifically for sleep onset, and the physical focus gives your mind something concrete to track instead of looping through worries.
Handle Rumination Before It Follows You to Bed
Anxious thoughts intensify in bed because there’s nothing else competing for your attention. Trying to suppress them usually backfires. A more effective approach is to process your worries earlier in the evening, on your terms.
Set aside 15 to 20 minutes after dinner (not right before bed) and write down what’s on your mind. For each worry, ask yourself two questions: Is this something I can actually control? If yes, write one concrete step you could take tomorrow. If no, write that down too. The goal isn’t to solve everything. It’s to move worries from your head onto paper, where they feel less urgent and more contained. When those same thoughts surface in bed, you can remind yourself they’ve already been addressed and have a designated time slot tomorrow.
This technique works because rumination thrives on the illusion that thinking harder will produce a solution. Once you’ve already given each concern your deliberate attention, your brain has less reason to keep cycling through them at midnight.
Set Up Your Bedroom for Calmer Sleep
Your sleep environment matters more when anxiety or depression is involved, because your threshold for disruption is lower. Small irritants that a well-rested person would sleep through can pull you awake or prevent you from settling down.
Temperature is the most underrated factor. The Cleveland Clinic recommends keeping your bedroom between 60 and 67°F (15 to 19°C). Your body needs to drop its core temperature to initiate sleep, and a warm room fights that process. Think of your bedroom as a cave: cool, dark, and quiet. Blackout curtains or a sleep mask help if outside light is an issue. If silence makes your thoughts louder, a white noise machine or fan gives your brain low-level input to latch onto instead of generating its own content.
A weighted blanket can also help with anxiety-related restlessness. The general guideline is to choose one that weighs about 10% of your body weight, though anywhere from 5% to 12% works depending on preference. The gentle pressure mimics the sensation of being held, which has a calming effect on the nervous system. If you run hot, look for one with breathable fabric, since overheating will cancel out the benefit.
Use Morning Light to Reset Your Internal Clock
Depression frequently disrupts your circadian rhythm, the internal clock that tells your body when to feel sleepy and when to feel alert. One of the most powerful ways to reset it doesn’t involve anything you do at night. It involves what you do in the morning.
Bright light exposure shortly after waking suppresses melatonin production and tells your brain that daytime has started, which helps consolidate your sleep drive for the following night. Research on bright light therapy for depression has found that 30 to 40 minutes of exposure at 10,000 lux in the morning can produce remission rates as high as 75%. You can get this from a light therapy box designed for that intensity, positioned about 16 to 24 inches from your face while you eat breakfast or drink coffee. Natural sunlight on a clear day exceeds 10,000 lux easily, so a morning walk works too, even in cooler weather.
The timing matters. Morning exposure is far more effective than midday or evening light. If you’ve been sleeping late due to depression, shifting your wake time earlier by 15 to 30 minutes each day while adding light exposure can gradually pull your rhythm back into alignment.
Rethink How Much Time You Spend in Bed
When sleep feels scarce, the instinct is to spend more time in bed to “catch” whatever sleep you can. This backfires. Lying awake in bed for hours trains your brain to associate the bed with wakefulness, frustration, and anxious monitoring of the clock.
Sleep restriction therapy flips this pattern. You temporarily limit your time in bed to match how much you’re actually sleeping, with a minimum of five hours. If you’re only sleeping six hours but spending nine hours in bed, you’d set a strict six-hour sleep window (for example, midnight to 6 a.m.) and get out of bed outside that window no matter what. When you’re sleeping through at least 85% of your time in bed, you extend the window by 15 to 30 minutes. Over several weeks, your sleep consolidates into longer, deeper stretches.
A case series published in Behavioural and Cognitive Psychotherapy found this approach effective even for people with both insomnia and significant depressive symptoms, using a six-week protocol with weekly adjustments. One important caveat: sleep restriction can temporarily increase daytime sleepiness, which may worsen mood in the short term for people with severe depression. It’s best done with guidance from a therapist trained in cognitive behavioral therapy for insomnia (CBT-I), especially if your depression is more than mild.
Build a Consistent Pre-Sleep Routine
Routines sound basic, but they serve a specific psychological function when you have anxiety: they reduce the number of decisions and unknowns your brain has to process. A predictable sequence of events before bed acts as a series of cues that signal “sleep is coming” to both your body and your mind.
A good wind-down routine lasts 30 to 60 minutes and excludes screens, news, and anything that requires problem-solving. It could be as simple as making herbal tea, doing your worry-processing exercise, taking a warm shower (which helps your core temperature drop afterward), then reading something low-stakes in bed. The specific activities matter less than doing them in the same order at roughly the same time each night. Within a couple of weeks, your brain starts associating the sequence with drowsiness.
Be Careful Mixing Melatonin With Antidepressants
Melatonin supplements are widely available and generally considered safe for short-term use, but they interact with several common antidepressants. The NHS specifically flags that antidepressants like fluvoxamine and amitriptyline can increase or decrease melatonin’s sedating effects, potentially causing excessive drowsiness or reducing the supplement’s usefulness. If you’re taking any antidepressant and considering melatonin, check with your pharmacist first. The interaction isn’t dangerous for most people, but it can affect how both substances work.
Melatonin also isn’t a fix for the kind of insomnia that anxiety and depression cause. It helps with circadian timing (when you feel sleepy) but does little for the hyperarousal and rumination that keep you awake. It’s a useful tool in specific situations, like shifting your sleep window earlier, but it won’t quiet a racing mind.
What Actually Works Long-Term
Individual techniques help, but the strongest evidence for lasting improvement in sleep disrupted by anxiety and depression comes from CBT-I. This structured program, typically six to eight sessions, combines sleep restriction, stimulus control (only using bed for sleep), cognitive restructuring for nighttime worry, and relaxation training. It outperforms sleep medication in long-term studies because it changes the underlying patterns rather than masking them.
Many therapists now offer CBT-I alongside treatment for anxiety and depression, and digital versions (apps and online programs) have also shown effectiveness for people who can’t access in-person care. If you’ve been struggling with sleep for more than a few weeks and the strategies above aren’t enough on their own, CBT-I is the most reliable next step.

