The most common reason you can’t fall asleep is that your brain is too alert when you need it to wind down. This state, called hyperarousal, can be triggered by stress, screen use, caffeine, an uncomfortable room, or simply spending too much wakeful time in bed. The good news is that most causes are identifiable and fixable without medication.
Your Brain Is Too Alert at Bedtime
Falling asleep requires your brain to shift from an active, alert state into a quieter one. When that transition doesn’t happen, it’s usually because something is keeping your nervous system revved up. Researchers call this hyperarousal, and it shows up in measurable ways: elevated cortisol levels, faster brain wave activity, higher heart rate, and a subjective feeling of tension or racing thoughts. If you’ve ever lain in bed feeling “tired but wired,” that’s hyperarousal.
Stress is the most obvious trigger, but it’s not the only one. Anything that activates your fight-or-flight system close to bedtime, whether it’s an argument, an intense workout, scrolling anxiety-inducing news, or even worrying about not sleeping, can keep your brain locked in alert mode.
Your Bed May Have Become a Wakefulness Cue
If you regularly lie in bed for long stretches unable to sleep, your brain starts associating the bed with being awake. This is called conditioned arousal, and it creates a frustrating cycle: you go to bed hoping to sleep, but the environment itself triggers alertness because your brain has learned that “bed” means “lie here thinking.”
Stanford Health Care uses a technique called stimulus control to break this pattern. The core idea is simple: only use your bed for sleep, and if you’re not asleep within roughly 15 to 20 minutes, get up and do something calm in another room until you feel drowsy. Over time, this retrains your brain to treat the bed as a cue for sleep rather than wakefulness. It sounds counterintuitive, but it’s one of the most effective components of cognitive behavioral therapy for insomnia.
Caffeine Lasts Longer Than You Think
Caffeine has a half-life of four to six hours. That means if you drink a cup of coffee at 3 p.m., half the caffeine is still circulating in your bloodstream at 9 p.m. The quarter that remains at midnight is still enough to interfere with sleep onset in many people. One study found that consuming caffeine even six hours before bedtime measurably disrupted sleep, sometimes without the person realizing it.
Sensitivity varies. Some people metabolize caffeine quickly and can drink espresso after dinner with no issues. Others are slow metabolizers who feel the effects well into the evening from an afternoon tea. If you’re struggling to fall asleep and you consume any caffeine after noon, that’s the first thing worth experimenting with.
Screens Delay Sleep in Two Ways
Using a phone, tablet, or laptop before bed affects sleep through both light exposure and mental stimulation. The blue-enriched light from screens suppresses your body’s production of melatonin, the hormone that signals it’s time to sleep. But the content matters too. Scrolling social media, reading emails, or watching fast-paced video keeps your brain engaged and alert right when it needs to be winding down.
A meta-analysis found that higher screen time was significantly associated with longer sleep onset latency, meaning it takes measurably longer to fall asleep. Each additional hour of screen time was also linked to about 18 fewer minutes of total sleep per night. The combination of suppressed melatonin and mental stimulation makes screens one of the most impactful modern sleep disruptors.
Alcohol Disrupts the Second Half of the Night
Alcohol feels like it helps you sleep because it does make you fall asleep faster. It acts as a sedative in the first few hours, increasing deep sleep and suppressing dream sleep. But once your body processes the alcohol, typically three to four hours later, the effect reverses. During the second half of the night, wakefulness increases, sleep becomes fragmented, and you cycle between stages more frequently. This is why drinking often leads to waking at 3 or 4 a.m. and struggling to get back to sleep.
Even moderate amounts, two or three drinks, are enough to produce this pattern. If you regularly have a nightcap and find yourself lying awake in the early morning hours, the alcohol is almost certainly the cause.
Your Bedroom May Be Too Warm
Your body temperature naturally drops as you fall asleep, and a warm room works against that process. The Cleveland Clinic recommends keeping your bedroom between 60 and 67°F (15 to 19°C) for optimal sleep. That’s cooler than most people keep their homes during waking hours.
If your room is above this range, your body has to work harder to cool itself down, which delays sleep onset. A fan, lighter bedding, or simply turning down the thermostat can make a noticeable difference. Cool extremities (hands and feet) actually help your core temperature drop faster, so counterintuitively, warming your feet with socks before bed can speed up the process.
What You Eat and When You Eat It
Meal timing and composition have a measurable effect on how quickly you fall asleep. In a controlled study, men who ate a high-glycemic meal (one that causes a faster rise in blood sugar, like jasmine rice) four hours before bedtime fell asleep in about 9 minutes on average, compared to 17.5 minutes for those who ate a low-glycemic meal. Timing mattered too: the same high-glycemic meal eaten just one hour before bed took about 14.5 minutes instead of 9.
This doesn’t mean you should load up on sugar before bed. The takeaway is that eating a carbohydrate-containing meal about four hours before your planned bedtime, rather than right before, gives your body the metabolic conditions that promote drowsiness. Going to bed very hungry can also keep you awake, since low blood sugar triggers alerting hormones.
When It Becomes Chronic Insomnia
Occasional sleepless nights are normal, especially during stressful periods. But if you have difficulty falling asleep (or staying asleep) at least three nights per week for three months or longer, and it’s affecting your daytime functioning, that meets the clinical definition of insomnia disorder. At that point, the problem has usually moved beyond a single fixable cause and involves a self-reinforcing cycle of anxiety about sleep, conditioned arousal, and compensating behaviors like napping or sleeping in that make the pattern worse.
The most effective treatment for chronic insomnia is cognitive behavioral therapy for insomnia (CBT-I), which addresses both the behavioral habits and the thought patterns that keep the cycle going. It works better than sleeping pills in the long run because it targets the root causes rather than masking them. Many people see improvement within four to six sessions, and the results tend to last because you’re building skills rather than relying on a substance.
A Practical Checklist for Tonight
- Temperature: Set your bedroom to 60 to 67°F (15 to 19°C).
- Caffeine: Stop all caffeine at least six hours before bedtime. If you’re sensitive, make it eight to ten.
- Screens: Put devices away 30 to 60 minutes before you want to sleep.
- Alcohol: Avoid drinking within three to four hours of bedtime.
- Food: Eat your last substantial meal about four hours before bed, not right before.
- The 20-minute rule: If you’re not asleep within about 20 minutes, get out of bed. Do something quiet in dim light and return only when you feel sleepy.
- Consistent timing: Wake up at the same time every day, including weekends. This is the single most powerful way to stabilize your sleep drive.