What Is Melatonin, When Is It Produced and What Affects It?

Why do your eyes start closing at 11 p.m., but after an hour of scrolling through TikTok, you suddenly feel wide awake? Part of the answer lies in melatonin, a hormone that tells your body when night has arrived. But how exactly does it work? Let’s explore what melatonin is, where it is produced, when melatonin levels peak, what disrupts its natural rhythm and how to keep your internal body clock on schedule.
What Is Melatonin and What Does It Do?
Melatonin is a hormone produced primarily by the pineal gland, a tiny structure about the size of a grain of rice located deep in the brain. It sends a signal to the body that darkness has arrived, which is why it is often called the darkness hormone or, more commonly, the sleep hormone.
Melatonin doesn’t work like a sleeping pill. It doesn’t simply switch your brain off. Instead, it helps regulate your circadian rhythm, the internal biological clock that determines when you naturally feel sleepy or alert.
How Is Melatonin Produced in the Body?
Melatonin production begins with tryptophan, an amino acid obtained from food. Tryptophan is used to produce serotonin, which the pineal gland then converts into melatonin when darkness falls.
The process is coordinated by the body’s master biological clock, located in the hypothalamus, a region of the brain responsible for many automatic functions.
This clock receives information about light from the retina. When it’s bright outside, melatonin production is suppressed. As daylight fades, the pineal gland begins increasing its output.
When Is Melatonin Produced?
Melatonin is produced mainly during darkness. Its levels typically begin rising around 1.5-3 hours before a person’s usual bedtime, remain elevated throughout the night and reach their highest point during the early morning hours.
| Time of day | Melatonin levels |
| Daytime | Low |
| Evening and dusk | Gradually increasing |
| Around 2 a.m.-4 a.m. | Typically near their nighttime peak |
| Dawn and morning | Gradually decreasing |
During winter, nights are longer, so the body’s exposure to darkness lasts longer too. This can influence the timing and duration of the melatonin signal.
It’s one reason why getting out of bed at 7 a.m. on a dark November morning can feel very different from waking up at the same time in July.
How Does Melatonin Production Change With Age?
The natural rhythm of melatonin begins developing during the first few months of life. During adolescence, melatonin release tends to shift later into the evening. In older adults, nighttime melatonin levels often become lower, and their timing may change.
This explains why a teenager who isn’t sleepy at 10 p.m. may not simply be refusing to go to bed. Their biological clock genuinely runs on a different schedule.
Children’s eyes also transmit more short-wavelength light than adult eyes, which can make evening screen exposure particularly relevant to their circadian rhythm.
What Affects Melatonin Production?
Light is one of the strongest factors affecting melatonin production, especially blue light with wavelengths around 460-480 nanometres.
Special light-sensitive cells in the retina contain a pigment called melanopsin. They detect changes in lighting and send signals to the brain’s biological clock.
This is why a brightly lit smartphone screen just before bedtime can interfere with the body’s natural nighttime signals.
Other factors that can affect melatonin production and the sleep-wake cycle include:
- Coffee and energy drinks. Caffeine can stay in the body for several hours. Find out more in our article Caffeine and Sleep: How Many Hours Before Bed to Stop Coffee.
- Irregular sleep schedules. Night shifts, sleeping in on weekends and travelling across several time zones can shift the body’s internal clock.
- Insufficient daylight exposure. Without a clear morning light signal, the circadian system may have fewer cues to distinguish day from night.
- Alcohol and heavy meals late at night. Both can affect nighttime routines and sleep patterns.
- Busy evenings. Work messages, endless notifications and last-minute tasks can make it difficult to transition from daytime activity to rest. For more ideas, read Stress and Sleep: How to Create an Evening Routine.
How to Support Natural Melatonin Production: 5 Everyday Habits
- Keep a regular sleep schedule. Try going to bed and waking up at approximately the same time, including weekends.
- Get morning daylight. Spend 15-30 minutes outdoors in natural light after waking up.
- Reduce screen time before bed. Put your phone away about an hour before bedtime or switch to warmer, dimmer screen settings.
- Create a darker sleeping environment. Choose warm, low-intensity lighting in the evening and keep your bedroom dark and comfortably cool, around 18-20°C.
- Plan intense workouts earlier. Where possible, finish vigorous exercise at least three hours before bedtime.
Interesting Facts About Melatonin
- In 1958, dermatologist Aaron Lerner first isolated melatonin after extensive research involving the pineal glands of cattle. The name comes partly from the Greek word melas, meaning black, reflecting its effects on pigment cells.
- Melatonin is an ancient signalling molecule found not only in humans and animals but also in plants, algae and some microorganisms.
- In many animals, the duration of nighttime melatonin release carries information about the season. This helps species such as hamsters and deer respond to changes in day length.
- The tuatara, a reptile native to New Zealand, has a remarkable structure often called a third eye, located on top of its head and associated with light detection.
- As people age, calcium deposits may accumulate in the pineal gland. Scientists sometimes refer to these deposits as brain sand, and they can be visible on medical imaging.
- The philosopher René Descartes once believed the pineal gland was the seat of the soul.
- Melatonin also occurs naturally in certain foods, including cherries, walnuts, tomatoes and oats.

