Why Can’t I Fall Asleep at Night? Causes and Fixes

Trouble falling asleep usually comes down to one or more of your body’s sleep signals being blocked, delayed, or overridden. Your brain relies on a coordinated sequence of events to initiate sleep: a buildup of a chemical called adenosine that creates “sleep pressure,” a drop in core body temperature, and a rise in melatonin that signals darkness to your internal clock. When any of these gets disrupted by light exposure, stimulants, stress, or an out-of-sync schedule, falling asleep becomes a struggle. The good news is that most of the common causes have straightforward, evidence-backed fixes.

How Your Brain Decides It Is Time to Sleep

Two systems work together to make you drowsy at night. The first is sleep pressure, driven largely by adenosine, a molecule that accumulates in the brain the longer you stay awake. Adenosine builds up in key brain regions, and this accumulation serves as a strong indicator of how long you have been conscious.1PubMed. Regulation of sleep homeostasis mediator adenosine by basal forebrain glutamatergic neurons Think of it like a pressure gauge: the longer your day, the higher the pressure to sleep. Caffeine works by blocking the receptors adenosine normally binds to, which is why a late coffee can leave you wired even when you are exhausted.

The second system is your circadian clock, a roughly 24-hour rhythm governed by the suprachiasmatic nucleus in your brain. As evening approaches, your clock triggers the pineal gland to begin secreting melatonin under dim-light conditions. The onset of that melatonin secretion, sometimes called “dim light melatonin onset,” is the most reliable marker of where your internal clock sits.2PubMed. Dim light melatonin onset (DLMO): a tool for the analysis of circadian phase in human sleep and chronobiological disorders When both systems align, meaning high adenosine pressure meets a well-timed melatonin rise, falling asleep feels effortless. When they do not, you lie in bed staring at the ceiling.

Blue Light and Screen Use After Dark

One of the most common reasons melatonin gets delayed is artificial light, especially the blue-enriched light from phones, tablets, and laptops. Specialized cells in your retina containing a pigment called melanopsin are highly sensitive to short-wavelength blue light. When stimulated, these cells send signals along a pathway directly to the suprachiasmatic nucleus, which in turn tells the pineal gland to hold off on melatonin production.3PubMed Central. Blue Light and Digital Screens Revisited: A New Look at Blue Light from the Vision Quality, Circadian Rhythm and Cognitive Functions Perspective In practical terms, scrolling through your phone in bed pushes your internal “it is nighttime” signal later, making it harder to fall asleep at your intended bedtime.

This does not mean all light is equally bad. Warm-toned, dim lighting has a far smaller effect on melatonin than the cool-white light from a screen held close to your face. Night-mode filters on devices reduce some blue wavelengths, but they do not eliminate the problem entirely because the overall brightness still registers with those melanopsin cells. The simplest fix is to dim your environment in the hour or two before bed and avoid screens during that window if you can.

Your Body Temperature Needs to Drop

A detail that surprises many people: falling asleep is tightly linked to a decline in core body temperature. Your body naturally begins cooling in the evening as part of its circadian rhythm. Blood flow shifts toward your hands and feet, where heat radiates out through the skin, pulling warmth away from your core.4Scientific Reports. Enhanced conductive body heat loss during sleep increases slow-wave sleep and calms the heart The steeper and faster this core temperature decline, the more readily you fall asleep and the more deep sleep you get in the early part of the night.5PubMed. Nighttime drop in body temperature: a physiological trigger for sleep onset?

This is why a hot bedroom works against you. If your environment keeps your core temperature elevated, that drop signal never arrives properly. It is also why exercising heavily right before bed can delay sleep onset: you have just raised your core temperature, and your body needs time to shed the heat. A cooler room, lighter bedding, and timing vigorous exercise earlier in the day all work with this mechanism rather than against it.

Caffeine Lasts Longer Than You Think

