It’s 2 AM. You have to be up in five hours. Your body is dead, your eyelids weigh nine pounds each, and your brain has decided right now is the perfect time to replay every awkward thing you’ve said, calculate how short you’ll be on rent, rehearse a conversation with your boss you may never have, and rotate through seventeen worst-case scenarios about people currently asleep and fine.
You roll over. Check the clock. Do the math on how much sleep you can still get. You don’t fall asleep. The math gets worse. Now you’re frustrated, which makes you more awake, which makes you more frustrated, and the loop runs until the alarm goes off.
This isn’t bad sleep hygiene. You’ve tried the chamomile tea, blue-light glasses, melatonin gummies, the bedtime meditation app. If any of that worked you wouldn’t be reading this. What’s actually happening is that your nervous system has forgotten how to downshift, and there’s a specific clinical reason for that.
The hyperarousal problem
Insomnia in psychiatry isn’t really a sleep disorder. It’s a wakefulness disorder. Your sleep drive is probably fine. What’s broken is the part that’s supposed to let go of the day. We call this hyperarousal, and it shows up in the body before it shows up in your head. Elevated resting heart rate. Higher core body temperature at night. Cortisol still rolling at 11 PM when it should have crashed two hours ago. Your sympathetic nervous system is running a shift it was never supposed to work.
The other piece is what neuroscientists call the default mode network. It’s the part of your brain that lights up when you’re not doing anything specific. Daydreaming, autobiographical memory, future-planning, social rumination. It’s supposed to quiet down as you fall asleep. In people with racing-thoughts insomnia, it doesn’t. It stays online, churning through your day, your relationships, the email you didn’t answer, the thing your kid said at dinner. You’re not thinking on purpose. The thinking is happening at you.
This pattern shows up across anxiety, depression, PTSD, untreated ADHD, perimenopause, alcohol withdrawal, and the version most patients have, which is chronic overstimulation from modern life. Phone at dinner. Email after 9 PM. Six tabs open in your head at all times. The brain doesn’t get a runway to slow down, and then you turn the lights off and expect it to land.
The stimulant problem nobody talks about
Caffeine has a half-life of around five to six hours. The coffee you drank at 2 PM is still in your bloodstream at 8 PM at half-strength and at midnight at quarter-strength. People tell me they’re fine, they can fall asleep no problem after coffee. I believe them. The issue isn’t sleep onset. Caffeine fragments deep sleep architecture even when you don’t notice it. You wake up at 4 AM and your brain switches back on like a light.
I had a guy in clinic last fall, late thirties, software engineer, convinced he had treatment-resistant insomnia. He’d been on three different sleep medications. He was drinking around six cups of coffee a day, the last one usually around 4 PM before a workout. He took 30mg of Vyvanse for ADHD and was vaping nicotine. We didn’t change his sleep meds. We pulled the last two coffees, moved the Vyvanse earlier, and tapered the nicotine. Within three weeks he was sleeping seven hours and we were talking about coming off the trazodone he’d been on for a year.
Stimulant withdrawal at night is one of the most underdiagnosed drivers of insomnia I see. Caffeine, nicotine, prescription stimulants taken too late, even the rebound dip off an afternoon energy drink. The brain’s been artificially propped up all day, the chemicals leave, and it has nowhere to land except wired and tired.
The bed should mean one thing to your brain. Sleep. Right now it means waiting to sleep, and that’s a completely different signal.
Why CBT-I is the actual gold standard
Cognitive behavioral therapy for insomnia is what every sleep-medicine guideline in the last fifteen years lists as first-line treatment. Not Ambien. Not melatonin. CBT-I. It outperforms sleep medications at six and twelve months in head-to-head trials, and the effect holds after treatment stops, which medications don’t do.
The version that works has four real components, and almost nobody does all of them alone. Sleep restriction, where you spend less time in bed so the time you spend gets denser. Stimulus control, where the bed is for sleep and sex and nothing else. No reading. No phone. If you can’t sleep in 20 minutes, you get up. Cognitive work on the catastrophic thoughts about not sleeping, because the fear of not sleeping is keeping you not sleeping. Relaxation training to give the parasympathetic system a runway.
Six to eight weeks of that, done seriously, fixes most cases of chronic insomnia. The catch is that the first two weeks feel worse. Sleep restriction is brutal at the start. People bail. Doing it with a therapist or a structured app like Somryst makes the difference between finishing and giving up at day nine.
CBT-I
Six to eight weeks of structured work. Outperforms sleep meds at one year. Effect holds after you stop. The version with sleep restriction is the version that works.
Trazodone 25-100mg
Sedating antidepressant used off-label for sleep. Not addictive. Doesn’t fragment architecture. Mild morning grogginess in some people. Good while you’re sorting the underlying cause.
Z-drugs and benzos
Ambien, Lunesta, Restoril. They work fast and they build tolerance fast. Dependence is real, even at prescribed doses. Useful in short courses. Bad as a long-term plan.
Trazodone, Ambien, and the rest
Trazodone is what most psychiatrists prescribe first. Ambien is what most primary care doctors prescribe first. The psychiatrists are right. Trazodone at 25 to 100mg is a sedating antidepressant used off-label for sleep. Not addictive. Doesn’t build tolerance the way Ambien does. Preserves sleep architecture. Downsides are morning grogginess in some people and occasionally vivid dreams.
Ambien works. That’s the problem. It works so well the first night people fall in love with it, three months later they can’t sleep without it, and the dose that used to do the job doesn’t anymore. Studies show meaningful tolerance within weeks and rebound insomnia when you stop. It also produces parasomnias, the sleepwalking and sleep-eating and occasional sleep-driving that look hilarious in news stories and are not hilarious when it’s your patient.
Hydroxyzine, an antihistamine, is what I reach for when insomnia is clearly anxiety-driven and the patient wants something as-needed without dependency risk. Mirtazapine at 7.5 or 15mg is what I use when depression and insomnia are tangled together. Melatonin is useful for circadian shifts (jet lag, shift work) and useless for the kind of insomnia where your brain won’t shut up. Doxepin at 3 to 6mg has good data for middle-of-the-night awakenings and gets underused.
What this means if you’ve been not sleeping for a year
If you’ve been running on five hours for months, a lot of what feels like your personality right now is sleep deprivation. The short fuse. The forgetfulness. Every small problem feeling like a crisis. Chronic insomnia degrades emotional regulation, immune function, glucose tolerance, and the severity of every psychiatric condition we treat. Depression is harder to budge in a sleep-deprived patient. Anxiety is louder. ADHD looks worse than it is. People come in for what looks like a mood disorder and what they actually have is two years of broken sleep wearing a mood-disorder costume.
Order of operations. Pull the obvious culprits first. Caffeine after noon. Alcohol in the evening, which sedates you for two hours then fragments the back half of the night. Phone in bed. Then figure out what’s driving the hyperarousal, because something is. Untreated anxiety. Untreated ADHD. Sleep apnea, which a surprising number of insomnia patients actually have. Perimenopausal hormone shifts in women in their forties that don’t get screened often enough. Once you know the driver, treat the driver. Use trazodone as a bridge while you do the work.
People will spend a decade not sleeping, treating the daytime symptoms one at a time, going from psychiatrist to therapist to functional medicine clinic to supplement stack, never fixing the sleep. Fix the sleep and a startling amount of what felt like separate problems quietly resolves on its own.