Understanding sleep architecture requires understanding two hormones above all others: cortisol and melatonin. They are, in a sense, the conductors of your circadian clock — with cortisol driving wakefulness and alertness, and melatonin promoting sleep onset and maintenance. Their relationship is inverse and precisely timed, and disruptions to either one cascade into disruptions in the other.
The Normal Circadian Pattern
In a healthy circadian rhythm, cortisol peaks sharply in the 30–60 minutes after waking (the "cortisol awakening response"), providing the biochemical signal for alertness, focus, and morning energy. It declines gradually throughout the day, reaching its nadir in the evening. As cortisol falls in the evening, melatonin begins to rise — typically 2–3 hours before habitual sleep time — signaling the body that night is approaching and sleep is appropriate.
This pattern is regulated primarily by light: bright light (especially blue wavelength light) suppresses melatonin and maintains cortisol, while darkness permits melatonin to rise. The circadian clock in the suprachiasmatic nucleus of the hypothalamus synchronizes to the light-dark cycle and coordinates cortisol and melatonin release accordingly.
What Disrupts the Pattern
Light exposure at night: Screens (phones, tablets, computers, televisions) emit blue-wavelength light that suppresses melatonin as effectively as direct sunlight. Exposure in the 1–2 hours before sleep delays melatonin onset by 1–3 hours, shortens total sleep time, and reduces the proportion of time in slow-wave sleep.
Chronic stress: Chronically elevated cortisol — from HPA axis dysregulation — prevents the normal evening cortisol decline. When cortisol is elevated at 10pm, melatonin cannot rise adequately, sleep onset is delayed, and the first sleep cycles are fragmented. The 3am awakening that many chronically stressed people experience corresponds to a cortisol surge that is triggered prematurely — waking the person at a physiologically inappropriate time.
Restoring the Pattern
Light discipline: Bright light exposure in the morning (ideally sunlight within 1 hour of waking) anchors the cortisol awakening response and sets the circadian clock for the entire day. Reducing blue light exposure in the 2 hours before bed allows melatonin to rise appropriately. Red-orange light (incandescent, salt lamps, candlelight) does not significantly suppress melatonin.
Melatonin supplementation: Melatonin supplements are most effective when used to advance or stabilize circadian timing — not to sedate. Low doses (0.5–1 mg) taken 2–3 hours before the target sleep time are more effective at shifting circadian phase than higher doses (5–10 mg) taken at bedtime. Higher doses produce a pharmacological sleep effect but often cause morning grogginess and do not correct the underlying rhythm disruption.
Evening cortisol management: Meditation, breathwork, avoiding high-intensity exercise within 3 hours of bedtime, and magnesium glycinate all have evidence for reducing evening cortisol and facilitating the melatonin rise that initiates healthy sleep architecture.