Most people know that coffee keeps you awake, but many underestimate how long it lingers. Caffeine’s average half-life in the body is about five to six hours, meaning that half the caffeine from an afternoon coffee is still circulating at bedtime. And there is a significant genetic component: some people metabolize caffeine quickly, while others process it much more slowly. Research has found that caffeine-sensitive individuals show a significantly longer half-life for the drug compared to people who are tolerant.6PubMed. Differences in pharmacokinetic and electroencephalographic responses to caffeine in sleep-sensitive and non-sensitive subjects

If you are someone who can drink espresso after dinner and sleep like a rock, your liver enzymes are clearing caffeine efficiently. If you cannot, even a 2 p.m. cup may be keeping your adenosine receptors blocked well past your intended bedtime. There is no universal cutoff time that works for everyone, but if you suspect caffeine is the problem, pushing your last cup to the morning for a week is a useful experiment.

Alcohol Disrupts Sleep Even When It Feels Like It Helps

A nightcap is one of the most persistent sleep myths. Alcohol can make you feel drowsy and may even reduce the time it takes to fall asleep on some nights.7PubMed Central. Altered sleep architecture following consecutive nights of presleep alcohol But the trade-off is poor sleep quality. Studies consistently show that alcohol before bed increases deep sleep in the first part of the night while suppressing REM sleep. In the second half of the night, deep sleep drops off and lighter, more fragmented sleep takes over.8PubMed Central. The Acute Effects of Alcohol on Sleep Architecture in Late Adolescence The result is that you may fall asleep quickly but wake up feeling unrested, and you may also wake multiple times in the early morning hours as alcohol’s sedative effect wears off.

Over consecutive nights of drinking before bed, sleep architecture remains disrupted. Deep sleep continues to be front-loaded and reduced later in the night, and REM sleep stays suppressed during the first third of each night.9SLEEP. Altered sleep architecture following consecutive nights of presleep alcohol For people who drink regularly as a sleep aid, this creates a pattern where sleep feels shallow and unrestorative even though they seem to be “passing out” easily.

Racing Thoughts and Nighttime Anxiety

Your mind does not always cooperate with your body’s readiness for sleep. Many people find that the moment they lie down, their thoughts start spiraling: replaying the day, worrying about tomorrow, or fixating on something unresolved. This is more than just an annoyance. Research shows that people who tend toward repetitive negative thinking take longer to fall asleep and have particular difficulty pulling their attention away from negative thoughts once in bed.10PubMed. Shorter sleep duration and longer sleep onset latency are related to difficulty disengaging attention from negative emotional images in individuals with elevated transdiagnostic repetitive negative thinking

The mechanism is partly physiological. Anxiety and rumination activate the sympathetic nervous system, the “fight or flight” branch, which raises heart rate, tenses muscles, and keeps core body temperature slightly elevated. All of these work directly against the relaxation signals your body needs for sleep onset. This is why telling yourself to “just relax” rarely works. Your nervous system is doing the opposite.

Medical Conditions Worth Ruling Out

If you have tried the usual sleep hygiene tips and still cannot fall asleep, a handful of medical conditions are worth considering. Restless legs syndrome is characterized by an overwhelming urge to move your legs, often accompanied by tingling or aching sensations. The symptoms are provoked by lying still and tend to be worst in the evening, which makes them a direct barrier to falling asleep.11JAMA. Restless Legs Syndrome: A Review If you regularly feel an irresistible need to shift your legs when you get into bed, talk to a doctor rather than assuming it is just restlessness.

Delayed sleep-wake phase disorder is another underrecognized condition, especially in younger adults. People with this condition have a circadian clock that runs significantly later than the conventional schedule, making it genuinely difficult to fall asleep before 2 or 3 a.m. and equally hard to wake up early. Prevalence is estimated at roughly 3% of the general population.12PubMed Central. Delayed sleep-wake phase disorder and its related sleep behaviors in the young generation Interestingly, about 40% of diagnosed cases do not even show a measurably delayed circadian rhythm on objective testing, suggesting that behavioral and psychological factors play a large role in maintaining the pattern.12PubMed Central. Delayed sleep-wake phase disorder and its related sleep behaviors in the young generation If you consistently cannot fall asleep until very late but sleep normally once you do, this is worth exploring with a sleep specialist. Treatments typically involve carefully timed light exposure and melatonin rather than generic “go to bed earlier” advice.

