Why Can’t I Sleep? What’s Actually Keeping You Awake

The most common reason you can’t sleep is that your brain is too activated to let go. Insomnia researchers call this “hyperarousal,” a state where your body stays revved up at the exact time it should be winding down. Studies of people with insomnia show elevated heart rates, higher levels of the stress hormone cortisol, and faster brain activity right around the time they’re trying to fall asleep. But stress isn’t the only culprit. Your bedroom, your habits, what you ate or drank, and sometimes an underlying health issue can all keep you staring at the ceiling.

Your Brain Won’t Shut Off

Sleep requires your nervous system to shift from alert mode into a calmer state. When you’re stressed, anxious, or mentally wound up, your body pumps out cortisol and keeps your heart rate elevated. That’s the opposite of what needs to happen. Your brain essentially treats bedtime as another moment requiring vigilance, so it refuses to power down.

This doesn’t have to be dramatic, full-blown anxiety. Replaying a conversation from work, running through tomorrow’s to-do list, or worrying about not sleeping itself can be enough to sustain that low-grade arousal. The irony is cruel: the harder you try to force sleep, the more alert your brain becomes.

Screens and Light Are Fooling Your Body Clock

Your body decides when to feel sleepy largely based on a hormone called melatonin, which rises in the evening as darkness signals that it’s time to rest. Any light suppresses melatonin, but blue light from phones, tablets, and laptops is especially powerful. In a Harvard experiment, 6.5 hours of blue light exposure suppressed melatonin for about twice as long as green light of the same brightness and shifted the body’s internal clock by 3 hours compared to 1.5 hours for green light.

Even dim light can interfere. A level of brightness as low as eight lux, roughly twice what a nightlight puts out, is enough to affect melatonin secretion. If you’re scrolling your phone in bed or falling asleep with the TV on, your brain is getting a signal that it’s still daytime. The standard recommendation is to avoid bright screens two to three hours before bed. Red-toned light is the least disruptive option if you need some light in the evening.

Caffeine and Alcohol Are Working Against You

Caffeine blocks a brain chemical called adenosine that naturally builds up pressure to sleep the longer you’re awake. When caffeine is occupying those receptors, you simply don’t feel as tired as your body actually is. The half-life of caffeine, the time it takes for your body to clear just half of it, is typically 4 to 6 hours but can stretch anywhere from 2 to 12 hours depending on your metabolism. That means a coffee at 3 p.m. could still have half its caffeine circulating in your system at 9 p.m.

Alcohol is trickier because it feels like it helps. It does shorten the time it takes to fall asleep and initially pushes you into deeper sleep. But during the second half of the night, as your body finishes processing the alcohol, there’s a rebound effect: you wake up more often, cycle through sleep stages erratically, and spend less time in the restorative REM phase. This is why a night of drinking often ends with you wide awake at 3 or 4 a.m., even though you fell asleep quickly.

Your Bedroom Might Be the Problem

Your body needs to drop its core temperature slightly to initiate sleep. A room that’s too warm works directly against that process. Sleep specialists recommend keeping your bedroom between 60 and 67°F (15 to 19°C). If that sounds cold, it’s worth experimenting: many people who struggle to fall asleep find that simply lowering the thermostat or swapping to lighter bedding makes a noticeable difference.

Noise, an uncomfortable mattress, a partner who snores, or a pet that moves around can also fragment your sleep without fully waking you. You may not remember these disruptions in the morning, but they prevent you from cycling through deeper sleep stages.

Late Workouts Can Backfire

Exercise generally improves sleep quality, but timing matters. High-intensity exercise like interval training done less than one hour before bed has been shown to delay sleep onset and reduce sleep quality. Vigorous activity raises your core body temperature and heart rate, both of which need to come back down before your body is ready to sleep. If evening is the only time you can exercise, moderate activity like walking or gentle yoga is a safer bet, or aim to finish intense workouts at least a couple of hours before bed.

Hormonal Changes, Especially in Women

If you’re a woman in your 40s or 50s and sleep has recently gotten worse, hormonal shifts are a likely factor. During perimenopause, estrogen and progesterone levels fluctuate and eventually decline. Estrogen helps regulate body temperature, so as it drops, hot flashes and night sweats become more common, both of which jolt you awake. Progesterone has natural sedative properties, so losing it means lighter sleep, more nighttime awakenings, and more difficulty falling asleep in the first place.

These changes can start years before periods actually stop, so many women don’t connect their new sleep problems to hormones. Thyroid disorders, which are also more common in women, can cause similar disruption.

When It Might Be Something Medical

Sometimes the inability to sleep is a symptom of a separate condition. Obstructive sleep apnea is one of the most common and most underdiagnosed. Your airway partially or fully collapses during sleep, interrupting breathing for at least 10 seconds at a time, sometimes dozens of times per hour. The hallmark signs are loud snoring, gasping during sleep (often noticed by a partner), morning headaches, and excessive daytime sleepiness despite spending enough time in bed. A neck circumference larger than 16 inches is another risk factor. Many people with sleep apnea think they have insomnia because they wake up repeatedly, but the underlying cause is mechanical, not psychological.

Depression, chronic pain, restless legs syndrome, and gastroesophageal reflux can all disrupt sleep as well. If your sleeplessness has persisted for months and nothing you’ve tried at home has helped, an underlying condition is worth investigating.

Nutritional Gaps That Affect Sleep

Magnesium plays a role in calming the nervous system by activating GABA receptors, which reduce excitability in the brain. Data from a long-running study found that people with the highest magnesium intake were about 30% more likely to report good sleep quality compared to those with the lowest intake, at least among people without depression. Magnesium is found in nuts, seeds, leafy greens, and whole grains. Many adults don’t get enough of it, though supplements are widely available and generally well tolerated.

How Chronic Insomnia Is Defined

Everyone has a bad night here and there. Clinically, insomnia becomes a diagnosable disorder when you have trouble falling asleep, staying asleep, or waking too early at least three nights per week for three months or more, and it’s causing real problems during the day, whether that’s difficulty concentrating, mood changes, or impaired performance at work.

If that describes your situation, the most effective long-term treatment is cognitive behavioral therapy for insomnia, often abbreviated CBT-I. It works by addressing both the thought patterns and the behaviors that keep insomnia going. Unlike sleeping pills, which relieve symptoms temporarily, CBT-I targets the root causes. The Mayo Clinic notes that sleeping pills are unlikely to resolve insomnia on their own and carry risks including dependence, withdrawal symptoms, and next-day grogginess. CBT-I takes consistent practice and can actually make sleep worse for a short stretch at the beginning, but its positive effects tend to last well beyond the treatment period, with no harmful side effects.

CBT-I is available through therapists who specialize in sleep, and several app-based versions have also shown strong results for people who can’t access in-person care.