Why Can’t I Sleep? Common Causes and Real Fixes

Trouble sleeping usually comes down to one or more fixable problems: your body’s internal clock is off, your brain won’t quiet down, or something in your environment or routine is working against you. Most people who search “why can I not sleep” aren’t dealing with a rare disorder. They’re dealing with a combination of habits, stress, and physical factors that stack up until falling asleep feels impossible.

How Your Body Decides When to Sleep

Two systems work together to control when you feel sleepy and when you feel alert. The first is sleep pressure: the longer you stay awake, the stronger your body’s drive to sleep becomes. This is why pulling an all-nighter makes you desperate for sleep by the following evening. A chemical called adenosine builds up in your brain throughout the day, creating that pressure, and sleep clears it out.

The second system is your circadian clock, a roughly 24-hour cycle that creates peaks and dips in alertness regardless of how long you’ve been awake. This clock responds primarily to light. When these two systems are aligned, you feel a strong wave of sleepiness at night. When they’re misaligned, from irregular schedules, jet lag, or late-night light exposure, your brain can be wired at midnight even though you’ve been up for 16 hours.

Stress and an Overactive Brain

The most common reason people can’t fall asleep is that their mind won’t shut off. This isn’t just a feeling. Research from Harvard Medical School describes insomnia as a state of “hyperarousal,” where the brain and body are physiologically activated at the exact time they should be winding down. People in this state show elevated heart rates, higher levels of the stress hormone cortisol, and more fast-frequency brain activity around the time they’re trying to fall asleep.

Cortisol normally drops in the evening to make way for sleep. But when you’re anxious, ruminating about work, or dealing with chronic stress, cortisol stays elevated. Your body reads that signal as “stay alert.” It doesn’t matter how tired you feel. If your stress response is running, sleep gets blocked. This is why you can be exhausted all day and then suddenly feel wide awake the moment your head hits the pillow. The quiet and stillness remove distractions, leaving your racing thoughts front and center.

Caffeine Stays in Your System Longer Than You Think

Caffeine has a half-life of three to six hours, meaning half of it is still circulating in your blood up to six hours after your last cup. But the effects on sleep extend well beyond that window. A clinical trial found that 400 mg of caffeine (roughly the amount in two large coffees) consumed 12 hours before bedtime still delayed how quickly people fell into sustained sleep by about 15 minutes. At four hours before bed, sleep onset was delayed by over 25 minutes, and the overall structure of sleep shifted in measurable ways.

If you’re sensitive to caffeine, even a single afternoon cup can be the difference between falling asleep at 11 p.m. and staring at the ceiling until 1 a.m. The tricky part is that caffeine tolerance varies enormously between people, so a cutoff that works for your partner may not work for you. A reasonable starting point is stopping all caffeine by early afternoon and seeing if your sleep improves over a week or two.

Alcohol Wrecks Your Sleep Quality

Alcohol is deceptive. It can make you feel drowsy and fall asleep faster, but it disrupts the architecture of your sleep in ways that leave you worse off. Even a low dose, roughly two standard drinks, reduces REM sleep, the stage most important for memory, emotional processing, and feeling rested the next day. The disruption gets progressively worse with more drinks.

Higher doses (around five or more standard drinks) may shorten the time it takes to fall asleep, but this actually makes the subsequent REM disruption even more severe. The result is a pattern many people recognize: you pass out quickly after drinking, then wake up at 3 or 4 a.m. feeling alert, restless, or anxious. That’s your brain rebounding from the sedative effect and struggling to recover the sleep stages it lost.

Screens and Light Exposure at Night

Your circadian clock uses light as its primary time signal, and blue wavelengths, the kind emitted heavily by phones, tablets, and computer screens, are the most disruptive at night. Blue light suppresses melatonin, the hormone that tells your brain it’s time to sleep, more powerfully than other types of light. During the day, this same blue light boosts attention, reaction time, and mood. At night, it convinces your brain that it’s still daytime.

Harvard Health recommends avoiding bright screens for two to three hours before bed. If that feels unrealistic, at minimum dim your screen brightness and use a warm-tone night mode. But screens aren’t just a light problem. Scrolling social media or reading the news also keeps your brain in an engaged, stimulated state, compounding the hyperarousal issue.

Your Bedroom May Be Too Warm

Your core body temperature needs to drop slightly for sleep to begin. A bedroom that’s too warm interferes with this process. The Cleveland Clinic recommends keeping your room between 60 and 67°F (15 to 19°C). That’s cooler than most people set their thermostat. For babies and toddlers, the ideal range is slightly higher, between 65 and 70°F.

If you regularly wake up sweating or kicking off covers, your room is probably too warm. A fan, lighter bedding, or simply turning the thermostat down a few degrees can make a noticeable difference within a night or two.

Medical Conditions That Disrupt Sleep

If you snore loudly, wake up with headaches, feel exhausted despite spending enough time in bed, or frequently need to urinate at night, obstructive sleep apnea could be the cause. This condition causes your airway to repeatedly collapse during sleep, pausing your breathing sometimes dozens of times per hour. Risk factors include a thick neck (greater than 17 inches for men, 16 for women), being overweight, chronic nasal congestion, thyroid disorders, and a family history of the condition. Sleep apnea is diagnosed based on the number of breathing interruptions per hour: five to 15 is mild, 15 to 30 is moderate, and over 30 is severe.

Other medical causes of poor sleep include restless legs syndrome (an uncomfortable urge to move your legs at night), chronic pain conditions, acid reflux that worsens when lying down, and thyroid imbalances. Depression and anxiety are both strongly linked to insomnia, sometimes as a cause and sometimes as a consequence, creating a cycle that feeds itself.

Magnesium and Nutrient Gaps

Magnesium helps regulate the balance between excitatory and calming chemical messengers in the brain. If you’re low in magnesium, the balance can tip toward the excitatory side, contributing to anxiety, racing thoughts, and difficulty settling into sleep. Magnesium also plays a role in melatonin production, so a deficiency can affect your sleep-wake cycle directly.

People who experience nighttime leg cramps or restless legs may benefit the most from magnesium supplementation. Experts at Mayo Clinic suggest trying it nightly for about three months to see if sleep onset or sleep maintenance improves. Magnesium is found in nuts, seeds, leafy greens, and whole grains, but many people don’t get enough from diet alone.

What Actually Fixes Chronic Insomnia

The most effective long-term treatment for chronic insomnia is a structured approach called Cognitive Behavioral Therapy for Insomnia, or CBT-I. It works by retraining the habits and thought patterns that keep insomnia going. Typical components include restricting time in bed to match the amount of sleep you’re actually getting (which sounds counterintuitive but rebuilds sleep pressure), eliminating clock-watching, and addressing the anxiety that builds around bedtime.

CBT-I is usually completed in four to eight sessions and produces lasting results because it addresses root causes rather than masking symptoms. Sleep medications can help in the short term, but they don’t teach your brain to sleep on its own, and many carry risks of dependence or next-day grogginess.

For most people, the fix isn’t a single change. It’s identifying which two or three factors from this list are stacking up against you and addressing them together: cut caffeine earlier, cool the room down, put the phone away sooner, and deal with the stress that’s keeping your brain in overdrive. Sleep problems that have built up over weeks or months rarely resolve in a single night, but consistent changes typically produce noticeable improvement within one to three weeks.