This site explains how sleep works as a biological and physical system. It is not medical advice and does not diagnose or treat any condition. For a real sleep problem, consult a licensed healthcare provider. What this is.

How the Circadian Rhythm Is Set

The circadian rhythm is the body's internal clock, running on a cycle close to but not exactly 24 hours. Left with no external time cues at all, most people's internal clocks would drift slightly longer than a day — which is why the clock needs a daily reset.

That reset comes primarily from light. A dedicated group of cells does the work of detecting light and time-stamping the rest of the body's physiology accordingly.

Discover How the Systems Around You Really Work

Understand the government, financial, healthcare, business, and technology systems affecting everyday life.

Learn more

How the Internal Clock Gets Its Signal

A small cluster of neurons in the hypothalamus, called the suprachiasmatic nucleus, functions as the body's master clock. It receives direct input from specialized cells in the retina that respond primarily to blue-toned light, distinct from the rod and cone cells used for vision. This pathway lets the suprachiasmatic nucleus track surrounding light levels even in someone who is otherwise visually impaired.

Once the suprachiasmatic nucleus registers the daily light pattern, it coordinates downstream signals — including the timed release of melatonin from the pineal gland, and shifts in core body temperature — that in turn synchronize secondary clocks running in individual organs and tissues throughout the body.

This is why the circadian system is often described as a hierarchy: one master clock in the brain, keeping time for many peripheral clocks elsewhere in the body, all nudged back into alignment each day primarily by light.

The genes underlying this system operate through a feedback loop inside individual cells: a set of proteins accumulates over roughly a day, then suppresses the genes that produce it, causing levels to fall until the suppression lifts and the cycle restarts. This roughly 24-hour molecular loop is present not just in the suprachiasmatic nucleus but in cells throughout the body, which is part of why peripheral clocks can keep approximate time even when temporarily isolated from the master clock's signal.

What Actually Shifts the Clock

Light exposure timing is the dominant input, but not the only one. Meal timing, physical activity, and surrounding temperature all provide secondary time cues capable of shifting peripheral clocks somewhat independently of the light-driven master clock, which is part of why irregular eating or activity schedules can produce a felt sense of internal misalignment even when light exposure is consistent.

Melatonin itself is not the clock — it is one of the clock's outputs, rising in the evening as light fades and falling before waking. Its level is a signal that reflects the clock's state rather than a mechanism that independently drives it.

Where the System Gets Misread

Jet lag and shift work are the two situations that most clearly expose how the system actually works. In jet lag, the external light-dark cycle changes abruptly while the internal clock has not yet caught up, producing a mismatch that resolves gradually as the suprachiasmatic nucleus re-synchronizes, typically at a rate of roughly one time zone per day.

Shift work is a harder case, because artificial light exposure at night actively works against the clock's dominant natural cue, and most shift schedules never provide a consistent enough light pattern for the clock to fully adapt, which is a mechanical description of why shift work is associated with persistent circadian misalignment rather than a one-time adjustment period.

The direction of travel also matters for jet lag specifically. Traveling east requires the internal clock to shift earlier, which the system generally adapts to more slowly than the clock-delaying shift required by traveling west, because the body's natural free-running cycle already runs slightly longer than 24 hours and so aligns more easily with a delay than with an advance.

How the Clock Is Actually Measured

Researchers measure circadian phase directly using dim-light melatonin onset testing, which tracks the specific time in the evening when melatonin begins rising in dim conditions. This is considered the most reliable marker of the internal clock's current position.

Consumer devices do not measure circadian phase directly. They typically infer a rough sleep-wake pattern from movement and heart rate, which correlates with circadian timing but is not the same measurement, and cannot substitute for a dim-light melatonin onset test in any precise sense.

The circadian rhythm is a light-synchronized internal clock system with one master pacemaker and many peripheral clocks — a mechanical structure, not a metaphor. Its near-24-hour period and its reliance on a specific, identifiable light-detection pathway are what make it measurable and predictable, rather than a loose description of feeling more awake at certain times of day.

Sources

Note: This explains how sleep works as a system. It is not medical advice, it is not a diagnosis, and it is not a substitute for a licensed healthcare provider. Check the cited sources for current clinical guidance.

5 desks. How it works, not what to do.

Start from the top