Why Can't You Sleep? 9 Common Causes (and How to Fix Each One)

You usually can't sleep because something is keeping your brain in "alert" mode even though your body is tired. The most common triggers are evening stress hormones, screen light, late caffeine, an irregular schedule, alcohol, a warm bedroom, low magnesium, late meals, and the anxiety loop of trying too hard to sleep. Each one has a fix.

Key takeaways

  • Feeling tired but unable to sleep is a sign of high arousal, not low sleep pressure. You need to lower arousal, not add more tiredness.
  • Caffeine taken even 6 hours before bed cut total sleep by about an hour in a controlled study.
  • Screens, alcohol, and a bedroom above 68°F all delay or fragment sleep.
  • Racing thoughts respond best to a fixed wake time, an evening "worry window," and getting out of bed after 20 minutes awake.
  • See a doctor if trouble sleeping happens 3 or more nights a week for 3 months, or if you snore loudly or gasp at night.

Why you can't sleep even when you're tired

Sleep depends on two systems. The first is sleep pressure, a chemical called adenosine that builds the longer you stay awake. The second is your arousal system, driven by stress hormones, light, and mental activity.

If you are exhausted but wide awake at midnight, sleep pressure is high but arousal is higher. Your brain has to believe it is safe to switch off, and the nine causes below all keep that switch stuck "on."

9 reasons you can't sleep (and what to do about each)

1. Stress and high evening cortisol

Cortisol should bottom out around midnight. In people with chronic insomnia, it stays elevated. A study in the Journal of Clinical Endocrinology and Metabolism found that insomniacs had higher 24-hour cortisol than good sleepers, with the biggest gap in the evening and first half of the night.

Fix: Schedule a 10-minute "worry window" around 7 p.m. Write down what is bothering you and the next step for each item, then do something low-effort until bed. Slow breathing (4 seconds in, 6 out) for 5 minutes at bedtime helps settle the nervous system.

2. Screens and blue light

Light is the strongest signal your body clock receives. In a Harvard study published in PNAS, people who read on a light-emitting tablet before bed took longer to fall asleep, produced less melatonin, and were less alert the next morning than people who read a printed book.

Fix: Dim all lights 60 minutes before bed and keep phones out of reach. Bright morning light within an hour of waking matters just as much, because it anchors your clock for the following night.

3. Caffeine timing

Caffeine blocks adenosine, the chemical that makes you sleepy. Its half-life is 5 to 6 hours, so a 3 p.m. coffee is still half-active at 9 p.m. Researchers at Henry Ford Hospital gave people 400 mg of caffeine 0, 3, or 6 hours before bed. Even the 6-hour dose cut total sleep by more than an hour.

Fix: Set a caffeine cutoff at least 8 hours before bedtime. For an 11 p.m. bedtime, that means nothing after 3 p.m. Watch for hidden sources: pre-workout drinks, dark chocolate, and some pain relievers.

4. An irregular sleep schedule

Your circadian clock expects sleep at roughly the same time every night. Going to bed at 10 p.m. one night and 1 a.m. the next creates jet lag without travel, and the clock stops sending a clear "sleep now" signal.

Fix: Pick a fixed wake time and hold it seven days a week, even after a bad night. Bedtime can vary a little; wake time should not. See our guide on how much sleep you need by age.

5. Alcohol

A drink makes you fall asleep faster, which is why so many people use it. But a review in Alcoholism: Clinical and Experimental Research found that at every dose, alcohol increases sleep disruption in the second half of the night and suppresses REM.

Fix: Stop drinking at least 3 hours before bed, and keep it to one. If you rely on alcohol to fall asleep, the underlying cause (usually stress or schedule) needs its own fix.

6. Bedroom too warm

Core body temperature has to drop about 1 to 2°F for sleep to start, and a warm room fights that drop. Research in the Journal of Physiological Anthropology shows heat exposure increases wakefulness and reduces both deep sleep and REM.

Fix: Aim for 60 to 68°F. A warm shower 1 to 2 hours before bed helps too: it pulls blood to the skin, which speeds the cooling that follows. See do you sleep better in the cold for details.

7. Low magnesium

Magnesium helps regulate GABA, the brain's main calming neurotransmitter, and supports muscle relaxation. Per the NIH Office of Dietary Supplements, about 48% of Americans get less magnesium from food than the estimated average requirement. A small double-blind trial in older adults with insomnia found 500 mg daily for 8 weeks improved sleep time, efficiency, and time to fall asleep versus placebo.

Fix: Eat more pumpkin seeds, spinach, black beans, and almonds. If you supplement, glycinate is a well-tolerated form less likely to upset your stomach than oxide.

8. Late, heavy meals

A large meal within 2 to 3 hours of bed raises core temperature, can trigger reflux, and keeps digestion active when your body wants to wind down. In a controlled study in the Journal of Clinical Sleep Medicine, higher sugar and saturated fat intake predicted more arousals and less deep sleep that same night.

Fix: Finish dinner at least 3 hours before bed. If hungry later, a small protein-and-fiber snack (Greek yogurt, a banana with peanut butter) is fine.

9. The anxiety loop

This is the one that turns a bad week into chronic insomnia. You lie down, check the clock, calculate how little sleep you will get, and your heart rate climbs. Your brain starts to link the bed with frustration. Racing thoughts at night are usually a symptom of this loop, not a separate problem.

Fix: Turn the clock away. If you are awake for what feels like 20 minutes, get up, sit somewhere dim, and do something boring until sleepy. This "stimulus control" method is a core part of cognitive behavioral therapy for insomnia (CBT-I), which the American Academy of Sleep Medicine rates as first-line treatment.