Flomma as Part of an Evening Routine
If you’re building a consistent evening routine, you may also want to learn more about Flomma by Vorwarts Pharma.
Flomma is a liquid dietary supplement for adults and children aged 3 and over. Its formula contains Lactium® HD4, a milk protein hydrolysate, and vitamin B6. The liquid format makes measuring individual servings convenient.
The product’s listed areas of use include:
- Reduction of emotional tension
- Increased resilience to stress
- Faster falling asleep
- Improved sleep quality
- Maintenance of concentration
Explore more products in the Vorwarts Pharma product catalogue. High-quality dietary supplements for the whole family.
FAQ: Frequently Asked Questions About Melatonin
Where is melatonin produced?
Melatonin is produced primarily in the pineal gland, a small structure located near the centre of the brain. Smaller amounts are also produced in other tissues, including the gastrointestinal tract and retina.
What time does melatonin production start?
Melatonin levels usually begin rising in the evening as light exposure decreases. Its nighttime peak commonly occurs around 2 a.m.-4 a.m., although the exact timing depends on an individual’s sleep schedule and circadian rhythm.
When are melatonin levels highest?
Melatonin levels are generally highest during the middle of the biological night. For someone following a typical daytime schedule, this often corresponds to approximately 2 a.m.-4 a.m.
Does the body produce melatonin during the day?
Daytime melatonin levels are normally very low because exposure to light suppresses its production in the pineal gland. Melatonin synthesis increases again when darkness arrives.
Why is melatonin called the darkness hormone?
Melatonin is known as the darkness hormone because its release is closely linked to the daily cycle of light and darkness. Evening darkness allows production to rise, while light exposure can suppress it.
What blocks melatonin production?
Bright light in the evening, particularly light containing a significant amount of blue wavelengths, can suppress melatonin production. Irregular sleep schedules and nighttime screen exposure can also affect its natural timing.
Does caffeine affect melatonin and sleep?
Yes. Caffeine consumed late in the day may delay the timing of the evening melatonin rise and interfere with the normal sleep-wake schedule. Individual sensitivity varies.
How can you increase melatonin naturally?
The most practical approach is to maintain conditions that match your body’s natural circadian rhythm: get daylight in the morning, reduce bright light at night, maintain regular sleeping hours and limit screen exposure before bedtime.
Does blue light affect melatonin production?
Yes. Blue-enriched light activates specialised cells in the retina that communicate with the brain’s biological clock. Exposure to this light in the evening can suppress or delay natural melatonin release.
Does melatonin production decrease with age?
Nighttime melatonin levels often decline with age, although the extent varies between individuals. Changes in sleep timing, lifestyle and light exposure may also influence its daily rhythm.