If you’re lying in bed reading this, the fastest thing you can do is slow your breathing. Breathe in through your nose for four counts, hold for seven counts, and exhale slowly through your mouth for eight counts. This activates the part of your nervous system responsible for calming you down, shifting your body from alert mode toward rest. Repeat that cycle three or four times while you read the rest of this.
Now let’s go deeper into what actually works, from techniques you can try in the next five minutes to changes that fix the problem long-term.
The Military Sleep Method
This technique was developed to help soldiers fall asleep in uncomfortable conditions, and it works by systematically releasing tension you may not realize you’re holding. Lie on your back with your eyes closed. Starting at your forehead, focus on each part of your body and consciously let it relax. Work down methodically: forehead, eyes, cheeks, jaw, neck, shoulders, arms, hands, chest, stomach, thighs, calves, feet. At each spot, notice whatever tension exists and give yourself permission to let it go.
The key is patience. Most people hold tension in their jaw and shoulders without knowing it. Spend a few extra seconds on those areas. The method takes practice. It reportedly works for about 96% of people after six weeks of consistent use, so don’t dismiss it if it doesn’t knock you out on the first night.
Progressive Muscle Relaxation
This is similar in concept to the military method but adds a physical step: you deliberately tense each muscle group before releasing it. The contrast between tension and release makes relaxation easier to feel. Start with your toes and feet. Curl your toes and arch your feet, hold for about five seconds, then let your feet sink into the bed. Move upward through your calves, thighs, buttocks, lower back, abdomen, upper back, shoulders, arms, hands, neck, jaw, and forehead. Tense each area briefly, then release.
Harvard Health recommends this specifically for sleep. The physical act of tensing muscles and then letting go sends a clear signal to your nervous system that it’s safe to stand down. Breathe softly throughout, and by the time you reach your forehead, your body will feel noticeably heavier.
Stop Your Racing Thoughts
The biggest obstacle to falling asleep is usually your own mind. When you can’t stop thinking, your brain needs something boring enough to replace the mental chatter but engaging enough to prevent it from returning. A technique called cognitive shuffling does exactly this.
Pick a simple, emotionally neutral word like “table” or “water.” Then go through each letter of that word and think of other words that start with the same letter. If your word is “table,” you’d picture a tree, then a train, then a towel for the letter T. Then move to A: apple, arrow, ant. Continue through B, L, and E. The trick is to visualize each word briefly as an image rather than just listing them. If you lose track of where you are or forget your starting word, that’s actually the goal. Your thoughts are drifting, which means sleep is close. If you finish one word and you’re still awake, pick another.
This works because your brain can’t simultaneously generate random images and maintain a coherent worry narrative. You’re essentially giving your mind a task so dull that it gives up and falls asleep.
The 20-Minute Rule
One of the worst things you can do is lie in bed for an hour staring at the ceiling. Stanford’s Sleep Health and Insomnia Program recommends getting out of bed if you haven’t fallen asleep within 15 to 20 minutes. Go to another room and do something quiet: read a physical book, listen to calm music, or do some light stretching. When you start feeling drowsy, go back to bed.
This feels counterintuitive, but there’s a strong behavioral reason behind it. If you spend hours in bed awake and frustrated, your brain starts associating the bed with wakefulness and anxiety rather than sleep. Over time, just getting into bed can trigger alertness. By leaving when you can’t sleep, you preserve the mental connection between your bed and actual rest. This single habit, practiced consistently, is one of the most effective long-term fixes for sleeplessness.
Cool the Room, Warm Your Body
Your body needs to drop its core temperature slightly to initiate sleep. The ideal bedroom temperature is 60 to 67°F (15 to 19°C), which is cooler than most people keep their homes. If your room is warmer than that, cracking a window, turning on a fan, or adjusting your thermostat can make a real difference.
A warm bath or shower one to two hours before bed accelerates this process. The warm water draws blood to your skin’s surface, especially your hands and feet. When you step out, that blood rapidly releases heat, causing your core temperature to drop. A meta-analysis of existing research found that even a 10-minute warm shower or bath can shorten the time it takes to fall asleep. The timing matters: one to two hours before bed gives your body enough time to cool down fully.
Screens and Light Exposure
Your phone, tablet, and laptop emit blue-spectrum light that suppresses your body’s production of the hormone that signals sleepiness. Harvard Health recommends avoiding bright screens two to three hours before bed. If that feels unrealistic, even one hour makes a difference. At minimum, switch your device to its night mode or warm-light setting, turn the brightness down as low as it will go, and hold it farther from your face.
Overhead lights matter too. Dimming your environment in the hour before bed gives your brain the darkness cue it needs to start producing sleep-promoting hormones naturally. A small reading lamp with a warm bulb is far better than a bright ceiling light.
Melatonin: What Actually Helps
Melatonin is the most popular over-the-counter sleep aid, but most people take far too much. The NHS recommends a starting dose of 2 mg in a slow-release form, taken one to two hours before bed for short-term sleep problems. For ongoing insomnia, the same 2 mg dose taken 30 minutes to one hour before bed is typical. Many store-bought melatonin products contain 5 or 10 mg, which can cause grogginess the next morning and actually disrupt sleep quality.
Melatonin works best for circadian rhythm issues, like jet lag or a sleep schedule that’s shifted too late. It’s less effective as a knockout pill for general anxiety-driven sleeplessness. If you’ve been lying awake because your mind won’t stop, the breathing and relaxation techniques above will likely help more than a supplement.
When Sleeplessness Becomes a Pattern
Everyone has occasional bad nights. That’s normal and not cause for concern. But if you’re struggling to fall or stay asleep three or more nights per week, and it’s been going on for three months or longer, that meets the clinical definition of chronic insomnia according to the National Heart, Lung, and Blood Institute. At that point, the most effective treatment isn’t medication. It’s a structured behavioral program called cognitive behavioral therapy for insomnia, which combines the stimulus control techniques described above (the 20-minute rule, bed-sleep association training) with strategies for managing the anxiety that builds around sleep itself. It typically runs four to eight sessions and has a higher long-term success rate than sleeping pills.
Short-term sleeplessness often has an obvious trigger: stress, travel, schedule changes, caffeine too late in the day, or an uncomfortable sleep environment. Addressing the trigger directly, combined with the techniques in this article, resolves most cases without any professional intervention.

