How Does the Pineal Gland Make Melatonin?
The pineal gland builds melatonin from tryptophan, an amino acid in food, with serotonin as the middle step, and it releases melatonin only at night. Darkness switches production on, and light reaching the eyes switches it off. The gland does not keep time on its own: the brain’s master clock sets the schedule, and the pineal gland carries it out.
The pineal gland is a pea-sized gland near the center of the brain. According to a 2026 review of melatonin biology, melatonin is made in the pineal gland from tryptophan with serotonin as an intermediate, is secreted during the night, and peaks around 3 a.m., depending on whether you are a morning or evening person.
What the Data Show
The rhythm comes from the suprachiasmatic nucleus (SCN), a tiny cluster of nerve cells in the hypothalamus that works as the body’s master clock. A review in Sleep Medicine Reviews describes melatonin as made mainly by the pineal gland at night, with its rhythm generated by the SCN and kept in step with the light-dark cycle. Light can either suppress melatonin or shift its timing, depending on when it hits.
Light has a large effect. In an analysis of 116 healthy adults aged 18 to 30 who lived in a research unit for at least five days, ordinary room light (under 200 lux) in the evening delayed the start of melatonin in 99% of them compared with dim light. It also shortened the nightly melatonin signal by about 90 minutes. Room light during normal sleep hours cut melatonin by more than half in 85% of tests.
The “on” signal depends on nerves. A systematic review of 12 studies found evidence that adults with a complete spinal cord injury in the neck have no daily melatonin rhythm, unlike healthy people and people whose injury is lower in the back. That makes sense once you see the wiring, below.
Does the Pineal Gland Produce Serotonin?
Yes. The pineal gland makes its own serotonin as raw material for melatonin. Serotonin is best known as a brain messenger for mood, but in the pineal gland it is mainly a building block.
The steps are short:
- Tryptophan from food is converted to serotonin.
- An enzyme called arylalkylamine N-acetyltransferase (AANAT) adds a small chemical group to serotonin.
- A second enzyme finishes the job, and the result is melatonin.
AANAT is the step that changes from day to night. A review in the Journal of Biological Chemistry calls it the “Timezyme” because it controls the daily changes in melatonin production by the pineal gland. Its big swings in activity depend on a chemical messenger inside the cell called cyclic AMP, and the enzyme is controlled by a circadian clock and by environmental lighting.
Serotonin itself also cycles in the gland. In microdialysis studies in freely moving animals, researchers found that serotonin synthesis and release in the pineal gland are under circadian control, and that the timing of melatonin onset varied a lot from one animal to the next.
What Stimulates Melatonin Release From the Pineal Gland?
Norepinephrine, released by nerves onto the gland after dark. The animal microdialysis review puts it in two layers: melatonin synthesis is controlled from a distance by the SCN clock and up close by norepinephrine released in response to the clock’s signals.
The route is longer than you might expect. The SCN sends its signal to another part of the hypothalamus, then down the spinal cord to the upper chest, out to a nerve cluster in the neck called the superior cervical ganglion, and back up to the pineal gland. That loop through the spinal cord is why a complete neck injury can erase the melatonin rhythm, as the spinal cord review found.
The gland responds to this nerve signal partly through beta-1 receptors, the same receptors that beta blocker drugs block. A randomized, placebo-controlled crossover trial in 15 healthy volunteers concluded that beta blockers lower melatonin release by blocking beta-1 receptors. The beta-blocking forms of propranolol and atenolol cut overnight melatonin output by 80% and 86%. The forms of those drugs that do not block beta receptors had no effect, and carvedilol did not lower melatonin either.
Does the Suprachiasmatic Nucleus Secrete Melatonin?
No. The SCN is the clock, and the pineal gland is the hand on the clock. The SCN generates the rhythm, and the pineal gland is what actually makes and releases melatonin, according to the Sleep Medicine Reviews paper.
This also answers the anatomy question that shows up on many exams: the pineal gland sits in the epithalamus, part of the diencephalon, and it is the structure that produces melatonin. The SCN sits in the hypothalamus, just above the point where the optic nerves cross.
How Does Light Turn Off Melatonin?
Light acts only through the eyes. The pineal gland in humans does not sense light directly.
The light sensor is not the rods and cones you use to see. In a study of 72 healthy adults with 627 nighttime light tests, blue light at 446 to 477 nanometers was the most potent at suppressing melatonin. The pattern matched a light-sensing pigment different from the ones rods and cones use for vision. That pigment is melanopsin, found in a small set of light-sensing cells in the retina called ipRGCs.
Blind people show how separate the two systems are. In a New England Journal of Medicine study of 11 blind patients with no conscious perception of light, bright light lowered melatonin by an average of 69% in three of them, about the same as the 66% drop in sighted people. When two of those patients had their eyes covered, melatonin did not fall. In seven of the other blind patients light had no effect on melatonin, and in the eighth melatonin was undetectable. All eight reported a history of insomnia.
What Does Melatonin Do in the Body?
Melatonin is a darkness signal. The Sleep Medicine Reviews paper says its main job is to tell the body about the daily cycle of light and dark, and that its secretion adjusts to the length of the night. It also notes some evidence that melatonin helps keep the rhythms of body temperature and sleep-wake in step with each other.
The 2026 review is blunt that melatonin is not “the sleep hormone.” It sharpens the contrast between day and night, and between activity and sleep. Many animals use the length of the melatonin signal to time seasonal changes such as breeding, but the 2005 review says the evidence for seasonal effects in people in temperate climates is limited.
Does a Calcified Pineal Gland Make Less Melatonin?
Pineal calcification means small deposits of calcium and phosphorus build up inside the gland. It is common. A meta-analysis of imaging studies put the pooled rate at about 62%, higher with age, in men, and in white people.
Whether it matters is less clear. In a CT study of 31 adults with insomnia, the amount of uncalcified pineal tissue tracked with how much melatonin people made over 24 hours, while the calcified tissue did not. A higher degree of calcification went with less REM sleep, shorter total sleep and lower sleep efficiency. That is a small study that shows a link, not cause and effect.
Does Taking Melatonin Help You Sleep?
Modestly. A meta-analysis of 19 placebo-controlled trials with 1,683 people with primary sleep disorders found that melatonin helped people fall asleep about 7 minutes faster and sleep about 8 minutes longer. The effect did not fade with continued use.
Its stronger use is timing. According to the 2026 review, melatonin taken as a pill can move the body clock earlier or later depending on when it is taken, and that is the basis for its use in jet lag, delayed sleep phase syndrome and non-24-hour sleep disorder in blind people. If you are curious when your own melatonin starts each evening, that is what a DLMO test measures. If you buy it, the label does not always match the bottle, as I covered in my post on melatonin supplement quality.
Dr. Kumar’s Take
The pineal gland gets a lot of mystical attention, but its real job is simple and impressive. It takes a clock signal from deep in the brain, routes it down the spinal cord and back up, and turns it into a chemical message that reaches every organ: it is night now. Every part of that chain can be measured, and the spinal cord and beta blocker findings show what happens when one link breaks.
The practical point is that you control the main input. Light through your eyes is the off switch, and ordinary room light is strong enough to push your melatonin later and shorten your biological night. Before reaching for a pill, the cheapest experiment is to dim the lights in the last few hours before bed.
Practical Takeaways
- Dim the lights in the evening. Room light delayed melatonin in nearly everyone tested.
- Cut blue-heavy light before bed. Blue wavelengths are the most potent at shutting melatonin off.
- Get bright light in the morning. Light sets the clock that schedules melatonin, so a regular light pattern supports a regular rhythm.
- Keep a steady sleep schedule so the nightly melatonin rise lines up with your bedtime.
- Ask about your medicines if sleep got worse after starting a beta blocker such as propranolol or atenolol.
- Use melatonin pills for timing problems like jet lag, where the evidence is stronger than for general insomnia.
Related Studies and Research
- What Is DLMO (Dim Light Melatonin Onset)?
- Can Melatonin Cause Serotonin Syndrome?
- What Are ipRGCs in the Eye and What Do They Do?
- Does Room Light Before Bed Suppress Melatonin?
- Serotonin: The Master Neurotransmitter That Controls Mood and Digestion
- Melatonin: The Ancient Molecule That Connects All Life on Earth
- How Is Tryptophan Converted to Serotonin?
- What Does Social Connection Do for Your Health?
- Episode 29: Turkey, Tryptophan, and the Biochemical Magic of Thanksgiving
FAQs
What gland releases melatonin?
The pineal gland, a small gland near the center of the brain, releases melatonin into the blood at night. Small amounts are made in other tissues, but the nightly rise in the blood comes from the pineal gland.
Is melatonin release stimulated by darkness or light?
Darkness. After dark, the master clock lets nerves release norepinephrine onto the pineal gland, which switches on melatonin production. Light reaching the eyes shuts it off.
Does the pineal gland release serotonin?
The pineal gland makes serotonin, but mainly to convert it into melatonin. It is a building block there rather than the gland’s main product.
Why does melatonin peak in the middle of the night?
Production starts in the evening as darkness arrives and keeps climbing for several hours. In most people the peak falls around 3 a.m., with the exact time depending on whether you are a morning or evening type.
Can melatonin pills replace what the pineal gland makes?
They can add a night signal, and they can shift the body clock when timed well. For general insomnia, the average benefit in trials was small: about 7 minutes faster to fall asleep.
Bottom Line
The pineal gland turns serotonin into melatonin after dark, on a schedule set by the brain’s master clock and delivered through nerves that loop down the spinal cord and back. Light through the eyes, especially blue light, shuts it off, and ordinary room light in the evening is enough to delay it. Melatonin is a signal that night has arrived, not a sleeping pill, which is why managing your evening light matters more than most people expect.

