Some nights, even after getting into bed, the brain seems stuck in daytime. Thoughts keep overlapping like slides in a presentation. Work trips, crossing several time zones, or an uncomfortable hotel bed can all make it difficult to fall asleep even after night has fallen, leaving you wide awake until morning. How does the body know that “night has arrived”? And how does it coordinate the transition into sleep? Melatonin is an important signal along this timeline.[1][2]
1. How Does the Message of Night Reach the Body?
The body detects changes between day and night through environmental light. Light is first detected by the retina in the eye. After being processed, the light signal travels along the optic pathway to the suprachiasmatic nucleus (SCN) in the hypothalamus—the central timing network for the body's circadian rhythms. From the SCN, the signal is relayed to other areas of the hypothalamus, then travels through the spinal cord and cervical ganglia before ultimately reaching the pineal gland, where it regulates the production and release of melatonin. Light does not shine directly on the pineal gland.[1][3]
Melatonin produced by the body is known as endogenous melatonin. It typically rises during the biological night—that is, the nighttime period as defined by the body's internal clock—and remains at a lower level during the day. In research, the time when melatonin begins to rise under dim-light conditions, known as dim-light melatonin onset (DLMO), is often used to estimate an individual's circadian phase, or where the internal clock is in its cycle. It acts like a signal from the body saying, “It is now nighttime.” A single melatonin reading in blood or saliva, however, is not a scientifically valid measure of sleep quality.[1]
2. Why Does Light at Night Change This Signal?
As environmental light decreases and the body's internal time enters the biological night described above, melatonin release from the pineal gland generally increases, gradually shifting the body into nighttime mode. Exposure to light at night can suppress melatonin secretion while the exposure is occurring. Light exposure at certain times can also shift the timing of subsequent circadian rhythms. The effects depend on the timing, intensity, and spectrum of the light, as well as individual factors.[1][4]
A human study comparing ordinary indoor lighting with dimmer lighting before bedtime found that room light delayed the onset of melatonin secretion and shortened the duration of its nighttime rise.[4] This suggests that even lighting that is on at night but does not feel glaringly bright may alter the body's nighttime signal. However, the study measured changes in melatonin secretion only; it did not directly assess how quickly participants fell asleep or their sleep architecture. It therefore cannot establish how much this change affects sleep.
3. How Is Melatonin Different from the Growing Sleepiness That Comes with Staying Awake?
After a person has been awake for a period of time, fatigue increases and the need for sleep gradually builds up. Sleep is needed to dissipate this accumulated fatigue. This mechanism, which changes with wakefulness and sleep, is called sleep homeostasis and is commonly understood as “sleep pressure.” A second mechanism that works alongside it to influence sleep onset is the circadian rhythm, which coordinates the body's daily tendency toward wakefulness and sleep through the SCN. These two mechanisms work together: even after the same amount of time awake, a person may feel differently inclined to sleep depending on whether the body's internal clock indicates daytime or nighttime.[2]
Melatonin mainly participates in transmitting timing signals and can act on the systems that regulate circadian rhythms. It does not build up sleep pressure for us, nor can it directly “make up” for sleep lost the previous night. As a result, someone who is already very tired may still find it difficult to fall asleep at the desired time if the body's internal clock is still aligned with daytime or wakefulness. Melatonin is more concerned with when night begins and how sleep aligns with internal time; its level alone cannot be used to judge sleep quality.[1][2]
4. Why Endogenous Production and Supplemental Melatonin Must Be Discussed Separately
Endogenous melatonin rises and falls with the body's internal clock. Melatonin taken orally or through other external means is called exogenous melatonin; the timing and formulation of what enters the body are determined by external factors. The two are related, but the effects of supplemental melatonin should not simply be equated with those of melatonin naturally produced by the body. Taking melatonin supplements does not necessarily produce the same effects. Human phase-response studies have found that taking exogenous melatonin at different points in internal time can shift the body's clock earlier or later, or produce very little change.[5] In research, a change in the timing of the body clock relative to its baseline timing is called a phase shift.
In addition to its role in regulating circadian rhythms, melatonin is better known for its sleep-promoting effects, which will be discussed in more detail later. When considering its effects, however, it is important to distinguish between two goals: taking it to make it temporarily easier to fall asleep, or using it to shift a persistently delayed internal clock toward a more appropriate time. The timing of administration, light exposure, and intended goal differ, so findings from one context cannot be directly applied to another. As for sleep quality, exogenous melatonin has not been reliably shown to generally increase deep sleep or optimize the proportions of sleep stages in healthy people.[1][5][6]
5. Where Is There Human Research, and Which Sleep Problems May Have Other Causes?
Travel across time zones can leave the body's internal rhythms out of sync with the day–night cycle at the destination. A Cochrane review of relevant human trials found that melatonin reduced jet-lag symptoms in some studies, with the clearest evidence coming from travel across five or more time zones. Interestingly, the benefits may be more pronounced when flying east across time zones. In the studies included in the review, melatonin was generally taken close to the local bedtime at the destination. Taking it at an unsuitable time, however, may cause daytime sleepiness and interfere with adjustment to local time. The review primarily assessed jet-lag symptoms; it did not directly prove that every individual's internal circadian rhythm had fully adjusted, and its findings should not be generalized to all forms of travel-related fatigue.[7]
Some people naturally fall asleep and wake up very late. Even when they try to go to bed earlier, they may be unable to fall asleep at the desired time and still need to get up in the morning for school or work. If this pattern persists and is confirmed through professional assessment, it may be a delayed sleep-wake phase disorder. The American Academy of Sleep Medicine's 2015 guideline made a weak recommendation for appropriately timed melatonin use in adults and in children and adolescents with this disorder, including young people with co-occurring psychiatric conditions.[6] A double-blind randomized trial enrolled 116 patients diagnosed with the disorder whose dim-light melatonin onset occurred later than their desired bedtime. All participants followed a target bedtime. One group took 0.5 mg of immediate-release melatonin one hour before the target bedtime, while the other took a placebo, on at least five consecutive nights per week for four weeks. Compared with the placebo group, the melatonin group fell asleep about 34 minutes earlier on average. Participants also reported a reduction in the daytime impact of sleep-related problems, with an improvement of about four points reported in the study. The proportions rated by clinicians as “much improved” were 52.8% and 24.0%, respectively. The study did not assess long-term effects beyond four weeks. Because both groups maintained a fixed bedtime schedule during the trial, the results do not show that melatonin alone would produce the same effect.[8]
The causes of general insomnia are more varied. A 2013 meta-analysis included 19 randomized, placebo-controlled human trials involving a total of 1,683 adults and children with different primary sleep disorders, including insomnia and delayed sleep timing. Compared with placebo, participants taking melatonin fell asleep about seven minutes sooner on average, slept about eight minutes longer in total, and showed a small improvement in sleep-quality scores. However, the result for total sleep time was not stable when a different statistical method was used, so the findings do not mean that every type of insomnia will benefit.[9] The American Academy of Sleep Medicine's 2017 clinical practice guideline for pharmacological treatment of chronic insomnia in adults does not recommend melatonin as a routine treatment for either sleep-onset or sleep-maintenance insomnia in the general adult population.[10] This does not invalidate every individual study. Rather, it reminds us that occasional difficulty falling asleep, chronic insomnia, circadian misalignment, and jet lag have different causes and should not be treated as the same sleep problem.
6. Why Timing, Formulation, and Safety Deserve Careful Attention
Melatonin seems to have become a go-to supplement for people who have trouble sleeping. Before using it, however, the first question should be whether the intended goal matches what melatonin may help with. If the goal is to adjust to jet lag or shift circadian timing, improvement may be possible in some circumstances. The timing of supplementation then needs to be considered alongside the individual's internal circadian rhythm, target sleep time, and light exposure. Doses and formulations also vary across studies, as outlined below.[5][6][8]
A crossover trial involving 30 adults over the age of 50 included 15 participants who initially had low sleep efficiency and 15 whose sleep was normal. Researchers compared 0.1 mg, 0.3 mg, and 3 mg of melatonin, each taken 30 minutes before bedtime for one week, with placebo. Among participants who initially had low sleep efficiency, all three doses improved sleep measures. A dose of 0.3 mg was sufficient to bring sleep efficiency into the normal range as defined by the study, while 3 mg kept blood melatonin levels elevated into the daytime. Participants whose sleep was normal at baseline did not experience the same improvements with these doses.[12]
Another small trial involving 24 healthy older adults compared 0.3 mg and 5 mg of melatonin, taken 30 minutes before lights-out, with placebo periods lasting two weeks. The study was designed so that participants slept during both their biological day and their biological night. Compared with placebo, the 5 mg group showed increased sleep efficiency during both periods, mainly associated with a longer duration of stage 2 sleep (N2). The 0.3 mg group showed only an overall trend toward improvement, primarily during the biological day.[13] A dose-response analysis pooling 26 randomized trials found that the average effects of melatonin on shortening sleep-onset latency and increasing total sleep time reached a model-estimated peak at around 4 mg. However, participants, administration times, and formulations differed across studies, so this is not a recommended dose for everyone.[14] Given the variation in study conditions and the complexity of insomnia, this article does not provide a universal melatonin dose or a schedule for adjusting use independently. The specific milligram amounts used in individual trials should not be copied directly for children, older adults, or—especially—people with existing medical conditions or those taking medication.
In terms of safety, short-term use of melatonin is relatively safe for many adults, but evidence on the safety of long-term use remains insufficient. Some people may experience daytime sleepiness or other discomfort after taking it. Reports of serious adverse events in short-term studies have been relatively uncommon. People who are pregnant or breastfeeding, children, and those taking anticoagulants or living with epilepsy should consult a qualified health professional before use.[11]
Conclusion: Understand the Body's “Timing” Before Considering Supplementation
Melatonin provides an important pathway for understanding the timing of sleep: light is detected by the retina and processed through the body's circadian clock network, which influences the nighttime signal from the pineal gland and helps the body distinguish day from night. Endogenous melatonin helps mark the arrival of night, while light exposure at inappropriate times can disrupt the body clock and create a sense of day–night misalignment. Exogenous melatonin has been studied in certain situations involving circadian misalignment and may help improve sleep onset. However, a single melatonin measurement cannot replace a comprehensive sleep assessment, nor can it guarantee better sleep quality. When sleep becomes difficult, it is more useful to first identify whether the problem lies in the timing of sleep onset, the continuity of sleep during the night, or the circadian rhythm as a whole, rather than immediately reaching for melatonin as an easy “sleep solution.” Lifestyle adjustments based on that understanding, together with appropriately considered use of exogenous melatonin when warranted, can be a starting point for better sleep.
References
- Emens J S, Burgess H J. Effect of Light and Melatonin and Other Melatonin Receptor Agonists on Human Circadian Physiology[J]. Sleep Medicine Clinics, 2015, 10(4): 435-453. DOI: 10.1016/j.jsmc.2015.08.001. PMID: 26568121.
- Borbély A A, Daan S, Wirz-Justice A, et al. The two-process model of sleep regulation: a reappraisal[J]. Journal of Sleep Research, 2016, 25(2): 131-143. DOI: 10.1111/jsr.12371. PMID: 26762182.
- Lockley S W, Arendt J, Skene D J. Visual impairment and circadian rhythm disorders[J]. Dialogues in Clinical Neuroscience, 2007, 9(3): 301-314. DOI: 10.31887/DCNS.2007.9.3/slockley. PMID: 17969867.
- Gooley J J, Chamberlain K, Smith K A, et al. Exposure to room light before bedtime suppresses melatonin onset and shortens melatonin duration in humans[J]. Journal of Clinical Endocrinology & Metabolism, 2011, 96(3): E463-E472. DOI: 10.1210/jc.2010-2098. PMID: 21193540.
- Burgess H J, Revell V L, Eastman C I. A three pulse phase response curve to three milligrams of melatonin in humans[J]. Journal of Physiology, 2008, 586(2): 639-647. DOI: 10.1113/jphysiol.2007.143180. PMID: 18006583.
- Auger R R, Burgess H J, Emens J S, et al. Clinical Practice Guideline for the Treatment of Intrinsic Circadian Rhythm Sleep-Wake Disorders: Advanced Sleep-Wake Phase Disorder (ASWPD), Delayed Sleep-Wake Phase Disorder (DSWPD), Non-24-Hour Sleep-Wake Rhythm Disorder (N24SWD), and Irregular Sleep-Wake Rhythm Disorder (ISWRD). An Update for 2015: An American Academy of Sleep Medicine Clinical Practice Guideline[J]. Journal of Clinical Sleep Medicine, 2015, 11(10): 1199-1236. DOI: 10.5664/jcsm.5100. PMID: 26414986.
- Herxheimer A, Petrie K J. Melatonin for the prevention and treatment of jet lag[J]. Cochrane Database of Systematic Reviews, 2002(2): CD001520. DOI: 10.1002/14651858.CD001520. PMID: 12076414.
- Sletten T L, Magee M, Murray J M, et al. Efficacy of melatonin with behavioural sleep-wake scheduling for delayed sleep-wake phase disorder: A double-blind, randomised clinical trial[J]. PLOS Medicine, 2018, 15(6): e1002587. DOI: 10.1371/journal.pmed.1002587. PMID: 29912983.
- Ferracioli-Oda E, Qawasmi A, Bloch M H. Meta-analysis: melatonin for the treatment of primary sleep disorders[J]. PLOS ONE, 2013, 8(5): e63773. DOI: 10.1371/journal.pone.0063773. PMID: 23691095.
- Sateia M J, Buysse D J, Krystal A D, et al. Clinical Practice Guideline for the Pharmacologic Treatment of Chronic Insomnia in Adults: An American Academy of Sleep Medicine Clinical Practice Guideline[J]. Journal of Clinical Sleep Medicine, 2017, 13(2): 307-349. DOI: 10.5664/jcsm.6470. PMID: 27998379.
- National Center for Complementary and Integrative Health. Melatonin: What You Need To Know[EB/OL]. NIH. <https://www.nccih.nih.gov/health/melatonin-what-you-need-to-know>
- Zhdanova I V, Wurtman R J, Regan M M, et al. Melatonin treatment for age-related insomnia[J]. Journal of Clinical Endocrinology & Metabolism, 2001, 86(10): 4727-4730. DOI: 10.1210/jcem.86.10.7901. PMID: 11600532.
- Duffy J F, Wang W, Ronda J M, et al. High dose melatonin increases sleep duration during nighttime and daytime sleep episodes in older adults[J]. Journal of Pineal Research, 2022, 73(1): e12801. DOI: 10.1111/jpi.12801. PMID: 35436355.
- Cruz-Sanabria F, Bruno S, Crippa A, et al. Optimizing the Time and Dose of Melatonin as a Sleep-Promoting Drug: A Systematic Review of Randomized Controlled Trials and Dose-Response Meta-Analysis[J]. Journal of Pineal Research, 2024, 76(5): e12985. DOI: 10.1111/jpi.12985. PMID: 38888087.