What Should I Do If I Can’t Sleep? Tips That Work

If you’re lying in bed unable to sleep, the most effective thing you can do right now is get up. Staying in bed while awake trains your brain to associate the bed with wakefulness, making the problem worse over time. Below are immediate steps to help you fall asleep tonight, plus habits that prevent this from happening again.

Get Out of Bed After 15 to 20 Minutes

This is the single most counterintuitive and most effective piece of sleep advice backed by research. If you’ve been lying awake for roughly 15 to 20 minutes, get up and go to another room. The technique, called stimulus control, is a core part of cognitive behavioral therapy for insomnia, the gold-standard treatment recommended before sleep medications.

Once you’re up, do something quiet and low-stimulation. Good options include reading a physical book, doing a crossword puzzle, listening to soft music, drawing, or meditating. The activity should be engaging enough that you’re willing to get out of bed for it, but not so stimulating that it wakes you up further. Avoid housework, exercise, video games, scrolling on your phone, or anything that gets your mind racing. When you start feeling drowsy, go back to bed. If sleep doesn’t come again within 15 to 20 minutes, repeat the process.

This feels frustrating the first few nights. But it works by rebuilding the mental connection between your bed and sleep, so your brain starts treating the bedroom as a place for rest rather than a place where you lie awake and worry.

Try a Physical Relaxation Technique

If your body feels tense or your mind won’t stop running, a structured relaxation exercise can help shift your nervous system out of alertness mode.

The military sleep method is one popular approach. Lie on your back, close your eyes, and deliberately relax each part of your body starting at your forehead and working down to your toes. Focus on each muscle group individually, notice any tension, and mentally give it permission to release. With practice, this method can bring sleep within about two minutes, though it typically takes a few weeks of nightly use before it becomes that fast.

Another option is 4-7-8 breathing: inhale through your nose for 4 seconds, hold for 7 seconds, and exhale slowly through your mouth for 8 seconds. The extended exhale activates your body’s calming response, the same branch of the nervous system that slows your heart rate and lowers blood pressure. Both of these changes put your body in the physical state it needs to fall asleep. Repeat the cycle three or four times.

Put Your Screens Away

If you’ve been on your phone or tablet in bed, that’s likely part of the problem. Two hours of exposure to an LED screen suppresses your body’s sleep hormone production by about 55% and delays its natural onset by an average of 1.5 hours compared to reading a printed book under dim light. That means even if you feel tired, your brain’s chemical signal for sleep has been pushed back significantly.

Put your phone face-down or in another room. If you need something to do while waiting for drowsiness, a physical book under a dim warm-toned light is far better than any screen, even one with a “night mode” filter.

Check Your Bedroom Environment

Your room may be working against you. The ideal bedroom temperature for sleep is between 60 and 67°F (15 to 19°C), which is cooler than most people keep their homes. Your body needs to drop its core temperature slightly to initiate sleep, and a warm room makes that harder. If you don’t have precise thermostat control, try lighter bedding, a fan, or cracking a window.

Beyond temperature, keep the room as dark as possible. Even small amounts of light from a hallway, streetlamp, or charging indicator can interfere with sleep quality. Blackout curtains or a sleep mask are simple fixes. For noise, a consistent low-level sound like a fan or white noise machine is generally better than earplugs, which can feel uncomfortable and block sounds you might need to hear.

Habits That Prevent Sleepless Nights

If this keeps happening, your daytime choices are usually the deeper issue.

Caffeine is the most common culprit people overlook. Its half-life ranges from 2 to 12 hours depending on your metabolism, which means a cup of coffee at 2 p.m. could still have half its stimulant effect at midnight for some people. The general recommendation is to cut off all caffeine at least eight hours before bedtime. If you’re sensitive, you may need a longer buffer or a lower daily intake.

Exercise helps substantially, but timing matters. Regular physical activity, especially aerobic exercise, improves both how quickly you fall asleep and how deeply you sleep. However, vigorous exercise within two to three hours of bedtime can raise your core body temperature and adrenaline levels enough to delay sleep onset. Morning or early afternoon workouts tend to produce the best sleep benefits.

A consistent wake time is more important than a consistent bedtime. Getting up at the same time every day, including weekends, anchors your circadian rhythm so that sleepiness arrives predictably each night. Sleeping in on weekends feels like it helps, but it shifts your internal clock and can make Sunday night insomnia significantly worse.

Supplements That May Help

Magnesium is the supplement with the most reasonable evidence for mild sleep issues. Magnesium glycinate is the preferred form because it’s well absorbed and less likely to cause digestive discomfort than other types. The recommended upper limit for supplemental magnesium is 350 milligrams per day. It’s not a sedative; rather, it supports the muscle relaxation and nervous system calming that allow sleep to happen naturally. Many people are mildly deficient without knowing it, particularly if their diet is low in leafy greens, nuts, and whole grains.

Melatonin can help if your sleep timing is shifted, meaning you naturally feel sleepy much later than you want to. It works best at low doses (0.5 to 1 mg) taken two to three hours before your desired bedtime. It’s less effective for the kind of insomnia where you’re tired but your mind won’t quiet down. In that case, the relaxation and stimulus control techniques above are more directly useful.

When Sleeplessness Becomes a Pattern

An occasional bad night is normal and not harmful. Your body compensates the next night with deeper, more efficient sleep. The real problem starts when you begin dreading bedtime, spending hours awake multiple nights per week, or feeling significantly impaired during the day for more than a few weeks.

At that point, the most effective treatment is cognitive behavioral therapy for insomnia, often abbreviated CBT-I. It’s a structured program, typically four to eight sessions, that combines the stimulus control technique described above with sleep restriction, relaxation training, and strategies for managing the anxiety that builds around sleeplessness. It outperforms sleep medications in long-term studies because it addresses the behavioral patterns keeping insomnia alive rather than masking the symptoms. Many therapists offer it, and there are also validated online programs that deliver it effectively.