Why You Can't Sleep: The Science Behind Insomnia (And How to Fix It)
Why You Can't Sleep: The Science Behind Insomnia (And How to Fix It)
From stimulus control to sleep restriction — the evidence-based tools that actually work.
The connection between your bed and your brain
One of the most common — and least discussed — drivers of chronic insomnia is a process called conditioned arousal. Over time, if you regularly use your bed for activities other than sleep (scrolling your phone, watching TV, lying awake worrying), your brain learns to associate the bed with wakefulness. When you then try to sleep, the brain responds to the bed cue by firing up rather than winding down.
This is the same classical conditioning that made Pavlov's dog salivate at a bell. Your bed has become the bell — except the response it's triggering is alertness instead of sleep.
Stimulus control therapy
Stimulus control is a core component of Cognitive Behavioural Therapy for Insomnia (CBT-I) — the first-line clinical treatment for chronic insomnia recommended by the American College of Physicians and the American Academy of Sleep Medicine.
The principle: reserve the bed strictly for sleep and sex. If you're not asleep within approximately 20 minutes, get out of bed, go to a different room, and do something quiet until you feel sleepy. Then return to bed. Repeat as needed. Over time, the association between bed and sleep is re-established.
Sleep restriction therapy
Sleep restriction therapy (SRT) is another CBT-I component with strong evidence. If your time in bed consistently exceeds your actual sleep time, restricting time in bed to match actual sleep builds sleep pressure — increasing sleep depth and consolidation. As sleep efficiency (time asleep divided by time in bed) reaches 85% or above, time in bed is extended in small increments.
Meta-analyses have found large effect sizes for SRT on insomnia severity, sleep efficiency, and sleep onset latency. It is effective as a standalone treatment as well as part of CBT-I.
Sleep environment
Temperature: Keep your bedroom around 65°F (18°C). Core body temperature must drop to initiate sleep — a cool room supports this.
Light: Use blackout curtains or a sleep mask. Even low-level ambient light can suppress melatonin.
Sound: Earplugs or a white noise machine reduce disruptive sound without creating silence that feels unsettling.
Caffeine and sleep
Caffeine has a half-life of approximately 5–6 hours, meaning that half of the caffeine consumed at 3pm is still active at 9–10pm. Research from Henry Ford Hospital found that 400mg of caffeine taken 6 hours before bedtime reduced total sleep time by more than one hour. A general cutoff of 6 hours before target bedtime is recommended, with individual variation.
Note: decaf coffee is not caffeine-free. It typically contains 2–15mg per cup depending on brand and preparation method — sufficient to affect sleep-sensitive individuals when consumed late in the evening.
Morning light and circadian anchoring
Exposure to strong natural light within 30–60 minutes of waking is one of the most effective ways to anchor your circadian rhythm. Light suppresses residual melatonin, signals the start of the biological day, and begins the 16-hour countdown to natural sleepiness. Pairing this with water intake (after overnight fasting) supports full waking. What you do in the morning directly influences sleep quality that night.
Evening wind-down
Avoid screens or use blue-light-blocking glasses for at least one hour before bed. Avoid vigorous exercise within 2–3 hours of bedtime. Avoid spicy or high-sugar foods in the evening. Eliminate clock-watching — time anxiety significantly amplifies sleep-onset difficulty.
Cognitive restructuring
Dysfunctional beliefs about sleep ("I can't sleep", "I'll never function tomorrow") trigger stress responses that increase arousal and worsen insomnia. Reframing thoughts — "I'm not asleep right now, but I will be" — is a component of CBT-I's cognitive therapy element. A worry diary (writing down anxious thoughts before the wind-down hour) helps reduce pre-sleep rumination by externalising thoughts the brain is cycling through to avoid forgetting.
Relaxation techniques
Progressive muscle relaxation (PMR): systematically tense and release muscle groups from feet to face. Activates parasympathetic nervous system response.
4-7-8 breathing: inhale for 4 counts, hold for 7, exhale for 8. The extended exhale stimulates the vagus nerve and reduces arousal state.
Visualisation: detailed mental imagery of a calm, safe environment. Can be self-directed or guided via audio.
Drifa Ulfarsdottir is a Certified Sleep & Recovery Coach and founder of Sleep Hacker.