Circadian Cortisol Rhythm Simulator: Diurnal Hormone Cycle Model

simulator beginner ~8 min
Loading simulation...
Peak 20 ug/dL at 07:00, nadir near 0 ug/dL at 01:00 — normal diurnal cortisol rhythm

With default parameters, cortisol follows the classic diurnal curve: rising sharply in the early morning hours (cortisol awakening response), peaking around 07:00 at approximately 20 ug/dL, then declining throughout the day to reach a nadir near midnight. Ultradian pulses create the characteristic sawtooth pattern overlaid on the circadian wave.

Formula

C(t) = mesor + amplitude * cos(2 * pi * (t - acrophase) / 24)
C_ultradian(t) = C(t) + A_pulse * |sin(pi * ultradian_freq * t)|
Peak/Nadir ratio = (mesor + amplitude) / max(0, mesor - amplitude)

The Cortisol Clock

Cortisol is often called the "stress hormone," but its most fundamental role is as the body's internal clock signal. In healthy individuals, cortisol follows a predictable 24-hour rhythm orchestrated by the suprachiasmatic nucleus (SCN) — the brain's master circadian pacemaker. Cortisol peaks in the early morning and reaches its lowest point around midnight, a pattern conserved across virtually all diurnal mammals.

Cosinor Model of Circadian Rhythm

The classic cosinor model describes circadian cortisol as C(t) = mesor + amplitude * cos(2*pi*(t - acrophase)/24), where mesor is the 24-hour mean level, amplitude is the half-range of oscillation, and acrophase is the time of peak. This simulation adds ultradian pulsatility — the rapid 60-90 minute pulses that create cortisol's characteristic sawtooth waveform when measured at high temporal resolution.

Clinical Significance of Rhythm Disruption

A flattened cortisol rhythm (low amplitude, reduced peak-to-nadir ratio) is an independent predictor of mortality in breast cancer patients and is associated with chronic fatigue syndrome, major depression, and post-traumatic stress disorder. The cortisol awakening response (CAR) — the sharp rise in the first 30-45 minutes after waking — is used as a biomarker of HPA axis integrity and psychosocial stress.

Experiment with Disruption

Reduce the amplitude to model rhythm flattening seen in chronic illness. Shift the acrophase later to simulate delayed circadian phase (common in adolescents and shift workers). Increase ultradian pulse frequency to model acute stress responses. The visualization shows the full 24-hour cortisol profile with real-time clock position, making it easy to understand how the hormone level changes throughout the day.

FAQ

What is the cortisol awakening response (CAR)?

The CAR is a 50-75% surge in cortisol occurring 20-45 minutes after waking. It is regulated by the suprachiasmatic nucleus and serves to mobilize energy stores for the day. A blunted CAR is associated with burnout, PTSD, and chronic fatigue syndrome.

Why does cortisol follow a circadian rhythm?

The suprachiasmatic nucleus (SCN) in the hypothalamus serves as the master circadian clock, synchronized to the light-dark cycle. The SCN drives rhythmic CRH release from the paraventricular nucleus, creating the characteristic cortisol rhythm with morning peak and midnight nadir.

What are ultradian cortisol pulses?

Superimposed on the circadian rhythm, cortisol is secreted in discrete pulses approximately every 60-90 minutes. These ultradian oscillations arise from intrinsic dynamics of the HPA axis feedback loop and are important for maintaining glucocorticoid receptor sensitivity.

How does shift work affect cortisol rhythm?

Shift work disrupts circadian cortisol patterns, often flattening the rhythm, delaying the acrophase, and reducing the cortisol awakening response. This misalignment is linked to metabolic syndrome, cardiovascular disease, and impaired immune function.

Sources

Embed

<iframe src="https://homo-deus.com/lab/endocrinology/circadian-cortisol/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub