Most sleep advice ignores why anxiety gets worse at night. After reviewing methods from sleep researchers and therapists, here are 7 techniques, including one shown to cut time to fall asleep in half.
Why Anxiety Gets Worse at Night (And What Actually Helps)
If your brain starts reviewing everything you've ever done wrong the moment you lie down, you're not alone. There's a reason anxiety surfaces at night, and understanding it makes the solutions make sense.
Therapist Emma McAdam describes it this way:
“"Our worries are like a software update. Our brain is constantly asking us to just face them and resolve them. When we don't address anxiety during the day, when we distract ourselves, we keep busy, or we procrastinate facing a problem, our brain doesn't just let it pass; our brain makes sure to bring up all of our worries as soon as we try to fall asleep."
— Emma McAdam, LMFT (How to Deal with Anxiety at Night, 2:00)
“
During the day, you're busy. Work, tasks, social media, conversations. These distractions keep the "software update" at bay. When it gets quiet at night, your brain finally has space to process what you've been avoiding.
The good news: you can work with this system instead of against it. The techniques below address both daytime anxiety management and bedtime habits. Most guides focus on one or the other. You need both. (For more science-backed sleep strategies, see our guide on how to fall asleep faster tonight.)
7 Sleep Optimization Tips for Anxiety
1. Schedule Worry Time During the Day
This sounds counterintuitive. Why would you deliberately set aside time to worry? Because your brain is going to process worries whether you schedule it or not. The choice is whether that happens during the day (when you decide) or at night (when your brain decides for you).
Research backs this up. According to Emma McAdam:
“"Research shows that you fall asleep in half the time when you do a worry journal or scheduled worry."
— Emma McAdam, LMFT (How to Deal with Anxiety at Night, 4:25)
“
How to do it:
- Pick a time between 12pm and 6pm
- Set aside 15-30 minutes
- Write your worries on paper (not in your head)
- Use free writing, lists, or brain dumps
- Do this daily for one month to train your brain
The key is writing, not just thinking. Getting worries out of your head and onto paper tells your brain they've been "processed." After a month of consistent practice, your brain learns that worries will get addressed during the day and stops surfacing them at night.
2. Shift from "Sleeping" to "Resting"
Here's a paradox that keeps people stuck: the harder you try to sleep, the harder it gets. Sleep isn't something you can force through effort. It happens when you stop trying.
Mind coach Tim Box explains:
“"Sleep is something that happens when we STOP doing: both physically and mentally... You can't really consciously just choose to sleep at will, but something you can choose to do is rest."
— Tim Box (Sleep Anxiety: How To BEAT Sleep Anxiety, 2:21)
“
The reframe: Instead of lying in bed thinking "I need to fall asleep," think "I'm going to rest." Resting is still restorative. You're recharging even if you don't fall asleep immediately. (This is why practices like NSDR (Non-Sleep Deep Rest) can be so powerful for anxious minds.)
Tim Box offers a practical tip:
“"Add an hour or more on to the time you are expecting to spend in bed and relieve yourself of any pressure to get to sleep straight away."
— Tim Box (Sleep Anxiety: How To BEAT Sleep Anxiety, 6:03)
“
If you need to wake up at 7am and normally go to bed at 11pm, try going to bed at 10pm instead. This removes the pressure of "I have exactly 8 hours and I need to be asleep NOW." You have time to rest, and sleep tends to follow when the pressure is gone.
Think of it like this: nobody stresses about being conscious while resting on a beach lounger during vacation. You can bring that same energy to your bed.
3. Use the 15-20 Minute Rule (Stimulus Control)
If you've been lying in bed for 15-20 minutes without falling asleep, get out of bed. This is one of the core techniques from CBT-I (Cognitive Behavioral Therapy for Insomnia), the most effective treatment for chronic insomnia.
Why it works:
When you lie in bed awake and anxious, your brain starts associating your bed with stress and wakefulness. The more this happens, the more automatic the association becomes. Eventually, just getting into bed triggers anxiety.
Getting out of bed breaks this cycle. It does two things:
- Increases sleep pressure (the longer you're awake, the sleepier you get)
- Retrains your brain that bed = sleep, not bed = worry
How to do it:
- After 15-20 minutes of not sleeping, get up
- Do something calming: read a physical book, meditate, sit quietly
- Avoid screens, bright lights, and anything stimulating
- Return to bed only when you feel sleepy
- Repeat if needed
Yes, this might make you tired for a few days. Short-term pain, long-term gain. Your brain will learn that bed is for sleeping, and falling asleep will get easier.
4. Manage Light Exposure (The 12-14 Hour Rule)
Your body has a built-in timer that controls when you feel awake and when you feel sleepy. Morning light starts this timer; evening darkness triggers melatonin release. If you ignore this system, you're fighting biology.
Dr. Andrew Huberman explains the mechanism:
“"When you wake up in the morning and you experience that rise in cortisol, there's a timer that starts going... in about 12 to 14 hours a different hormone, melatonin, will be released from your pineal gland."
— Dr. Andrew Huberman (Master Your Sleep, 6:00)
“
What this means practically:
| If you wake at... | Melatonin naturally rises around... |
|---|---|
| 6:00 AM | 6:00 PM - 8:00 PM |
| 7:00 AM | 7:00 PM - 9:00 PM |
| 8:00 AM | 8:00 PM - 10:00 PM |
Morning protocol:
Get sunlight within 30-60 minutes of waking. Even 10-15 minutes of outdoor light on a cloudy day is more effective than indoor lighting. This triggers the cortisol spike that starts the 12-14 hour countdown to melatonin.
Evening protocol:
Dim lights 2-3 hours before bed. Bright artificial light suppresses melatonin production. Blue light blocking glasses can help, but dimming overall light exposure matters more.
Morning light is the bigger lever. If you only change one thing, prioritize getting outside early.
5. Practice Gratitude (Not Woo-Woo, Neurochemistry)
I know "practice gratitude" sounds like generic self-help advice. Stay with me, because the mechanism matters.
Anxiety is your brain detecting scarcity. Not enough money, time, safety, certainty. This triggers the fight-or-flight response: cortisol, adrenaline, heightened alertness. Helpful if there's an actual threat. Not helpful when you're trying to sleep.
Gratitude works because it shifts perception from scarcity to abundance. Emma McAdam explains:
“"What's going on in your brain is basically this fear of scarcity... As you notice the good things going on in your life... it actually turns off that fear approach, that fight flight freeze approach, that cortisol and adrenaline pumping through our body."
— Emma McAdam, LMFT (How to Fall Asleep: Turn off Worry, 2:22)
“
This isn't about toxic positivity or pretending problems don't exist. It's about directing attention to counteract the brain's default negativity bias.
How to do it:
- While lying in bed, mentally list 5-10 things you're grateful for
- They can be simple: a bed, running water, a job, blue sky outside
- The items don't need to be profound
- The act of noticing what you have signals abundance to your brain
Doesn't change your circumstances. Changes your brain's perception of your circumstances. That's enough to reduce cortisol and let sleep happen.
6. Time Caffeine Correctly
You probably know caffeine affects sleep. But understanding the mechanism helps you time it better.
Adenosine is a molecule that builds up in your brain the longer you're awake. More adenosine = sleepier you feel. Caffeine blocks adenosine from doing its job. Dr. Huberman uses a helpful analogy:
“"Caffeine acts as an adenosine antagonist... when you ingest caffeine, it binds to the adenosine receptor. It sort of parks there just like a car would park in a given parking slot."
— Dr. Andrew Huberman (Master Your Sleep, 2:01)
“
While caffeine is "parked" in the receptor, adenosine can't make you feel tired. But adenosine keeps building up in the background. When the caffeine wears off, all that accumulated adenosine floods in. That's the afternoon crash.
The math:
- Caffeine's half-life is 5-6 hours
- This means half the caffeine is still in your system 5-6 hours later
- For bedtime at 10pm, stop caffeine by noon to 2pm
- For bedtime at 11pm, stop by 1pm to 3pm
Some people are more caffeine-sensitive than others. If you're dealing with anxiety-related sleep issues, err on the side of earlier cutoffs. 10+ hours before bed is a safe target.
7. Consider CBT-I (Most Effective Treatment)
If you've tried the above techniques and still struggle, CBT-I (Cognitive Behavioral Therapy for Insomnia) is the gold standard treatment. According to the American Academy of Sleep Medicine, it's more effective than sleeping pills for chronic insomnia and doesn't come with dependency risks.
CBT-I addresses both the behavioral side (sleep habits) and the cognitive side (anxious thoughts about sleep). It typically includes:
- Sleep restriction: Temporarily limiting time in bed to increase deep sleep efficiency
- Stimulus control: The 15-20 minute rule discussed above
- Cognitive restructuring: Identifying and challenging unhelpful thoughts about sleep
- Sleep hygiene: Environment and habit optimization
How to access CBT-I:
| Option | Pros | Cons |
|---|---|---|
| Therapist specializing in CBT-I | Personalized guidance | Cost, availability |
| Apps (Sleep Reset, CBT-i Coach) | Affordable, accessible | Less personalized |
| Workbooks (like "Say Good Night to Insomnia") | Self-paced, low cost | Requires self-discipline |
Best for most people: Start with an app or workbook. If you don't see improvement after 6-8 weeks, consider working with a specialist.
Common Mistakes That Keep Anxiety-Driven Insomnia Going
Avoiding these traps is as important as doing the right things.
Clock-watching: Calculating how much sleep you'll get if you fall asleep "right now" only increases anxiety. Turn your clock away from view or remove it from the bedroom.
Staying in bed awake: This trains your brain that bed is a place for worrying, not sleeping. Use the 15-20 minute rule.
Trying to "think yourself" calm: Processing anxiety in your head doesn't work. Write it down during scheduled worry time instead.
Treating sleep as high-stakes: Tim Box puts it well:
“"Whether or not you sleep your full 8 hours on this particular night on this day of this week, of this month of this year contributes to barely a scratch on the surface of your overall long term wellbeing."
— Tim Box (Sleep Anxiety: How To BEAT Sleep Anxiety, 2:52)
“
One bad night isn't a crisis. The worry about it often does more damage than the lost sleep itself.
When to See a Professional
Self-help techniques work for many people, but some situations need professional support.
Signs it's time to get help:
- Sleep problems lasting 2+ weeks
- Daytime functioning significantly impaired
- Anxiety feels unmanageable even with these techniques
- You're considering sleep medication (discuss with doctor first)
Options:
- CBT-I specialist (psychologist or therapist trained in sleep)
- General therapist (for underlying anxiety)
- Sleep specialist (to rule out sleep disorders)
A note on supplements: Magnesium glycinate and L-theanine are sometimes recommended for mild anxiety-related sleep issues. They may help some people. Always consult a doctor before trying any supplement, as they can interact with medications. Supplements aren't a substitute for addressing underlying anxiety patterns.
FAQs
How long does it take to see results from these techniques?
It depends on the technique:
- Rest mindset shift: Can help the same night by reducing performance anxiety
- Scheduled worry: Some improvement within 1-2 weeks; research suggests daily practice for 1 month
- Full CBT-I program: 6-8 weeks for lasting results
Expect some trial and error. Not every technique works equally well for everyone.
What if I can't stop my racing thoughts?
Write them down. The brain dump/scheduled worry approach works better than trying to stop thoughts through willpower.
If thoughts feel truly uncontrollable, this may indicate anxiety that would benefit from professional support, not just sleep techniques.
Do supplements help with anxiety-related sleep problems?
Some evidence exists for magnesium glycinate and L-theanine for mild cases. They're not a first-line solution. Try behavioral techniques first.
If you do consider supplements, talk to a doctor. "Natural" doesn't mean "safe for everyone," especially if you take other medications.
Is it bad to lie awake in bed?
One night? No. Regularly? Yes, because it trains your brain to associate bed with wakefulness.
If you're lying awake frequently, use the 15-20 minute rule to prevent this association from forming.
Sources: This article synthesizes research-backed methods from licensed therapists and neuroscientists including Emma McAdam, LMFT (Therapy in a Nutshell), Tim Box (Mind Coach), and Dr. Andrew Huberman (Huberman Lab). All quotes include timestamps to original video sources.