Cortisol and Sleep: The Stress Hormone That Keeps You Awake
Cortisol is the body's primary alertness and stress hormone. It follows a precise daily rhythm that is supposed to help you feel energised in the morning and sleepy at night. When this rhythm is disrupted, which happens in people under chronic stress or with dysregulated nervous systems, the result is exactly the kind of sleep problem most people experience: too alert in the evening, difficulty winding down, waking too early, and a persistent sense that sleep never fully restores.
The Normal Cortisol Rhythm
Under ideal conditions, cortisol follows a clear daily pattern. It is at its lowest point in the middle of the night, around 2 to 3am. It begins rising in the early morning hours and peaks sharply in the first 30 to 45 minutes after waking, a phenomenon called the cortisol awakening response (CAR). This morning peak drives alertness, mobilises energy, and primes the immune system for the day.
From this morning peak, cortisol falls steadily through the day, reaching low levels by evening. Melatonin rises as cortisol falls. The handoff between these two hormones, cortisol receding and melatonin rising, is what allows the brain to prepare for sleep in the evening.
When cortisol does not fall adequately in the evening, this preparation is disrupted. Sleep onset is delayed, the depth of sleep is reduced, and the brain stays in a more aroused state through the night than it should be.
How Stress Disrupts the Pattern
Chronic stress activates the HPA axis (the hypothalamic-pituitary-adrenal axis), which drives cortisol production. Under chronic stress, cortisol levels remain elevated throughout the day, including in the evening when they should be low. Evening cortisol elevation directly suppresses melatonin and maintains the physiological alertness that opposes sleep onset.
People under significant ongoing stress often notice this as a pattern of feeling wide awake at bedtime despite being tired, or feeling wired rather than sleepy in the evenings. This is not a sleep problem in isolation. It is a stress hormones problem that expresses itself through sleep.
The Early Morning Cortisol Surge
For many people, cortisol also explains early morning waking. The cortisol rhythm should produce a gradual rise starting around 4 to 5am, reaching its peak after waking. In people with HPA axis dysregulation from chronic stress, this rise can start earlier and more abruptly, at 2 to 4am, pulling them out of sleep with a feeling of alertness or unease rather than natural waking.
This is one of the primary mechanisms behind waking at 3am and being unable to return to sleep. The cortisol system has effectively fired its morning alarm too early. For a full explanation of why 3am waking happens and what else can drive it, see our article on why do I wake up at 3am.
The Feedback Loop
Cortisol and sleep disruption form a feedback loop. High evening cortisol disrupts sleep. Poor sleep elevates cortisol the following day, because sleep deprivation activates the HPA axis. Elevated daytime cortisol carries forward into the evening, disrupting sleep again.
This loop can persist for years in people under sustained stress. The cortisol dysregulation is not just about individual stressful events. It reflects the baseline activation level of the HPA axis, which can remain chronically elevated through cumulative stress exposure, even after specific stressors resolve.
What Raises Evening Cortisol
Beyond chronic psychological stress, several specific behaviours reliably elevate cortisol in the evening. Vigorous exercise within two to three hours of bedtime raises cortisol and core body temperature. Exposure to stressful content, news, difficult conversations, or mentally demanding tasks close to bedtime activates the stress response. Bright light exposure in the evening raises cortisol through its suppression of melatonin. Caffeine in the afternoon and evening maintains cortisol at higher levels than it would otherwise reach by bedtime.
What Lowers Evening Cortisol
Several interventions consistently reduce evening cortisol. A structured evening routine that signals the transition from the active day to rest, with lower stimulation, dimmer lights, and the absence of screens and demanding tasks, reduces the stimuli that maintain HPA activation.
Magnesium modulates the HPA axis and reduces the cortisol response to stress. People with magnesium deficiency tend to have more dysregulated cortisol rhythms, and supplementation has shown measurable effects on cortisol normalisation. Phosphatidylserine, a phospholipid found in cell membranes, is one of the supplements most directly focused on cortisol, with multiple clinical trials showing it reduces cortisol following exercise and blunts the overall HPA stress response.
Consistent sleep and wake times anchor the cortisol rhythm more effectively over time. A circadian clock that is well anchored produces more precise cortisol timing, reducing the risk of the early surge that causes premature waking.
For a broader look at how sleep regulates the hormonal environment and what happens when it does not, see our article on sleep and hormones.
What This Means for Your Sleep
Cortisol is not background physiology. It is one of the primary levers the body uses to regulate the cycle of sleep and waking. When it is well calibrated, sleep comes easily and restores deeply. When it is chronically dysregulated by stress, poor habits, or HPA axis overactivation, the sleep problems that follow are physiologically driven, not a failure of effort or intention. Addressing cortisol directly, through stress reduction, magnesium, evening routine, and consistent timing, is one of the most effective approaches to chronic sleep difficulty.
Sources
- Vgontzas AN, et al. (2001). Chronic insomnia is associated with nyctohemeral activation of the HPA axis. https://pubmed.ncbi.nlm.nih.gov/11157340/
- Nollet M, et al. (2020). Sleep deprivation and stress: a reciprocal relationship. https://pubmed.ncbi.nlm.nih.gov/32382403/
- Monteleone P, et al. (1992). Effects of phosphatidylserine on the neuroendocrine response to physical stress in humans. https://pubmed.ncbi.nlm.nih.gov/1325348/
Related reading: Why You Keep Waking Up at 3am (and How to Stop) | How Sleep Regulates Your Hormones
About the Author

Nima Koucheki
Founder, Sleep Improvers
Nima Koucheki is the founder of Sleep Improvers. He hosts a podcast and YouTube channel dedicated to sleep science, translating peer-reviewed research into protocols anyone can apply tonight.