How Come I Can’t Sleep? Reasons From Stress to Apnea

If you’re lying awake wondering why sleep won’t come, the answer usually falls into one of a few categories: your body’s stress system is running too hot, something in your environment or daily habits is interfering with your brain’s sleep signals, or an underlying sleep disorder is disrupting your rest without you realizing it. Most people dealing with sleeplessness can trace it to a specific, fixable cause once they know where to look.

Your Brain Has a Sleep Switch, and It Can Get Stuck

Sleep isn’t something your brain passively falls into. It’s an active process driven by a chemical called adenosine that builds up in your brain the longer you stay awake. Think of it like a pressure gauge: the more adenosine accumulates, the stronger the urge to sleep becomes. Adenosine works by dialing down your brain’s arousal centers, the networks that keep you alert and engaged, while simultaneously activating the sleep-promoting region in the front of your brain.

When this system works properly, you feel progressively sleepier as the evening goes on, and falling asleep feels effortless. But several things can jam this process. Caffeine is the most obvious one. It blocks adenosine from reaching its receptors, so even though sleep pressure is building, your brain can’t detect it. Caffeine’s half-life is typically 3 to 6 hours, meaning half the caffeine from your afternoon coffee is still active in your system hours later. A 2024 clinical trial published in the journal SLEEP found that 400 mg of caffeine (roughly the amount in a large coffee shop drink) should not be consumed within 12 hours of bedtime, while a smaller 100 mg dose can be tolerated up to 4 hours before sleep.

Stress Keeps Your Body on Alert

That “tired but wired” feeling, where your body is exhausted but your mind races the moment your head hits the pillow, has a measurable biological basis. Your stress hormones, particularly cortisol, are supposed to drop to their lowest levels during deep sleep. But in people with chronic sleep problems, cortisol spikes during nighttime wake periods. A clinical study measuring hormone levels throughout the night found that cortisol was lowest during deep sleep and highest during extended periods of wakefulness, and that people with insomnia showed increased bursts of cortisol release throughout the night.

This creates a vicious cycle. Stress makes it harder to fall asleep, and poor sleep makes your stress response more reactive the following day. Your body essentially stays in a low-grade fight-or-flight mode that directly opposes the calm state needed for sleep onset. Anxiety, work pressure, financial worry, or even just ruminating about not sleeping can all keep this system activated.

Screens Are Shifting Your Internal Clock

Your brain relies on light cues to decide when it’s time to be awake and when it’s time to sleep. Blue light, the wavelength emitted most strongly by phones, tablets, and computer screens, is particularly effective at suppressing melatonin, the hormone that signals nighttime to your body. A Harvard experiment comparing blue light exposure to green light of equal brightness found that blue light suppressed melatonin for about twice as long and shifted the body’s internal clock by 3 hours compared to 1.5 hours for green light.

This means scrolling your phone in bed isn’t just a distraction. It’s actively telling your brain that it’s still daytime. The effect is strongest with direct exposure at close range, which is exactly how most people use their devices before bed. Blue-light-filtering apps and glasses can reduce the impact, but putting screens away entirely in the hour before bed is more reliable.

Your Bedroom Might Be Working Against You

To fall asleep, your core body temperature needs to drop slightly. A room that’s too warm prevents this natural cooling process. Sleep specialists at the Cleveland Clinic recommend keeping your bedroom between 60 and 67°F (15 to 19°C). If that sounds cold, it’s because most people keep their bedrooms warmer than what their biology prefers. A cooler room allows your body to release heat through your hands and feet, which is one of the physical triggers for sleep onset.

Noise and light matter too, but temperature is the factor people most often overlook. If you’re waking up sweating or kicking off covers in the middle of the night, your room is likely too warm.

Alcohol Wrecks Your Sleep Quality

Alcohol might help you fall asleep faster, but it significantly damages the quality of sleep you get. It suppresses REM sleep, the phase of sleep critical for memory, emotional processing, and feeling rested. Research from the American Academy of Sleep Medicine found that even in people who had stopped drinking for extended periods, changes to REM sleep regulation persisted, suggesting that long-term alcohol use can cause lasting alterations to sleep architecture.

Alcohol also reduces deep, slow-wave sleep and increases the amount of light stage 1 sleep you get. The result is that even after a full night in bed, you wake up feeling unrested. Even moderate drinking in the evening, a glass or two of wine with dinner, can fragment your sleep in the second half of the night as your body metabolizes the alcohol.

Sleep Apnea: The Hidden Cause

Some people can’t figure out why they’re exhausted despite spending enough time in bed. If that sounds familiar, sleep apnea is worth considering. Obstructive sleep apnea causes your airway to partially or fully collapse during sleep, interrupting breathing dozens or even hundreds of times per night. You may not remember these awakenings, but they prevent your body from reaching the deep, restorative stages of sleep.

Snoring is the most recognized symptom, but it’s far from the only one. According to the Mayo Clinic, other signs include waking up gasping or choking, morning headaches, a dry mouth or sore throat upon waking, needing to urinate frequently during the night, excessive daytime sleepiness, difficulty focusing, mood changes like irritability or depression, and decreased interest in sex. Sleep apnea is common, underdiagnosed, and treatable, but it requires a sleep study to confirm.

When Sleeplessness Becomes Insomnia

Everyone has bad nights. The clinical threshold for insomnia disorder, as defined by the DSM-5, is difficulty falling asleep, staying asleep, or waking too early at least 3 nights per week for 3 months or longer, with noticeable effects on your daytime functioning. If your sleep problems meet that pattern, the most effective treatment isn’t medication. It’s a structured behavioral approach called CBT-I (cognitive behavioral therapy for insomnia), which retrains the habits and thought patterns that perpetuate sleeplessness.

Short-term sleep disruptions from stress, travel, or schedule changes are normal and usually resolve on their own. The key distinction is whether poor sleep is a temporary blip or a pattern that’s affecting your energy, mood, and ability to function during the day.

Practical Changes That Actually Help

If you’re looking for things to try tonight, start with the factors that have the strongest evidence behind them. Cut caffeine after the morning, especially if you’re a slow metabolizer (and most people don’t know their caffeine metabolism speed, so earlier is safer). Keep your bedroom cool, dark, and quiet. Stop using screens at least 30 to 60 minutes before you want to fall asleep. Avoid alcohol within 3 to 4 hours of bedtime.

Magnesium supplementation has some clinical support. A double-blind trial in older adults found that magnesium supplementation for 8 weeks significantly increased sleep duration and decreased the time it took to fall asleep. The forms most commonly studied are magnesium glycinate and magnesium oxide, and typical trial doses are around 500 mg of elemental magnesium daily.

Consistency matters more than any single change. Going to bed and waking up at roughly the same time every day, including weekends, reinforces your circadian rhythm and makes sleep onset more predictable. Your brain learns when to start winding down based on routine, and irregular schedules undermine that signal.