Getting out of bed is the single most counterintuitive and best-supported thing you can do when sleep won’t come. If you’ve been lying awake for roughly fifteen minutes, the evidence consistently points toward getting up, doing something low-key, and returning only when you feel genuinely sleepy. Beyond that immediate move, a range of cognitive tricks, environmental adjustments, and longer-term strategies can meaningfully change your odds on any given night. Some are things you do in the moment; others are habits you build during the day that pay off after dark.
The Fifteen-Minute Rule
Sleep researchers call it stimulus control therapy, but the version that matters for you at 2 a.m. is simple: if you’re not asleep within about a quarter of an hour, leave the bedroom. Do something calm and unstimulating in dim light, and go back to bed only when drowsiness returns. A randomized controlled trial testing this single instruction, called the “quarter-of-an-hour rule,” found that people who followed it fell asleep faster, spent less time awake in the middle of the night, and had higher overall sleep efficiency compared to a control group that received only sleep-monitoring instructions.1PubMed. Efficacy of the ‘Quarter-of-an-Hour-Rule’ Single Instruction Derived from Stimulus Control Therapy for Insomnia: A Pragmatic Open-Label, Randomized Controlled Trial
The idea behind it is that your brain learns associations. Lie awake in bed long enough, night after night, and your bed stops being a cue for sleep and becomes a cue for frustration, phone-scrolling, or anxious clock-watching. Getting up breaks that loop. Interestingly, a systematic review of the full stimulus control package found that not all the traditional instructions seem equally important. The one that consistently matters is the instruction to leave and return, not necessarily other rules like avoiding daytime naps or using the bed only for sleep.2PubMed. The effectiveness of stimulus control in cognitive behavioural therapy for insomnia in adults: A systematic review and network meta-analysis So if the full list of sleep-hygiene commandments feels overwhelming, the get-up-and-come-back rule is the one to prioritize.
One variant of this approach lets you stay in bed but switch to a quiet, non-screen activity in the bedroom rather than physically relocating. The same trial found similar improvements for participants who stayed in bed but mentally disengaged from trying to sleep.1PubMed. Efficacy of the ‘Quarter-of-an-Hour-Rule’ Single Instruction Derived from Stimulus Control Therapy for Insomnia: A Pragmatic Open-Label, Randomized Controlled Trial If getting out of bed feels miserable in a cold house or a shared apartment, this in-bed version may be worth trying, though physically leaving the bedroom is still the more traditional recommendation.
Cognitive Techniques That Quiet a Racing Mind
For many people, the problem isn’t physical restlessness but a mind that won’t shut up. You lie down, and suddenly you’re replaying a conversation from last Tuesday or rehearsing tomorrow’s to-do list. Several cognitive techniques have shown promise for interrupting this pattern.
The cognitive shuffle, sometimes called “serial diverse imagining,” works by giving your brain something to do that is just interesting enough to hold attention but too random to sustain anxious thinking. You pick a letter, think of a word starting with that letter, then visualize unrelated images associated with that word before moving to the next word. The deliberate randomness mimics the scattered imagery that naturally occurs as you drift off. Paradoxical intention takes a different approach: instead of trying harder to fall asleep, you deliberately try to stay awake. The logic is that effort is the enemy of sleep, and by removing the performance pressure, you paradoxically relax enough to doze off. Imagery distraction involves visualizing a peaceful, absorbing scene in enough detail to crowd out intrusive thoughts. All three of these have been identified as effective cognitive techniques for reducing the kind of mental alertness that keeps people staring at the ceiling.3Current Sexual Health Reports. Beyond Hot Flashes: The Cognitive Dimension of Sleep Disruption in Menopause and Sexual Function
These techniques aren’t magic, and they do take some practice before they feel natural. On the first few nights, you may find yourself doing the cognitive shuffle while simultaneously worrying about whether you’re doing it right, which defeats the purpose. Persistence helps. The goal isn’t to force sleep but to replace unproductive mental chatter with something gentler.
Body-Based Relaxation
If your sleeplessness tends to come with physical tension, like a tight jaw, clenched shoulders, or a vague sense of being “wired,” working through the body can be more effective than trying to talk your brain out of it. Progressive muscle relaxation involves systematically tensing and then releasing different muscle groups from your feet up to your face, usually over ten to fifteen minutes. This technique helps calm the sympathetic nervous system, which is the branch responsible for your fight-or-flight response, by promoting blood flow, easing muscle tension, and shifting the body into a more rest-friendly state.4PubMed Central. Progressive muscle relaxation alleviates anxiety and improves sleep quality among healthcare practitioners in a mobile cabin hospital: a pre-post comparative study in China
A warm shower or bath one to two hours before bed works through a different physical route. It sounds backwards, since you’d think warming up would keep you alert, but the key is what happens afterward. Once you step out, your core body temperature drops as heat radiates from your hands and feet. This drop in core temperature is one of the signals your brain uses to initiate sleep. A systematic review and meta-analysis of studies on passive body heating confirmed that the mechanism depends on blood flowing to your extremities, creating a skin-temperature gradient that helps your body shed heat more efficiently.5PubMed. Before-bedtime passive body heating by warm shower or bath to improve sleep: A systematic review and meta-analysis The timing matters: too close to bedtime, and your core temperature may not have dropped enough by the time you lie down.
Light, Screens, and Your Bedroom
The light you’re exposed to in the hours before bed has an outsized effect on your ability to fall asleep. Blue-spectrum light, which is the dominant wavelength from most phone screens, computer monitors, and LED bulbs, is especially potent at suppressing melatonin, the hormone that signals nighttime to your brain. A study comparing blue and red LED light exposure over three hours found that after the first hour, both colors suppressed melatonin similarly. But by the second hour, melatonin levels under red light bounced back to about 26 pg/mL, while melatonin under blue light remained suppressed at around 7.5 pg/mL. That gap persisted into the third hour.6PubMed Central. Comparative Effects of Red and Blue LED Light on Melatonin Levels During Three-Hour Exposure in Healthy Adults
Even brief pulses of blue light can shift your internal clock. Research using a sleep mask that delivered two-second pulses of blue light through closed eyelids demonstrated measurable melatonin suppression and a significant delay in circadian phase.7PubMed Central. Pulsing blue light through closed eyelids: effects on acute melatonin suppression and phase shifting of dim light melatonin onset This means that even ambient light from a standby LED or a partner’s phone screen in an otherwise dark room can have biological effects. Dimming lights in the evening and switching to warmer-toned bulbs or using a blue-light filter on your devices are practical steps, though cutting screen time entirely in the last hour before bed is more reliable than any filter.
Room temperature matters too. Most sleep researchers point to a range of roughly 65 to 68°F (about 18 to 20°C) as the sweet spot for most adults. Your body needs to cool its core temperature to initiate and maintain sleep, and a room that’s too warm works against that process. If you can’t control your thermostat easily, lighter bedding or sleeping with a foot outside the covers can help, since your feet are one of the body’s main heat-radiating surfaces.
What You Ate and Drank Earlier
Caffeine is the obvious culprit, but people consistently underestimate how long it lingers. The half-life of caffeine in your system is roughly five to six hours, which means half the caffeine from your 3 p.m. coffee is still circulating at 9 p.m. A study tracking the sleep of financial traders found that each cup of caffeinated beverage consumed during the day was associated with about ten minutes less sleep that night. The effect was primarily on sleep duration rather than perceived sleep quality, meaning people often didn’t realize caffeine was the problem: they slept less without feeling like the sleep they got was worse.8PubMed Central. Sleep, alcohol, and caffeine in financial traders
Alcohol, meanwhile, creates the opposite illusion. It may help you fall asleep faster, but it consistently degrades the quality of that sleep. The same study found that alcohol was associated with significantly lower subjective sleep quality.8PubMed Central. Sleep, alcohol, and caffeine in financial traders Alcohol disrupts the later stages of sleep, which is why you may conk out quickly after a couple of drinks but then find yourself wide awake at 3 a.m. If you’re currently using a nightcap to help you sleep, it’s worth experimenting with dropping it for a week and seeing whether your middle-of-the-night wakefulness improves.
Morning Sunlight and Circadian Timing
Some of the most impactful things you can do for tonight’s sleep actually happen in the morning. Bright light exposure, especially before 10 a.m., is one of the strongest signals your circadian clock uses to set itself. A large observational study found that every 30-minute increase in morning sunlight exposure was associated with a roughly 23-minute shift in the midpoint of sleep to an earlier time. Morning sun exposure was also linked to better overall sleep quality scores.9PubMed Central. The role of sunlight in sleep regulation: analysis of morning, evening and late exposure
If you combine morning light with exercise, the effect appears to be stronger than either alone. A study comparing exercise with and without light exposure found that exercising in bright light earlier in the day was associated with higher melatonin levels at night, better sleep quality, and shorter time to fall asleep compared to exercising in bright light late in the evening.10PubMed Central. Effects of exercise with or without light exposure on sleep quality and hormone reponses Late-evening exercise under bright light, by contrast, pushed bedtimes later and reduced sleep quality. The practical takeaway: a morning walk outside serves double duty as both exercise and light therapy. Even on an overcast day, outdoor light is dramatically brighter than indoor lighting.
Meal timing may play a role in circadian alignment too. Early time-restricted eating, which means consuming your meals earlier in the day and fasting in the evening, has shown preliminary evidence of advancing sleep timing in people who naturally go to bed late. A study on late sleepers found that even a single education session on early time-restricted eating led to measurably earlier sleep.11SLEEP. FAST Asleep: Early Time-Restricted Eating Advances Sleep in Late Sleepers This is early-stage research, but it fits the broader pattern: your circadian clock takes cues from light, activity, and food, and aligning all three to an earlier schedule tends to improve sleep.
Supplements Worth Considering
Magnesium is the supplement with the most interesting evidence for sleep, though “interesting” is not the same as “conclusive.” A meta-analysis of three randomized controlled trials in older adults found that magnesium supplementation reduced the time to fall asleep by about 17 minutes and increased total sleep time by about 16 minutes compared to placebo.12PubMed Central. The Mechanisms of Magnesium in Sleep Disorders A separate trial in elderly people with insomnia found that magnesium supplementation increased serum melatonin levels and decreased cortisol levels, which suggests it may work partly by supporting the hormonal machinery of sleep.13PubMed Central. The effect of magnesium supplementation on primary insomnia in elderly: A double-blind placebo-controlled clinical trial
The caveat is that most of this evidence comes from elderly participants, and the total number of people studied is small. Whether magnesium helps younger adults with occasional sleeplessness is less clear. A combination supplement containing magnesium, melatonin, and B vitamins was tested in a broader insomnia population and showed significant improvement in insomnia scores after three months compared to a control group.14PubMed Central. The Effects of Magnesium – Melatonin – Vit B Complex Supplementation in Treatment of Insomnia Because it was a combination product, it’s hard to say which ingredient was doing the heavy lifting. Melatonin on its own has more evidence behind it for jet lag and circadian-related sleep problems than for garden-variety insomnia.
When the Problem Keeps Happening
If poor sleep is a recurring pattern, not just a bad night here and there, the most effective long-term approach is cognitive behavioral therapy for insomnia, usually abbreviated CBT-I. It’s a structured program, typically running four to eight sessions, that combines the stimulus control techniques described earlier with sleep restriction (deliberately limiting time in bed to match how much you’re actually sleeping), cognitive restructuring (addressing the catastrophic thoughts about sleep that keep the cycle going), and relaxation training.
The evidence for CBT-I over medication is strong. A systematic review comparing the two found that while sleep medications may work slightly better in the short term, CBT-I showed superior effectiveness in the long term.15PubMed Central. Comparative effectiveness of cognitive behavioral therapy for insomnia: a systematic review A large network meta-analysis reinforced this, finding that CBT-I produced better sleep efficiency, less time awake during the night, and lower insomnia severity scores than medications at the end of treatment.16PubMed. Comparative efficacy and acceptability of psychotherapies, pharmacotherapies, and their combination for the treatment of adult insomnia: A systematic review and network meta-analysis
Digital versions of CBT-I, delivered through apps or online programs, have also been tested. One trial found that digital CBT-I improved sleep quality scores at six months to roughly the same degree as a combined medication-plus-digital-therapy group, and both outperformed medication alone.17JAMA Network Open. Comparative Effectiveness of Digital Cognitive Behavioral Therapy vs Medication Therapy Among Patients With Insomnia The digital version did show less stable long-term durability than the combination, but it’s a reasonable starting point if you can’t access a therapist. Several apps now offer evidence-based CBT-I programs, and some are available through health insurance.
Sleep restriction, one of the core components of CBT-I, is worth understanding on its own because it’s the one that people resist most. If you’re spending eight hours in bed but only sleeping five, a sleep restriction protocol would have you limit your time in bed to roughly five hours initially. This feels terrible for a few days, but it builds up sleep pressure so powerfully that you begin falling asleep faster and sleeping more solidly. Preliminary research has shown that sleep restriction rapidly decreases markers of hyperarousal, including cortisol levels, suggesting it works partly by calming the physiological over-activation that maintains insomnia.18PubMed Central. A preliminary evaluation of the physiological mechanisms of action for sleep restriction therapy
Medical Conditions That Masquerade as Insomnia
Not every case of “I can’t sleep” is insomnia in the behavioral sense. Restless legs syndrome causes an uncomfortable, often hard-to-describe urge to move your legs that gets worse in the evening and during periods of rest, which is precisely when you’re trying to fall asleep. The symptoms have a circadian pattern, peaking at night, which makes the resulting sleep disruption chronic and predictable rather than occasional.19PubMed Central. Effects of restless legs syndrome (RLS) on sleep
Obstructive sleep apnea is another common condition that people often don’t recognize they have. You might assume sleep apnea would make you feel excessively sleepy rather than unable to sleep, but it can present as frequent nighttime awakenings, which feels a lot like insomnia from the inside. Research has found that over 30% of patients who reported insomnia or restless legs symptoms, but did not report any classic sleep apnea symptoms like snoring or witnessed breathing pauses, turned out to have sleep apnea on overnight testing.20PubMed. Sleep apnea in patients reporting insomnia or restless legs symptoms If your sleeplessness is chronic, you wake up frequently, and behavioral strategies aren’t helping, it’s worth raising these possibilities with a doctor rather than assuming the problem is purely psychological.
The Hyperarousal Problem
Chronic insomnia is increasingly understood not as a failure to produce sleep, but as a failure to turn off wakefulness. Studies measuring autonomic nervous system activity, stress hormones, brain-wave patterns, and neuroimaging all show that people with primary insomnia have elevated levels of arousal compared to good sleepers, and this heightened activation persists around the clock, not just at bedtime.21PubMed. The hyperarousal model of insomnia: a review of the concept and its evidence This means that insomnia isn’t just a nighttime problem. It’s a 24-hour state in which the brain’s arousal systems are running a bit too hot.
This has practical implications. If you feel wired during the day but tired at night, or if you describe yourself as a “light sleeper” who is easily awakened by small noises, the arousal system may be the issue. The behavioral strategies described earlier, especially stimulus control and sleep restriction, appear to work at least partly by tamping down this chronic hyperarousal. That’s why they can feel paradoxically difficult in the short term: restricting time in bed initially raises the discomfort before it resolves it. But the physiological evidence suggests the trade-off pays off within days.
How Expectations Shape Your Sleep
One of the stranger findings in sleep research is how much your beliefs about whether you’ll sleep well actually influence the outcome. A meta-analysis comparing placebo treatments to no treatment at all found reliable improvements in perceived sleep quality, perceived time to fall asleep, and perceived total sleep time among people who received a placebo. The effect on global sleep quality was moderate in size. However, when researchers looked at objective measures of how quickly people fell asleep, the placebo effect disappeared.22PubMed. A systematic review and meta-analysis of placebo versus no treatment for insomnia symptoms
This doesn’t mean placebo sleep is fake sleep. Perceived sleep quality matters enormously for how you function and feel the next day, sometimes more than objective measures do. A separate study found that the mechanism driving placebo improvements in insomnia was almost entirely mediated by expectancy: people who believed the treatment would work reported better outcomes, and that belief fully accounted for the improvement in insomnia severity and sleep quality.23PubMed. Choice, Expectations, and the Placebo Effect for Sleep Difficulty
The implication is that catastrophizing about a sleepless night can itself make things worse, not just by keeping your arousal high but by lowering your expectation of sleeping, which shapes the experience. Paradoxical intention, the technique of deliberately trying to stay awake, may work partly by breaking this expectancy loop. And the cognitive restructuring component of CBT-I targets this directly: it teaches you to replace “I’ll be a wreck if I don’t sleep” with more realistic appraisals like “One bad night is unpleasant but manageable.” That reframing isn’t just feel-good advice; the expectancy research suggests it has measurable effects on how your sleep feels to you.
When Age Changes the Rules
If you’re over 60 and finding it harder to sleep the way you used to, you’re not imagining it, but the explanation may not be what you think. The common assumption is that older people simply need less sleep or that their internal clocks shift dramatically earlier. Research has shown that while older adults do tend to wake earlier, the shift in their circadian temperature rhythm is actually smaller relative to their wake time than it is in younger adults.10PubMed Central. Effects of exercise with or without light exposure on sleep quality and hormone reponses In other words, the internal clock advances, but not enough to fully explain the prevalence of early morning awakenings in older people. Other factors, like reduced ability to sustain deep sleep, increased nighttime urination, medication side effects, and pain, are often bigger contributors. Treating age-related sleeplessness as purely a circadian issue can lead you to strategies that don’t address the actual problem.