What to Do When You Can’t Go to Sleep at Night

If you’re lying in bed unable to fall asleep, the single most effective thing you can do right now is get up. It sounds counterintuitive, but staying in bed while frustrated trains your brain to associate the bed with wakefulness. Leave the bedroom, do something quiet in dim light, and only return when you feel genuinely sleepy. This is the cornerstone of what sleep specialists recommend, and the strategies below build on it.

Get Out of Bed

When you’ve been lying awake for roughly 15 to 20 minutes (don’t watch the clock, just estimate), get up and move to another room. The goal is to keep your bed linked to sleep, not to tossing and turning. Read a physical book, fold laundry, do a jigsaw puzzle. Anything low-key and screen-free. When your eyelids start to feel heavy, go back to bed. If sleep doesn’t come again, repeat the process. This technique, called stimulus control, is one of the most well-supported behavioral tools for insomnia.

This applies whether you can’t fall asleep at the start of the night or you wake up at 3 a.m. The rule is the same: if you’re awake and alert, the bed is the wrong place to be.

Slow Your Breathing Down

A structured breathing pattern can shift your nervous system from alert mode into a calmer state. One widely used method is 4-7-8 breathing: inhale through your nose for a count of four, hold for seven, then exhale slowly through your mouth for eight. Do four full cycles. The long exhale is the active ingredient here. It activates the same branch of your nervous system responsible for slowing your heart rate and relaxing your muscles.

You don’t need to hit the counts perfectly. If holding for seven feels uncomfortable, shorten it. The point is to make each exhale noticeably longer than each inhale, which cues your body that it’s safe to wind down.

Give Your Mind Something Boring to Do

A racing mind is the most common barrier to falling asleep, and telling yourself to “stop thinking” never works. Instead, give your brain a task that’s just engaging enough to crowd out worry but too dull to keep you awake.

One method that sleep psychologists recommend is called cognitive shuffling. Pick a neutral word between five and twelve letters long, something emotionally bland like “curtain” or “bedtime.” Then work through it letter by letter, generating as many unrelated words as you can for each letter. For the B in “bedtime,” you might think: butterfly, basket, bagel. For E: envelope, Egypt, emerald. Each time you land on a word, briefly picture it in your mind for a few seconds before moving on. The key is keeping the words unrelated to each other. If your brain starts building a story or making connections, it defeats the purpose. Avoid words with repeating letters, since cycling through the same letter twice gets tedious rather than sleepy. If you somehow make it to the end of your word still awake, pick a new one and start over. Most people don’t get that far.

Relax Your Body From the Ground Up

Progressive muscle relaxation works by deliberately tensing and then releasing each muscle group, which helps you notice and let go of physical tension you didn’t realize you were holding. Start with your toes and feet. Curl them tightly, hold for a few seconds, then release. Move slowly upward: calves, thighs, buttocks, lower back, abdomen, upper back, shoulders, arms, hands, neck, jaw, and forehead.

The release is the important part. Each time you let go, pay attention to the contrast between tension and relaxation. By the time you reach your forehead, your whole body has had a chance to soften. This technique pairs well with the breathing method above.

Try a Guided Body Scan

If tensing and releasing muscles feels too active, a body scan meditation (sometimes called yoga nidra) takes a more passive approach. You lie still and simply move your attention through each part of your body without clenching anything. Research suggests this works by dampening your stress response and activating the branch of your nervous system that restores calm, which can increase the time you spend in deep sleep.

Free guided versions are available on most meditation apps and YouTube. A 15 to 20 minute recording is typically enough. Many people fall asleep before it finishes.

Check Your Room Temperature

Your body needs to drop its core temperature slightly to fall asleep, and a warm room fights that process. The recommended bedroom temperature for adults is 60 to 67°F (15 to 19°C), which feels cooler than most people keep their homes. If you don’t have a thermostat, cracking a window, using a fan, or switching to lighter bedding can help. For babies and toddlers, the ideal range is a bit higher, between 65 and 70°F.

Put Screens Away

Blue light from phones and tablets suppresses melatonin, the hormone that signals your brain it’s time to sleep. Research shows that even moderate exposure to blue light significantly reduces melatonin levels, and the effect scales with brightness and duration. If you’re already struggling to fall asleep, scrolling through your phone in bed is actively working against you. Switch to a physical book, listen to an audio recording, or try one of the mental techniques above.

Prevent Tomorrow Night’s Problem Today

If this keeps happening, a few daytime habits make a significant difference. Caffeine has a longer half-life than most people realize. The general recommendation is to stop consuming it at least 8 to 10 hours before bedtime. If you want to be asleep by 10 p.m., your last coffee should be at noon or earlier.

Keep a consistent wake time, even on weekends. Your body’s internal clock anchors to the time you get up more than the time you go to bed. Irregular wake times make it harder to feel sleepy at a predictable hour.

Bright light exposure during the first hour after waking helps calibrate your circadian rhythm. Step outside, eat breakfast near a window, or take a short walk. This sets the timer for melatonin to release naturally 14 to 16 hours later.

When Sleeplessness Becomes a Pattern

An occasional bad night is normal and not a sign of a sleep disorder. But if you’re having trouble falling or staying asleep at least three nights per week for a month or more, that meets the clinical threshold for insomnia. At that point, the most effective treatment is cognitive behavioral therapy for insomnia (often abbreviated CBT-I), which is a structured program that addresses the thoughts and behaviors keeping you awake. It works better than sleeping pills for long-term results and is typically completed in four to eight sessions.

Melatonin supplements can help with timing issues like jet lag or a shifted sleep schedule, but they’re not a strong sedative. A typical starting dose for adults is 2 mg taken one to two hours before bed. Higher doses aren’t necessarily more effective and can cause grogginess the next day. If you’ve been relying on melatonin nightly without improvement, that’s a sign the underlying issue is behavioral or medical, not a melatonin deficiency.