Why Can’t I Sleep? The Real Reasons and What Helps

Trouble falling or staying asleep usually comes down to one or more fixable problems: stimulants too late in the day, screens before bed, stress, an uncomfortable room, or an inconsistent schedule. Sometimes a medical condition like sleep apnea or chronic insomnia is the real culprit. The good news is that most causes of poor sleep respond well to straightforward changes, and understanding what’s working against you is the first step.

Your Brain Has Two Sleep Systems

Sleep isn’t a single switch. It depends on two systems working together. The first is sleep pressure: a chemical called adenosine builds up in your brain the longer you’re awake, gradually making you feel drowsier. It works by dialing down the brain’s arousal signals while ramping up sleep-promoting ones. This is why pulling an all-nighter makes you feel crushingly tired the next day, and why napping late in the afternoon can make it harder to fall asleep at night (you burned off some of that built-up pressure).

The second system is your circadian clock, a roughly 24-hour internal rhythm that tells your body when it’s time to be alert and when it’s time to wind down. As evening approaches, your brain releases melatonin, the hormone that signals darkness and primes your body for sleep. When these two systems align, you fall asleep easily. When something disrupts either one, you lie in bed staring at the ceiling.

Screens and Light Are Delaying Your Melatonin

Blue light from phones, tablets, and monitors falls in the 446 to 477 nanometer wavelength range, which is precisely the band that suppresses melatonin most effectively. Research in the Journal of Applied Physiology found that increasing intensities of blue LED light produced a dose-dependent drop in melatonin levels, meaning the brighter the screen and the closer it is to your face, the stronger the effect. Your brain interprets that light as “still daytime” and holds off on releasing the hormone you need to feel sleepy.

The practical fix is simple but hard to follow: dim your screens or put them away at least an hour before bed. Night mode filters help a little, but they don’t eliminate the problem. Bright overhead lights in your home have a similar effect, so switching to dim, warm-toned lamps in the evening gives your melatonin a chance to rise on schedule.

Caffeine Stays in Your System Longer Than You Think

A standard cup of coffee contains roughly 100 milligrams of caffeine, and a recent systematic review found that to avoid losing total sleep time, you should drink that cup at least 8.8 hours before bed. For higher-dose caffeine sources like pre-workout supplements (around 217 milligrams), the cutoff is even earlier: about 13.2 hours before bedtime. That means an afternoon coffee at 3 p.m. can still be affecting your sleep at 11 p.m., even if you don’t feel wired.

Caffeine works by blocking adenosine receptors in the brain, essentially masking the sleep pressure that should be building throughout the day. You don’t feel tired, but the pressure is still there, just hidden. Once the caffeine wears off, the adenosine floods in, which is why you crash. If you’re struggling to fall asleep, moving your last caffeine intake to before noon is one of the highest-impact changes you can make.

Alcohol Wrecks the Second Half of Your Night

A drink or two before bed might help you fall asleep faster, but the trade-off is brutal. Alcohol suppresses REM sleep (the stage tied to memory, emotional processing, and feeling rested) during the first half of the night. Then, as your body metabolizes the alcohol and blood alcohol levels drop, the second half of the night becomes fragmented. You wake up more often, shift between sleep stages more frequently, and spend more time in light sleep.

The result is that even after a full eight hours in bed, you wake up feeling unrested. If you drink regularly in the evening and can’t figure out why your sleep is poor, this is likely a major factor.

Stress and Cortisol Keep You Wired at Night

Cortisol, your body’s primary stress hormone, normally peaks in the morning and drops to its lowest point at night. When you’re stressed, anxious, or ruminating, cortisol levels stay elevated into the evening. Research shows that higher cortisol is associated with lower sleep efficiency, less deep sleep, fewer REM periods, and more time spent awake after initially falling asleep.

This creates a frustrating cycle. Poor sleep raises stress, and stress makes sleep worse. The racing thoughts many people experience at bedtime aren’t just annoying; they’re a sign that your nervous system is still in alert mode when it should be powering down. Techniques that activate your body’s relaxation response, like slow breathing, progressive muscle relaxation, or writing down your worries before bed, can help break the pattern. They work not because they’re magic, but because they lower the physiological arousal that cortisol creates.

Your Bedroom Might Be Working Against You

Temperature matters more than most people realize. Your body needs to drop its core temperature slightly to initiate sleep, and a warm room fights that process. Sleep experts recommend keeping your bedroom between 60 and 67°F (15 to 19°C). If your room is warmer than that, you’re likely tossing and turning more, even if you don’t consciously feel hot.

Noise, light leaks, and an uncomfortable mattress all chip away at sleep quality too. Blackout curtains, earplugs or a white noise machine, and bedding that doesn’t trap heat are small investments that pay off nightly. Your bedroom should be cool, dark, and quiet, and ideally used only for sleep so your brain associates the space with winding down rather than scrolling or watching TV.

When It Might Be a Medical Issue

If you’ve cleaned up your sleep habits and still can’t sleep well, a medical condition could be involved. Obstructive sleep apnea is one of the most common and underdiagnosed. It causes your airway to partially or fully collapse during sleep, leading to brief awakenings you may not even remember. The signs to watch for include loud snoring (loud enough to be heard through a closed door), daytime fatigue or sleepiness, and anyone noticing that you stop breathing or gasp during sleep. Risk factors include a BMI over 35, a neck circumference of 16 inches or larger, being over 50, having high blood pressure, and being male.

Clinical insomnia is another possibility. It’s defined as difficulty falling asleep, staying asleep, or waking too early, with symptoms occurring at least three nights per week for three months or longer, despite having adequate opportunity to sleep. The key distinction is that it causes significant daytime distress or functional impairment. Occasional bad nights don’t qualify. If your sleep troubles have persisted for months and are affecting your daily life, a sleep evaluation can identify whether insomnia, sleep apnea, or another condition is driving the problem.

Practical Changes That Actually Help

Adults need 7 to 9 hours of sleep per night, but hitting that target depends on building habits that support both your sleep pressure and your circadian rhythm. The most effective changes, roughly in order of impact:

  • Fix your wake time. Getting up at the same time every day, including weekends, is the single strongest anchor for your circadian clock. A consistent wake time naturally makes you sleepy at a consistent bedtime.
  • Cut caffeine by early afternoon. Eight to nine hours before bed is the minimum buffer for a standard cup of coffee.
  • Dim lights and screens in the evening. Give your melatonin at least 60 minutes of low light before you want to fall asleep.
  • Cool your room. Aim for 60 to 67°F.
  • Limit alcohol. If you drink, finish at least three to four hours before bed.
  • Manage stress before bed. A brief wind-down routine, even just 10 minutes of slow breathing or journaling, helps lower cortisol.

If you want to try a supplement, magnesium glycinate at around 200 milligrams taken 30 minutes before bed has some evidence for improving sleep by helping regulate the neurotransmitters involved in calming the nervous system. It’s not a knockout pill, but it can nudge things in the right direction. Avoid magnesium oxide, which primarily acts as a laxative and is less useful for sleep.

Most people who struggle to sleep don’t have a single dramatic cause. It’s usually a combination of factors, each one shaving off a little bit of sleep quality until the cumulative effect becomes impossible to ignore. The upside is that fixing even two or three of these factors often produces a noticeable improvement within a week or two.