What Does Melatonin Do in the Body: Beyond Sleep

Melatonin is a hormone that regulates your sleep-wake cycle, but it does far more than help you fall asleep. It acts as a powerful antioxidant, influences your immune system, helps regulate blood pressure at night, plays a role in blood sugar metabolism, and protects your digestive tract. Your body produces it in the pineal gland deep in the brain, and in surprisingly large quantities in your gut. Here’s how it all works.

How Your Body Makes Melatonin

Melatonin production starts with tryptophan, an amino acid you get from food. Your body converts tryptophan into serotonin through a series of enzymatic steps, and then converts serotonin into melatonin. This final conversion happens primarily in the pineal gland, a tiny structure in the center of the brain, and it’s tightly controlled by light exposure.

When light hits your retina, a signal travels to the brain’s master clock (the suprachiasmatic nucleus in the hypothalamus), which then relays information down the spinal cord, through a chain of nerve fibers, and back up to the pineal gland. In bright light, the pineal gland stays quiet. In darkness, it ramps up melatonin production. This is why melatonin levels rise sharply in the evening and peak in the middle of the night.

Once released, melatonin has a short half-life of about 30 minutes. Your liver breaks it down quickly, and the byproducts are excreted in urine. This rapid clearance means your melatonin levels can shift fast in response to changes in your light environment.

Regulating Sleep Through Two Receptors

Melatonin doesn’t simply flip a single “sleep switch.” It works through two distinct receptors, called MT1 and MT2, that are located in different parts of the brain and serve specialized roles. MT1 receptors, found in brain areas associated with REM sleep (the dreaming stage), primarily regulate REM cycles. MT2 receptors, concentrated in the thalamus, selectively promote non-REM sleep, the deeper, restorative stage. Studies in mice missing one receptor or the other confirm this split: animals without MT1 receptors lose REM sleep, while those without MT2 receptors lose non-REM sleep.

MT1 receptors also appear to be the ones responsible for melatonin’s role in setting your circadian rhythm. MT2 receptors do not seem to share that function. This distinction matters because it explains why melatonin’s effects on sleep quality, sleep timing, and even anxiety may involve different biological pathways.

A Potent Antioxidant That Goes Everywhere

One of melatonin’s most remarkable properties has nothing to do with sleep. It is a direct free radical scavenger, meaning it neutralizes the unstable molecules that damage cells and DNA. Melatonin reacts with hydroxyl radicals (one of the most destructive types) at an extremely high rate, and it also neutralizes hydrogen peroxide, nitric oxide, and peroxynitrite.

What makes melatonin unusual among antioxidants is its access. It crosses every major barrier in the body, including the blood-brain barrier and the placenta. Most antioxidants you consume in food or supplements cannot reach the brain this easily. Melatonin can, which means it protects neural tissue directly. This unrestricted access to virtually every cell and tissue gives melatonin a broader protective reach than many other antioxidant molecules.

Immune System Balancing Act

Melatonin acts on the immune system through its MT1 receptor, which is expressed on T cells and other immune cells. Its effect is not simply to “boost” immunity. Instead, it shifts the balance of the immune response in a specific direction.

Research published in Cell showed that melatonin suppresses the development of Th17 cells, a type of immune cell involved in inflammatory responses and autoimmune conditions. At the same time, it promotes the development of regulatory T cells (called Tr1 cells), which calm immune activity by producing anti-inflammatory signals. The net effect is a shift away from inflammation and toward immune regulation. In mice genetically engineered to lack the melatonin receptor on their T cells, this anti-inflammatory effect disappears entirely, confirming that the effect runs directly through melatonin’s receptor signaling rather than being an indirect consequence of better sleep.

Blood Pressure and Your Heart at Night

Healthy blood pressure follows a circadian pattern: it drops during sleep (a phenomenon called “nocturnal dipping”) and rises again in the morning. Melatonin plays a role in this nightly decline. Because the brain’s master clock influences the autonomic nervous system’s control of the cardiovascular system, melatonin’s reinforcement of circadian signals helps maintain that normal nighttime drop.

In a study published by the American Heart Association, men with essential hypertension who took melatonin nightly at bedtime for three weeks saw their sleeping systolic blood pressure drop by 6 mm Hg and diastolic by 4 mm Hg. The natural day-to-night rhythm in blood pressure also became more pronounced, with amplitudes increasing by 15% for systolic and 25% for diastolic pressure. A single dose, however, had no effect. The benefit came from repeated nightly use, suggesting melatonin was strengthening the circadian signal itself rather than acting as a direct blood pressure medication.

Metabolism and Blood Sugar Regulation

Melatonin influences how your body handles glucose and fat. It activates an energy-sensing pathway in fat tissue that improves insulin sensitivity and helps cells take up glucose more efficiently. In mouse studies modeling disrupted sleep, animals with fragmented sleep developed weight gain, impaired glucose regulation, and increased inflammation in their fat tissue. Melatonin treatment reversed these changes: it restored the activity of glucose transporters, reduced inflammatory markers, and cut levels of reactive oxygen species in fat tissue roughly in half (from 31% to 14%).

Melatonin also reduced the expression of enzymes involved in cholesterol and fat synthesis that had been elevated by sleep disruption. This suggests melatonin helps maintain metabolic balance particularly when circadian rhythms are disturbed, which is relevant for shift workers, frequent travelers, or anyone with chronically poor sleep.

Your Gut Makes Far More Than Your Brain

The pineal gland gets most of the attention, but your gastrointestinal tract contains roughly 400 times more melatonin than the pineal gland does. Specialized cells in the gut lining called enterochromaffin cells produce melatonin locally, and this gut-derived melatonin operates largely independently of the pineal gland’s output.

In the digestive system, melatonin regulates intestinal motility (how food moves through you), strengthens the gut barrier that prevents harmful substances from leaking into the bloodstream, influences energy expenditure, and stimulates bicarbonate secretion, which helps neutralize stomach acid. This local production helps explain why melatonin’s effects in the body extend so far beyond the sleep-wake cycle. Your gut is producing and using it around the clock for purposes that have little to do with what time you go to bed.

How Melatonin Changes With Age

Melatonin production peaks in early childhood and declines progressively throughout life. This decline is one reason older adults commonly experience lighter, more fragmented sleep and earlier wake times. By middle age, nighttime melatonin levels are substantially lower than they were in childhood, and by the time people reach their 60s and 70s, the nightly surge can be quite diminished.

This age-related drop doesn’t just affect sleep. Because melatonin serves as an antioxidant, immune modulator, metabolic regulator, and cardiovascular signal, declining levels may contribute to the broader pattern of increased inflammation, reduced insulin sensitivity, and impaired immune regulation that accompanies aging. The loss is gradual, not sudden, and it varies between individuals, but the trajectory is consistent: your body makes less melatonin the older you get.