What to Do When You Can’t Sleep: Tips That Work

If you’ve been lying in bed staring at the ceiling, the most important thing to know is that staying there and trying harder won’t help. Forcing yourself to sleep increases frustration and anxiety, which pushes sleep further away. The fix starts with getting up, resetting your brain’s association with your bed, and using a few specific techniques that shift your body into a calmer state.

Get Out of Bed After 15 to 20 Minutes

This is the single most effective thing you can do when sleep isn’t coming. Stanford’s Sleep Health and Insomnia Program calls it stimulus control: when you lie awake in bed, your brain starts associating the bed with wakefulness and frustration rather than sleep. The longer you stay, the stronger that association gets.

When roughly 15 to 20 minutes have passed and you’re still awake, get up and move to another room. You don’t need to watch the clock obsessively. If it feels like it’s been a while and you’re no closer to sleep than when you lay down, that’s your cue. Do something low-key in dim lighting until you feel genuinely drowsy, then go back to bed. If sleep still doesn’t come, repeat the process.

The key is choosing activities that hit a sweet spot. They shouldn’t be so stimulating that your mind ramps up, so boring that you have no motivation to get up, or so enjoyable that you don’t want to return to bed. Good options include reading, doing a crossword puzzle, listening to soft music, drawing, writing, or meditating. Over time, this retrains your brain to connect your bed with falling asleep quickly.

Try a Breathing Technique

Slow, controlled breathing activates your parasympathetic nervous system, the branch responsible for shifting your body out of a stressed state and toward rest. The 4-7-8 method is one of the most widely recommended versions. Inhale through your nose for four counts, hold your breath for seven counts, then exhale slowly through your mouth for eight counts. Repeat for three or four cycles.

The extended exhale is what makes this effective. It slows your heart rate and lowers your blood pressure, mimicking the physical state your body enters as it falls asleep. The technique gets more effective with practice, so even if the first night feels awkward, it tends to work better after a few days of consistent use.

Stop Trying to Fall Asleep

This sounds counterintuitive, but it works. Sleep researchers call it paradoxical intention: instead of trying to fall asleep, you try to stay awake. Lie in bed with your eyes open and tell yourself to remain awake as long as possible. No screens, no reading, just lie there with the goal of not sleeping.

The reason this helps is that insomnia often involves performance anxiety. You’re so worried about whether you’ll fall asleep that the worry itself keeps you up. Removing the pressure to sleep eliminates the anxiety, and without that anxiety, sleep comes more easily. In clinical trials, people who were told to try staying awake fell asleep significantly faster than those using conventional relaxation techniques.

Relax Your Body in Sequence

Physical tension you’re not even aware of can keep you alert. A progressive relaxation scan works from the top of your body down. Start by noticing whether your forehead is clenched, your jaw is tight, or your shoulders are scrunched up toward your ears. Deliberately release each area. Let your belly rise and fall naturally with your breath instead of holding it in. Let your feet flop to the sides rather than pointing up stiffly.

Move slowly through each muscle group, spending a few seconds tensing each one and then releasing it completely. The contrast between tension and release helps your body recognize what “relaxed” actually feels like, since many people carry so much chronic tension that they’ve lost that reference point.

Check Your Room Temperature

Your bedroom may be too warm. Your body needs to drop its core temperature slightly to initiate sleep, and a hot room fights that process. The ideal sleeping temperature for adults is between 60 and 67°F (15 to 19°C). That’s cooler than most people keep their homes during the day. If you don’t have a thermostat, cracking a window, using a fan, or switching to lighter bedding can make a noticeable difference.

Audit Your Caffeine and Screen Habits

If sleepless nights are becoming a pattern, two daytime habits are worth examining. Caffeine has a half-life of three to six hours, meaning half of what you consumed is still active in your system that many hours later. A single cup of coffee (roughly 100 mg of caffeine) is generally fine up to four hours before bed. But a large coffee or energy drink (around 400 mg) can disrupt sleep even when consumed 12 hours before bedtime. If you’re drinking coffee after lunch and struggling to sleep at night, the math may not be working in your favor.

Screen light is the other common culprit. The blue wavelengths emitted by phones, tablets, and laptops suppress your body’s production of melatonin, the hormone that signals it’s time to sleep. Harvard Health recommends avoiding bright screens two to three hours before bed. If that’s not realistic, most devices now have a night mode that shifts the display toward warmer tones, which helps reduce the effect.

When Melatonin Makes Sense

Melatonin supplements can help if your sleep timing is off, such as after travel across time zones, a shift change at work, or a period where your schedule has drifted later. The NHS recommends a starting dose of 2 mg taken one to two hours before your intended bedtime for short-term sleep problems. For longer-term use, the same dose taken 30 minutes to an hour before bed is typical.

Melatonin is not a sedative. It signals to your brain that it’s nighttime, which makes it useful for resetting your internal clock but less helpful if anxiety or racing thoughts are the main issue keeping you up. It also works best in a dark room, since bright light counteracts its effects.

When Sleepless Nights Become a Bigger Problem

A bad night here and there is normal. Stress, schedule changes, and even exciting events can temporarily disrupt sleep. But if you’re struggling to fall or stay asleep at least three nights per week for three months or more, that meets the clinical threshold for chronic insomnia. At that point, the most effective treatment is cognitive behavioral therapy for insomnia (often called CBT-I), a structured program that combines many of the techniques above with personalized adjustments to your sleep schedule. It consistently outperforms sleeping pills in long-term studies and doesn’t carry the same risks of dependence.

Short-term insomnia, lasting less than three months, often resolves on its own once the triggering stressor passes, especially if you avoid reinforcing bad habits like spending extra hours in bed or napping during the day to compensate. The techniques in this article are the same ones used in clinical sleep programs. Applying them consistently, even when they feel uncomfortable at first, gives your body the best chance to find its rhythm again.