Why Can't I Fall Asleep? 8 Science-Backed Reasons Your Brain Won't Shut Off

Racing thoughts at bedtime aren't just annoying — they're a sign of specific physiological imbalances that are entirely fixable once you know what to look for.

✍️ By Tom Garfield 🩺 Reviewed by Dr. A. Patel, MD (Sleep Medicine) 📅 May 4, 2026 · 9 min read

Sleep onset insomnia — the inability to fall asleep within a reasonable time despite being in bed — affects about 1 in 3 adults at some point. The typical advice (put your phone away, drink chamomile tea, count sheep) addresses almost none of the underlying physiological reasons it happens. Let's fix that.

1

Elevated Evening Cortisol

Cortisol should drop sharply in the evening, allowing melatonin to rise. In people with HPA axis dysregulation — common in those under chronic stress — cortisol stays elevated into the night, directly suppressing melatonin and maintaining the brain in an alert state. This is "tired but wired" — the classic presentation.

What Helps: KSM-66 ashwagandha (600mg daily) has RCT evidence for reducing evening cortisol by 14–27%. Phosphatidylserine (400mg) blunts the cortisol response. Evening light avoidance is also critical.
2

Blue Light Suppression of Melatonin

The blue wavelength of light (400–490nm) emitted by screens directly suppresses melatonin production via retinal melanopsin cells — by up to 85% for 2 hours after exposure. This is not a metaphor about being "stimulated" by content. It's direct photochemical suppression of the sleep hormone.

What Helps: Amber-tinted blue light blocking glasses after sunset (the cheap ones work fine). Night mode on screens is insufficient — it only reduces, not eliminates, blue emission. Dim incandescent or red lighting in the 2 hours before bed.
3

Magnesium Deficiency

Magnesium is required for the activation of GABA receptors — the brain's primary "calm down" system. It also regulates the NMDA receptor and reduces cortisol release. Deficiency (affecting an estimated 50–80% of adults) produces restless legs, inability to physically relax, and racing thoughts at night.

What Helps: Magnesium glycinate (300–400mg elemental, 1 hour before bed) is the most bioavailable and sleep-specific form. Avoid magnesium oxide (poorly absorbed). Results typically within 1–2 weeks.
4

Too Much Caffeine, Too Late

Caffeine has a half-life of 5–7 hours — meaning a 3pm coffee leaves half its caffeine in your system at 8–10pm. It works by blocking adenosine receptors, preventing the brain from registering accumulated sleep pressure. Even if you "feel fine," caffeine significantly degrades sleep architecture (reducing deep sleep and REM) without you being aware of it.

What Helps: Caffeine cutoff by 1–2pm. For sensitive individuals, noon or earlier. If you absolutely need afternoon caffeine, L-theanine (200mg, 2:1 ratio with caffeine) blunts jitteriness without fully negating alertness.
5

Wrong Melatonin Dose or Timing

Most over-the-counter melatonin supplements contain 3–10mg — doses 10–50x higher than what the body naturally produces. High doses cause melatonin receptor desensitization, morning grogginess, and paradoxically poor sleep architecture. Melatonin is a timing signal, not a sleeping pill.

What Helps: Low-dose melatonin (0.3–0.5mg) taken 60–90 minutes before your target sleep time. This matches physiological production and shifts the circadian rhythm without desensitization.
6

Core Body Temperature Too High

Sleep onset requires a ~1–2°F drop in core body temperature. Anything that prevents this cooling — hot rooms, hot showers immediately before bed, vigorous evening exercise, or heavy meals — delays sleep onset. The optimal bedroom temperature for sleep is 65–68°F (18–20°C).

What Helps: Paradoxically, a warm bath or shower 60–90 minutes before bed actually speeds sleep onset by drawing blood to the extremities and accelerating core temperature drop. Keep the bedroom cool and dark.
7

Racing Thoughts / Hyperarousal

Psychophysiological insomnia involves conditioned arousal — the bed has become associated with wakefulness and mental activity through repeated nights of lying awake. The brain learns to be alert in bed. This is a classically conditioned response that requires behavioral intervention, not supplements.

What Helps: Stimulus control therapy (getting out of bed if awake >20 minutes, only using bed for sleep and sex) is the most effective intervention for conditioned arousal. Cognitive-behavioral therapy for insomnia (CBT-I) is the gold-standard treatment with better long-term outcomes than sleep medication.
8

Blood Sugar Instability

Falling blood sugar during the night triggers cortisol and adrenaline release to restore glucose levels. This can produce waking at 2–3am, difficulty falling back asleep, and vivid or anxiety-laden dreams. People who eat high-carbohydrate dinners followed by rapid glucose drops are particularly vulnerable.

What Helps: Eating a small protein/fat snack before bed (e.g., nut butter on a rice cake) stabilizes overnight blood glucose. Reducing simple carbohydrates at dinner. Berberine and cinnamon can help with overnight glucose stability.

Looking for the Best Sleep Supplement?

We ranked and reviewed 12 sleep supplements for 2025. Here's what actually works.

See Our Top Picks →