How to Sleep When You Can’t Sleep: What to Do

If you’re lying in bed unable to fall asleep, the worst thing you can do is keep trying harder. Sleep is an involuntary process, and the more pressure you put on yourself to drift off, the more alert you become. The good news: several techniques can short-circuit that cycle and help your body do what it already knows how to do.

Stop Trying to Fall Asleep

This sounds counterintuitive, but it works. A technique called paradoxical intention flips the script: instead of trying to sleep, you try to stay awake. Lie comfortably in bed with the lights off, but keep your eyes open. Give up any effort to fall asleep and any concern about still being awake. When your eyelids feel heavy, gently tell yourself “just stay awake for another couple of minutes.” Don’t do anything stimulating to keep yourself up. Just passively resist closing your eyes.

The reason this works is that insomnia feeds on performance anxiety. You’re essentially stuck in a loop where you worry about not sleeping, which keeps you awake, which makes you worry more. By deliberately choosing wakefulness, you remove the pressure entirely, and sleep tends to arrive on its own. If you wake up in the middle of the night and can’t fall back asleep quickly, use the same approach.

Use Your Breathing to Trigger Relaxation

Your nervous system has a built-in calm-down switch, and specific breathing patterns can activate it. The 4-7-8 technique is one of the most reliable ways to do this. Inhale through your nose for four counts, hold your breath for seven counts, then exhale slowly through your mouth for eight counts. Repeat the cycle three or four times.

The extended exhale is the key. It activates your parasympathetic nervous system, which is the branch responsible for pulling you out of fight-or-flight mode and shifting your body toward rest. You’re not just distracting yourself. You’re sending a direct physiological signal that it’s safe to relax. If the 7-count hold feels too long at first, shorten the counts proportionally and work your way up.

Relax Your Body From Head to Toe

Tension accumulates in your muscles throughout the day, and you often don’t notice it until you’re lying still. Progressive muscle relaxation works by systematically tensing and then releasing each muscle group, which creates a deeper level of physical relaxation than simply lying still.

Start at your feet. Curl your toes and arch your feet, hold the tension briefly, then release and let your feet sink into the bed. Feel them getting heavy. Then move slowly upward: calves, thighs, buttocks, lower back, abdomen, upper back, shoulders, arms, hands, neck, jaw, and forehead. Tense each area for about five seconds, then let go completely. Breathe softly throughout. Most people don’t make it all the way to their forehead before they’re drowsy.

The military sleep method uses a similar principle but skips the tensing step. Lie on your back, close your eyes, and mentally scan from your forehead down to your toes, consciously giving each body part permission to relax. Are you scrunching your shoulders? Release them. Sucking in your belly? Let it rise and fall naturally. Are your toes pointing at the ceiling? Let your feet flop to the sides. The method was reportedly designed to help soldiers fall asleep in two minutes under stressful conditions.

Scramble Your Racing Thoughts

If your mind is spinning through tomorrow’s to-do list or replaying an awkward conversation from 2016, you need something to interrupt the pattern without being stimulating enough to keep you awake. Cognitive shuffling is designed for exactly this.

Pick a random letter. Think of a word starting with that letter, something neutral like “balloon.” Slowly spell it out in your mind, and for each letter, think of a new, unrelated word and visualize it. B: beach. A: antelope. L: lamp. L: lemonade. O: octopus. O: orange. N: notebook. Pause on each image for a few seconds before moving on. If you run out of words or lose your place, pick a new starting word.

You can also do this purely with images. Picture a beach scene with waves and sand under your feet, then jump to a forest with pine trees, then a cozy cabin with a fireplace. The scenes don’t need to connect. That’s the point. Your brain interprets these random, low-stakes images as the kind of loose associations that happen right before sleep, which nudges it in that direction. The technique works because it occupies just enough mental bandwidth to block anxious thoughts without requiring the kind of focused attention that keeps you alert.

Get Out of Bed (Yes, Really)

If you’ve been lying awake for roughly 15 to 20 minutes, get up. This is one of the most well-supported recommendations in sleep medicine, and it protects something important: the association between your bed and sleep. The longer you lie awake feeling frustrated, the more your brain learns to associate your bed with wakefulness and stress.

Move to another room, keep the lights dim, and do something low-stimulation until you feel genuinely sleepy. Good options include reading a physical book or magazine, light stretching, knitting, writing in a journal, or doing the breathing and relaxation exercises described above. Avoid anything with a screen. When your eyelids start to feel heavy, go back to bed. If you’re still awake 15 to 20 minutes later, repeat the process. It can feel tedious the first few nights, but it retrains your brain to treat your bed as a place for sleep.

Fix What’s Keeping You Awake

Temperature is one of the most common sleep disruptors that people overlook. Your body needs to cool down slightly to initiate sleep, and a warm room fights that process. The ideal bedroom temperature for adults is 60 to 67°F (15 to 19°C), which is cooler than most people keep their homes. If you tend to run hot, try sleeping with one foot outside the covers, which helps your body release heat.

Light exposure also matters more than you might expect, especially light from screens. The blue wavelengths emitted by phones and tablets (in the 446 to 477 nanometer range) are particularly effective at suppressing melatonin, the hormone that signals your body to prepare for sleep. Even 90 minutes of exposure to blue LED light can measurably reduce melatonin levels. If you were scrolling your phone before attempting to sleep tonight, that’s likely part of the problem. For future nights, try switching to a book or dimming screens at least an hour before bed.

Snacks That Actually Help

A small snack before bed can support sleep if it contains the right nutrients. You’re looking for foods with tryptophan (an amino acid your body uses to produce melatonin and serotonin), magnesium (which helps muscles relax), or natural melatonin.

  • Tart cherries are one of the few foods that directly increase melatonin production. The more tart the cherry, the stronger the effect. Tart cherry juice counts.
  • Bananas contain both tryptophan and magnesium, making them a solid two-for-one option.
  • Almonds are rich in magnesium and easy to keep on a nightstand.
  • A small bowl of oatmeal with banana slices delivers calcium, magnesium, and potassium together, all nutrients that support sleep.
  • Milk, yogurt, or cheese contain tryptophan and calcium. The old advice about warm milk before bed has some actual basis.

Keep portions small. A full stomach can disrupt sleep just as much as an empty one. A handful of almonds or half a banana is enough.