If you’re lying in bed unable to sleep, the worst thing you can do is stay there staring at the ceiling. Your brain starts associating your bed with frustration instead of rest, making the problem worse over time. The good news: several techniques can quiet your mind and body enough to let sleep happen, and most work within minutes once you practice them.
Stop Lying There After 20 Minutes
This is the single most important rule for anyone who struggles to fall asleep. If you’ve been in bed for 15 to 20 minutes and you’re still awake, get up and go to another room. Do something quiet and low-key: read a book, do a crossword puzzle, listen to soft music, or sketch. Avoid housework, exercise, video games, or anything on a computer. When you feel genuinely sleepy (not just tired), go back to bed. Repeat this as many times as needed throughout the night.
The goal is to retrain your brain so it connects your bed with falling asleep, not with lying awake and worrying. This approach, called stimulus control, is one of the core techniques sleep specialists use. It feels counterintuitive to leave your warm bed, but it works because it breaks the cycle of frustration that keeps you alert. One important detail: don’t fall asleep on the couch, because that just moves the sleep association away from your bed.
The Military Sleep Method
Originally developed to help soldiers fall asleep in combat conditions, this technique follows a simple body-down sequence that takes about two minutes once you’ve practiced it for a few weeks. Start at your forehead and work down to your toes. At each body part, notice any tension and consciously release it. Unclench your jaw. Let your shoulders drop. Stop sucking in your belly and let it rise and fall with your breath. Let your feet flop naturally to the sides instead of pointing up.
Once your body feels loose, immerse yourself in a calming mental scene. Picture yourself floating in a canoe at sunset, sitting on a mountaintop, or watching waves roll onto a beach. The key is to use all your senses: what do you see, hear, smell, feel? When your mind wanders (it will), gently guide it back. This visualization gives your brain something peaceful to do instead of replaying tomorrow’s to-do list.
Breathing Techniques That Actually Help
The 4-7-8 method is one of the most widely recommended breathing exercises for sleep. Inhale through your nose for 4 seconds, hold for 7 seconds, then exhale slowly through your mouth for 8 seconds. That’s one cycle. Repeat three or four times.
This works because the extended exhale activates your parasympathetic nervous system, which is your body’s built-in counterweight to the fight-or-flight stress response. When you’re stressed or wired, your sympathetic nervous system is running the show: fast heartbeat, shallow breathing, racing thoughts. Slow, controlled breathing flips the switch toward calm. The more regularly you practice this (not just when you’re desperate for sleep), the faster your body learns to shift into that relaxed state.
Progressive Muscle Relaxation
If your body carries tension you can’t seem to release through willpower alone, progressive muscle relaxation forces the issue. The idea is simple: deliberately tense a muscle group, hold it while you take a deep breath, then exhale and release. The release feels deeper than just “trying to relax” because your muscles rebound from the tension into a more relaxed state than they started in.
Work through these groups in order:
- Hands and arms: Clench both fists and curl your forearms toward your shoulders, tightening your biceps. Hold, breathe in, then exhale and release.
- Face: Squeeze your eyes shut, clench your jaw, wrinkle your forehead and nose. Hold, breathe, release.
- Shoulders: Shrug them up toward your ears. Hold, breathe, release.
- Stomach: Pull your belly in toward your spine. Hold, breathe, release.
- Thighs and glutes: Squeeze your glutes together while tensing your thighs. Hold, breathe, release.
- Calves and feet: Flex your feet and pull your toes toward you. Hold, breathe, release.
By the time you reach your feet, most of your body will feel noticeably heavier and looser. Pair this with the 4-7-8 breathing for a stronger effect.
The Cognitive Shuffle
Racing thoughts are the most common reason people can’t fall asleep, and trying to suppress them usually backfires. The cognitive shuffle is a clever workaround: instead of fighting your thoughts, you replace them with something so random and boring that your brain loses its grip on whatever it was worrying about.
Pick a simple word, like “lamp.” Take the first letter, L, and think of as many words starting with L as you can: lemon, ladder, lake, library. For each word, briefly picture it in your mind. When you run out, move to the next letter: A. Then M, then P. The randomness of the images prevents your brain from building a coherent narrative, which is exactly what keeps anxious thoughts running. Most people don’t make it past the second or third letter before they drift off.
Set Up Your Room for Sleep
Your bedroom environment has a bigger effect on sleep onset than most people realize. Temperature matters most. Your body needs to drop its core temperature to initiate sleep, and a warm room fights that process. Keep your bedroom between 60 and 67°F (15 to 19°C). If that feels cold, use blankets rather than heating the room, since your face and airways still benefit from the cool air.
Light is the other major factor. Even dim light suppresses melatonin, the hormone that signals your brain it’s time to sleep. A standard table lamp produces enough brightness to interfere with your sleep timing. Blue light from phones and laptops is particularly disruptive: in one Harvard experiment, blue light suppressed melatonin for about twice as long as green light at the same brightness and shifted the body’s internal clock by three hours instead of 1.5. The recommendation is to avoid bright screens two to three hours before bed. If that’s not realistic, at least switch your devices to a warm-light mode and dim them as much as possible in the hour before you want to sleep.
Watch Your Caffeine Window
Caffeine works by blocking receptors in your brain that detect a sleep-promoting chemical called adenosine. As adenosine builds up during the day, it creates sleep pressure. Caffeine essentially masks that signal, keeping you alert even when your body is ready for rest.
The half-life of caffeine is four to six hours, meaning that half of the caffeine from your 3 p.m. coffee is still circulating at 9 p.m. A good cutoff is around 2 p.m. for anyone with a standard evening bedtime. Some people metabolize caffeine faster or slower depending on genetics and other factors, so if you’ve cut off caffeine at 2 p.m. and still can’t sleep, try pushing that cutoff to noon for a week and see if it helps.
Magnesium as a Sleep Aid
Magnesium is one of the few supplements with reasonable evidence behind it for sleep. It plays a role in your nervous system’s ability to calm down, and many people don’t get enough from their diet. A typical recommendation for sleep is 250 to 500 milligrams taken as a single dose at bedtime. Magnesium glycinate is generally the preferred form because it’s gentler on your stomach than other types. Magnesium citrate works too, but it can cause loose stools, which makes it a better choice if you tend toward constipation.
When Sleeplessness Becomes Insomnia
Everyone has bad nights. But if you’re struggling to fall asleep, stay asleep, or you’re waking too early at least three nights per week, and this has been going on for three months or longer, that meets the clinical definition of insomnia disorder. At that point, the techniques above are still useful, but they work best as part of a structured program called cognitive behavioral therapy for insomnia (CBT-I), which a sleep specialist can guide you through. CBT-I is considered more effective than sleep medication for long-term results, and it typically takes four to eight sessions.