Quick reference: cause, sign, fix

CauseTelltale signFix
Stress / high cortisolWired at bedtime, tense jaw or shouldersEvening worry window, slow breathing 5 min
Screens / blue lightScrolling in bed, "second wind" at 11 p.m.Dim lights 60 min before bed, phone out of room
Caffeine timingAfternoon coffee or energy drinksCutoff 8+ hours before bed
Irregular scheduleWeekend sleep-ins, varying bedtimesFixed wake time, 7 days a week
AlcoholFall asleep fast, wake at 2 to 4 a.m.Stop 3+ hours before bed, max one drink
Warm bedroomKicking off covers, sweating60 to 68°F, warm shower 1 to 2 hours before bed
Low magnesiumMuscle twitches, cramps, low-fiber dietMagnesium-rich foods or glycinate supplement
Late mealsReflux, feeling too full, night sweatsDinner 3+ hours before bed, light snack only
Anxiety loopClock-watching, dread of bedtimeHide the clock, get up after 20 min awake

How to fall asleep tonight: a simple plan

If you also wake in the middle of the night, our guide on why you wake up at 3 a.m. covers the second half of the night.

Where a supplement fits

A supplement will not fix caffeine at 4 p.m. or a bright phone in bed. But once the basics are in place, some people find a low-dose formula helps them settle faster. Yu Sleep combines 0.9 mg of melatonin with magnesium glycinate, GABA, L-theanine, and apigenin, ingredients that target the arousal side rather than forcing sleep. See the full list and doses on our ingredients page.

When to see a doctor

Occasional bad nights are normal. Talk to a doctor if you have trouble sleeping 3 or more nights a week for 3 months, if you snore loudly or wake gasping, if your legs feel restless at night, or if daytime sleepiness affects driving. These can point to sleep apnea, restless legs syndrome, thyroid issues, or depression.

Considering Yu Sleep?

Read our full breakdown before you buy.

Read the Yu Sleep review

Frequently asked questions

Why can't I sleep even when I'm tired?

Tiredness means sleep pressure is high, but sleep also requires low arousal. Stress hormones, light, caffeine, or worry can keep your brain alert even when your body is exhausted. Lowering arousal (dim lights, cool room, slow breathing, no clock-watching) works better than trying to get more tired.

What should I do if I can't sleep at all?

Get out of bed after about 20 minutes awake. Sit in dim light and do something boring until drowsy, then return to bed. Keep your normal wake time the next morning and skip long naps so sleep pressure builds for the following night.

How do I stop racing thoughts at night?

Move the thinking earlier. Spend 10 minutes in the early evening writing down worries and one next step for each. If thoughts return at bedtime, remind yourself they are already on the list. Slow breathing with a longer exhale helps quiet the mind.

Is it bad to stay in bed if you can't sleep?

Yes, if it happens often. Lying awake teaches your brain to link the bed with frustration. Sleep specialists recommend leaving the bed when you are clearly awake and returning only when sleepy.

What is the fastest way to fall asleep?

There is no instant trick. What works for most people is a cool, dark room, no screens for an hour, a fixed wake time, and a short relaxation routine. Falling asleep in 10 to 20 minutes is normal.

Can low magnesium cause insomnia?

Low magnesium is linked to poorer sleep quality, and small trials show supplementation can help people who are deficient. It is not a cure for stress- or schedule-driven insomnia, but it is worth checking if your diet is low in leafy greens, nuts, and beans.

Sources

  1. Vgontzas AN, et al. Chronic insomnia is associated with nyctohemeral activation of the hypothalamic-pituitary-adrenal axis. Journal of Clinical Endocrinology and Metabolism, 2001. https://pubmed.ncbi.nlm.nih.gov/11502812/
  2. Chang AM, et al. Evening use of light-emitting eReaders negatively affects sleep, circadian timing, and next-morning alertness. PNAS, 2015. https://www.pnas.org/doi/10.1073/pnas.1418490112
  3. Drake C, et al. Caffeine effects on sleep taken 0, 3, or 6 hours before going to bed. Journal of Clinical Sleep Medicine, 2013. https://pubmed.ncbi.nlm.nih.gov/24235903/
  4. Ebrahim IO, et al. Alcohol and sleep I: effects on normal sleep. Alcoholism: Clinical and Experimental Research, 2013. https://onlinelibrary.wiley.com/doi/abs/10.1111/acer.12006
  5. Okamoto-Mizuno K, Mizuno K. Effects of thermal environment on sleep and circadian rhythm. Journal of Physiological Anthropology, 2012. https://pubmed.ncbi.nlm.nih.gov/22738673/
  6. NIH Office of Dietary Supplements. Magnesium: Fact Sheet for Health Professionals. https://ods.od.nih.gov/factsheets/Magnesium-HealthProfessional/
  7. St-Onge MP, et al. Fiber and saturated fat are associated with sleep arousals and slow wave sleep. Journal of Clinical Sleep Medicine, 2016. https://jcsm.aasm.org/doi/full/10.5664/jcsm.5384
  8. Abbasi B, et al. The effect of magnesium supplementation on primary insomnia in elderly: a double-blind placebo-controlled clinical trial. Journal of Research in Medical Sciences, 2012. https://www.researchgate.net/publication/249321801
  9. Edinger JD, et al. Behavioral and psychological treatments for chronic insomnia disorder in adults: an AASM clinical practice guideline. Journal of Clinical Sleep Medicine, 2021. https://pubmed.ncbi.nlm.nih.gov/33164742/