Melatonin & the Body Clock
Deep in your brain a cluster of about 20,000 neurons — the SCN — keeps roughly 24-hour time and runs the whole body on a schedule. It runs slightly long, so every day it needs a reset, and the reset signal is light. When darkness falls, the SCN tells the pineal gland to pour out melatonin, the hormone that whispers “it is night” to every cell. Watch the clock turn: melatonin rises in the dark, your core temperature drops, and the gate to sleep swings open — until a bright screen at night fools the eye, shuts the melatonin off, and pushes the clock later.
Try this: let Normal night run one full turn and watch melatonin climb in the dark, then hit 📱 Screen at night — the melatonin bar collapses and the two clock hands start to drift apart. Then switch to Jet lag and use ☀ Morning light + 💊 Melatonin 0.5 mg to drag the clock back into sync.
Live body-clock readout
What's happening
Real values: the SCN’s ~20,000 neurons and ~24.2-hour intrinsic period, melanopsin’s ~480 nm blue-light peak, the melatonin night rise and its ~3–4 a.m. peak, the ~0.3–0.5 °C core-temperature drop, and jet lag’s ~1 hour-per-day drift are all real. The exact pg/mL, lux-to-suppression curve, and shift speeds here are an illustrative model tuned so one turn of the dial is a few seconds.
The Science in Plain Language
Your brain keeps its own 24-hour time
Above the point where your two optic nerves cross sits a tiny paired structure called the suprachiasmatic nucleus, the SCN — roughly 20,000 neurons, no bigger than a grain of rice on each side. It is the body’s master clock. Even in total darkness, cut off from all cues, it keeps ticking — but its built-in period is not exactly 24 hours. In careful laboratory studies the average human clock runs a little long, about 24.2 hours. Left alone it would drift about 10–15 minutes later every day, and within a couple of weeks you would be sleeping through the afternoon. Something has to reset it daily. That something is light.
Light is the reset button — and a special sensor carries it
The eye does two separate jobs. Rods and cones let you see. But a third, much rarer cell — the melanopsin-containing retinal ganglion cell (an ipRGC) — does not build a picture at all. It simply measures how bright the world is and reports straight to the SCN along a dedicated wire, the retinohypothalamic tract. These sensors are tuned to blue light around 480 nm — the colour of a clear daytime sky. This is why some people who are completely blind, with no working rods or cones, still keep a normally entrained body clock: their melanopsin cells are intact and still telling the SCN when it is day.
Darkness makes melatonin, the “it is night” hormone
When the melanopsin signal goes quiet — when it gets dark — the SCN releases its brake on the pineal gland, a pea-sized gland deep in the brain. The pineal starts converting the amino acid tryptophan (by way of serotonin) into melatonin and pours it into the blood. Melatonin does not act on one organ; it circulates everywhere and announces the time of night to the whole body. Its natural rise, the dim-light melatonin onset, begins about 2–3 hours before your usual bedtime, climbs through the night to a peak around 3–4 a.m., and is switched back off by morning light. During the day, blood melatonin is barely detectable.
Melatonin lowers your core temperature and opens the gate to sleep
Here is the part people miss: melatonin does not knock you out the way a sedative does. What it does is dilate the small blood vessels in your hands and feet, shedding heat, so your core body temperature drifts down by about 0.3–0.5 °C, reaching its lowest point (around 36.5 °C) roughly two hours before you wake. That falling temperature is itself one of the strongest signals that it is time to sleep. Melatonin quietly opens the gate; the falling temperature and rising sleep pressure walk you through it. In the animation, watch the thermometer fall as the melatonin bar rises — they move together.
The honest myth: melatonin is a timing signal, not a sleeping pill
This is the correction worth remembering. Melatonin is a chronobiotic — a clock-shifter — not a hypnotic like a benzodiazepine or a “z-drug.” Pooled clinical trials find that a bedtime dose helps you fall asleep only a few minutes faster on average and adds only a little total sleep. A big 5 or 10 mg tablet swallowed at bedtime will not keep you asleep through the night, and much of what is sold delivers far more than the body ever makes. Its real power is different: a small dose (about 0.3–0.5 mg) taken a few hours before your target sleep time nudges the SCN earlier, so that on following nights you feel sleepy sooner on your own. Timing, not dose, is the active ingredient — and it works best anchored by bright light in the morning.
Screens and light at night push the clock the wrong way
The great modern problem is light after dark. Because melanopsin only cares about brightness and blue, a phone or a bright room in the evening looks like daylight to the SCN. It suppresses the melatonin rise — even ordinary indoor light of only ~100 lux is enough to blunt it in most people — and, worse, it delays the clock, shifting your natural sleep time later. Evening light tells the SCN “the day isn’t over yet,” so tomorrow’s melatonin comes even later. That is the engine behind the “night owl” drift and much of the trouble shift workers face. In the visualization, flip on the screen and watch the melatonin bar empty while the two clock hands pull apart.
Jet lag: your clock disagrees with the local sun
Fly across several time zones and your SCN keeps the old time. Now melatonin peaks in the middle of the local afternoon (crushing daytime grogginess) and quits in the middle of the local night (3 a.m. wide awake). Local daylight slowly drags the clock across, but only at roughly one hour per day, which is why a six-hour trip can take the better part of a week to shake. There is an asymmetry: because the clock naturally runs long, delaying it (flying west, staying up later) is usually easier than advancing it (flying east, forcing an earlier schedule).
How to shift your clock on purpose
You can push the clock deliberately, and direction depends on timing. The clock’s pivot point is your core-temperature minimum, roughly a couple of hours before your normal wake time. Bright light after that minimum — morning light — advances the clock (helps you wake and sleep earlier); bright light in the evening, before it, delays the clock. Melatonin does the opposite of light: a small evening dose advances the clock, a morning dose delays it. So to move earlier (beat eastward jet lag or a delayed sleep phase): seek bright light in the morning, dim your evenings, and take a tiny melatonin dose a few hours before your target bedtime. To move later, do the reverse. This is not a cure for every sleep problem — persistent insomnia has other drivers — but for a clock that is simply set to the wrong hour, light and timing are the real levers.
A note on dose, safety, and older adults
The pineal gland makes only a trace of melatonin — the amount in your blood at its nightly peak is measured in tens of picograms per millilitre. Most tablets sold contain 1 to 10 mg, hundreds of times more than the body ever releases, which is one reason a large bedtime dose tends to leave people groggy the next morning without actually deepening sleep. If you are using melatonin to shift timing, less is usually more: a 0.3–0.5 mg dose taken at the right hour outperforms a 5 mg dose taken at the wrong one. Natural melatonin output also declines with age, which is part of why sleep often becomes lighter and more fragmented in later life — though a thin, restless night has many causes, and low melatonin is only one of them. Short-term use is generally well tolerated; the main honest cautions are next-morning grogginess, vivid dreams, and the fact that in the United States melatonin is sold as an unregulated supplement, so the amount in the bottle can differ from the label. It is a timing tool, not a cure for chronic insomnia — and it works best alongside a dark evening and a bright, early morning.