Sleep Anxiety and Insomnia: 4 Steps That Actually Work

Key Takeaways
- Sleep anxiety often isn't a standalone problem — it's your brain's survival mechanism reacting to a real, ongoing sleep deficit, amplified by a built-in negativity bias that makes you fixate on bad nights and forget the good ones.
- A Stanford study of 122 insomniacs found they overestimated how long it took to fall asleep by 30 minutes and underestimated their total sleep time by a full hour — meaning you may be getting more sleep than you think.
- The four steps — tracking your sleep-related thoughts, reframing them to neutral (not positive), using a consistent sleep mantra, and identifying the biological root cause through functional lab testing — work together, but the anxiety doesn't fully resolve until the underlying imbalance is found and addressed.
You start dreading bedtime hours before nighttime even arrives. All day, some part of you is bracing for it, wondering if tonight is going to be another bad one. By the time you're lying down, your body is tense and your mind is already worried, before you've even closed your eyes.
As a functional sleep coach for the past eight years, I've helped hundreds of clients get past this exact kind of anxiety around sleep. These aren't the meditation or deep-breathing tips you've already tried. These are the steps that get to what's actually driving the anxiety.
My client Samantha's sleep issues started small — a few rough nights a month tied to her cycle, easy to brush off. Then it changed. Her sleep became completely erratic, no longer cycle-related, with several nights of zero sleep and constant anxiety spikes. It got bad enough that she had to take medical leave from her job at the hospital — she was afraid she'd injure a patient or get into a car accident on her commute. She saw a functional medicine doctor, tried more tests and more supplements, and after another month of it not working, she found my podcast and started the Complete Sleep Solution program.
Here's where the anxiety actually comes from. Sleep is one of our five basic needs, same as food and water. When your body isn't getting enough of it, your brain hyperfocuses on that shortage to try to protect you — the same way your brain screams at you about water when you're thirsty. Layer on top of that a negativity bias we're all wired with — remembering threats over safety — and it's easy to fixate on the one bad night and not even register the good ones in between. I see this constantly with clients in the program: they'll tell me about one bad night and gloss right over the string of good nights that came before it.
There's also an identity piece. When you keep thinking "I can't sleep," you start to become the person who can't sleep — and your brain works to prove you right. That's not the only reason you're not sleeping, but it's a real piece of the puzzle.
Step one is tracking your thoughts. For a few days, write down every time you think about sleep, worry about it, or think about how tired you are — check marks on a notepad work fine. Notice recurring thoughts, like "I wonder if I'll sleep tonight," and notice how often you're talking about your sleep to other people. This step is just awareness, without judgment. Samantha didn't realize how much of her day revolved around thinking about sleep until she started tracking it.
Before step two, consider that Stanford study: 122 insomniacs overestimated their time to fall asleep by 30 minutes and underestimated total sleep by an hour, confirmed against their actual brainwave activity. If you're woken during a light sleep stage, you're likely to say you weren't sleeping at all — even when your brainwaves say otherwise.
Step two is reframing those thoughts to neutral — not positive. You don't need to go from "I'm so tired" to "I feel amazing." That's not believable to your brain. Instead, aim for something like "I'm going to be fine no matter what." The negative self-talk you've repeated for years is a paved highway in your brain; a new, neutral thought starts as a dirt road. It takes repetition to build. When you're tired, ask what you actually need — a walk, a nap, food — instead of spiraling on how tired you are.
Step three is creating your own sleep mantra, something to reach for at bedtime or in the middle of the night when the negative thoughts creep in. Mine is "I love sleep." Many of my clients prefer "I'm sleeping," which ties back to that Stanford data — you may be getting more sleep than it feels like. If you're still awake after 20–30 minutes, get out of bed rather than lying there feeding the anxiety.
Step four is the one that actually solves it: finding the root cause. The first three steps can shift your relationship to sleep, but they don't fix the underlying biology. Cortisol or adrenaline released at night will keep you awake. Hormone imbalances — estrogen, progesterone, testosterone, in both women and men — affect sleep. So do gut pathogens, low neurotransmitters like dopamine, GABA, and serotonin, and toxins including heavy metals, environmental chemicals, and mycotoxins. All of these can keep you from falling asleep and are especially behind those 3am wake-ups where it takes hours to get back to sleep, if you get back at all.
Samantha expected to be the worst-case scenario — she assumed high cortisol and assumed she had H. pylori, a bacterial overgrowth I see often in clients. Her hormones actually looked fine. What was really going on was depletion: her gut bacteria and her minerals were both depleted, and her cortisol was too low during the day — which pushed it higher than it should have been at night. She improved steadily over months, from four hours of sleep to five, to six, eventually reaching her goal of seven to eight hours. Notably, she felt less anxious well before her sleep actually improved. Around month five, minor life stress brought a temporary setback, and she feared she was back at square one — but she wasn't, and it resolved. Today her "bad nights" mean five to six hours instead of seven to eight, and she barely registers them anymore.
If a case like Samantha's — medical leave, forty-five minutes staring at the ceiling, complete disconnection from her own life — can turn around, the same is possible for you. It starts with finding the actual imbalances keeping you awake.
FAQ
Q: Why do I feel anxious about sleep even before I get into bed?
A: This is your brain's survival mechanism reacting to a real sleep deficit — sleep is one of your five basic needs, so your brain hyperfocuses on the shortage the same way it would on thirst. On top of that, a built-in negativity bias makes you fixate on your bad nights and forget the good ones, which keeps the dread going all day.
Q: Am I actually getting less sleep than I think?
A: You might be getting more sleep than it feels like. A Stanford study of 122 insomniacs found they overestimated how long it took to fall asleep by 30 minutes and underestimated their total sleep time by a full hour, confirmed against actual brainwave data.
Q: What should I think instead of "I can't sleep"?
A: Aim for a neutral thought, not a positive one — something like "I'm going to be fine no matter what" or "I'm sleeping." Jumping straight to "I feel amazing" isn't believable to your brain, but a neutral thought doesn't carry the same negative charge and is easier to build into a new habit over time.
Q: Can sleep anxiety actually be fixed, or do I just have to manage it?
A: Tracking your thoughts, reframing them, and using a mantra can change your relationship to sleep anxiety, but they don't resolve it completely on their own. The anxiety fully resolves when you find and address the biological root cause — cortisol, hormone imbalance, gut pathogens, low neurotransmitters, or toxin burden — that's actually driving the sleep disruption.
If cortisol dysregulation, hormone imbalance, gut pathogens, low neurotransmitters, or toxin burden might be behind your sleep anxiety, this is exactly what the Complete Sleep Solution program investigates. The program includes four functional lab panels — Hormone Zoomer, Gut Zoomer, Neurotransmitter Test, and Total Tox Burden — that identify which of these is actually disrupting your sleep, so you're addressing the real cause instead of just managing the anxiety around it.
→ Learn how the Complete Sleep Solution program works
About Martha Lewis
Martha Lewis is a certified Functional Diagnostic Nutrition practitioner and founder of The Sleep Detective™. Since 2019, she has helped 300+ clients identify the root causes of their insomnia using functional lab testing — including gut analysis, hormone panels, neurotransmitter testing, and toxin screening. She discovered her own root causes (hormone imbalances, heavy metals, and a parasite) after years of trying conventional sleep solutions, and now uses the same investigative approach with her clients.
Learn more about Martha →
