Anxiety and sleep are in a bad relationship. Anxiety worsens sleep (elevated cortisol, intrusive thoughts, racing heart, hypervigilance), and poor sleep worsens anxiety (reduced prefrontal control, amplified amygdala reactivity, dysregulated autonomic baseline). The loop is bidirectional, which is why people with anxiety so often report that their sleep has been broken for years and why sleep advice aimed at the general population does not quite land.
The good news is that the sleep science community has converged on a protocol that specifically targets the anxious nervous system. It is called CBT for insomnia (CBT-I), and it is the first-line behavioral treatment recommended by the American Academy of Sleep Medicine. The components that matter for anxious sleepers in particular are: a firm morning anchor, a long and structured wind-down, a stimulus-control protocol for the bed, and a scripted response to the 3am wake.
This post translates that protocol into an hour-by-hour routine you can start tonight. The timings assume a target bedtime of 11pm; shift them linearly if your target is different. Consistency matters more than the exact clock time.
Before the day starts: the morning anchor
Every sleep routine worth running starts in the morning. The body's circadian clock is set by light, movement, and temperature at the beginning of the day, and a fuzzy morning produces a fuzzy bedtime 16 hours later.
The Morning Anchor (7am, or whenever you wake)
- Fix your wake time. Same time every day, weekends included, within 30 minutes. This is the single most powerful lever in CBT-I.
- 10 minutes of daylight within the first hour. Outside is best. Through a window is second best. A light-therapy box is third.
- Do not hit snooze. The snooze button is free dopamine and wrecks sleep quality.
- Caffeine, if you have it, within a 90-minute window. Early and done. Caffeine cutoff: 10 hours before bed, hard. Half-life is long and the tail costs more than the peak pays.
7pm (4 hours before bed): the transition begins
The body does not go from "full alert" to "asleep" in 15 minutes. It needs a runway. For an anxious nervous system, the runway is longer than for a typical nervous system; four hours is about right.
At 7pm:
- Last meaningful meal. Late, heavy meals raise core temperature and disrupt the melatonin-release curve. A light snack later is fine; a steak at 10pm is not.
- Caffeine cutoff was already 1pm. If you drank coffee after 1pm, expect an impact.
- If you exercise, make it a low-intensity walk. High-intensity training past 7pm wakes the nervous system up for 90-120 minutes.
- Start dimming the lights. Overhead fluorescents off. Warm lamps on. Phones to night mode.
9pm (2 hours before bed): the wind-down
This is the hour where the sleep routine starts to look like a sleep routine. The goal is for the nervous system to register: input is tapering, the day is closing, rest is coming.
The 2-Hour Wind-Down
- Screens get harder to reach. Dock the phone in another room if you can. Computer closed. TV off or at least low-light and not in the bedroom.
- Shower or bath. A warm shower 90-60 minutes before bed raises skin temperature and then drops core temperature, which is a circadian signal for sleep onset.
- Prep tomorrow. Five minutes to write tomorrow's three priorities and lay out clothes. This reduces anticipatory rumination.
- Worry window. If you have anxiety, schedule a 15-minute "worry window" at 9pm. Write down every worry on paper. Name each one. Circle the ones that have a next action. Schedule the actions. Close the notebook. The worry now lives on paper, not in your head.
The worry window is a CBT-I technique called constructive worry, and it is specifically engineered for anxious sleepers. The brain does not stop worrying because you told it to. It stops because the worries have been written somewhere the brain trusts they will be addressed.
10pm (1 hour before bed): the slow descent
The final hour is for low-input, low-arousal activities. Specific choices vary; the principle is consistent: nothing that spikes the nervous system.
- Reading (fiction is better than non-fiction; paper is better than e-reader).
- Slow stretching or restorative yoga. 10-15 minutes of gentle movement.
- Breathing exercises. Four minutes of 4-8 breathing (inhale four, exhale eight) is surprisingly effective at shifting the autonomic balance.
- A warm, non-caffeinated drink. Herbal tea, warm milk, tart cherry juice if you like it.
- Journaling, if you journal. The worry window already ran; this is optional reflection, not problem-solving.
What to avoid in the final hour: news (emotional and cognitive activation), social media (dopamine and unresolved emotional content), work emails (arousal spike), difficult conversations (sleep onset just got pushed 90 minutes), bright overhead lights (melatonin suppression).
11pm: bed (stimulus control)
The stimulus control protocol is the second big CBT-I component, and it is counterintuitive. The principle: the bed is for sleep and sex only. Nothing else. Over time, the nervous system learns that bed means sleep; currently, for most anxious sleepers, bed means "try to sleep, fail, scroll, worry, try again." That associative pairing is why sleep onset takes 45-90 minutes.
The rules:
- Into bed at target bedtime, lights out.
- If not asleep in 20 minutes, get out of bed.
- Go to another room, low light, boring activity (read something dry, fold laundry).
- Return to bed when sleepy, not just tired.
- Repeat as needed. Do not check the clock.
This feels worse for a week and better by week three. The nervous system needs time to re-learn the pairing. Our anxiety before bed piece covers the first-week discomfort in detail.
The 3am wake
Middle-of-the-night waking is its own beast, and it often has a different flavor from sleep-onset insomnia. For anxious sleepers, the 3am wake typically goes: body wakes (often because of cortisol, stress, or sensory input), mind engages ("oh no, I'm awake again"), sympathetic nervous system fires, back to sleep becomes very hard.
The 3am Protocol
- Do not check the clock. Clock-checking amplifies the anxiety response.
- Do not reach for the phone. Light exposure resets the circadian clock toward morning and light cortisol production ramps further.
- Slow breathing for 3 minutes. 4-8 breathing, hand on chest.
- If still awake at what feels like 20 minutes, get up. Low-light room, dry book or folded-laundry task, return when sleepy.
- If the mind is churning, run a mini-worry-window on paper: name the worry, write a next action, close the notebook.
The 3am wake is most often a transient circadian blip. The ones that become clinical middle-of-the-night insomnia are usually the ones where the wake gets amplified by anxious rumination. The protocol interrupts the amplification.
The first two weeks feel worse
This is worth saying plainly. If your sleep has been disrupted for months or years, the first 10-14 days of a structured sleep routine often feel worse, not better. Sleep drive is rebuilding. The associative pairing (bed = sleep) is being re-learned. The caffeine timing is recalibrating. The body does not reward you immediately for the changes.
By the end of week two, things shift. Sleep onset gets faster. The 3am wake shortens or disappears. Morning grogginess thins. By the end of week four, most people running a CBT-I protocol report substantial improvement: sleep onset under 15 minutes, fewer wakeups, more refreshed mornings.
The bedroom environment
Anxious sleepers often underestimate how much the bedroom itself is contributing. A bright alarm clock face, a warm room, a laundry pile in the corner, a pet that disrupts sleep cycles, a partner's different schedule. Each of these adds load, and anxious nervous systems have less bandwidth to absorb it.
The five non-negotiables for an anxious sleeper's bedroom:
- Temperature 65-68F (18-20C). Cooler than feels comfortable when you get in bed. Core body temperature drops during sleep; a warm room fights it.
- Blackout darkness. Even small amounts of ambient light (streetlight, a charging LED) suppress melatonin. Blackout curtains, electrical tape over LEDs, phone charging in another room.
- Consistent white noise or silence. Variable noise (traffic surges, TV from next door) is far worse than continuous noise. A fan, an air purifier, or a white-noise machine smooths the auditory floor.
- A bed that is for sleep. Not a desk. Not a couch. Not a food surface. The stimulus-control principle demands the bed not have other associations.
- The phone is elsewhere. Charging in the kitchen or living room. If it is in the bedroom at all, it is on Do Not Disturb, face down, out of reach.
The medication question
Many people with anxiety end up on sleep medications: benzodiazepines (Xanax, Ativan), Z-drugs (Ambien, Lunesta), or off-label sedating agents (trazodone, hydroxyzine, mirtazapine). Each has an evidence base and each comes with trade-offs. The short version: medications can stabilize a bad period; they do not teach your nervous system to sleep without them. CBT-I is the only treatment in the literature that produces durable gains after it is stopped.
If you are on a sleep medication, the protocol in this post is fully compatible with staying on it. Do not change doses without your prescriber. Many patients find that after running CBT-I for 60 to 90 days they have a productive conversation with their doctor about reducing the medication, and that the taper is tolerable because the behavioral foundation is in place. The order matters: build the routine first, taper under clinical supervision second.
The common pitfalls
Four failure modes account for most of the stalled sleep resets:
The weekend drift. Wake time anchors the circadian clock, and a two-hour weekend drift is the circadian equivalent of flying to a different time zone every week. Monday morning feels rough because your body is jet-lagged. Hold the wake time within 30 minutes, seven days a week. The effort-to-payoff ratio is extreme.
The orthosomnia trap. Sleep trackers promise data and often deliver anxiety. Checking your Oura score at 7am and seeing "65" can install a self-fulfilling prophecy of tiredness. If your tracker improves your sleep, use it. If it worsens the anxiety, retire it. Orthosomnia, the clinical term for tracker-induced insomnia, is a recognized pattern in sleep medicine.
The alcohol buffer. Alcohol feels sedating and shreds sleep architecture. Even a single drink in the evening reduces REM sleep and fragments deep sleep, especially for anxious sleepers whose baseline sleep quality is already lower. If you are running a reset, alcohol is off the menu for at least the first 30 days. After that, if you drink, do it with dinner and not within three hours of bed.
The "makeup sleep" myth. You cannot catch up a week of five-hour nights with one nine-hour Saturday. Sleep debt does not settle on a weekend ledger. The steady version (seven to eight hours most nights) outperforms the binge-and-recover version for cognition, mood, and autonomic regulation. The breathing exercises library has the in-night tools for the nights that run short.
The underlying anxiety
A sleep routine will not fix an anxiety disorder, but an anxiety disorder will not fix itself either. If your sleep is breaking because of generalized anxiety, panic disorder, or health anxiety, run the sleep routine and run the anxiety protocol in parallel. Our panic disorder recovery and health anxiety recovery pieces are the companion guides. The Anxiety Relief Workbook is the CBT worksheet pack; the Nervous System Regulation Workbook is the autonomic baseline layer.
For the full printable version of the routine, including the 30-day rebuild calendar, the phone boundary scripts, the 3am-wake playbook, and the troubleshooting flowchart, the Sleep Hygiene Reset is the dedicated 30-day protocol. If you are running both anxiety recovery and sleep rebuild, do not be surprised when a month of consistent work changes more than you expected. The anxiety-sleep loop runs in both directions, and breaking one arm of it usually weakens the other.