Hormonal Shifts and Sleep Across Life Stages

Reproductive hormones have a surprisingly strong influence on sleep that often goes unacknowledged. Across a woman’s lifespan, progesterone and estrogen fluctuations affect sleep architecture. Progesterone’s breakdown products interact with brain receptors involved in promoting sleepiness, and changes in menstrual cycle phase can alter sleep patterns in measurable ways.13Journal of the Endocrine Society. Sleep Disturbances Across a Woman’s Lifespan: What Is the Role of Reproductive Hormones? Many women notice that falling asleep becomes harder in the days before their period, during perimenopause, and after menopause. These are not imagined difficulties; they are driven by real shifts in the hormonal environment that supports sleep.

Teenagers also face a biological shift. Puberty pushes the circadian clock later, which is why many adolescents genuinely cannot feel sleepy at 10 p.m. no matter how early they set their alarm. This is a physiological change, not laziness, and it collides with school schedules in ways that create chronic sleep deprivation for a large number of teens.

A Warm Bath or Shower Before Bed

One of the most reliable and underused sleep fixes is a warm bath or shower one to two hours before bedtime. This works because of the temperature mechanism described earlier. Warm water dilates blood vessels near the skin’s surface, especially in the hands and feet. After you step out, heat rapidly dissipates from those areas, pulling your core temperature down faster than it would decline on its own. A systematic review and meta-analysis found that passive body heating in water at about 40 to 42.5 degrees Celsius, when scheduled one to two hours before bed, significantly shortened the time it took to fall asleep.14PubMed. Before-bedtime passive body heating by warm shower or bath to improve sleep: A systematic review and meta-analysis A study comparing different bathing durations found that a longer soak produced a larger temperature drop afterward and reduced sleep onset latency more than a quick shower.15PubMed Central. Effects of bathing-induced changes in body temperature on sleep

You do not need a full bath. Even ten minutes in a warm shower can trigger enough vasodilation to speed the subsequent cooldown. The key is the timing: too close to bedtime and your core temperature is still elevated when you lie down, which works against you.

Stimulus Control and Retraining Your Bed Association

If you have spent weeks or months lying awake in bed, your brain may have learned to associate the bed with wakefulness rather than sleep. Stimulus control is a behavioral technique designed to reverse that association. The basic rules are simple: go to bed only when sleepy, get out of bed if you have not fallen asleep within about 15 to 20 minutes, use the bed only for sleep, and wake at the same time every morning regardless of how the night went.

Multiple systematic reviews have found that stimulus control on its own produces meaningful improvements in how long it takes to fall asleep and how much total sleep people get, compared to no treatment.16PubMed. Stimulus control for insomnia: A systematic review and meta-analysis When compared to other active treatments, stimulus control performs about equally well, suggesting it is as effective as more complex therapy approaches.17PubMed. The effectiveness of stimulus control in cognitive behavioural therapy for insomnia in adults: A systematic review and network meta-analysis It is also the foundation of cognitive behavioral therapy for insomnia, which is now considered the first-line treatment for chronic sleep difficulties ahead of medication.

Slow Breathing Techniques

Breathing exercises before bed are one of the few interventions that directly target the nervous system imbalance behind anxious wakefulness. Slow, paced breathing activates the parasympathetic nervous system, the branch responsible for calming you down, and increases vagal activity. In people with insomnia, practicing slow breathing for about 20 minutes before bed reduced the time to fall asleep, decreased nighttime awakenings, and improved sleep efficiency.18PubMed. Efficacy of paced breathing for insomnia: enhances vagal activity and improves sleep quality

