If you’re lying awake right now, start with this: slow your breathing, relax your body from forehead to toes, and stop trying so hard. The effort of forcing sleep actually keeps your brain alert. The techniques below work because they shift your nervous system out of its wired, wakeful state and into the calm mode your body needs before it can drift off. Some work tonight; others are habits that fix the problem over days and weeks.
The Military Sleep Method
This technique was originally developed to help soldiers fall asleep in uncomfortable conditions, and it follows a specific sequence you can try right now. Close your eyes and take several slow, deep breaths. Then consciously relax every muscle in your face, starting at your forehead and moving down through your cheeks, jaw, and mouth. Let your shoulders drop, then release the tension in one arm from your upper arm down to your fingertips. Do the same with the other arm.
Move to your legs. Relax one thigh, then knee, calf, ankle, foot, and toes. Repeat with the other leg. Once your entire body feels heavy and loose, picture yourself lying in a calm setting: a meadow under a clear sky, or a dark room in a velvet hammock. If your mind keeps wandering, silently repeat the words “don’t think” for about 10 seconds. The full process takes roughly two minutes. It rarely works perfectly the first night, but it gets more effective with practice because you’re training your body to associate the sequence with sleep.
Use Your Breathing to Flip the Switch
Your nervous system has two modes: one that revs you up (the fight-or-flight response) and one that calms you down. When you’re stressed or overstimulated at bedtime, the revved-up system is in control, producing a fast heartbeat, shallow breathing, and a racing mind. Slow, structured breathing activates the calming system and physically lowers your heart rate and blood pressure, putting your body in the right state for sleep.
The 4-7-8 method is one of the simplest patterns to follow. Inhale quietly through your nose for 4 seconds, hold for 7 seconds, then exhale slowly through your mouth for 8 seconds. Repeat for three or four cycles. The long exhale is the key part: it’s what signals your nervous system to downshift. Like the military method, this technique becomes more powerful with repetition. The more you practice it, the faster your body learns to enter that relaxed state.
Quiet a Racing Mind With Cognitive Shuffling
If your main problem is that your brain won’t stop thinking, cognitive shuffling is designed specifically for that. The technique works by replacing structured, stressful thought patterns with random, meaningless ones. This mimics the jumbled way your brain naturally processes thoughts as you drift off, essentially tricking it into acting like it’s already falling asleep.
Pick a letter of the alphabet and start visualizing random objects that begin with that letter. If you pick “B,” you might picture a banana, then a bridge, then a butterfly, then a bathtub. Spend a few seconds on each image before moving to the next. The key is to make the images vivid but unrelated to each other, so your brain can’t latch onto a narrative or a worry. If you run out of words for one letter, switch to another.
A variation: choose a neutral word like “garden” and visualize one object for each letter. G might be a guitar, A an astronaut, R a rainstorm. Make the images detailed. Don’t just picture “a beach.” Picture the texture of the sand, the sound of waves, the color of the water. The more sensory detail you add, the more fully your attention shifts away from whatever was keeping you awake.
What to Do When You Can’t Fall Asleep
One of the most counterintuitive rules of good sleep: if you’ve been lying in bed unable to sleep for roughly 20 minutes, get up. Don’t watch the clock precisely. Just estimate. The reason is that your brain forms associations between locations and activities. If you spend hours lying awake in bed, your brain starts linking the bed with wakefulness and frustration instead of sleep.
When you get up, move to another room and do something low-stimulation: read a physical book, listen to quiet music, or meditate. Avoid anything that activates your brain, including eating, working, scrolling your phone, or watching intense TV. Return to bed only when you feel genuinely sleepy, not just tired. If another 20 minutes pass without sleep, get up again. This process can feel tedious the first few nights, but it retrains your brain to associate your bed with falling asleep quickly. This approach is a core component of cognitive behavioral therapy for insomnia, which is the most effective long-term treatment for persistent sleep problems.
Set Up Your Bedroom for Sleep
Temperature matters more than most people realize. Your body needs to cool down slightly to initiate sleep, and a warm room works against that process. The ideal bedroom temperature for adults is between 60 and 67°F (15 to 19°C). For babies and toddlers, it’s slightly warmer, between 65 and 70°F. If you don’t have air conditioning, a fan, lighter bedding, or sleeping in lighter clothing can help.
Darkness is equally important. Any light in your bedroom can interfere with your body’s production of melatonin, the hormone that regulates your sleep cycle. Blackout curtains, an eye mask, or even covering small LED lights on electronics can make a noticeable difference. Keep your room as quiet as possible, or use white noise to mask sounds you can’t control.
Cut Caffeine and Screens Earlier
Caffeine has a half-life of four to six hours, meaning that half the caffeine from your afternoon coffee is still circulating in your bloodstream at bedtime. One study found that caffeine consumed even six hours before bed measurably disrupted sleep, even when participants didn’t feel alert. A reasonable cutoff for most people with a standard bedtime is around 2 or 3 p.m. If you’re particularly sensitive to caffeine, you may need to stop earlier.
Screens are the other major culprit. The blue light from phones, tablets, and laptops suppresses melatonin production and shifts your internal clock. In one experiment, blue light suppressed melatonin for about twice as long as green light of the same brightness and shifted the body’s circadian rhythm by three hours. Harvard Health recommends avoiding bright screens two to three hours before bed. If that’s not realistic, use your device’s night mode or warm-toned screen filter, and keep the brightness low.
When Melatonin Supplements Help
Melatonin isn’t a sleeping pill. It’s a hormone your body already makes, and taking it as a supplement works best when your natural production is mistimed, such as after crossing time zones or when your sleep schedule has drifted. For short-term insomnia, a typical dose is 2mg taken one to two hours before bed. For longer-term use, 2mg taken 30 minutes to an hour before bed is a common starting point, with doses sometimes increasing up to 10mg depending on effectiveness.
For jet lag, a 3mg dose taken at your normal bedtime in the new time zone (not before 8 p.m. or after 4 a.m.) for up to five days can help reset your clock. Melatonin tends to work best when combined with the behavioral techniques above. It nudges your body toward sleepiness, but it won’t overpower a bright room, a racing mind, or a body full of caffeine.
When Sleeplessness Becomes Insomnia
Everyone has bad nights. The clinical threshold for insomnia is difficulty falling or staying asleep at least three nights per week. When that pattern persists for three months or longer, it’s classified as chronic insomnia. At that point, the techniques in this article are still useful, but they work best as part of a structured program with a sleep specialist. Cognitive behavioral therapy for insomnia is more effective than medication for most people with chronic sleep problems, and the improvements tend to last after treatment ends, unlike sleeping pills, which only work while you take them.