CBT for Insomnia: How to Sleep Again Without Fighting Your Bed

It's 2:47 a.m. You're wide awake again, doing the math: "If I fall asleep right now, I'll still get four hours." Your body feels exhausted, but your mind is wide awake, and the harder you try to sleep, the further away sleep seems to get. If that sounds like most of your nights lately, you're not broken, and you're not alone. Cognitive behavioral therapy for insomnia (CBT-I) is one of the most effective, drug-free ways to get your sleep back, and it's a big part of how I help adults in Marin County, San Rafael, Napa and Sonoma sleep again.

Sunlit bedroom with soft white bedding, a calm morning after restful sleep

Key takeaways

  • CBT for insomnia (CBT-I) is a short, structured therapy that changes the habits and thoughts that keep insomnia going. It is not a sleep-hygiene handout.

  • Major medical guidelines, including the American College of Physicians, recommend CBT-I as the first-line treatment for chronic insomnia in adults, ahead of sleep medication.

  • Core tools include a consistent wake time, stimulus control, sleep restriction (better called "sleep scheduling"), and working with racing thoughts at night.

  • CBT-I usually takes around 4 to 8 sessions, and it can be done by telehealth from home anywhere in California.

  • Insomnia often travels with anxiety, stress or trauma, so treating sleep and the bigger picture together tends to work best.

If you'd like to talk it through first, you can book a free 15-minute consultation with me, or learn more about my practice at yourkindofhappy.org.

What is CBT for insomnia?

Cognitive behavioral therapy for insomnia, usually shortened to CBT-I, is a structured, skills-based therapy that retrains your body and brain to sleep. Instead of knocking you out the way a sleeping pill does, CBT-I targets the things that keep insomnia going night after night: irregular sleep schedules, spending long hours awake in bed, and the anxious thoughts that show up the moment your head hits the pillow.

Think of it this way. Whatever started your insomnia (a stressful season at work, a new baby, a move, a loss, a health scare) may be long gone. But the habits and worries you developed to cope with poor sleep often stick around and keep the problem alive. CBT-I goes after those.

Why I care so much about sleep

I'm Dr. Matthew McKeithan, a licensed clinical psychologist, and I've spent about 15 years working with trauma, anxiety and the toll that stress takes on people. If there's one thing almost every person who walks into my virtual office has in common, it's this: they aren't sleeping well. Sleep is often the first thing to go when life gets hard, and one of the last things to come back on its own.

I also know sleep loss from the other side of the clipboard. I'm a husband and a father of four. There were seasons in our house when "sleeping through the night" was more of a rumor than a reality. I learned firsthand how quickly a tired brain turns small problems into catastrophes, and how much easier everything (patience, focus, mood, even kindness) becomes when you're rested. I also learned that a toddler can find you in the dark at 3 a.m. with the precision of a heat-seeking missile. That part, sadly, CBT-I can't fix.

Is my insomnia "bad enough" for therapy?

Clinicians generally talk about chronic insomnia when trouble falling asleep, staying asleep, or waking too early happens at least three nights a week for three months or more, and it affects how you feel or function during the day. But you don't need to meet a textbook definition to benefit. If sleep has become something you dread, plan your life around, or lie awake worrying about, it's worth addressing.

Signs CBT-I may help:

  • You lie awake for 30 minutes or more most nights, or wake at 2 or 3 a.m. and can't get back to sleep.

  • You feel "tired but wired" at bedtime.

  • You've started going to bed earlier or sleeping in to "catch up," and it isn't working.

  • You rely on sleep aids, alcohol or a screen to switch off, and want another option.

  • Worry about sleep has become its own source of anxiety.

It's also important to rule out other causes. Snoring with gasping or pauses in breathing, restless or jumping legs, or sudden sleep attacks during the day are worth discussing with your physician, since sleep apnea and other sleep disorders need medical evaluation.

How does CBT for insomnia work?

CBT-I combines a handful of evidence-based techniques. Every person's plan looks a little different, but these are the core pieces.

1. Sleep diaries: getting real data

We start by tracking your sleep for a week or two: when you get into bed, roughly how long it takes to fall asleep, how often you wake, and when you get up. It sounds simple, but it's powerful. Most people discover patterns they never noticed, like spending nine hours in bed to get five and a half hours of sleep.

2. Stimulus control: teaching your brain that bed means sleep

When you spend months tossing, turning, scrolling and worrying in bed, your brain starts to link the bed with being awake and frustrated. Stimulus control rebuilds the connection between bed and sleep. The basic guidelines:

  • Go to bed only when you're sleepy, not just tired.

  • Use the bed for sleep and intimacy only, not for work, email or doom-scrolling.

  • If you can't sleep after what feels like 15 to 20 minutes, get up, go somewhere dim and calm, and do something quiet until you feel sleepy again.

  • Get up at the same time every morning, no matter how the night went.

