Around 850 million adults worldwide have insomnia, roughly 16% of the global population. If you’re lying awake wondering why sleep won’t come, the answer is rarely one thing. Sleep depends on a precise chain of biological signals, and modern life disrupts nearly every link. Here’s what’s actually happening when you can’t fall or stay asleep.
Your Brain Runs on a Sleep Timer
Sleep isn’t something your body simply “switches on.” It builds pressure throughout the day through a molecule called adenosine, a byproduct of your brain burning energy. The longer you’re awake, the more adenosine accumulates in the spaces between your brain cells. As levels rise, it gradually dials down the activity of brain regions that keep you alert while allowing sleep-promoting areas to take over. Think of it like a slowly filling hourglass that eventually tips you into drowsiness.
This system works alongside your circadian rhythm, a roughly 24-hour internal clock governed largely by light exposure. Your brain begins releasing melatonin, the hormone that signals nighttime, between about 9 p.m. and 7 p.m. (with wide individual variation). Cortisol, your primary alertness hormone, drops to its lowest levels at night and then spikes 20 to 30 minutes after you wake up, giving you that morning jolt. When these two systems, sleep pressure and circadian timing, fall out of sync, sleep suffers.
Screens Push Your Clock Back
Blue-enriched light from phones, tablets, and laptops directly interferes with melatonin production. Reading on a backlit screen before bed can reduce evening melatonin levels by about 55% and delay the onset of melatonin release by over 90 minutes. That means even if you feel tired, your brain hasn’t received the chemical signal that it’s time to sleep. You end up lying in the dark with a body that thinks it’s still early evening.
The effect isn’t limited to the moment you put the screen down. That 90-minute delay in melatonin onset can shift your entire sleep window later, making it harder to wake up on time and compressing the total hours you get. Over days and weeks, this creates a chronic mismatch between your biological clock and your alarm clock.
Stress Keeps Your Nervous System Online
One of the most studied explanations for chronic sleeplessness is hyperarousal: your body’s fight-or-flight system stays partially activated when it should be winding down. Brain wave recordings of people with insomnia show faster-than-normal electrical activity during the period just before sleep, a pattern associated with delayed sleep onset. Your brain is essentially too “busy” to transition into the slower wave patterns that mark the beginning of sleep.
Interestingly, it’s not that people with insomnia walk around in a constant state of high alert. Baseline measurements of heart rate, blood pressure, and stress hormones often look normal during calm daytime hours. The problem shows up in how the nervous system responds to stress. There’s an imbalance where the “go” branch of the nervous system overreacts while the “rest” branch underperforms, particularly during stressful periods. This is why you might sleep fine on vacation but lie awake for hours on a Sunday night before a demanding week.
Caffeine Lasts Longer Than You Think
Caffeine works by blocking adenosine receptors in the brain, essentially masking that building sleep pressure. The problem is its half-life ranges from 2 to 10 hours depending on your genetics, age, and liver function. For many people, half the caffeine from an afternoon coffee is still circulating at bedtime.
Research shows that 400 mg of caffeine (roughly two large coffees) consumed even six hours before bedtime significantly disrupts sleep compared to a placebo. If you’re sensitive to caffeine or metabolize it slowly, you may need to cut off intake even earlier. The tricky part is that caffeine doesn’t always make you feel wired. It can fragment your sleep architecture, reducing deep sleep without making it obvious that last afternoon cup was the culprit.
Your Bedroom May Be Working Against You
Your body needs to drop its core temperature slightly to initiate sleep, and a warm room makes that harder. Research on community-dwelling adults found that sleep was most efficient and restful when nighttime room temperature stayed between 20 and 25°C (68 to 77°F). Temperatures above or below that range correlated with more fragmented sleep and less time in restorative stages.
Noise and light matter too, but temperature is the factor people most often overlook. A room that feels comfortable while you’re reading or watching TV may still be too warm once you’re under blankets and your metabolism shifts toward sleep mode.
You Might Be Stealing Sleep From Yourself
Researchers have a name for the habit of staying up later than intended even when nothing is stopping you from going to bed: bedtime procrastination. It’s strongly linked to low self-regulation, the same trait that drives general procrastination in other areas of life. People who wake up early for work are especially prone to it, using late-night hours to reclaim personal time they didn’t get during the day.
The impact on sleep is measurable. Studies show a strong negative correlation between bedtime procrastination scores and total hours slept. Notably, there’s a distinction between delaying getting into bed and scrolling your phone after you’re already in bed. Delaying bedtime directly cuts into sleep duration, while in-bed procrastination is more tied to motivation and goal-setting around sleep. Both habits erode rest, but recognizing which one you do can help you target the right behavior.
Sleep Apnea and Other Hidden Disruptors
Sometimes poor sleep has a medical cause that no amount of sleep hygiene will fix. Obstructive sleep apnea, where your airway repeatedly collapses during sleep, is one of the most common. Severity is measured by how many times per hour your breathing partially or fully stops: 5 to 14 events per hour is classified as mild, 15 to 29 as moderate, and 30 or more as severe. Many people with sleep apnea don’t realize they have it because they don’t fully wake up during these episodes. They just feel unrested, foggy, or irritable during the day.
Restless legs syndrome, chronic pain, gastric reflux, and certain medications (especially some antidepressants, beta-blockers, and corticosteroids) can also fragment sleep without producing obvious symptoms at night. If you’ve addressed the behavioral and environmental factors and still can’t sleep well, a physical cause is worth investigating.
How Much Sleep You Actually Need
Adults between 18 and 64 need 7 to 9 hours per night. Teenagers need 8 to 10 hours, and older adults (65 and up) can function well on 7 to 8. These aren’t aspirational targets. They’re the range where cognitive performance, immune function, and metabolic health hold steady. Consistently falling below your range doesn’t just make you tired; it accumulates as sleep debt that affects memory consolidation, emotional regulation, and physical recovery.
The gap between knowing this and doing it is where most sleep problems live. The biology of sleep is simple enough: build adenosine pressure during the day, protect your melatonin signal at night, keep your stress response in check, and give yourself a cool, dark window long enough for 7 to 9 hours. The challenge is that almost every feature of modern life, from shift work to streaming services to caffeine culture, pushes against one or more of those requirements.