How to Sleep Better With Anxiety: 12 Practical Tips

It’s 2:47 in the morning. The house is quiet, the room is dark, and your mind is anything but. You’re replaying a conversation from work, worrying about a bill, wondering whether you locked the front door — and the more you try to force yourself to sleep, the wider awake you feel. If that sounds familiar, you’re far from alone. Anxiety and poor sleep feed off each other in a loop that can feel impossible to break: worry keeps you awake, and being awake gives you more time to worry.

The good news is that the loop can be broken. Not with one magic trick, but with a set of small, practical changes that calm your nervous system, retrain your brain to associate bed with sleep, and give racing thoughts somewhere to go before lights-out. This guide walks through what actually helps, in plain language, based on what sleep researchers and clinicians recommend.

Why Anxiety Steals Your Sleep

Anxiety activates your body’s stress response. Your brain treats a worried thought the way it would treat a real threat: it releases cortisol and adrenaline, raises your heart rate, and keeps you alert. That’s useful if you’re dodging traffic. It’s terrible at 2 a.m. when the “threat” is an email you haven’t answered yet.

At night, two things make this worse. First, there are no distractions. During the day, work, conversation, and chores compete for your attention. In bed, in the dark, your thoughts have the floor. Second, sleep itself becomes a source of pressure. You start watching the clock, calculating how many hours are left before your alarm, and worrying about how tired you’ll be tomorrow. That performance anxiety about sleep is one of the most common drivers of insomnia, and it affects people who are otherwise good sleepers.

Understanding this matters because it changes the goal. You’re not trying to “win” at sleep through willpower. You’re trying to lower arousal — to convince your nervous system that it’s safe to switch off. Everything in this guide works toward that.

Give Your Worries a Home Before Bed

One of the most effective techniques sleep therapists teach is the “worry time” — and it’s exactly as simple as it sounds. Set aside 15 minutes earlier in the evening, well before bed, to write down what’s on your mind. Not a polished journal entry. A messy list.

Try this: grab a notebook around 7 or 8 p.m., set a timer, and write down every worry that comes to mind, along with one small next step for each. “Worried about the dentist bill — call on Tuesday to ask about a payment plan.” “Anxious about the presentation — spend 20 minutes on slides tomorrow morning.” You don’t have to solve anything. You just have to move the worry out of your head and onto paper, where it stops looping.

When a worry pops up later in bed — and it will — you can remind yourself: “I’ve already written that down. It’s on the list. I’ll deal with it tomorrow.” That sounds almost too simple, but research on expressive writing before bed has shown it can measurably reduce the time it takes to fall asleep. Your brain lets go of things it knows are safely stored elsewhere.

A related habit: keep a notepad by the bed. If a thought genuinely won’t leave you alone, write it down in the dark, then let it go. The act of writing is the release valve.

Build a Wind-Down Routine Your Brain Recognises

Your brain loves patterns. If you do roughly the same calm things in the same order every night, your body starts to associate that sequence with sleep. Think of it like a runway: you don’t go from full speed to asleep in sixty seconds. You need a gradual descent.

A good wind-down takes 30 to 60 minutes. It doesn’t need to be elaborate. The point is consistency, not perfection. Here’s a structure that works for a lot of people:

  • An hour before bed: dim the lights, put the phone on charge outside the bedroom if you can, and switch to something low-stimulation — reading, a warm shower, gentle stretching.
  • Thirty minutes before bed: a warm drink like chamomile or a caffeine-free herbal tea, some slow breathing, or a few pages of a book.
  • Bedtime: same time most nights, even on weekends if you can manage it. Regularity is one of the strongest sleep signals there is.

What you’re avoiding matters as much as what you’re doing. Bright screens, work emails, the news, and heated conversations all raise arousal. You don’t need to ban screens entirely — life happens — but try to keep the last half hour screen-light. If you do scroll, keep the brightness low and the content boring.

The 20-Minute Rule: Don’t Lie There Struggling

This one feels counterintuitive, but it’s one of the most powerful tools in cognitive behavioural therapy for insomnia (CBT-I), the treatment sleep specialists consider the gold standard.