3. Sleep restriction (or "sleep scheduling")

This one sounds backward, and it's the piece people are most nervous about. We temporarily match the time you spend in bed to the amount you're actually sleeping, then gradually expand it as your sleep becomes more solid. That builds up your natural sleep drive so you fall asleep faster and wake less. It is done carefully and collaboratively, and it isn't right for everyone. For example, people with certain medical conditions, seizure disorders, or bipolar disorder need a modified approach. This is one reason CBT-I works best with a trained clinician rather than as a do-it-yourself project.

4. Cognitive work: quieting the 3 a.m. mind

Insomnia has a way of producing very convincing thoughts: "If I don't sleep tonight, tomorrow will be a disaster." "I'll never sleep normally again." The cognitive part of CBT-I helps you notice these thoughts, test them against your real experience, and loosen their grip. Many of my clients find it a relief to learn that one rough night rarely ruins a day as completely as their 3 a.m. brain predicted.

(Speaking of the 3 a.m. brain: it is the only part of you that will helpfully replay something awkward you said in 2009 at the exact moment you're trying to relax. We work on that too.)

5. Relaxation and wind-down skills

Breathing techniques, progressive muscle relaxation, and a predictable wind-down routine help calm a nervous system that's stuck in high gear. If you've read my earlier article on somatic therapy for anxiety, you'll recognize some of these body-based tools.

6. Sleep habits that actually matter

Basic sleep hygiene (caffeine timing, alcohol, light exposure, a cool and dark room) is part of CBT-I, but it's rarely enough by itself. It's the supporting cast, not the lead.

Does CBT-I work better than sleeping pills?

For chronic insomnia, the research is encouraging. In 2016 the American College of Physicians recommended CBT-I as the initial treatment for chronic insomnia in adults, with medication considered only if CBT-I alone isn't enough. Harvard Health and other medical sources describe CBT-I as producing improvements that tend to last after treatment ends, which is a key difference from medication, where sleep problems often return when the pill stops.

That doesn't mean medication is "bad." Some people use it short term or alongside therapy, and that's a decision to make with your prescriber. I never ask anyone to stop a medication on their own. What CBT-I offers is a set of skills you keep for life.

Results vary from person to person, and CBT-I takes effort, especially in the first couple of weeks. Many people feel a bit more tired before they feel better. But when I see clients stick with it, the change in how they talk about sleep, from dread to something closer to trust, is one of my favorite parts of this work.

A composite story: "I was trying so hard to sleep"

Here's a story that is a composite of clients I've worked with, with details changed to protect privacy.

A professional in her forties came to me after more than a year of poor sleep. It began during a stressful job transition, but the job had settled down and the insomnia hadn't. She was going to bed at 9 p.m. "to give herself a head start," lying awake until midnight, waking at 3 a.m., and staying in bed until 7 hoping to drift off again. She had blackout curtains, a white-noise machine, magnesium, and three sleep apps. She was, in her words, "working incredibly hard at sleeping."

That was the problem. Sleep doesn't respond well to effort. Over about six telehealth sessions, we set a fixed wake time, tightened her time in bed for a few weeks, moved worry time to the early evening, and practiced getting out of bed instead of fighting it. The first two weeks were tough. By the end, she was falling asleep within about 20 minutes on most nights and, more importantly, she'd stopped fearing bedtime. Her biggest insight? "I didn't need to try harder. I needed to stop trying."

A little philosophy for restless nights

"No small art is it to sleep: it is necessary for that purpose to keep awake all day."

Friedrich Nietzsche, Thus Spake Zarathustra (translated by Thomas Common)

Nietzsche was being a bit wry here, but there's real wisdom in it for anyone with insomnia. Good sleep isn't made only at night. It's built during the day: by getting up at a consistent time, getting morning light, moving your body, and not napping your sleep drive away at 4 p.m. CBT-I takes this idea seriously. A lot of what helps you sleep happens long before bedtime.

How insomnia connects to anxiety, stress and trauma

Insomnia rarely shows up alone. In my practice, it's often tangled up with:

  • Anxiety and overthinking. A racing mind at bedtime is one of the most common complaints I hear. CBT-I and broader CBT for anxiety work well together. You might find my article on CBT for overthinking helpful too.

  • Chronic stress and burnout. When your nervous system is on high alert all day, it doesn't simply power down at 10 p.m.

  • Trauma and PTSD. Nightmares, hypervigilance and feeling unsafe at night can make sleep especially hard. CBT-I can be adapted for trauma survivors, and it often works best alongside trauma-focused therapy such as EMDR or somatic work.

  • Life transitions. New parenthood, caregiving, menopause, retirement and grief can all disrupt sleep in lasting ways.

Because of that, I don't treat sleep in isolation. We look at what's driving your nights and address both together. If you're struggling with something heavier than sleep right now, and you're in crisis, call or text 988 (Suicide & Crisis Lifeline).

Can I do CBT for insomnia online?

Yes. CBT-I is well suited to telehealth. Researchers have studied video delivery of CBT-I directly, including a 2021 randomized trial comparing it with in-person care, and secure video sessions are now a common way to receive it. There's also something fitting about working on sleep from your own home, where you can look at your actual bedroom setup and evening routine.

I see clients in California by secure Zoom only, which means adults in San Rafael, Novato, Mill Valley, Napa, Sonoma, Petaluma, and anywhere else in the state can work with me without fighting Highway 101 traffic at rush hour. If you're curious how video therapy compares, I wrote about whether online therapy in California works. Sessions fit around work and family life, and you don't have to drive home after a long day only to lie awake anyway.

What to expect when you start CBT-I with me

  1. A free 15-minute consultation. We'll talk about what's going on and whether CBT-I is a good fit. Schedule your free consult here.

  2. An initial assessment. We'll look at your sleep history, health, mood, stress and anything else that may be affecting your nights.

  3. Sleep diaries. You'll track your sleep for a week or two so we're working from real data.

  4. A personalized plan. Usually around 4 to 8 weekly sessions, with adjustments as your sleep changes.

  5. Relapse prevention. We'll build a plan for rough patches, because everyone has an occasional bad night, and you'll know exactly what to do when it happens.

Payment is simple: I'm a private-pay practice, and I can provide a superbill you may be able to submit to your insurance for possible out-of-network reimbursement.

Simple things you can try tonight

These aren't a substitute for full CBT-I, but they're a good place to start:

  • Pick a consistent wake-up time and stick to it, weekends included.

  • Get outside for some morning light within an hour of waking. A walk in Marin's hills or around downtown Napa counts.

  • Stop caffeine by early afternoon.

  • Create a 30 to 60 minute wind-down buffer with dim lights and no work.

  • If you're awake and frustrated in bed, get up and do something calm and boring until you feel sleepy.

  • Write down tomorrow's to-do list and worries in the early evening, so your brain doesn't feel it has to rehearse them at midnight.

Frequently asked questions about CBT for insomnia

How long does CBT for insomnia take?

Most people complete CBT-I in about 4 to 8 sessions over 6 to 10 weeks. Some notice changes within the first few weeks, while others need a bit longer, especially if anxiety, stress or trauma is part of the picture.

Is CBT-I just sleep hygiene?

No. Sleep hygiene is one small part. CBT-I's main tools, such as stimulus control, sleep scheduling and cognitive techniques, are what make it effective for chronic insomnia. Many people who come to me have already tried every sleep hygiene tip without success.

Can I do CBT-I if I take sleep medication?

Often, yes. Many people start CBT-I while taking medication. If you want to reduce or stop a sleep medication, that should be done with your prescriber; CBT-I can support that process, but never stop medication without medical guidance.

Will CBT-I make me more tired at first?

It can. During sleep scheduling, some people feel sleepier for a week or two as their sleep drive rebuilds. We plan for that together, and you should avoid drowsy driving during that time.

Do you offer CBT for insomnia in Marin, Napa or Sonoma?

Yes. I offer CBT-I and broader therapy by telehealth to adults throughout California, including Marin County, San Rafael, Napa and Sonoma. All sessions are held by secure video.

Ready to sleep again?

You don't have to keep negotiating with the clock every night. Insomnia is very treatable, and CBT for insomnia gives you tools that last well beyond our time together. If you're in Marin County, San Rafael, Napa, Sonoma or anywhere in California, I'd be glad to help.

About the author

Dr. Matthew McKeithan, Psy.D., is a licensed clinical psychologist in California with about 15 years of experience working with trauma. He provides integrative, trauma-focused care for adults, including veterans and first responders, using approaches such as CBT, EMDR, somatic work, and neurofeedback. His practice, Your Kind of Happy, is family owned and operated. Dr. McKeithan is a husband and father of four. He sees California clients by secure telehealth (Zoom) anywhere in the state.

Serving the San Francisco Bay Area: Marin County, San Rafael, Napa and Sonoma, plus telehealth throughout California.

Sources