Three biological systems do most of the work of getting you a good night's sleep:
- the tryptophan-to-melatonin pathway — the internal clock that signals your body it's nighttime;
- the HPA axis — your stress-response system, which runs on the hormone cortisol;
- the GABA / adenosine system — your brain's brake, plus the sleep pressure that builds through the day.
Stress, and the cortisol it floods your body with, works against all three at once — which is why stress-driven sleeplessness is so stubborn, and why "just relax" rarely fixes it on its own. This article walks through each system, how stress disrupts it, and what actually helps. (A fourth system, the gut barrier, feeds into the stress axis too — that's covered in how gut health affects sleep.)
- Chronic stress, through cortisol, disrupts all three sleep systems at once.
- Stress lowers melatonin indirectly by diverting tryptophan — its raw material — toward the kynurenine pathway instead of serotonin and melatonin.
- Stress weakens the brain's GABA "brake" and raises excitatory glutamate, producing the wired, racing-mind feeling the moment you lie down.
- Sleep pressure still builds normally, but hyperarousal overrides it — which is why you can be exhausted and still unable to sleep ("tired but wired").
- It's a loop: short or poor sleep raises the next day's cortisol, and elevated cortisol worsens sleep — so breaking the cycle at any point helps.
Under stress, your body reroutes the very raw material it uses to make melatonin. Tryptophan can become serotonin — and then melatonin — or it can be shunted down a separate "kynurenine" pathway. Stress hormones and inflammation tip that split toward kynurenine. Since only a small fraction of tryptophan ever heads toward serotonin to begin with, even a modest shift leaves less to build the night's melatonin.
Start with the stress system: the HPA axis
The clearest place to begin is the system stress acts on first. The HPA axis is your stress-response circuit, and its end product is cortisol. It's designed to run high in the morning — cortisol is part of what wakes you up — and to wind down through the evening so the other two systems can carry you into sleep. Under chronic stress, it doesn't wind down: cortisol stays elevated into the night.
Here's the key point. The stress system and the sleep systems run in parallel — they compete for control of the same nervous system at the same time, rather than politely taking turns. So lingering evening cortisol doesn't just delay sleep; it actively works against the melatonin clock and the GABA/adenosine brake while they're trying to do their jobs.
How stress lowers your melatonin
The first hit is to your raw material. Melatonin is built from serotonin, which is built from tryptophan. But tryptophan has two possible fates: toward serotonin and melatonin, or down the kynurenine pathway for other uses. Stress tips that fork toward kynurenine.
The mechanism is enzyme-level: cortisol switches on an enzyme (TDO) that pulls tryptophan into the kynurenine pathway, and inflammation switches on a related enzyme (IDO) that does the same. Under stress you tend to have both — elevated cortisol and low-grade inflammation — so both routes run. The more tryptophan diverted, the less reaches the production line for serotonin and melatonin. You don't feel this happening, but the night's melatonin is being built from a smaller supply than it should be.
Why your mind races the moment you lie down
The second hit is to your brakes. GABA is the brain's main inhibitory ("calm-down") neurotransmitter — the brake that lets neural activity settle. Stress weakens that brake on multiple fronts: it alters the GABA receptors themselves and lowers a natural neurosteroid (allopregnanolone) that normally makes those receptors more responsive. At the same time, stress raises excitatory glutamate activity. The balance tips away from calm and toward excitation.
This is the physiology behind the racing mind at lights-out. All day, activity masks the tipped balance. The moment you lie down in a dark, quiet room with nothing to do, there's nothing left to mask it — so the over-revved, under-braked state surfaces as thoughts that won't stop. It isn't a willpower failure. The brake is genuinely weaker than it should be, and the accelerator is genuinely pressed.
Tired but wired: why exhaustion isn't the same as sleepiness
Here's the part that confuses people most. The longer you're awake, the more sleep pressure you build — driven by adenosine, which accumulates through the day and makes you progressively sleepier. Stress does not switch that off. The pressure to sleep keeps building normally.
The problem is that the stress system's arousal sits on top of that pressure and overrides it. You can carry a full day's genuine sleep drive and still be unable to act on it, because the "am I safe?" alarm is louder than the "it's time" signal. Sleep scientists describe chronic insomnia as round-the-clock hyperarousal, and that's exactly the "tired but wired" experience. It also runs as a loop — deep sleep normally helps switch the stress axis off, so when stress steals your deep sleep, the next day's cortisol runs higher, making the following night harder still.
The stress–sleep loop, and the inflammation amplifier
None of these effects happen in isolation. Stress, poor sleep, and low-grade inflammation reinforce one another. Short or fragmented sleep raises next-day cortisol and inflammatory signaling; that inflammation feeds the same tryptophan-diverting enzyme (IDO) that drains melatonin's raw material, and it nudges baseline cortisol higher; higher cortisol disrupts the next night's sleep. Irregular eating, alcohol, and a stressed gut can add to that inflammatory tone, quietly raising the floor the stress system operates from. The encouraging flip side: because it's a loop, you don't have to fix everything at once. Improving any single link tends to ease the others.
The modern stress pattern
Everyday life compresses several stressors into the same window: work deadlines, caregiving, financial pressure, irregular schedules, and a culture of pushing through. The trouble is that the most common coping behaviors physically amplify the stress–sleep mechanism rather than relieving it.
- Caffeine to power through raises arousal in the same direction as cortisol — and because it lingers for hours, an afternoon or evening dose is still active when you're trying to sleep on an already over-aroused nervous system.
- Alcohol to "unwind" shortens sleep onset but fragments the second half of the night and blunts the deep sleep that would otherwise help switch the stress axis off.
- Late-night scrolling keeps the mind engaged and the arousal system active at exactly the hour it should be powering down.
How to sleep better when stress hits
Because stress disrupts sleep through arousal, the most effective steps lower arousal and re-anchor the cortisol rhythm — not just "try to relax." These have the strongest evidence:
- Hold a consistent wake time. A steady wake time — even after a bad night — is the single strongest anchor for your cortisol and circadian rhythm, and it's what eventually pulls bedtime back into place.
- Build a wind-down buffer. Thirty to sixty screen-free minutes before bed give the arousal system time to come down; going straight from work or scrolling to lights-out gives it none.
- Offload the racing mind onto paper. Writing down tomorrow's to-do list or whatever you're turning over — a "brain dump" — measurably helps people fall asleep faster.
- Use breathwork to pull arousal down. Slow, paced breathing with a longer exhale than inhale activates the parasympathetic "rest" branch of the nervous system.
- Don't lie in bed awake. If you've been awake a while and getting frustrated, get up and do something calm in dim light until you feel sleepy. Lying there trains your brain to associate the bed with stress.
- Get morning light and daytime movement. Both help re-establish a normal cortisol curve — high in the morning, low at night — which stress flattens.
- Move your caffeine cutoff earlier. Since caffeine and stress push arousal the same way, an earlier cutoff removes one of the two accelerators.
For stress-related insomnia that has become persistent, cognitive behavioral therapy for insomnia (CBT-I) is the most effective treatment — more durable than sleep medication in head-to-head research — and it's built around exactly these mechanisms.
When stress and sleep problems need more support
Occasional stress-related sleep trouble around a deadline or a hard week is normal and usually resolves on its own. It's worth reaching out for support when the pattern doesn't let up — for example, if sleep difficulty persists for more than a few weeks, or comes alongside persistent anxiety, low mood, panic, or a sense that you can't switch your thoughts off during the day either. These are common and treatable, and getting help early tends to make them easier to resolve. A primary-care clinician or a licensed therapist can point you toward effective options, and CBT-I is a strong, non-medication first-line choice.
Stress and sleep at a glance
| What stress does | Effect on sleep | What helps |
|---|---|---|
| Keeps evening cortisol elevated | Arousal stays high when it should fall | Consistent wake time; morning light; wind-down buffer |
| Diverts tryptophan away from melatonin | Less raw material for the night's melatonin | Lower stress and inflammatory load; steady routine |
| Weakens the GABA brake, raises glutamate | Racing mind; can't settle at lights-out | Brain-dump on paper; slow breathing; don't lie in bed awake |
| Sustains hyperarousal over sleep pressure | "Tired but wired" — exhausted but can't sleep | Lower evening arousal; earlier caffeine cutoff; CBT-I |
| Steals deep sleep, raising next-day cortisol | A self-reinforcing stress–sleep loop | Protect total sleep; break the cycle at any one link |
Frequently asked questions
Can stress cause insomnia?
Yes. Stress activates the HPA axis and keeps cortisol elevated into the evening, sustaining physiological hyperarousal. Chronic insomnia is associated with elevated 24-hour cortisol — consistent with stress-driven arousal overriding normal sleep signals.
Why am I exhausted but can't fall asleep?
This is the "tired but wired" state. Sleep pressure (adenosine) still builds normally, so the drive to sleep is real — but stress-driven arousal sits on top of it and overrides it, so you feel depleted and keyed-up at once.
Does stress lower melatonin?
Indirectly, yes. Stress and inflammation divert tryptophan — the raw material for serotonin and melatonin — down the kynurenine pathway, leaving less to build the night's melatonin.
Why does my mind race the moment I lie down?
Stress weakens the brain's GABA "brake" while raising excitatory glutamate. In a dark, quiet room there's nothing left to mask that tipped balance, so it surfaces as thoughts that won't stop.
How do I calm my mind enough to sleep when stressed?
A consistent wake time, a screen-free wind-down, writing worries down before bed, breathwork, and getting out of bed if you've been awake a while all help. For persistent stress-related insomnia, CBT-I is the most effective treatment.
Related reading: How does gut health affect sleep? — the gut barrier, LPS, and the fourth system feeding the stress axis. Or explore the research behind all four systems.
Sources
- Stress-induced plasticity of GABAergic inhibition. Frontiers in Cellular Neuroscience (2014).
- Multifunctional aspects of allopregnanolone in stress and related disorders. Progress in Neuro-Psychopharmacology & Biological Psychiatry (2013).
- Imbalances in kynurenines as potential biomarkers in psychiatric disorders. Frontiers in Psychiatry (2022).
- Brain versus blood: concordance between peripheral and central kynurenine-pathway measures. Frontiers in Immunology (2021).
- HPA Axis and Sleep. Endotext, NCBI Bookshelf (2020).
- HPA-axis activity in patients with chronic insomnia: a systematic review and meta-analysis. Sleep Medicine Reviews (2022).
- Gallopin T, Luppi PH, et al. (2005). The endogenous somnogen adenosine excites sleep-promoting neurons via A2A receptors. Neuroscience.
- Adenosine A2A-receptor blockade reverts hippocampal stress-induced deficits and restores corticosterone circadian oscillation. Molecular Psychiatry (2012).