The single most effective thing you can do when sleep won’t come is get out of bed. That advice sounds backward, but decades of sleep research consistently support it: lying in bed awake trains your brain to associate the bed with wakefulness rather than sleep, and breaking that association is the foundation of nearly every evidence-based insomnia treatment. Beyond that first move, there are a handful of techniques you can try in the moment, along with longer-term habits and environmental changes that stack the odds in your favor on future nights.
Why Your Brain Won’t Shut Off
When you lie awake at night, the problem usually isn’t that you’re not tired enough. It’s that your nervous system is running too hot. Researchers describe this as hyperarousal, and it shows up in every major model of how insomnia develops and persists. Your stress-response system stays activated even when there’s nothing urgent happening, keeping your heart rate slightly elevated, your muscles slightly tense, and your thoughts slightly buzzing. The research suggests this isn’t necessarily a person’s baseline state. Instead, it appears to be a dysregulated stress response: your body reacts to the act of trying to sleep as though it were a stressful event, particularly if you’ve had a string of bad nights.1Europe PMC. Hyperarousal and sleep reactivity in insomnia: current insights
This creates a frustrating loop. You worry about not sleeping, which activates your stress system, which makes it harder to sleep, which gives you more to worry about. The techniques below work because they interrupt this loop at different points, some by calming the body, some by redirecting the mind, and some by changing the environment your brain is trying to sleep in.
Get Out of Bed (and Why It Works)
Stimulus control therapy is the formal name for the “get out of bed” rule, and it’s one of the most well-supported behavioral techniques for insomnia. The logic is simple: if you spend long stretches lying awake in bed, your brain starts treating the bed as a place for wakefulness and frustration rather than sleep. By getting up whenever you’ve been awake for roughly 15 to 20 minutes, you retrain that association. Research has shown that stimulus control reduces the time it takes to fall asleep to under 30 minutes per week on average and also cuts the use of sleep medications.2Behaviour Research and Therapy. A within-subject analysis of stimulus control therapy with severe sleep-onset insomnia
When you get up, go to a different room if possible. Keep the lights dim. Do something low-key: read a physical book, listen to a quiet podcast, fold laundry. The goal is to avoid anything stimulating enough to wake you up further while also avoiding lying in a dark room getting more frustrated. Return to bed only when you feel genuinely drowsy. If sleep doesn’t come within another 15 to 20 minutes, get up again. It can feel tedious, especially the first few nights, but the retraining tends to pay off within a week or two.
Stop Checking the Time
This is one of the easiest changes you can make and one of the most impactful. Clock-watching during the night is almost universal among people with insomnia, and it reliably makes things worse. In controlled experiments, people instructed to monitor a clock while trying to fall asleep reported more pre-sleep worry and took longer to fall asleep than people given a neutral monitoring task. That held true for both good and poor sleepers. Clock-watchers also overestimated how long they’d been awake, which fuels the sense that the night is a disaster.3PubMed. Sleeping with the enemy: clock monitoring in the maintenance of insomnia
The mechanism is straightforward: you check the time, do the math on how little sleep you’ll get, feel a spike of frustration or dread, and that emotional reaction pushes you further from sleep. Time monitoring commonly leads to frustration about sleeplessness and perpetuates the insomnia cycle.4The Journal of Nervous and Mental Disease. Nocturnal Time Monitoring Behavior (“Clock-Watching”) in Patients Presenting to a Sleep Medical Center With Insomnia and Posttraumatic Stress Symptoms Turn your clock or phone face-down, or move it across the room. You don’t need to know what time it is at 3 a.m. Knowing the time gives you zero useful information and a reliable dose of anxiety.
Techniques for a Racing Mind
If your problem is less about physical restlessness and more about thoughts that won’t stop cycling, several cognitive techniques can help. These work by giving your mind something to do that’s engaging enough to break the worry loop but boring enough not to keep you awake.
Paradoxical Intention
This one sounds like a joke, but it has real evidence behind it. Instead of trying to fall asleep, you try to stay awake. You lie in bed with your eyes open in the dark and gently resist sleep. The idea is that the pressure to fall asleep is itself a source of anxiety, and removing that pressure lets your body relax. In studies, people given paradoxical intention instructions showed significant improvement on multiple measures of sleep compared to placebo and no-treatment groups.5Behaviour Research and Therapy. Paradoxical intention and insomnia: an experimental investigation A systematic review and meta-analysis found that the technique specifically reduces sleep-related performance anxiety, which is one of the central drivers of insomnia for many people.6PubMed. Paradoxical intention for insomnia: A systematic review and meta-analysis
The Cognitive Shuffle
Developed by a cognitive scientist, this technique asks you to visualize a rapid, random sequence of unrelated images: a blue shoe, then a loaf of bread, then a frog on a log, then a brass doorknob. The randomness is the point. When your brain is generating coherent, logical thoughts, it stays in a wakeful mode. When it produces disjointed, dreamlike imagery, it mimics the kind of mentation that naturally precedes sleep onset. The technique is designed to be, in the researcher’s terminology, “super-somnolent,” meaning it both promotes sleepiness and works against insomnia.7Computational Modeling of Cognition-Emotion Interactions: Relevance to Mechanisms of Affective Disorders and Therapeutic Action. A design-based approach to sleep-onset and insomnia: super-somnolent mentation, the cognitive shuffle and serial diverse imagining A simple way to do it: pick a random letter, then think of a word starting with that letter, then visualize the object. Move to the next word. Don’t try to connect them.
Writing a To-Do List Before Bed
If your nighttime thoughts tend to be about tomorrow’s obligations, offloading them onto paper before bed can speed up sleep onset. A polysomnographic study (measuring brainwaves during sleep, not just self-reports) found that participants who spent five minutes writing a to-do list for the next day fell asleep significantly faster than those who wrote about tasks they’d already completed. The more specific the list, the faster people fell asleep.8PubMed Central. The Effects of Bedtime Writing on Difficulty Falling Asleep: A Polysomnographic Study Comparing To-Do Lists and Completed Activity Lists It seems to work by externalizing the mental inventory your brain would otherwise keep running in the background.
Calming Your Body
Sometimes the problem isn’t racing thoughts so much as physical tension or a jittery feeling in your chest and limbs. Two body-focused techniques have solid evidence for helping with this.
Controlled breathing exercises activate the parasympathetic nervous system, which is the “rest and digest” branch that opposes the fight-or-flight response. This autonomic shift lowers heart rate and blood pressure, and reduces cortisol levels, creating conditions more conducive to sleep.9Frontiers in Sleep. The effect of breathing exercises on adults’ sleep quality: an intervention that works The specific pattern matters less than the general approach: breathe slowly, make your exhale longer than your inhale, and keep it going for several minutes. The 4-7-8 method (inhale for 4 counts, hold for 7, exhale for 8) is popular, but even just breathing out slowly for a count of six works.
Progressive muscle relaxation takes a different angle. You systematically tense and then release muscle groups, starting from your toes and working up or vice versa. The release phase triggers a reflexive relaxation that’s deeper than simply “trying to relax.” In one study, participants who did progressive muscle relaxation before a nap spent roughly 10 minutes more in deep slow-wave sleep, about 125% more time, compared to a control group. Interestingly, the benefits were most pronounced for people who had higher pre-sleep anxiety.10Europe PMC. Progressive muscle relaxation increases slow-wave sleep during a daytime nap So if you’re the type of person who lies in bed with your jaw clenched and shoulders creeping toward your ears, this technique may be especially useful.
Your Bedroom Environment
Three environmental factors reliably affect sleep quality and are worth checking if you’re consistently struggling.
Temperature is the most underrated. Your body needs to drop its core temperature by about one degree to initiate and maintain sleep. Heat exposure increases wakefulness and decreases both deep sleep and REM sleep, and this holds even when people use normal bedding and clothing.11Europe PMC. Effects of thermal environment on sleep and circadian rhythm Most sleep researchers suggest a bedroom temperature somewhere around 65 to 68 degrees Fahrenheit (roughly 18 to 20 Celsius), though individual preferences vary. If you wake up sweating or kicking off covers, your room is probably too warm.
Light from screens is a real issue, though the mechanism is specific. Using a smartphone in the evening attenuates the normal rise in melatonin that signals your brain it’s time to sleep.12PubMed Central. How Smart Is It to Go to Bed with the Phone? The Impact of Short-Wavelength Light and Affective States on Sleep and Circadian Rhythms The short-wavelength (blue) light from screens is the main culprit. Night mode or blue-light filters on your phone reduce the effect somewhat, but the content itself also matters: scrolling social media or reading the news activates your mind regardless of the light spectrum. The simplest fix is to stop using screens 30 to 60 minutes before bed, though if that feels unrealistic, at least dimming brightness and avoiding engaging content helps.
Noise is trickier to manage. If you live somewhere with intermittent noise, like near a flight path or a busy road, your options include earplugs and sound masking. Recent research on pink noise (a softer variant of white noise) found that it could partially mitigate arousals caused by aircraft noise, but earplugs outperformed pink noise for reducing disruption.13PubMed. The efficacy of pink noise and earplugs for mitigating sleep disruption induced by different environmental noise sources The evidence actually gets complicated here, because another study found that adding pink noise on top of environmental noise sometimes worsened sleep structure rather than improving it, even as it slightly reduced fragmentation from the noise itself.14SLEEP. Efficacy of pink noise and earplugs for mitigating the effects of intermittent environmental noise exposure on sleep The takeaway: if noise is your problem, earplugs are a better first bet than a white-noise machine, though some combination may work for you through trial and error.
What You Consumed Earlier Matters
Caffeine and alcohol are the two substances most likely to be sabotaging your sleep without you fully realizing it. Most people know caffeine keeps you awake, but many underestimate its staying power. Caffeine’s half-life is typically five to six hours, meaning that a coffee at 3 p.m. still has about half its stimulant effect at 9 p.m. People who are sensitive to caffeine, or who metabolize it slowly, may need to set their cutoff even earlier. If you’re regularly having trouble falling asleep, pushing your last caffeine to before noon for a week is a worthwhile experiment.
Alcohol is sneakier. In healthy people, a drink or two before bed actually helps you fall asleep faster and produces deeper sleep during the first half of the night. But sleep gets disrupted during the second half. Research indicates that this disruption results from impaired sleep homeostasis: alcohol interferes with the brain’s ability to regulate its own sleep pressure, and the rebound effect produces lighter, more fragmented sleep as the alcohol is metabolized.15Elsevier / PubMed Central. Alcohol disrupts sleep homeostasis The net result is that you wake up feeling less rested even if you technically slept for enough hours. This makes alcohol a particularly misleading “sleep aid” because the first few hours of sleep feel great, reinforcing the habit.
Supplements and Over-the-Counter Options
Magnesium is one of the more promising supplements for sleep, particularly if your diet is low in it (which is common). In a placebo-controlled trial of older adults with insomnia, magnesium supplementation increased sleep time, improved sleep efficiency, shortened the time to fall asleep, and reduced cortisol levels while increasing melatonin.16PubMed Central. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial That’s a lot of effects from a mineral supplement, though the study was in older adults and the results may not generalize equally to younger people. Magnesium glycinate and magnesium citrate are the forms most commonly recommended for sleep, partly because they’re better absorbed than magnesium oxide.
Melatonin is the most popular sleep supplement, but it’s widely misunderstood. It works best for circadian timing problems rather than general insomnia. If your issue is that you can’t fall asleep until 2 a.m. but then sleep fine once you’re out, a low dose of melatonin (0.5 to 1 mg) taken a few hours before your desired bedtime can help shift your internal clock earlier. If your issue is waking up at 3 a.m. with a racing mind, melatonin is less likely to help. The doses sold in most stores (5 to 10 mg) are far higher than what research supports for clock-shifting, and high doses can cause grogginess the next day. Some combination supplements include both melatonin and magnesium along with B vitamins, and at least one trial has tested this combination, though disentangling which ingredient does what is difficult when they’re bundled together.17PubMed Central. The Effects of Magnesium – Melatonin – Vit B Complex Supplementation in Treatment of Insomnia
Antihistamines like diphenhydramine (Benadryl, ZzzQuil) are sold as sleep aids, but tolerance develops quickly, often within a few days, and they carry side effects including next-day drowsiness and cognitive fog. They’re reasonable for occasional use, such as during travel, but they’re not a good strategy for ongoing sleep trouble.
When a Bad Night Becomes a Bigger Problem
An occasional sleepless night is normal and doesn’t require treatment. But when it happens three or more nights per week for three months or longer, it meets the clinical definition of chronic insomnia, which affects roughly 6 to 10 percent of the population. Chronic insomnia is a risk factor for multiple medical and psychiatric conditions, and it tends to be self-perpetuating.18PubMed Central. Cognitive Behavioral Therapy for Insomnia (CBT-I): A Primer A substantial proportion of people with acute insomnia, the kind that lasts a few days to a few months, eventually transition to the chronic form, which is why early intervention matters.19PubMed. Effectiveness of one-week internet-delivered cognitive behavioral therapy for insomnia to prevent progression from acute to chronic insomnia
The gold-standard treatment is cognitive behavioral therapy for insomnia, usually abbreviated CBT-I. It’s a structured program delivered over six to eight sessions that combines the behavioral techniques discussed above (stimulus control, sleep restriction, relaxation training) with cognitive work targeting unhelpful beliefs about sleep. CBT-I is now recommended as the first-line treatment for insomnia, ahead of medication, by every major sleep medicine organization.18PubMed Central. Cognitive Behavioral Therapy for Insomnia (CBT-I): A Primer The catch is access: there aren’t enough trained providers to meet demand. Online and app-based CBT-I programs have emerged to fill this gap, and evidence supports their effectiveness, including for people who haven’t yet progressed to chronic insomnia.
Sleep Disorders That Masquerade as Insomnia
Not everyone who can’t sleep has insomnia. Several other conditions can look and feel like insomnia but require different treatment. Obstructive sleep apnea is the most commonly missed one. People tend to think of apnea as a snoring problem, but it frequently co-occurs with insomnia symptoms. Research has found that sleep apnea shows up at similar rates in people reporting insomnia and those reporting restless legs, even among people who don’t have the classic symptoms of apnea like loud snoring or observed breathing pauses.20PubMed. Sleep apnea in patients reporting insomnia or restless legs symptoms If you’re doing everything right for your sleep hygiene and still waking up unrefreshed or waking frequently during the night, it’s worth asking a doctor about a sleep study.
Restless legs syndrome, gastroesophageal reflux, chronic pain, and poorly controlled blood sugar can all fragment sleep or make it hard to fall asleep. In patients with kidney disease, for example, the most frequent sleep complaints include difficulty falling asleep, middle-of-the-night awakenings, waking too early, restless legs, and daytime sleepiness.21Chest. Sleep-Related Problems in Common Medical Conditions The point isn’t that you need to worry about kidney disease. It’s that if self-help strategies aren’t moving the needle after a few weeks, the cause of your sleeplessness may be something the behavioral techniques can’t reach, and getting a proper evaluation is the next step.
How Sleep Changes With Age
If you’re over 50 and noticing that your sleep feels lighter, more fragmented, and shorter than it used to be, that’s partly a normal biological shift rather than something you’re doing wrong. Sleep patterns change with aging independently of other factors: sleep timing moves earlier (you get sleepy earlier in the evening and wake earlier in the morning), total nighttime sleep duration shortens, daytime napping increases, nighttime awakenings become more frequent, and deep slow-wave sleep decreases.22Europe PMC. Sleep in Normal Aging
This doesn’t mean older adults need less sleep. Most still need seven to eight hours. But the architecture of that sleep changes, and expecting it to feel exactly like it did at 25 sets up an unnecessary anxiety spiral. If you’re sleeping six and a half hours, waking once or twice briefly, and feeling functional during the day, that may be perfectly adequate for your age. The worry about the sleep is often worse for your health than the sleep itself.
Your Chronotype and the Mismatch Problem
Some people can’t sleep at night because they’re trying to sleep at the wrong time for their biology. Evening chronotypes, often called night owls, have slower buildup of sleep pressure during the day and a circadian rhythm that peaks later. Research has shown that the increase in sleepiness during extended wakefulness is measurably slower in evening types than morning types, and their circadian signal for sleep onset comes later.23PubMed. The circadian and homeostatic modulation of sleep pressure during wakefulness differs between morning and evening chronotypes If you’re a strong evening chronotype forced into an early work schedule, you may lie awake at 10 p.m. not because anything is wrong but because your body isn’t ready for sleep yet.
The fix isn’t to force yourself into bed earlier and lie there frustrated. It’s to gradually shift your sleep window: bright light exposure in the morning, dimmer light in the evening, and possibly low-dose melatonin a few hours before your target bedtime can pull the circadian clock earlier over the course of a couple of weeks. If your schedule allows flexibility, simply sleeping on a later schedule may be the honest answer, and there’s nothing unhealthy about it as long as you’re getting enough total sleep.