If you can’t fall asleep, the single most effective thing you can do right now is get out of bed. It sounds counterintuitive, but staying in bed while awake trains your brain to associate the bed with frustration instead of sleep. Beyond that immediate step, a handful of practical changes to your routine, environment, and habits can dramatically improve your chances of falling asleep faster on future nights.
Get Out of Bed After 15 to 20 Minutes
If you’ve been lying awake for roughly 15 to 20 minutes, get up and move to another room. This is the cornerstone of stimulus control therapy, one of the most well-supported techniques in sleep medicine. The goal is simple: your brain should link your bed with sleep, not with tossing and scrolling.
Once you’re out of bed, do something quiet and low-stimulation. Good options include reading a physical book, doing a crossword puzzle, listening to soft music, drawing, meditating, or watching something light on TV (in another room). When you start feeling genuinely drowsy, go back to bed. If sleep doesn’t come again within 15 to 20 minutes, repeat the process. You may need to do this several times in one night, and that’s normal. The key rules: don’t fall asleep on the couch, don’t do anything stimulating like housework, exercise, video games, or working on a computer, and don’t lie in bed worrying or watching the clock.
This technique feels frustrating the first few nights because you’re spending less time in bed. But within a week or two, most people find they fall asleep faster because their brain has relearned what the bed is for.
Use a Breathing Technique to Calm Your Body
Racing thoughts and physical tension are the two biggest barriers to falling asleep. A structured breathing pattern can slow your heart rate and shift your nervous system out of its alert mode. The 4-7-8 technique is one of the simplest to remember: breathe in through your nose for a count of four, hold for a count of seven, then exhale slowly through your mouth for a count of eight. Repeat the cycle three or four times.
The long exhale is what does the work. It activates the branch of your nervous system responsible for rest and digestion, which lowers your heart rate and relaxes your muscles. You don’t need to hit the counts perfectly. The point is making your exhale significantly longer than your inhale. If 4-7-8 feels uncomfortable, try inhaling for three counts and exhaling for six. Practice this during the day too, so your body recognizes it as a wind-down signal by the time you use it at night.
Fix Your Sleep Environment
Temperature matters more than most people realize. The ideal bedroom temperature for sleep is 60 to 67°F (15 to 19°C). Your core body temperature needs to drop slightly to initiate sleep, and a warm room fights that process. If you can’t control your thermostat, a fan, lighter blankets, or even just sticking one foot out from under the covers can help your body shed heat.
Light is the other major factor. Even small amounts of light, from a phone screen, a charging indicator, or streetlights through thin curtains, signal your brain that it’s still daytime. Blackout curtains or a sleep mask are worth trying if your room isn’t fully dark. For noise, a consistent background sound like a fan or white noise machine works better than earplugs for most people, because it masks sudden sounds (a car door, a dog barking) that would otherwise jolt you awake.
Watch Your Caffeine Window
Caffeine has a half-life of four to six hours. That means if you drink a cup of coffee at 4 p.m., half the caffeine is still circulating in your bloodstream at 9 or 10 p.m. Research shows that caffeine consumed as early as six hours before bedtime can disrupt sleep quality, even if you don’t feel wired. A good cutoff for most people with a standard evening bedtime is around 2 or 3 p.m. That includes not just coffee but tea, energy drinks, chocolate, and some sodas.
Alcohol is the other common culprit people overlook. A drink might help you feel sleepy initially, but it fragments your sleep in the second half of the night, leading to lighter sleep, more awakenings, and less of the deep, restorative stages your body needs.
Consider Melatonin (But Keep the Dose Low)
Melatonin is a hormone your body already produces to signal that it’s time for sleep. Taking it as a supplement can help if your internal clock is off, such as after travel, shift work, or a stretch of late nights. The recommended dose for adults is 2 mg in a slow-release form, taken one to two hours before your target bedtime for short-term sleep problems, or 30 minutes to an hour before bed for ongoing issues.
Many over-the-counter melatonin products contain 5 or 10 mg, which is well above what most people need. Higher doses don’t work better and can cause grogginess the next day. Melatonin is best thought of as a timing tool, not a sedative. It helps shift when you feel sleepy, but it won’t knock you out if your mind is racing or your environment is working against you.
Eat for Better Sleep During the Day
Magnesium plays a role in how your brain regulates several chemicals tied to sleep and relaxation, including the ones that control how calm your nervous system feels, how much melatonin you produce, and how well your stress hormones stay in check. Many people don’t get enough of it from their diet alone. The richest food sources are pumpkin seeds, chia seeds, almonds, cashews, peanuts, leafy greens, beans, and rice. Salmon and halibut also contain meaningful amounts.
You don’t need to overhaul your diet. Adding a handful of pumpkin seeds to a salad or snacking on almonds in the afternoon is enough to move the needle over time. A large meal close to bedtime, on the other hand, can make it harder to fall asleep because your body is diverting energy to digestion. Try to finish eating at least two to three hours before bed.
Build a Consistent Sleep Schedule
Your body’s internal clock runs on routine. Going to bed and waking up at roughly the same time every day, including weekends, is one of the most powerful long-term fixes for sleep problems. Sleeping in on Saturday morning feels restorative, but it shifts your internal clock later, making Sunday night sleep harder and starting the week with a deficit.
If you’re currently going to bed at wildly different times, pick a realistic wake-up time and stick to it for two weeks. Your body will start generating sleepiness at a predictable time in the evening. Pair this with a short wind-down routine (dimming lights, putting your phone in another room, reading for 15 minutes) and you’re giving your brain consistent cues that sleep is coming. The routine itself matters less than the consistency.

