ALERTNESS CURVE
Enter a bedtime and a wake time. The curve plots the predicted shape of your alertness across the next 24 hours — circadian nadir, post-prandial dip, and the wake-maintenance zone right before bed. The model is descriptive, not prescriptive: it tells you what hours the biology is rigged against, not what to do about it.
Two-Process Model (Borbély 1982). Curve assumes the schedule below run to steady state.
Your current pattern
The curve runs the Two-Process Model (Borbély 1982) for five days at one-minute Euler steps, then samples the last 24-hour cycle at 15-minute intervals. Process S is the homeostatic sleep-pressure variable — it rises during wake with time constant τ_w ≈ 18.18 h and falls during sleep with τ_s ≈ 4.2 h (Daan, Beersma & Borbély 1984). Process C is a cosine with amplitude 0.55 peaking near 17:00 (Wright et al. 2002). Alertness is normalized (S_upper − S) + C across the day to [0, 1]. The model captures shape, not absolute values — it is a first-order description, not a personal forecast.
Process S is the homeostatic sleep-pressure variable. It rises whenever you are awake — slowly, exponentially toward an upper asymptote — and falls when you sleep, faster, toward a lower asymptote. The mechanism is the build-up and clearance of adenosine and related sleep-regulating substances in the basal forebrain. The longer you stay awake, the higher S climbs; the more you sleep, the lower it falls.
Process C is the circadian alerting signal. Independent of how long you have been awake, it traces a near-sinusoidal pattern over 24 hours with its peak near 17:00 and its trough around 04:00. The pacemaker is the suprachiasmatic nucleus; the entraining input is light. C explains the counter-intuitive finding that you are most alert in the late afternoon — even on days when you slept badly — and most vulnerable around 03:00–05:00, when the homeostatic and circadian pressures align.
Net alertness is what you feel: roughly (S_upper − S) + C. The two processes can compound or cancel. In the morning, the circadian rise pulls you out of the sleep dip even though S is still moderate. In the afternoon, a brief dip in C produces the post-prandial slump despite plenty of remaining wake capacity. Right before bed, a final circadian wake-maintenance peak fights the climbing S — which is why people often feel a second wind around 21:00 and then crash. Insomnia is often a phase-misalignment problem in disguise; the curve makes the structure visible.
Caffeine follows first-order elimination kinetics. After oral intake, plasma concentration peaks at Tmax — roughly 30 to 60 minutes — then falls with a median half-life of about 5 hours in healthy adults (Institute of Medicine 2001). The model here approximates intake as a 45-minute linear ramp to the peak dose, then a pure exponential decay anchored at that peak. Real absorption profiles vary with stomach contents and formulation, but the bolus approximation introduces less than 5 percent error past the 90-minute mark — well before any sleep-relevant window.
Caffeine is an adenosine receptor antagonist. Adenosine is one of the molecular substrates of Process S — it accumulates while you are awake and signals sleep pressure to the basal forebrain. Caffeine occupies the same receptors without activating them, which is why it masks rather than reduces homeostatic pressure (Fredholm et al. 1999). Process S is still climbing in the background; the brain just stops reading it. When caffeine clears, the unread pressure arrives all at once — the post-caffeine crash.
The 5-hour half-life is a median, not a constant. CYP1A2 polymorphism produces fast and slow metabolizer phenotypes that differ by a factor of three. Cigarette smoking induces CYP1A2 and roughly halves the half-life. Oral contraceptives roughly double it. Late-trimester pregnancy can triple it. None of this is in the visualization — the curve assumes a 5-hour median (Institute of Medicine 2001). If you metabolize caffeine slowly or are on a hormonal contraceptive, treat the curve as optimistic and your real bedtime residual as higher.
What to do with this
Find your chronotype
The shape of this curve is set by your chronotype — the morning-or-evening lean that decides when you're sharp and when you crash.
Open the tool →Find your full pattern
Alertness is one piece. The 5-minute diagnostic places your whole sleep pattern — subtype, driver, and chronotype.
Take the diagnostic →