QuestionPineal gland
What Does Melatonin Do? The Sleep Hormone Explained
For general education about how the body works, not medical advice. Medical disclaimer.

Melatonin is a hormone that the pineal gland makes mostly at night. It tells the body that it is dark, which helps time sleep, body temperature and other daily rhythms. Its blood levels are low in daylight and rise in the evening.
Contents
The full answer
Melatonin does three main things in the body. It signals that it is night, it helps set the timing of the sleep-wake cycle, and it helps the body keep time for other daily rhythms, such as core body temperature and some hormone levels. The hormone acts through receptors on target cells in the brain and in other tissues.
Melatonin does not switch sleep on like a light switch. It acts as a timing signal, so its effect depends on when it is present. When it rises at the usual time in the evening, it marks the start of the biological night, and the brain’s sleep systems respond to that timing. For this reason, scientists describe melatonin as a chronobiotic, a substance that shifts or stabilizes the body’s internal clock.
The hormone also works in a second way. Its level changes with the length of the dark period, so the body receives information about the season as well as the time of day. Many mammals, including sheep and hamsters, use this information to time breeding and coat changes across the year. In humans, the seasonal role is weaker, but the daily timing role is well established.
How light sets melatonin levels
Light controls melatonin through the eyes, not through the pineal gland itself. Light reaches the retina, where rods and cones detect it. A small group of retinal ganglion cells also contains melanopsin, a light-sensitive pigment that is most responsive to blue light at about 480 nanometers. These cells send signals along the retinohypothalamic tract to the hypothalamus.
The signal reaches the suprachiasmatic nucleus, the master clock of the body. From there it passes through the paraventricular nucleus and down the spinal cord to sympathetic neurons in the neck. These neurons release noradrenaline onto the pineal gland, which raises an internal messenger called cAMP and turns on the enzyme that makes melatonin.
Light reverses this chain. In the evening and during the night, bright light reduces the signal, and melatonin production falls. Lower light levels allow it to rise again. This is why melatonin tracks darkness so closely, and why light at night has a stronger effect than light during the day. Even dim room light can reduce melatonin output to some degree.
The pathway shows that melatonin is a signal of darkness that the brain can read. The eyes provide the input, the master clock organizes the timing, and the pineal gland produces the hormone. Each step can be altered by light, which is why daily light exposure shapes the timing of melatonin from day to day.
How melatonin levels change across the day and life
In typical adults, melatonin levels are low during the day. They begin to rise in the evening, often about two hours before the usual time of sleep, and this point is called dim light melatonin onset. Levels peak in the middle of the night and fall toward morning. The exact timing varies between people, and it can be measured in blood or saliva samples taken in dim light.
The daily pattern also changes with age. Children generally have higher night-time melatonin levels than adults, and the nightly rise becomes smaller during adolescence. Levels in older adults are often lower and less strongly rhythmic. These changes are part of normal development and aging, and they are not the same in every person.
Melatonin is also part of a wider daily pattern. Cortisol from the adrenal glands rises before waking, while melatonin falls. The two hormones therefore work in roughly opposite phases, and both follow the timing of the master clock. Researchers measure this pattern in studies of the circadian rhythm, which is described in a separate article.
Melatonin in other tissues and in other living things
The pineal gland is the main source of melatonin in the blood at night, but it is not the only place the hormone is made. The gut holds many times more melatonin in total than the pineal gland, and it is made by enterochromaffin cells that also produce serotonin. The retina, skin and some immune cells also produce it, and these local sources act mostly on nearby cells rather than on the whole body.
Melatonin is found across the living world. It has been detected in bacteria, algae and plants, and it is present in many animals, including fish, birds and reptiles. In plants, it is thought to act as an antioxidant and a growth regulator. In animals, it has been studied as a timing signal, and its role differs between species.
The gut and the immune system show that melatonin has effects beyond sleep timing. Melatonin receptors are present in many tissues, and their roles are still being studied. Scientists do not yet agree on how much of the body’s melatonin comes from each source, or how strongly each source affects daily function.
Common myths
One common belief is that melatonin directly causes sleep in the way a sedative does. Melatonin acts as a timing signal, and its effect depends on the body’s clock and the light the eyes receive. It does not work like a sedating substance that depresses the nervous system.
Another belief is that melatonin is made only in the brain. The pineal gland produces most of the melatonin in the blood at night, but the gut, retina and other tissues make the hormone too. The amount made in each place differs, and the local effects are different from the effects of the blood level.
A third belief is that melatonin levels are the same in everyone. Levels vary with age, the time of day, the amount of light a person has been exposed to and individual differences in the body clock. The average pattern described in textbooks is a guide, not a fixed rule for every person.
Frequently asked questions
Is melatonin the sleep hormone?
Melatonin is often called the sleep hormone, but its main job is to signal night. It helps time the sleep-wake cycle rather than acting as a switch that forces sleep. Other brain systems also control alertness and sleep pressure.
When is melatonin highest in the body?
In typical adults, blood melatonin begins to rise about two hours before habitual sleep time. It peaks during the middle of the night and falls toward morning. Daytime levels are low.
What lowers melatonin?
Light lowers melatonin production, especially bright light and light rich in blue wavelengths in the evening and at night. The eyes detect the light and send signals to the brain's master clock, which reduces the pineal gland's output.
Do children have more melatonin than adults?
Night-time melatonin levels are generally higher in children than in adults. Levels tend to decline from late childhood onward, with a further fall in older adults. Figures vary between individuals and between studies.
Where is melatonin made?
Most of the melatonin in the blood is made by the pineal gland, a small gland in the middle of the brain. Smaller amounts are made in the retina, the gut and some immune cells.
Who discovered melatonin?
Aaron Lerner and colleagues isolated melatonin in 1958 from the pineal glands of cattle. The name refers to its effect on the color of frog skin, through the movement of pigment inside skin cells.
Sources and further reading
- OpenStax, "Anatomy and Physiology 2e"
- Encyclopaedia Britannica, "Melatonin"
- Gray's Anatomy (Susan Standring, ed.)
Cite this page
“What Does Melatonin Do? The Sleep Hormone Explained.” Body Atlas, https://body.bigworldlist.com/questions/what-does-melatonin-do/.
Pineal gland: more questions and guides
- ProfilePineal Gland: Location, Melatonin and the Body Clock
- ComparisonMelatonin vs Serotonin: How the Two Molecules Differ and Connect
- ComparisonPituitary Gland vs Pineal Gland: Key Differences
- ListSmallest Parts of the Human Body: Bones, Muscles and Cells
- QuestionWhat Is the Circadian Rhythm? How the Body's 24-Hour Clock Works
- QuestionWhy Do Teenagers Sleep Late? The Teenage Body Clock Shift
- Evolution and life stagesWhy the Pineal Gland Is Called the Third Eye: Its Evolution