What to Do When You Can’t Fall Asleep at Night

If you’re lying in bed unable to fall asleep, the most effective thing you can do right now is stop trying. Sleep is an involuntary process, and the harder you chase it, the more it resists. What works instead is a combination of calming your nervous system, redirecting your thoughts, and setting up your environment so your body can do what it already knows how to do.

Stop Trying to Sleep

This sounds counterintuitive, but it’s one of the most well-supported techniques in sleep medicine. It’s called paradoxical intention: instead of pressuring yourself to fall asleep, you deliberately try to stay awake. Lie in bed with the lights off, keep your eyes gently open, and tell yourself your only job is to stay awake. Don’t do anything stimulating to keep yourself up. Just resist the urge to close your eyes.

The reason this works is that insomnia feeds on performance anxiety. You’re monitoring yourself, wondering why you’re still awake, calculating how many hours of sleep you’ll get if you fall asleep right now. That mental pressure activates your stress response, which is the opposite of what your body needs. When you give yourself permission to stay awake, that pressure evaporates, and sleep tends to arrive on its own.

Scramble Your Thoughts

Racing thoughts are the most common barrier to falling asleep. A technique called cognitive shuffling can short-circuit that loop. Pick any random word, like “garden.” Then for each letter, spend five to eight seconds thinking of unrelated words that start with that letter. For G: giraffe, grape, guitar. For A: airplane, avocado, anchor. The words don’t need to connect to each other. In fact, keeping them random is the whole point.

This works because your brain can’t simultaneously generate random imagery and sustain an anxious narrative. The task is just engaging enough to occupy your thinking mind but too meaningless to keep you alert. Most people don’t make it past the second or third letter before drifting off.

Slow Your Breathing Down

Your breathing rate directly controls how activated your nervous system is. When you’re stressed or alert, your breathing is shallow and fast. Deliberately slowing it down activates the calming branch of your nervous system, lowering your heart rate and relaxing your muscles.

The 4-7-8 technique is one of the simplest ways to do this. Breathe in through your nose for 4 seconds, hold for 7 seconds, then exhale slowly through your mouth for 8 seconds. The long exhale is the key. It forces your body into a state that’s incompatible with the alertness keeping you awake. Repeat this for three or four cycles. If 7 seconds of holding feels uncomfortable, shorten the hold and focus on making your exhale longer than your inhale.

Relax Your Body in Sequence

Progressive muscle relaxation is a physical technique that pairs well with breathing exercises. Start at your feet: curl your toes and arch your feet, hold the tension briefly, then release and let your feet sink into the mattress. Move slowly upward through your calves, thighs, buttocks, lower back, abdomen, upper back, shoulders, arms, hands, neck, jaw, and forehead. Tense each area for a few seconds, then let it go completely.

The military sleep method follows a similar principle but skips the tensing step. Lie on your back, close your eyes, and work from your forehead down to your toes, giving each body part conscious permission to relax. Focus on the sensation of heaviness. Soldiers reportedly trained themselves to fall asleep in two minutes using this method, though it takes most people a week or two of nightly practice before it becomes reliable.

Check Your Room Temperature

Your body needs to drop its core temperature slightly to initiate sleep. If your bedroom is too warm, this process stalls. The ideal range for adult sleep is 60 to 67°F (15 to 19°C), which feels cooler than most people keep their homes during the day. If you don’t have a thermostat, try removing a layer of blankets or cracking a window. Even a small drop in room temperature can make a noticeable difference.

Put Your Phone Away

If you’ve been scrolling while trying to fall asleep, your phone is actively working against you. Screens emit light in the 446 to 477 nanometer range, which is the exact wavelength that suppresses your body’s sleep hormone most aggressively. Exposure to this blue-spectrum light is more than three times as potent at blocking that hormone compared to warmer-toned light. Night mode helps slightly, but the stimulation of reading content keeps your brain alert regardless of the color temperature. Put the phone face-down or in another room.

Get Up if Nothing Is Working

If you’ve been lying in bed for roughly 20 minutes and nothing is working, get out of bed. This is one of the core principles of sleep science: your brain should associate your bed with sleep, not with frustration. Go to another room, keep the lights dim, and do something quiet and unstimulating. Read a physical book, fold laundry, or listen to calm music. When you start feeling drowsy, go back to bed. Repeat this as many times as needed. It feels tedious the first few nights, but it retrains your brain to connect your bed with falling asleep rather than lying awake.

Consider Magnesium

If sleepless nights are becoming a pattern, magnesium is one of the gentler supplements worth trying. It appears to influence several brain chemicals involved in relaxation and sleep-wake regulation. The recommended upper limit for supplemental magnesium is 350 milligrams per day. The glycinate form is popular for sleep because it’s less likely to cause digestive issues than other forms. Take it about 30 to 60 minutes before bed. It’s not a knockout pill. Think of it more as something that lowers the threshold for sleep to happen.

When Sleeplessness Becomes a Pattern

Everyone has occasional bad nights. But if you’re struggling to fall asleep three or more nights per week and it’s been going on for three months or longer, that meets the clinical definition of insomnia disorder. At that point, the issue is less about any single night’s techniques and more about resetting your overall sleep patterns. The gold-standard treatment is a structured behavioral program (not medication) that adjusts your sleep schedule, addresses anxious thought patterns, and rebuilds your body’s natural sleep drive. It’s typically delivered over four to eight sessions and has a high success rate even for people who have struggled with sleep for years.

For tonight, though, start with the simplest fix: stop fighting it. Let go of the pressure, slow your breathing, and give your body room to do what it’s designed to do.