If you’ve been lying awake for about 20 minutes and sleep isn’t coming, get up. Go to another room, keep the lights low, and do something quiet and slightly boring — read a dull book, fold laundry, listen to a calm podcast. When you start to feel drowsy, go back to bed. Repeat as needed.

Why does this work? Because lying in bed awake trains your brain to associate bed with being awake and frustrated. Getting up breaks that association. Over time, bed becomes a place where you sleep — not a place where you lie and worry about not sleeping. It can be annoying the first few nights, especially in winter when the bedroom is the warm place. But people who stick with it usually find their sleep onset improves within a couple of weeks.

One warning: don’t turn the “get up” time into productive time. Don’t answer emails or start cleaning the kitchen. The goal is boredom, not a second shift.

A man sitting cross-legged practising slow alternate-nostril breathing outdoors.

Breathing and Relaxation Techniques That Actually Work

When anxiety spikes at night, your breathing tends to get shallow and fast. Deliberately slowing it down sends a signal to your nervous system that you’re safe. It sounds basic because it is — and that’s why it works.

Box breathing

Breathe in for four counts, hold for four, breathe out for four, hold for four. Repeat for four or five rounds. The counting itself helps too: it gives your mind something concrete to focus on instead of the worry loop. Soldiers and first responders use this technique in high-stress situations; it works just as well in a dark bedroom.

The 4-7-8 method

Breathe in through your nose for four counts, hold for seven, and exhale slowly through your mouth for eight. The long exhale is the key — exhaling activates the parasympathetic nervous system, the “rest and digest” branch that counters the stress response. Four rounds is plenty. If holding for seven feels uncomfortable, shorten the counts and keep the same ratio.

Progressive muscle relaxation

Starting at your feet, tense each muscle group for five seconds, then release and notice the difference. Move up through your calves, thighs, stomach, hands, arms, shoulders, and face. Many people fall asleep partway through, which is exactly the point. There are free guided versions of this on most meditation apps if you’d rather be talked through it.

None of these techniques requires belief or special skill. They work on the body directly, which is useful when your mind is too busy to be reasoned with.

What to Do With a Racing Mind at 3 A.M.

Even with a good routine, bad nights happen. When they do, the worst thing you can do is fight it. Here’s a gentler playbook for the middle of the night:

  1. Stop clock-watching. Turn the clock away or cover it. Knowing it’s 3:12 a.m. doesn’t help you sleep; it just adds a deadline to your anxiety.
  2. Drop the effort. Trying hard to sleep is like trying hard to forget something — the effort defeats itself. Give yourself permission to just rest. Lying quietly with your eyes closed still gives your body some recovery, even if you’re not fully asleep.
  3. Try a mental anchor. Pick something neutral and repetitive: counting slow breaths, visualising walking through a familiar place room by room, or listing things alphabetically. Boring is good. Boring is the point.
  4. Get up if it persists. The 20-minute rule applies at 3 a.m. just as much as at 11 p.m.

And the next morning, resist the urge to “catch up” with a long lie-in or a heavy nap. Both can push your body clock later and make the next night harder. A short nap of 20–30 minutes before 3 p.m. is fine if you really need it, but try to get up at your usual time and get some daylight in the morning — it helps reset your internal clock.

Daytime Habits That Make Night Easier

Sleep doesn’t start at bedtime. Several daytime choices quietly shape how easily you fall asleep:

Habit Why it helps What to aim for
Morning daylight Sets your body clock and boosts evening melatonin 10–30 minutes outside before noon
Regular exercise Lowers anxiety and deepens sleep 30 minutes most days; finish 3+ hours before bed
Caffeine limits Caffeine blocks sleepiness for hours None after early afternoon
Alcohol caution Alcohol fragments sleep, even in small amounts Avoid using it as a sleep aid
Consistent wake time Anchors your circadian rhythm Same time daily, weekends included

Exercise deserves a special mention. It’s one of the most reliable anxiety reducers we know of, and it improves sleep quality too. You don’t need an intense workout — a brisk 30-minute walk counts. Just avoid vigorous exercise in the last couple of hours before bed, when it can leave you too wired to wind down.

