What Should I Do If I Can’t Fall Asleep?

The single most effective thing you can do when sleep won’t come is get out of bed. That advice sounds counterintuitive, but decades of clinical research support it: lying in bed awake trains your brain to associate the bed with wakefulness rather than sleep. Beyond that one rule, a handful of in-the-moment techniques and longer-term habit changes can meaningfully shorten the time it takes you to drift off. The science behind each strategy is more specific than most people realize, and some popular tips turn out to matter less than you’d expect.

Why You’re Lying There Awake

Your ability to fall asleep depends on two systems working together. One is your internal circadian clock, a small region in the brain that tracks roughly 24-hour cycles. The other is sleep pressure, which builds the longer you stay awake and dissipates while you sleep.1Clinical Epileptology. Circadian and sleep–wake homeostatic modulation of EEG activity during sleep and wakefulness When these two systems are aligned and both pointing toward sleep, you nod off quickly. When they’re not, you stare at the ceiling.

The most common wrench in the gears is what researchers call hyperarousal. Your nervous system stays revved up even when the rest of your body is ready for rest. This can be physiological (elevated heart rate, tense muscles, higher core temperature) or psychological (racing thoughts, worry, mental checklists). Hyperarousal is considered a central feature of insomnia, and it explains why telling yourself to “just relax” rarely works: the systems keeping you alert are operating below conscious control.2PubMed Central. Hyperarousal and sleep reactivity in insomnia: current insights The strategies below work precisely because they target this arousal state from different angles.

Get Out of Bed (Stimulus Control)

If you’ve been lying awake for roughly 15 to 20 minutes, get up and go to another room. Do something quiet and unstimulating in dim light, and return to bed only when you feel genuinely sleepy again. This technique, known as stimulus control, is one of the most studied behavioral interventions for insomnia. A systematic review and meta-analysis found that it produced meaningful improvements in the time it took people to fall asleep and in total sleep time when compared with doing nothing.3PubMed. Stimulus control for insomnia: A systematic review and meta-analysis

The logic is simple but powerful. Your brain forms associations between environments and behaviors. If you regularly lie in bed scrolling your phone, worrying, or tossing and turning, the bed eventually becomes a cue for wakefulness. Stimulus control breaks that association by reserving the bed for sleep (and sex) only. It feels frustrating the first few nights because you’re essentially choosing to be up, but people who stick with it for a week or two usually notice real changes.

Try Not to Sleep (Paradoxical Intention)

Another approach flips the problem on its head: instead of trying harder to fall asleep, try to stay awake. Lie in bed with the lights off, eyes open, and gently resist sleep. The idea is that much of the difficulty falling asleep comes from performance anxiety about sleeping itself. When you stop trying to force it, the anxiety drops, and sleep often arrives on its own. This technique, called paradoxical intention, has been studied since the late 1970s, with trials finding it helpful for people whose main struggle is at sleep onset.4PubMed Central. Paradoxical intention as a treatment for insomnia disorder: study protocol for a mixed-methods pilot trial

This won’t appeal to everyone. Some people find it maddening. But if your primary issue is lying there thinking “I have to fall asleep right now,” paradoxical intention directly defuses that pressure. It’s worth trying at least once to see how your body responds.

Calm Your Body Down Directly

Progressive muscle relaxation involves tensing and then releasing muscle groups one at a time, usually starting with the feet and working up. The contrast between tension and release helps your nervous system shift toward a calmer state. Research supports this: progressive muscle relaxation and guided imagery both show a clear trend toward physiological relaxation compared with doing nothing, lowering measurable markers of arousal.5PubMed Central. Effectiveness of Progressive Muscle Relaxation, Deep Breathing, and Guided Imagery in Promoting Psychological and Physiological States of Relaxation Deep breathing, interestingly, produced a brief spike in arousal before settling back down in the same study, which may explain why some people feel that slow breathing alone doesn’t quite do the trick. Pairing it with the muscle tension-release cycle seems to work better.

Guided imagery, where you mentally place yourself in a calming scene with sensory detail, works along similar lines by occupying the parts of your brain that would otherwise generate worry. Free guided relaxation recordings are widely available, and using one through earbuds at low volume gives your mind something to follow rather than leaving it to its own devices.

Write It Down Before Bed

