If you’re lying awake right now wondering why sleep won’t come, you’re not alone, and there’s almost certainly a specific reason. Trouble sleeping usually comes down to one or more fixable factors: what you consumed today, what’s on your mind, what your bedroom feels like, or an underlying condition you haven’t identified yet. Here’s how to figure out which one applies to you.
Your Brain’s Sleep Switch
Sleep isn’t something you drift into passively. It’s an active process controlled by a tiny cluster of cells in your brain called the suprachiasmatic nucleus, which acts like a master clock. When darkness falls, this clock signals your pineal gland to release melatonin, the hormone that makes you feel drowsy. In the morning, it triggers cortisol and other hormones that wake you up. These two systems work in opposition: when one is high, the other should be low.
Anything that disrupts this balance can keep you awake. Bright light at the wrong time, stress hormones that won’t quiet down, stimulants still circulating in your blood. The good news is that once you identify the disruptor, the fix is usually straightforward.
Caffeine Stays in Your System Longer Than You Think
Caffeine has a half-life of three to six hours, meaning half the caffeine from your afternoon coffee is still active in your body up to six hours later. A 2024 clinical trial published in the journal Sleep found that 100 mg of caffeine (roughly one small cup of coffee) can be consumed up to four hours before bed without significantly affecting sleep. But a larger dose of 400 mg, about the amount in a large coffee shop drink, needs a full 12-hour buffer before bedtime to avoid disrupting your sleep.
If you’re having trouble falling asleep and you drink coffee, tea, energy drinks, or even dark chocolate in the afternoon or evening, that’s the first thing to change. Many people underestimate how much caffeine they’re consuming. A single energy drink can contain 200 to 300 mg.
Alcohol Helps You Fall Asleep, Then Wakes You Up
A drink or two before bed might make you feel drowsy, but alcohol is one of the most common hidden causes of poor sleep. As your body metabolizes alcohol during the night, it creates a withdrawal effect that can jolt you awake at 2 or 3 a.m. This is called rebound insomnia, and it’s a well-documented phenomenon.
Alcohol also reshapes your sleep architecture. You may get slightly more deep sleep early in the night, but you lose it later, along with REM sleep, the phase where dreaming occurs and your brain consolidates memories. Most of your REM sleep normally happens in the second half of the night, which is exactly when alcohol’s disruptive effects peak. If you regularly wake up in the middle of the night after drinking, this is why.
Your Phone Is Suppressing Melatonin
The light from screens isn’t just “bright.” It’s the specific type of light that interferes most with sleep. Research published in the Proceedings of the National Academy of Sciences found that the wavelength most effective at suppressing melatonin is around 480 to 483 nanometers, which falls squarely in the blue-light range emitted by phones, tablets, and laptops. At high enough intensity, this light can suppress melatonin production by up to 95%.
This doesn’t mean glancing at your phone for 30 seconds will ruin your night. But scrolling in bed for an hour with the screen close to your face sends a strong “it’s daytime” signal to your brain’s master clock. If you can’t avoid screens before bed, using a warm-toned night mode and keeping the brightness low helps, though putting the phone down entirely is more effective.
Anxiety and the “Wired but Tired” Feeling
If your body feels exhausted but your mind won’t stop racing, the problem is likely your nervous system. Anxiety, stress, and worry activate your sympathetic nervous system, the same fight-or-flight response that would kick in if you encountered a threat. This floods your body with alerting signals that directly oppose sleep.
In people with chronic sleep problems, this sympathetic overdrive doesn’t just happen at night. Research shows that when normal deep sleep is repeatedly disrupted, the body’s stress response stays elevated around the clock: high during sleep, still high when awake. It becomes a self-reinforcing cycle where poor sleep increases daytime stress, which makes the next night’s sleep worse.
One physiological trick that can help break this cycle: warming your hands and feet. Studies on insomnia patients have found that gently warming the extremities (with socks, a warm bath, or a heating pad) shortens the time it takes to fall asleep. The warmth signals your hypothalamus that it’s safe to shift into sleep mode.
Your Bedroom Might Be Too Warm
Your body temperature needs to drop slightly to initiate sleep, and a hot room works against that process. A study of community-dwelling adults found that sleep quality was best when the bedroom temperature stayed between 20 and 25°C (68 to 77°F). Once the temperature climbed above 25°C, sleep efficiency dropped by 5 to 10%, a clinically meaningful decline.
If your room runs warm, a fan, lighter bedding, or cracking a window can make a noticeable difference. Cooler is generally better for sleep, though going below 68°F can also become uncomfortable enough to wake you.
Sleep Apnea: The Condition You Might Not Know You Have
An estimated 83.7 million American adults are living with obstructive sleep apnea, a condition where the airway repeatedly collapses during sleep. That translates to about 32% of adults over 20, with higher rates in men (39%) than women (26%). More than half of cases are mild, meaning many people have no idea they’re affected.
Sleep apnea doesn’t just cause snoring. It fragments your sleep dozens or even hundreds of times per night as your brain briefly wakes you to reopen your airway. You may not remember these awakenings, but you’ll feel their effects: unrefreshing sleep, morning headaches, daytime fatigue, and difficulty concentrating. If someone has told you that you snore loudly, gasp, or stop breathing in your sleep, sleep apnea is worth investigating. It’s diagnosed through a sleep study, which can now often be done at home.
When Sleeplessness Becomes Insomnia
Everyone has bad nights. But if you’re struggling to fall asleep, stay asleep, or you’re waking up too early at least three nights per week for three months or more, that meets the clinical definition of chronic insomnia. The difficulty has to cause real daytime problems like fatigue, mood changes, or trouble functioning.
This distinction matters because chronic insomnia typically doesn’t resolve on its own. The brain essentially learns to associate bed with wakefulness, and that pattern becomes self-sustaining even after the original trigger (a stressful period, a medical issue, a schedule change) has passed.
What Actually Works for Chronic Sleep Problems
If your sleep problems have persisted for weeks or months, the most effective treatment isn’t a pill. A systematic review of 23 randomized trials found that cognitive behavioral therapy for insomnia (CBT-I) outperformed sleep medications on nearly every measure: it improved sleep efficiency more, reduced nighttime wakefulness more, and lowered overall insomnia severity more than drugs alone. Even combining medication with CBT-I didn’t produce better results than CBT-I by itself.
CBT-I works by retraining your brain’s relationship with sleep. It typically involves restricting your time in bed to match how much you’re actually sleeping, eliminating habits that reinforce wakefulness, and addressing the thought patterns that keep you alert at night. It’s usually done over four to eight sessions with a trained therapist, though digital CBT-I programs are also available and have shown strong results.
Sleep medications can help in the short term, but they tend to lose effectiveness over time and don’t address the underlying problem. For most people with ongoing insomnia, behavioral treatment produces more durable results.
A Quick Checklist for Tonight
- Caffeine: Stop at least 8 to 12 hours before bed if you’re sensitive, or limit yourself to a small amount no later than 4 hours before sleep.
- Alcohol: If you drink, finish at least 3 to 4 hours before bed and notice whether you still wake at 2 or 3 a.m.
- Screens: Put them away 30 to 60 minutes before bed, or at minimum use a warm-toned night mode at low brightness.
- Temperature: Keep your bedroom between 68 and 77°F (20 to 25°C).
- Stress: If racing thoughts are the problem, try warming your hands and feet, slow breathing, or getting out of bed and doing something quiet until you feel sleepy.
- Consistency: Go to bed and wake up at the same time every day, including weekends. This is the single most powerful way to strengthen your body’s internal clock.