Caffeine is another quiet culprit. It has a half-life of around five to six hours, which means a coffee at 4 p.m. is still half there at 10 p.m. If you’re anxious and sleeping badly, try a two-week experiment: no caffeine after midday, and see whether your nights improve.

Your Bedroom: Make It a Sleep Zone

Small environmental tweaks can make a surprising difference. Keep the room cool — around 18°C (65°F) is the sweet spot for most people. Make it as dark as you can manage with blackout curtains or an eye mask. If noise is an issue, earplugs or a white-noise machine can help, especially if you live somewhere busy.

And if you can, keep work out of the bedroom. When your bed doubles as your office, your brain stops knowing what the room is for. A separate chair for reading or worrying helps keep the bed’s association clean: bed means sleep.

A chrome bedside table lamp on a wooden nightstand.

When to Get Extra Help

Self-help strategies work well for many people, but they’re not a substitute for professional support when anxiety is persistent. Consider talking to your doctor or a mental health professional if:

  • Your sleep problems last more than a few weeks despite trying these strategies.
  • Anxiety is interfering with your work, relationships, or daily functioning.
  • You experience panic attacks, or anxiety that feels constant and hard to control.
  • You’ve started relying on alcohol, sleeping pills, or other substances to get through the night.

CBT-I is particularly worth asking about. It’s a structured, short-term therapy that targets the thoughts and habits keeping you awake, and it has stronger long-term evidence than sleeping medication for most people. For anxiety itself, therapies like CBT and, in some cases, medication prescribed by a clinician can make a real difference. There’s no shame in any of this — sleep and anxiety problems are among the most common reasons people visit their doctor.

If you’re in the US, the National Institute of Mental Health has clear, trustworthy information about anxiety disorders and treatment options. In the UK, the NHS page on generalised anxiety disorder covers symptoms and when to seek help. Both are good starting points for a conversation with your own clinician.

If you want a deeper look at general sleep hygiene, our guide on how to improve sleep quality naturally covers 12 science-backed tips, and how to fall asleep fast has more techniques for the nights when sleep won’t come. For daytime anxiety, how to reduce stress naturally offers practical strategies that complement the ones here.

Frequently Asked Questions

Why does anxiety get worse at night?

At night there are fewer distractions, so worried thoughts get more airtime. Your brain also has less to compete with — no emails, no conversations, no tasks. Add in the pressure of needing to sleep, and anxiety naturally intensifies. A wind-down routine and a worry list earlier in the evening both help reduce this effect.

Can anxiety cause insomnia?

Yes. Anxiety is one of the most common causes of difficulty falling asleep and staying asleep. The stress hormones involved keep your body in an alert state that’s incompatible with sleep. The relationship runs both ways too: poor sleep makes anxiety worse the next day, which is why breaking the cycle matters.

What is the fastest way to calm anxiety before bed?

Slow breathing — especially a long exhale — is the quickest reliable way to lower arousal. Try the 4-7-8 method or box breathing for a few minutes. Pair it with getting out of bed if you’ve been lying awake for 20 minutes, and keep screens and bright light away in the last half hour before sleep.

Should I take melatonin for anxiety-related sleep problems?

Melatonin can help some people with timing issues, like jet lag, but the evidence for anxiety-related insomnia is limited, and it doesn’t treat the anxiety itself. It’s best to discuss supplements with your doctor or pharmacist first, especially if you take other medication.

How long does it take for these techniques to work?

Some, like slow breathing, help the same night. Others, like the 20-minute rule and a consistent wind-down routine, usually take one to three weeks of regular use before the effect is clear. Be patient with the process — sleep improves gradually, not all at once.

Sleeping better with anxiety isn’t about finding one perfect trick. It’s about stacking small, consistent habits — a worry list in the evening, a calm wind-down, breathing techniques for the bad moments, and a bedroom that signals rest. Start with the two or three that feel easiest, give them a couple of weeks, and build from there. Your nights don’t have to stay this way.

Images: https://www.myupchar.com/en (CC BY-SA 4.0), Thamizhpparithi Maari (CC BY-SA 3.0), PatongHarbor (CC BY-SA 4.0), via Wikimedia Commons.

Leave a Reply

Your email address will not be published. Required fields are marked *