If racing thoughts are the problem, writing can short-circuit them. A polysomnography study, where sleep was measured directly in a lab, found that people who spent five minutes writing a to-do list for the coming days fell asleep significantly faster than those who wrote about tasks they’d already completed. The more specific the to-do list, the quicker they fell asleep.6PubMed Central. The Effects of Bedtime Writing on Difficulty Falling Asleep: A Polysomnographic Study Comparing To-Do Lists and Completed Activity Lists The researchers’ interpretation is that offloading unfinished tasks onto paper frees the brain from the cognitive work of holding them in memory.

A related technique, sometimes called constructive worry, takes this further. Earlier in the evening, you sit down and write out whatever is worrying you alongside brief notes on possible next steps. A study of college students with insomnia found that this structured problem-solving exercise reduced the kind of cognitive arousal that keeps people awake at night.7PubMed. Effects of a structured problem-solving procedure on pre-sleep cognitive arousal in college students with insomnia The key is doing this well before you get into bed, so you aren’t problem-solving under the covers.

Temperature and the Warm Bath Trick

Your core body temperature needs to drop slightly for you to fall asleep easily. This is why a warm bath or shower an hour or two before bed can help, even though it seems paradoxical. The warm water raises your core temperature temporarily. When you get out, your body works to shed that heat by sending blood to the surface of your hands and feet, which accelerates the cooling process and promotes drowsiness.8PubMed Central. Effects of bathing-induced changes in body temperature on sleep

A systematic review and meta-analysis confirmed this mechanism, finding that passive body heating before bed shortened the time to fall asleep. The effect depended on the core-temperature drop that followed the warming, driven by increased blood flow to the hands and feet.9PubMed. Before-bedtime passive body heating by warm shower or bath to improve sleep: A systematic review and meta-analysis A quick lukewarm rinse probably won’t do much; you need a warm-enough bath or shower that lasts long enough to actually raise your core temperature. About 10 to 20 minutes in comfortably hot water, roughly one to two hours before bed, is the general window most studies have used.

Room temperature matters too. A cool bedroom, generally somewhere around 65 to 68°F (18 to 20°C), supports the same temperature-drop process. If your room is too warm, your body can’t offload heat efficiently, and falling asleep takes longer.

Screens, Blue Light, and Melatonin Suppression

Blue light from phones, tablets, and laptops suppresses your body’s secretion of melatonin, the hormone that signals nighttime to your brain. A systematic review of studies on blue light and sleep in young adults found that roughly half of the studies reported reduced sleep efficiency and slightly fewer than half found increased time to fall asleep when participants were exposed to blue light from devices before bed.10PubMed Central. The influence of blue light on sleep, performance and wellbeing in young adults: A systematic review

The practical takeaway is straightforward: dimming screens or switching to a warm-toned night mode in the hour before bed is worth doing, though the magnitude of the effect varies between people. Some individuals are more sensitive to evening light than others, and the dose matters. Glancing at your phone to check the time is different from an hour of bright-screen scrolling in a dark room. If you’re struggling to fall asleep, reducing screen brightness or stopping screen use 30 to 60 minutes before bed is one of the easier changes to make.

Exercise Timing

Regular physical activity is one of the strongest predictors of good sleep quality over time, but people often worry about exercising too close to bedtime. The evidence is more nuanced than the blanket “don’t exercise at night” advice you may have heard. A systematic review found that short-term evening exercise did shift melatonin rhythms slightly later and raised overnight core body temperature, but did not reduce sleep efficiency or the amount of deep sleep people got.11PubMed Central. Effects of exercise timing and intensity on physiological circadian rhythm and sleep quality: a systematic review

Intensity seems to be the more important variable. A network meta-analysis comparing different exercise intensities in the evening found that low-intensity evening exercise showed the greatest tendency to shorten the time it took to fall asleep.12PubMed Central. Different Intensities of Evening Exercise on Sleep in Healthy Adults: A Systematic Review and Network Meta-Analysis High-intensity exercise close to bedtime is the type most likely to interfere, probably because it keeps your core temperature and heart rate elevated for longer. A brisk walk or gentle yoga in the evening is unlikely to cause problems and may actually help. A hard interval session at 10 p.m. is riskier.

Caffeine and Diet