A systematic review examining slow breathing techniques before bed confirmed that these practices shift the balance between the sympathetic and parasympathetic branches of the nervous system.19PubMed. Slow breathing techniques before bedtime and the effects on sleep: A systematic review You do not need to follow a specific branded method. Simply slowing your exhale so it is longer than your inhale, aiming for roughly six breaths per minute, is enough to engage the vagal response. This is free, has no side effects, and works especially well for people whose main barrier to sleep is a racing mind.

Getting Melatonin Timing and Dose Right

Melatonin supplements are widely available, but most people take them wrong. The typical pattern is swallowing a high-dose tablet right before climbing into bed. Research suggests a different approach works better. A dose-response meta-analysis found that melatonin’s sleep-promoting effects peak at about 4 mg per day and that taking it roughly three hours before your desired bedtime optimizes its effect on how quickly you fall asleep, compared to the more common practice of taking it 30 minutes before bed.20PubMed. Optimizing the Time and Dose of Melatonin as a Sleep-Promoting Drug: A Systematic Review of Randomized Controlled Trials and Dose-Response Meta-Analysis

Other research has recommended administration around 6 p.m., or one to two hours before the intended bedtime, to help regulate sleep cycles.21PubMed Central. Melatonin dose and timing: Do we have it right? The specific ideal window varies depending on when your natural melatonin onset occurs, but the broad takeaway is the same: earlier than most people think, and at a lower dose than many products on store shelves. Melatonin at 10 mg, a common over-the-counter dose in some markets, has not been shown to work better than 4 mg and may cause grogginess the following morning. If you have been taking melatonin without much success, adjusting the timing before increasing the dose is worth trying.

Why Your Natural Bedtime May Not Match Society’s Schedule

Not everyone is biologically wired to fall asleep at 10 or 11 p.m. Chronotype, your natural tendency toward being a morning person or a night owl, is partly genetic and shifts with age. A study of Hadza hunter-gatherers in Tanzania revealed just how variable natural sleep timing can be. Over 20 days of monitoring, all members of the group were simultaneously asleep for only 18 minutes total. Throughout the nighttime period, a median of eight individuals were awake at any given time, meaning someone was awake or in light sleep during 99.8% of the sampled night hours.22PubMed Central. Chronotype variation drives night-time sentinel-like behaviour in hunter–gatherers This variation in chronotype was linked to age, with older adults tending to sleep earlier and younger adults later.

The takeaway is that a wide range of natural sleep timing exists in human populations, and it likely served an evolutionary purpose: someone was always on watch. Modern life, with its fixed work and school start times, punishes people whose clocks run late. If you consistently cannot fall asleep until well past midnight but sleep perfectly well when allowed to follow your own schedule, your difficulty may not be a disorder. It may be a mismatch between your biology and the demands of your calendar. In that case, interventions like strategically timed bright light exposure in the morning and melatonin in the early evening can help nudge your clock earlier over time, though they work gradually and require consistency.

What You Eat May Matter More Than You Expect

Diet is an overlooked contributor to sleep quality. Research examining the relationship between macronutrient intake and sleep has found that changes in carbohydrate and fat consumption can alter sleep architecture, particularly the amount of deep sleep and REM sleep obtained.23PubMed Central. Effects of Diet on Sleep Quality Very high-carbohydrate meals close to bedtime may promote faster sleep onset, but the overall evidence is still evolving. Large, rich meals late at night can cause discomfort that keeps you awake, and spicy or acidic foods may worsen reflux when you lie down, both of which are practical barriers to falling asleep that no supplement or breathing technique can solve.

The interaction between food timing and your circadian clock also matters. Eating very late can shift your peripheral circadian clocks, which exist in the liver and gut, out of sync with the master clock in your brain. This misalignment can make sleep less restorative even if you manage to fall asleep on time. Finishing your last substantial meal at least two to three hours before bed is a reasonable guideline that aligns with what we know about both digestion and circadian biology.

Tracey Harjo

Tracey Harjo is a staff writer at Biology Insights who covers sleep health and common sleep disorders. She has worked in publishing since 2014, beginning her career as a copy editor for a commercial book publisher after earning a bachelor's degree in English. Harjo lives in Manchester, New Hampshire.