What to Do for Insomnia: Treatments That Actually Work

The most effective thing you can do for insomnia is change the behaviors and thought patterns that keep it going. That might sound underwhelming compared to reaching for a pill, but structured behavioral changes work for 7 to 8 out of 10 people with chronic insomnia, and the results last far longer than medication. What follows is a practical breakdown of what actually works, from the strategies with the strongest evidence to the smaller adjustments that add up over time.

Know When It’s Clinical Insomnia

Everyone has a bad night occasionally. Insomnia becomes a clinical problem when you have trouble falling asleep, staying asleep, or waking too early at least three nights per week for three months or longer, and it’s affecting how you function during the day. If that description fits, what you’re dealing with has likely moved past a rough patch and into a self-reinforcing cycle where worry about sleep makes sleep harder, which creates more worry.

That cycle is exactly what the most effective treatments target.

CBT-I: The Gold-Standard Treatment

Cognitive behavioral therapy for insomnia, known as CBT-I, is the first-line treatment recommended by every major sleep medicine organization. It typically runs four to eight sessions with a trained therapist and combines several techniques that work together. Unlike sleep medications, which are designed for short-term use, the improvements from CBT-I tend to stick around after treatment ends.

CBT-I has a few core components, and understanding them helps even if you never see a therapist, because you can start applying the principles on your own.

Stimulus Control

The goal here is to retrain your brain to associate your bed with sleep instead of with lying awake and stressing. The rules are simple but strict: go to bed only when you feel sleepy, not just tired. If you can’t fall asleep after roughly 15 to 20 minutes, get up, go to another room, and do something quiet until you feel sleepy again. Set the same wake-up time every morning regardless of how you slept. Avoid long naps during the day. If you do nap, keep it to 15 to 30 minutes, ideally seven to nine hours after you woke up.

This approach feels counterintuitive at first. Leaving a warm bed when you’re exhausted seems like the opposite of helpful. But over days and weeks, your brain starts to link “bed” with “falling asleep quickly” instead of “lying awake frustrated.”

Sleep Restriction

People with insomnia often spend more time in bed trying to compensate for lost sleep, which backfires. You lie there for nine or ten hours but only sleep for five or six, and all that extra wakefulness in bed weakens the connection between bed and sleep. Sleep restriction temporarily limits your time in bed to match how much you’re actually sleeping. As your sleep becomes more consistent and efficient, you gradually add time back. The first week can feel rough because you’re building up sleep pressure, but that pressure is the point. It makes falling asleep faster and staying asleep easier.

Cognitive Restructuring

This is the “cognitive” part of CBT-I. A therapist helps you identify and challenge the anxious thoughts that fuel insomnia: “If I don’t sleep tonight, tomorrow will be a disaster,” or “I’ll never be a normal sleeper again.” These thoughts spike your stress hormones and make sleep physiologically harder. Learning to notice them without buying into them breaks the anxiety-insomnia loop. The goal isn’t positive thinking. It’s accurate thinking, recognizing that one bad night is uncomfortable but survivable, and that trying to force sleep is counterproductive.

If you don’t have access to a CBT-I therapist, several digital programs deliver the same protocol through apps and are backed by clinical evidence. Your doctor can point you toward vetted options.

Build a Sleep-Friendly Environment

Your bedroom setup matters more than most people realize. The biggest lever is temperature: the optimal range for most adults is 60 to 67°F (about 15.5 to 19.5°C). A room in that range supports more stable deep sleep and REM sleep. If your bedroom runs warm, a fan, lighter bedding, or cooling the room before bed can make a noticeable difference.

Keep your room as dark as possible. Even small amounts of light from electronics or streetlights can suppress your body’s natural melatonin production. Blackout curtains or a sleep mask are simple fixes. Noise is worth addressing too, whether that means earplugs, a white noise machine, or just moving your phone to another room so notifications don’t wake you.

Use Light to Reset Your Internal Clock

Your sleep-wake cycle is driven by your circadian rhythm, and light is its most powerful signal. Bright morning light shifts your internal clock earlier, making you feel sleepy earlier in the evening and wake more easily in the morning. Researchers estimate that morning light exposure, roughly one hour before and after your usual wake-up time, can shift your circadian rhythm about one hour earlier per day.

The practical takeaway: get outside in natural light shortly after waking. Even 15 to 30 minutes of morning sunlight is helpful, and cloudy daylight is far brighter than indoor lighting. In the evening, do the opposite. Dim your lights in the two hours before bed and reduce screen brightness. Evening light pushes your clock later, which is the last thing you need if you’re struggling to fall asleep.

Watch Your Caffeine Timing

Caffeine has a half-life of three to six hours, meaning half the caffeine from your afternoon coffee is still circulating in your bloodstream three to six hours later. A recent clinical trial found that a single 100 mg dose of caffeine (roughly one small cup of coffee) can be consumed up to four hours before bedtime without significant disruption. But a larger dose of 400 mg, the equivalent of about four cups, should not be consumed within 12 hours of bedtime.

Most people underestimate how much caffeine they consume. Tea, energy drinks, chocolate, and some medications all contribute. If you’re dealing with insomnia, tracking your total daily caffeine intake and cutting it off by early afternoon is one of the simplest changes you can make.

Relaxation Techniques That Help

When you’re lying in bed unable to sleep, your nervous system is often stuck in a stressed, alert state. Breathing exercises can shift your body into its rest-and-digest mode by activating the parasympathetic nervous system, the branch that calms you down. One popular method is 4-7-8 breathing: inhale through your nose for four counts, hold for seven, and exhale slowly through your mouth for eight. The long exhale is the key part, as it signals your body to relax.

Progressive muscle relaxation is another option. You systematically tense and release muscle groups from your feet to your forehead. The contrast between tension and release helps your body recognize what relaxation actually feels like. Neither technique is a magic switch, but practiced regularly, they reduce the physical arousal that keeps you awake. The important thing is to use them as a wind-down ritual before bed rather than as a desperate fix once you’re already frustrated in the dark.

Where Melatonin Fits In

Melatonin is the most popular sleep supplement, but its effects are more modest than marketing suggests. Meta-analyses show it reliably shortens the time it takes to fall asleep and modestly increases total sleep time. It works best for people whose circadian rhythm is shifted later than they want, such as those who can’t fall asleep until 1 or 2 a.m. but sleep fine once they do.

If you’re waking up repeatedly in the middle of the night, melatonin is less likely to help. It’s a circadian signal, not a sedative. Many over-the-counter melatonin products contain far more than your body naturally produces. Starting with a low dose (0.5 to 1 mg) taken one to two hours before your desired bedtime is a reasonable approach. Higher doses aren’t necessarily more effective and can cause grogginess the next day.

Habits That Quietly Make Insomnia Worse

Several common habits seem harmless but actively undermine sleep. Sleeping in on weekends to “catch up” disrupts your circadian rhythm and makes Monday nights harder. Exercising within two to three hours of bedtime raises your core body temperature and heart rate at exactly the wrong time, though regular exercise earlier in the day consistently improves sleep quality. Alcohol is another trap: it may help you fall asleep faster, but it fragments sleep in the second half of the night, reducing the restorative stages you need most.

Scrolling your phone in bed trains your brain to associate bed with stimulation. If you use your phone as an alarm, put it across the room or switch to a standalone alarm clock. The bed should be for sleep and sex only. That simple boundary, maintained consistently, is one of the most effective behavioral changes in all of sleep medicine.