Caffeine is the most obvious sleep disruptor, but people consistently underestimate how long it lingers. The half-life of caffeine in most adults is about five to six hours, meaning half the caffeine from a 3 p.m. coffee is still circulating at 8 or 9 p.m. Research on caffeine’s effects on sleep brain waves shows that it suppresses the slow, deep-sleep activity your brain produces during early-night sleep, creating a lighter, more aroused sleep pattern.13PubMed Central. The Caffeinated Brain Part 2: The Effect of Caffeine on Sleep-Related Electroencephalography (EEG)—A Systematic and Mechanistic Review Even if caffeine doesn’t prevent you from falling asleep, it can degrade the quality of the sleep you do get. If you’re having trouble at night, pushing your caffeine cutoff to early afternoon is one of the most reliable fixes.

Diet plays a subtler role. A study of patients undergoing cardiac evaluation found that diets with a higher glycemic index were associated with longer time to fall asleep, even after accounting for factors like age, body weight, and depression.14PubMed Central. Dietary glycemic and insulin indices in association with sleep quality and duration in patients undergoing angiography This was an observational study in a specific clinical population, so it’s not proof that eating fewer refined carbs will fix your insomnia. But the finding fits with a broader pattern in nutrition research linking high-glycemic-index meals close to bedtime with worse sleep onset. Heavy, sugary meals late at night are probably worth avoiding if falling asleep is already a struggle for you.

Melatonin Supplements

Melatonin is one of the most widely used sleep supplements, but the way most people take it doesn’t match what the research suggests works best. A dose-response meta-analysis of randomized controlled trials found that melatonin gradually reduced time to fall asleep and increased total sleep time, with the effect peaking at about 4 mg per day. Perhaps more interesting was the finding on timing: taking melatonin about three hours before the desired bedtime was significantly more effective than the common practice of taking it 30 minutes before bed.15PubMed. Optimizing the Time and Dose of Melatonin as a Sleep-Promoting Drug: A Systematic Review of Randomized Controlled Trials and Dose-Response Meta-Analysis

The effect size is real but modest. An earlier meta-analysis found that melatonin reduced sleep onset latency by an average of about 12 minutes across studies. The reduction was much larger, nearly 39 minutes, in people with delayed sleep-wake phase disorder, a condition where the entire sleep window is shifted late. For people with general insomnia, the average reduction was smaller, about 7 minutes.16PubMed Central. The efficacy and safety of exogenous melatonin for primary sleep disorders. A meta-analysis So melatonin is not a powerful sedative. It’s a mild signal that tells your brain “nighttime is starting.” Taking it earlier in the evening, at a dose in the 2 to 4 mg range, and using it consistently appears to produce the best results.17PubMed. Optimizing timing and dose of exogenous melatonin administration in neuropsychiatric pediatric populations: a meta-analysis on sleep outcomes

Many over-the-counter melatonin products come in doses of 5 or 10 mg, which are higher than what the research points to as optimal. More is not better here, and higher doses can cause morning grogginess or disrupt your natural rhythm.

When the Problem Keeps Coming Back

If you’re struggling to fall asleep multiple nights a week for more than a month, the strategies above may help night to night, but a more structured approach tends to produce better lasting results. Cognitive behavioral therapy for insomnia, or CBT-I, is a short-term program, usually four to eight sessions, that combines stimulus control, sleep restriction, and techniques for managing the thoughts and anxieties that fuel sleeplessness. A systematic review comparing CBT-I with sleep medications found that CBT-I generally reduced time to fall asleep by 30 to 45 minutes and increased total sleep time by 30 to 60 minutes. Sleep efficiency improved by 8 to 16 percent. The effects held up at follow-ups six to 24 months later, while the effects of medications tended to decline over time.18PubMed Central. Comparative effectiveness of cognitive behavioral therapy for insomnia: a systematic review

CBT-I is now widely recommended as the first-line treatment for chronic insomnia by major medical organizations. Digital versions delivered through apps have also shown effectiveness, making it accessible even if you don’t have a nearby specialist. It’s worth knowing about because many people cycle through supplements, noise machines, and bedroom gadgets for years when a structured behavioral program might resolve the problem in a few weeks.

Background Noise and Sound Machines

White noise machines and sleep-sound apps are enormously popular, but the evidence is mixed depending on the type of sound. A systematic review looking at auditory stimulation and sleep found that among the three categories studied, pink noise showed the most consistent positive results: about 82% of pink noise studies reported improved sleep outcomes, compared with only 33% of white noise studies.19PubMed Central. Systematic review: auditory stimulation and sleep Pink noise has more energy in lower frequencies, giving it a deeper, more even character compared with the hissier quality of white noise. Sounds like steady rain, ocean waves, or a low fan hum tend to sit closer to the pink noise spectrum.

