How to Fall Asleep Fast When You Can’t Sleep

If you’re lying in bed unable to fall asleep, the most effective thing you can do right now is get up. That sounds counterintuitive, but staying in bed while awake trains your brain to associate the bed with frustration rather than sleep. The techniques below work both as in-the-moment fixes and as longer-term habits that make sleepless nights less frequent.

The 15-Minute Rule

If you’ve been lying awake for roughly 15 to 20 minutes, get out of bed and go to another room. Do something quiet and low-stimulation: read a physical book, listen to a calm podcast, fold laundry. Return to bed only when you feel genuinely sleepy. Repeat this cycle as many times as needed throughout the night.

This technique, called stimulus control, is a core part of the gold-standard therapy for insomnia. The goal is to rebuild the mental link between your bed and falling asleep. The biggest obstacle is that it feels wrong. You want to stay under the covers, rest your body, and avoid “waking yourself up” more. But lying there awake does more harm than good. Make it easier on yourself by planning ahead: leave a light on in the living room, set out a book, keep the space warm. The more specific your plan, the more likely you’ll follow through at 2 a.m.

Slow Your Nervous System With Breathing

Your body has a built-in switch between its alert mode and its rest mode. Slow, controlled breathing with a long exhale tips the balance toward rest. The 4-7-8 technique is one of the simplest versions:

  • Inhale quietly through your nose for a count of 4.
  • Hold your breath for a count of 7.
  • Exhale slowly through your mouth, making a whooshing sound, for a count of 8.

Repeat for three or four cycles. The reason this works is physiological, not just psychological. When your exhale is longer than your inhale, your body dials down its stress response and increases the calming branch of your nervous system. The breath hold also increases oxygen saturation in your blood, which further quiets arousal signals. You don’t need to hit the counts perfectly. What matters is that the exhale is noticeably longer than the inhale.

Relax Your Body From Head to Toe

The military sleep method was developed at the U.S. Navy Pre-Flight School to help pilots fall asleep in two minutes under stressful conditions. Lie on your back, close your eyes, and start at your forehead. Focus on each muscle group, notice the tension there, and consciously let it go. Move down through your face, jaw, neck, shoulders, arms, hands, chest, stomach, thighs, calves, and feet. Give each area a few seconds of deliberate attention.

Most people hold tension in their jaw, shoulders, and hands without realizing it. If you find a spot that won’t release, try tightening it hard for five seconds, then letting go. The contrast makes the relaxation more noticeable. After you’ve worked through your whole body, picture yourself lying in a canoe on a calm lake, or lying in a dark velvet hammock. If thoughts intrude, silently repeat “don’t think” for about ten seconds before returning to the image.

Quiet Racing Thoughts With Cognitive Shuffling

If your problem is a busy mind rather than a tense body, try cognitive shuffling. Think of a random, emotionally neutral word, like “cake.” Take the first letter (C) and visualize as many objects as you can that start with that letter: car, carrot, cottage, candle, castle. Picture each one clearly before moving to the next. When you run out of C words, move to the next letter in your original word (A), and repeat.

This works because it mimics the random, loosely connected imagery your brain produces as it drifts toward sleep. It’s boring enough to avoid stimulating you, but engaging enough to crowd out anxious thoughts. Most people don’t make it past the second letter.

Try Doing the Opposite

If sleep anxiety is the problem (“I have to fall asleep or tomorrow will be terrible”), trying harder to sleep only makes it worse. One approach that breaks this cycle is to lie in bed with your eyes open and gently try to stay awake. Don’t check your phone or do anything stimulating. Just resist the urge to close your eyes. By removing the pressure to sleep, you reduce the performance anxiety that was keeping you alert. The effort to stay awake is surprisingly boring, and boredom is exactly what your brain needs.

Use a Guided Body Scan

Non-sleep deep rest, or NSDR, is a category of guided relaxation practices that includes yoga nidra and certain types of meditation. You lie still with your eyes closed and listen to an audio recording that walks you through breathing exercises and a slow scan of bodily sensations. The key difference from traditional meditation is that you’re not trying to focus or clear your mind. You’re doing the opposite: letting your attention become loose and unfocused, drifting into the hazy zone between waking and sleeping.

These practices use physical relaxation to change your mental state, rather than the other way around. Free NSDR recordings are widely available on YouTube and meditation apps, and sessions typically run 10 to 30 minutes. Even if you don’t fall asleep during the session, the deep relaxation provides genuine physical recovery.

Set Up Your Room for Sleep

Temperature matters more than most people expect. The ideal bedroom range is 60 to 67°F (15 to 19°C). Your core body temperature needs to drop slightly to initiate sleep, and a cool room helps that process along. If your bedroom is warmer than this, even cracking a window or using a fan can make a measurable difference.

Bright light, especially the blue-toned light from phones and laptops, suppresses your body’s natural melatonin production. Even a phone screen emits enough blue light to interfere. Turn off bright overhead lights at least an hour before bed, and stop using screens at least 30 minutes before you want to sleep. If you need to use your phone, switch it to night mode or the dimmest setting.

Watch Your Caffeine Cutoff

Caffeine taken six hours before bedtime still causes significant sleep disruption. A study in the Journal of Clinical Sleep Medicine found that a standard dose of caffeine consumed six hours before bed reduced total sleep time by more than an hour, and subjects often didn’t realize how much their sleep quality had suffered. If you go to bed at 11 p.m., your last coffee should be no later than 5 p.m., and earlier is better. Caffeine’s half-life varies widely between people (anywhere from 4 to 11 hours), so if you’re sensitive, a noon cutoff is safer.

Supplements That May Help

Melatonin is the most commonly used sleep supplement, and doses between 0.5 and 2 mg taken one to two hours before bedtime are typical. Many over-the-counter products contain 5 or 10 mg, which is far more than most people need. Starting low (0.5 to 1 mg) often works just as well with fewer side effects like grogginess.

Magnesium is another option worth considering. A dose of 250 to 500 mg taken at bedtime may improve sleep quality, particularly if your dietary intake is low. Magnesium glycinate is a good choice because it’s gentler on your stomach than magnesium citrate, which can have a strong laxative effect. Skip the topical sprays and gels. Absorption through the skin is poor, and oral supplements are significantly more effective.

When Sleeplessness Becomes a Pattern

A rough night here and there is normal. Sleeplessness crosses into chronic insomnia when it happens at least three nights per week for a month or longer, and it affects how you function during the day. At that point, the most effective treatment is cognitive behavioral therapy for insomnia (CBT-I), which combines the stimulus control and sleep scheduling techniques described above with strategies for managing the anxious thoughts that fuel the cycle. It works as well as sleeping pills in the short term and better in the long term, because it addresses the root cause rather than masking the symptom. Many therapists offer CBT-I in as few as four to six sessions, and app-based versions are available if in-person therapy isn’t accessible.