What to Do When You Can’t Sleep Tonight

If you’re lying in bed unable to fall asleep, the single most effective thing you can do is get up. It sounds counterintuitive, but staying in bed while awake trains your brain to associate the bed with wakefulness and frustration, making the problem worse over time. Give yourself about 15 to 20 minutes. If you’re not asleep by then, leave the bedroom and do something quiet until you feel genuinely drowsy, then try again.

Why Getting Out of Bed Actually Helps

Your body builds up a chemical called adenosine the longer you stay awake. That buildup is what creates the heavy, drowsy feeling that pulls you toward sleep. The system works well on its own, but lying in bed tossing and turning interferes with it. You start associating the bed with anxiety and alertness instead of rest, and your brain begins treating the bedroom like any other waking environment.

The fix, developed at Stanford’s Sleep Health and Insomnia Program, is straightforward: if you can’t fall asleep within 15 to 20 minutes, get out of bed, go to another room, and do something low-key. Repeat this as many times as needed through the night. The key rules are simple: don’t sleep on the couch, and only return to bed when you feel sleepy, not just tired.

What to Do While You’re Up

The activity you choose matters more than you’d think. It needs to be engaging enough that you’re willing to get out of bed, but not so stimulating that your mind kicks into high gear. Good options include reading, doing a crossword puzzle, listening to soft music, writing, drawing, or meditating. Light television is fine as long as it’s nothing intense or suspenseful.

Avoid housework, exercise, working on a computer, playing video games, or watching anything stimulating. These activities wake your brain up further. And resist the urge to just lie on the couch scrolling your phone. The goal is to let your natural sleep pressure rebuild without adding mental stimulation on top of it.

Calm Your Body With Breathing or Muscle Relaxation

If you’re lying in bed and your body feels tense or wired, two techniques can shift your nervous system toward a calmer state before you decide whether to get up.

The first is the 4-7-8 breathing method: inhale through your nose for 4 seconds, hold for 7 seconds, then exhale slowly through your mouth for 8 seconds. The extended exhale activates the part of your nervous system responsible for slowing your heart rate and relaxing your muscles. If the 7-second hold feels too long, try box breathing instead: inhale for 4 seconds, hold for 4, exhale for 4, hold for 4.

The second is progressive muscle relaxation. Starting with your toes, curl them tightly and hold for a few seconds, then release completely and let your feet sink into the mattress. Work your way up through your calves, thighs, abdomen, shoulders, hands, jaw, and forehead, tensing and releasing each area. The contrast between tension and release helps your body recognize what “relaxed” actually feels like, and many people don’t make it past their shoulders before drifting off.

Quiet a Racing Mind With Cognitive Shuffling

If your problem isn’t physical tension but a brain that won’t stop planning, worrying, or replaying the day, try a technique called cognitive shuffling. It works by mimicking the random, disconnected thought patterns your brain naturally produces as it transitions into sleep. By generating that pattern deliberately, you pull your mind toward drowsiness while pushing out the structured thinking that keeps you alert.

Here’s how it works: pick a neutral word like “garden.” Take the first letter, G, and picture as many objects starting with that letter as you can. A goat. A guitar. A globe. Visualize each one briefly before moving to the next. When you run out of G words, move to the second letter, A, and repeat. The key is choosing emotionally neutral topics. Animals, foods, household objects. Avoid anything related to work, money, relationships, or politics.

Set Up Your Room for Sleep

Temperature has a surprisingly large effect on how easily you fall and stay asleep. The ideal bedroom temperature for adults is between 60 and 67°F (15 to 19°C). Your core body temperature needs to drop slightly for sleep to begin, and a cool room helps that process along. If you’re regularly waking up sweating or kicking off covers, your room is probably too warm.

Light matters even more than most people realize. Even very low light levels, as dim as eight lux (roughly twice the brightness of a standard night light), can interfere with your body’s production of melatonin, the hormone that signals it’s time to sleep. Blue light from phones and tablets is especially disruptive. In one Harvard experiment, 6.5 hours of blue light exposure suppressed melatonin for twice as long as green light of the same brightness and shifted the body’s internal clock by 3 hours. If you use screens in the evening, switching to warm-toned lighting or enabling a night mode helps, but putting screens away entirely in the hour before bed is more effective.

Daytime Habits That Affect Tonight’s Sleep

Caffeine has a half-life of four to six hours, meaning that half the caffeine from your 3 p.m. coffee is still circulating in your bloodstream at 9 p.m. One study found that caffeine consumed as early as six hours before bedtime disrupted sleep, even when subjects didn’t notice the difference. A reasonable cutoff for most people with a standard bedtime is around 2 or 3 p.m.

Consistency in your wake-up time is just as important as what time you go to bed. Your body’s internal clock relies on regular cues to calibrate when to release sleep-promoting chemicals. Sleeping in on weekends or varying your alarm by more than an hour throws that calibration off, making it harder to fall asleep on Sunday night and setting up a rough Monday.

When Sleeplessness Becomes a Bigger Problem

Everyone has the occasional bad night. It becomes a clinical concern when you have trouble falling or staying asleep at least three nights per week for a month or longer. At that point, the standard recommendation isn’t medication. It’s a structured program called cognitive behavioral therapy for insomnia, or CBT-I, which is now considered the first-line treatment for chronic insomnia by major medical organizations.

CBT-I combines several of the techniques described above (stimulus control, relaxation strategies, cognitive techniques for sleep-related worry) with two additional components. One is sleep restriction: temporarily limiting your time in bed to match how much you’re actually sleeping, then gradually extending it as your sleep consolidates. This sounds brutal for the first few days, but it builds stronger sleep pressure and breaks the cycle of lying awake for hours. The other is sleep education, where a therapist helps you identify beliefs about sleep that are actually making things worse, like the idea that you need exactly eight hours or you’ll be unable to function.

CBT-I is typically delivered over four to eight sessions and can be done in person, in groups, or through validated online programs. Unlike sleep medication, the improvements tend to last long after treatment ends because you’ve changed the underlying habits and thought patterns driving the insomnia rather than overriding them chemically.