That said, the overall evidence base is still relatively small, and individual preferences vary widely. If a particular sound helps you feel calmer and masks disruptive environmental noise, there’s no harm in using it, regardless of what the averages say. The main caution is volume: keeping it low enough that it doesn’t disrupt the later, lighter stages of sleep.

When You Think You’re Awake but You’re Not

Some people are genuinely convinced they haven’t slept at all, but lab recordings tell a different story. In a study of people with paradoxical insomnia, participants reported sleeping about 285 minutes while objective monitoring showed they actually slept about 464 minutes, nearly identical to healthy controls. They also perceived their time to fall asleep as about 51 minutes when it was objectively only 9 minutes.20PubMed. Paradoxical insomnia: the role of CAP and arousals in sleep misperception This condition, sometimes called sleep-state misperception, is more common than most people realize. If you feel like you haven’t slept at all but you’re functioning reasonably well during the day, there’s a real chance you’re getting more sleep than you think.

This doesn’t mean the distress isn’t real. People with paradoxical insomnia genuinely suffer from the perception of sleeplessness, and the anxiety it produces can eventually create real sleep problems. But knowing that this phenomenon exists can itself be reassuring, and it’s a reason to be cautious about catastrophizing a single bad night.

Delayed Sleep Phase and When Your Clock Is Simply Late

If your difficulty falling asleep follows a very consistent pattern where you can’t sleep until 2 or 3 a.m. but then sleep perfectly fine until late morning, the issue may not be insomnia at all. Delayed sleep-wake phase disorder is a condition in which the body’s preferred sleep window is shifted later than what social obligations demand. Interestingly, about 40% of people diagnosed with this condition don’t show a measurably delayed circadian clock; behavioral and psychological factors, particularly in younger people, play a large role.21PubMed Central. Delayed sleep-wake phase disorder and its related sleep behaviors in the young generation

For people with a true circadian delay, standard insomnia strategies like stimulus control often don’t help much, because the underlying issue isn’t arousal, it’s timing. Timed bright light exposure in the morning and carefully timed melatonin in the early evening are the usual approaches. The melatonin meta-analysis mentioned earlier found that the sleep-onset benefit of melatonin was about five times larger in people with delayed sleep phase than in people with general insomnia.16PubMed Central. The efficacy and safety of exogenous melatonin for primary sleep disorders. A meta-analysis If this pattern sounds familiar, it’s worth bringing up with a doctor rather than assuming you just have bad sleep habits.

Sleep Apnea Hiding Behind Insomnia

Not everyone who can’t fall asleep has a purely behavioral or psychological issue. Comorbid insomnia and sleep apnea, sometimes abbreviated COMISA, is one of the most common overlaps in sleep medicine, and it frequently goes unrecognized.22PubMed Central. Sleep Apnea and Insomnia: Emerging Evidence for Effective Clinical Management People with this combination may struggle to fall asleep (the insomnia piece) and also experience unrecognized breathing interruptions once they do sleep (the apnea piece). When only the insomnia is treated and the apnea is missed, results tend to be poor.

Warning signs that something beyond garden-variety insomnia might be going on include loud snoring, gasping or choking sensations during the night, waking with a dry mouth, and excessive daytime sleepiness despite what seems like enough time in bed. If behavioral strategies and good sleep habits aren’t making a dent after several weeks, a sleep study can rule out or identify conditions like apnea that require different treatment.

The Idea of “First Sleep” and “Second Sleep”

A popular notion in recent years holds that humans historically slept in two distinct chunks, a “first sleep” and a “second sleep,” with a wakeful period of an hour or two in between. The theory, based partly on historical references in early modern English texts, has been widely covered in media as evidence that our ancestors slept differently and that consolidated eight-hour sleep is a modern invention.23PubMed Central. Have we lost sleep? A reconsideration of segmented sleep in early modern England

The reality is more contested than the headlines suggest. Recent historical scholarship has questioned how widespread or well-defined segmented sleep actually was, and whether the textual references reflect a universal norm or just one of many sleeping patterns that coexisted. For someone lying awake at 3 a.m., the segmented sleep theory can feel comforting: “maybe I’m just naturally a two-phase sleeper.” And occasionally waking in the middle of the night is genuinely normal. But using the theory to justify chronic sleep fragmentation is a stretch. If you’re regularly awake for long stretches at night and feeling tired during the day, the issue is worth addressing rather than romanticizing.