Cortisol and Sleep: What Stress Does to Your Sleep at Night
Cortisol is one of the most important hormones for sleep, which is counterintuitive because it is also known as the stress hormone. The relationship between cortisol and sleep is not simple opposition. Cortisol is essential for the daily cycle that makes sleep possible. The problem is when stress distorts that cycle.
The Normal Cortisol Rhythm
Cortisol follows a precise diurnal pattern. It begins rising before waking, peaks sharply in the first 30 to 45 minutes after waking in what is called the cortisol awakening response, then declines steadily through the morning and afternoon. By the evening it reaches its lowest point of the day. It remains low through most of the sleep period, then begins rising again around 3 to 4am in preparation for waking.
This rhythm is not incidental. It is calibrated to serve specific functions at each phase of the day. The morning cortisol peak mobilises glucose, sharpens alertness, and prepares the body for the demands of the day. The low evening cortisol allows the nervous system to downregulate, which is a prerequisite for sleep onset. The early morning rise prepares the body for waking before the alarm sounds.
For sleep quality, the critical period is the evening decline. When cortisol is low in the two to three hours before bed, melatonin can rise normally, core body temperature can drop, and the shift from sympathetic to parasympathetic nervous system dominance can proceed. When cortisol is elevated during this window, all three of these processes are suppressed or delayed.
How Stress Distorts the Rhythm
Chronic stress disrupts the cortisol rhythm through the HPA axis. The hypothalamus detects a stressor and signals the pituitary, which signals the adrenal glands to produce cortisol. Under short-term stress, the feedback mechanism that tells the HPA axis to switch off works efficiently. Under chronic stress, this feedback sensitivity degrades and cortisol output remains higher than it should be for longer than it should be.
The practical consequences for sleep are specific. Elevated cortisol in the evening delays sleep onset by suppressing melatonin and maintaining core body temperature above the threshold that sleep initiation requires. Elevated cortisol during the night fragments sleep through arousals and raises the likelihood of waking. The early morning cortisol uptick becomes sharper in chronically stressed people, producing a more abrupt and earlier awakening.
This is why stressed people often describe difficulty falling asleep, waking in the night for no obvious reason, and waking too early with a mind that immediately fills with anxious thoughts. Each of these corresponds to a different phase of the distorted cortisol pattern.
The Circadian Connection
Cortisol and the circadian clock are closely coupled. The circadian system regulates cortisol timing, and cortisol in turn reinforces circadian signals. When sleep timing is irregular, this coupling weakens. The cortisol awakening response becomes less sharp when wake time varies, and the evening cortisol decline becomes less reliable.
Maintaining a consistent wake time is one of the most effective ways to preserve the cortisol rhythm. The morning light and consistent wake time anchor the circadian clock, which keeps the cortisol curve well-timed throughout the day and evening. For more on this relationship, see our article on circadian rhythm explained.
Measuring Cortisol
Cortisol can be measured in blood, urine, and saliva. Salivary cortisol testing has become accessible through at-home testing kits and allows multiple measurements across the day to characterise the full diurnal pattern. The cortisol awakening response, the slope of decline through the morning, and the evening nadir can all be assessed this way.
A flattened cortisol curve, where the morning peak is blunted and the evening level is higher than it should be, is associated with burnout, chronic fatigue, and poor sleep quality. This pattern is different from an elevated overall cortisol level and requires different interpretation. Most people who feel chronically exhausted but struggle to sleep have this flattened pattern rather than a uniformly high cortisol level.
What Lowers Cortisol for Better Sleep
Consistent wake time. The morning cortisol awakening response is most robust and well-timed when wake time is consistent. This anchors the entire daily rhythm.
Evening light reduction. Bright light in the evening, particularly blue-enriched artificial light from screens, suppresses the normal evening cortisol decline and simultaneously blocks melatonin production. Reducing light exposure in the two hours before bed removes this interference.
Magnesium bisglycinate. Magnesium is required for proper HPA axis regulation. Deficiency is associated with heightened cortisol reactivity and a dysregulated stress response. Multiple trials have shown that magnesium supplementation reduces subjective anxiety and supports cortisol modulation. For the evidence, see our article on magnesium for sleep.
Lemon balm extract. Lemon balm inhibits GABA transaminase, which breaks down GABA in the brain. Higher GABA activity reduces the neural arousal that keeps the HPA axis stimulated in the evening. Clinical trials show reduced anxiety and improved sleep quality in stressed adults. For the evidence, see our article on lemon balm for sleep.
Slow exhalation breathing. Extended exhales activate the vagus nerve and shift the autonomic nervous system toward parasympathetic dominance, directly opposing the sympathetic activation that sustains cortisol output. Practices like 4-7-8 breathing, box breathing, and physiological sighs (double inhale followed by a long exhale) produce measurable reductions in heart rate and cortisol within minutes.
Avoiding evening alcohol. Alcohol initially blunts cortisol but produces cortisol rebound during the second half of the night as it is metabolised. The rebound produces night sweats, early waking, and next-day anxiety. For more on this mechanism, see our article on anxiety and sleep.
What This Means for Your Sleep
Cortisol is not the enemy of sleep. A well-timed cortisol rhythm is essential for good sleep. The problem is when chronic stress dysregulates that rhythm, producing elevated evening cortisol, a flattened daily curve, and sharp early morning surges. Addressing this requires consistent wake timing, evening light management, magnesium supplementation, GABA support through lemon balm and apigenin, and direct nervous system regulation through breathing practices.
Sources
- Leproult R, et al. (1997). Sleep loss results in an elevation of cortisol levels the next evening. https://pubmed.ncbi.nlm.nih.gov/9415946/
- Adam EK, et al. (2017). Diurnal cortisol slopes and mental and physical health outcomes. https://pubmed.ncbi.nlm.nih.gov/28578017/
- Boyle NB, et al. (2017). The effects of magnesium supplementation on subjective anxiety and stress. https://pubmed.ncbi.nlm.nih.gov/28445426/
- Cases J, et al. (2011). Pilot trial of Melissa officinalis leaf extract in volunteers with mild-to-moderate anxiety disorders and sleep disturbances. https://pubmed.ncbi.nlm.nih.gov/22207695/
- Kudielka BM, Kirschbaum C. (2005). Sex differences in HPA axis responses to stress: a review. https://pubmed.ncbi.nlm.nih.gov/15955573/
Related reading: Anxiety and Sleep: Why Your Mind Won't Switch Off at Night | Circadian Rhythm Explained: How Your Internal Clock Controls Sleep
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.