All guides

When to Take Melatonin: What Studies Show About Timing for Sleep, Jet Lag and Shift Work

An analog alarm clock beside a glass of water and a notebook on a bedside table, lit by a lamp at night
Illustration

Melatonin does two different things. For a few hours after you take it, it can make you sleepy. Taken at the right time over several days, it can also move your body clock earlier or later. Timing matters for both, but not in the same way. This guide sets out what the studies found for falling asleep, for delayed sleep phase, for jet lag and for shift work, and why a low dose is timed differently from a higher one.

It is not medical advice, and we cannot tell you when to take it. The U.S. National Center for Complementary and Integrative Health notes uncertainty about what dose to use and when to take it.

The Short Answer

  • For falling asleep, earlier may work better than right before bed. A 2024 analysis of 26 trials found melatonin worked better when taken about 3 hours before the desired bedtime than when taken 30 minutes before.
  • To move the body clock earlier, the best time in lab studies was the afternoon or early evening, hours before the body starts making its own melatonin. For 0.5 mg the best time was later than for 3 mg.
  • Taken at bedtime, melatonin barely moves the clock. A lab study of 3 mg found a “dead zone” with minimal shifts during the first half of habitual sleep.
  • For delayed sleep phase, 0.5 mg taken 1 hour before the desired bedtime, with a fixed sleep schedule, moved sleep onset 34 minutes earlier than placebo in a four-week trial.
  • For jet lag, a 2002 review found that melatonin taken close to the target bedtime at the destination (10 p.m. to midnight) reduced jet lag in nine of ten trials. Taken at the wrong time, early in the day, it can delay adjustment.
  • For shift work, melatonin taken after a night shift may add about 24 minutes of daytime sleep, on low-quality evidence.
  • Light works in the opposite direction. The clock’s response to melatonin is about 12 hours out of phase with its response to light.

Two Effects, Two Timings

Each evening, in dim light, the body starts releasing melatonin. Researchers call this the dim light melatonin onset, and they time melatonin doses against it. Our circadian rhythm guide explains how the clock and light work.

A lab study gave 27 young, healthy adults 3 mg of melatonin or placebo at a fixed clock time for three days and measured how far their clocks moved. The biggest move earlier came when melatonin was taken about 5 hours before their own melatonin onset, in the afternoon. The biggest move later came about 11 hours after it, shortly after the usual time of waking. Around the first half of habitual sleep there was a “dead zone” with minimal shifts. The largest fitted shifts were 1.8 hours earlier and 1.3 hours later. The authors conclude that melatonin used as a sleep aid at night “has minimal phase shifting effects” (Burgess et al., 2008).

So melatonin at bedtime acts mostly as a mild sleep aid, and melatonin in the afternoon or early evening acts mostly on the clock.

Why a Low Dose Is Timed Differently

The same team repeated the study with 0.5 mg in 34 healthy adults aged 18 to 42. The biggest move earlier came when 0.5 mg was taken in the afternoon, 2 to 4 hours before melatonin onset, or 9 to 11 hours before the midpoint of sleep. The best time for 0.5 mg was later than for 3 mg, and when each dose was taken at its own best time, both produced similarly sized shifts (Burgess et al., 2010).

Timing for Falling Asleep

  • A 26-trial analysis. A 2024 systematic review and dose-response meta-analysis of randomized trials in people with insomnia and healthy volunteers found that the effect on falling asleep and total sleep grew with dose up to about 4 mg a day. The authors suggest that about 3 hours before the desired bedtime may work better than the common schedule of 30 minutes before (Cruz-Sanabria et al., 2024).
  • Low doses in the evening. In a 1995 trial in healthy volunteers, 0.3 or 1 mg taken at 6, 8 or 9 p.m. shortened the time to fall asleep at all three times (Zhdanova et al., 1995).

Our low-dose melatonin guide covers these trials and the doses in more detail.

Delayed Sleep Phase

In delayed sleep-wake phase disorder, the body clock runs late, so people cannot fall asleep until very late and struggle to wake when they need to.

A double-blind trial in Australia randomized 116 people with this disorder whose melatonin onset came too late for the bedtime they wanted. For four weeks they took 0.5 mg of fast-release melatonin or placebo 1 hour before their desired bedtime, along with a fixed sleep schedule. Compared with placebo, sleep began 34 minutes earlier, and more people improved by clinician rating (52.8% vs 24.0%). Melatonin onset measured afterward in 43 of them did not differ significantly between groups, and long-term benefit and safety were not assessed. Some authors reported industry ties, including equipment donations from Philips and royalties for a melatonin test (Sletten et al., 2018).

The American Academy of Sleep Medicine’s 2015 guideline supports strategically timed melatonin, with second-tier confidence, for delayed sleep-wake phase disorder (Auger et al., 2015).

Jet Lag

A Cochrane review of ten randomized trials found that in nine of them, melatonin taken close to the target bedtime at the destination (10 p.m. to midnight) reduced jet lag after flights crossing five or more time zones. Doses from 0.5 to 5 mg worked similarly, although people fell asleep faster and slept better on 5 mg than on 0.5 mg, and doses above 5 mg were no more effective. The benefit was likely to be greater the more time zones crossed, and less for westward flights. The authors warn that melatonin taken at the wrong time, early in the day, can cause sleepiness and delay adaptation to local time (Herxheimer and Petrie, 2002).

The review is from 2002, so it does not include later trials.

Shift Work

A 2014 Cochrane review of 15 randomized trials in shift workers included nine trials of melatonin. Taken after a night shift, 1 to 10 mg may increase the length of daytime sleep by about 24 minutes compared with placebo (seven trials, 263 participants, low-quality evidence), and of night sleep by about 17 minutes. The reviewers found no dose-response effect, and melatonin did not shorten the time to fall asleep (Liira et al., 2014).

Light Pushes the Other Way

Light and melatonin move the clock at roughly opposite times of day. Lewy and colleagues describe the clock’s response to melatonin as about 12 hours out of phase with its response to light, and note that light also suppresses melatonin directly (Lewy et al., 1998). A 2022 expert report suggests keeping the three hours before sleep below 10 lux (Brown et al., 2022). Taken together, these findings suggest that bright light in the evening works against an evening dose.

Where Yu Sleep Fits

Yu Sleep, a liquid sleep formula we review, lists 0.9 mg of melatonin per serving along with nine other ingredients. The timing studies above tested melatonin on its own, so they do not tell you how a ten-ingredient blend behaves at any time of day. Our review covers what its label discloses. Affiliate disclosure: the review contains an affiliate link; if you buy through it, we may earn a commission.

Talk to Your Doctor If…

  • You cannot fall asleep until very late and cannot wake when you need to, most nights. That can be delayed sleep-wake phase disorder, and the trials above timed melatonin against each person’s measured melatonin onset, which a sleep clinic can assess.
  • You work night or rotating shifts and your sleep is suffering.
  • You have epilepsy or take blood thinners. NCCIH says these groups need medical supervision if they take melatonin, and anyone taking medicine should check with a provider first.
  • You are pregnant or breastfeeding, or the melatonin is for a child. NCCIH advises talking with a provider first.
  • Sleep trouble lasts for weeks. For chronic insomnia in adults, guidelines recommend cognitive behavioral therapy for insomnia first, as our guide to waking up at night explains.

What We Do Not Know

  • Your own best time. The clock studies timed doses against each person’s measured melatonin onset, and most people do not know theirs.
  • How well lab findings carry over. The clock studies were in young, healthy adults in controlled light.
  • Whether newer jet lag evidence changes the picture. The Cochrane review dates from 2002.
  • Long-term effects of timed melatonin. The delayed sleep phase trial lasted four weeks and did not assess long-term benefit or safety.

Questions

When is the best time to take melatonin?

It depends on the goal, and we cannot give you a time. For falling asleep, a 26-trial analysis found about 3 hours before the desired bedtime worked better than 30 minutes before. For shifting the clock earlier, lab studies found the afternoon or early evening worked best.

Should I take melatonin right before bed?

It is the most common way, and in lab studies melatonin at bedtime barely moved the body clock. The 2024 analysis found that taking it about 3 hours earlier was more effective for sleep.

When should I take melatonin for jet lag?

In the trials of a 2002 Cochrane review, it was taken close to the target bedtime at the destination, between 10 p.m. and midnight local time. The review warns that taking it early in the day can delay adjustment.

What happens if I take melatonin at the wrong time?

In the jet lag review, melatonin taken early in the day could cause sleepiness and delay adaptation. In the clock studies, doses after waking tended to move the clock later rather than earlier.

See Also

Low-Dose Melatonin covers what 0.3 to 1 mg does and next-day side effects. Melatonin for Sleep covers the full evidence and the label-accuracy studies. Is It Safe to Take Melatonin Every Night? covers long-term use. What Is the Circadian Rhythm? explains the clock itself.

Sources Cited in This Guide

  1. National Center for Complementary and Integrative Health, NIH. “Melatonin: What You Need To Know.” Last updated May 2024. Read September 19, 2026. NCCIH
  2. Burgess HJ, Revell VL, Eastman CI. “A three pulse phase response curve to three milligrams of melatonin in humans.” J Physiol. 2008. Read November 30, 2026 (abstract). PMID 18006583
  3. Burgess HJ, Revell VL, Molina TA, Eastman CI. “Human phase response curves to three days of daily melatonin: 0.5 mg versus 3.0 mg.” J Clin Endocrinol Metab. 2010. Read November 30, 2026 (abstract). PMID 20410229
  4. Cruz-Sanabria F, 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 Pineal Res. 2024. Read September 24, 2026 (abstract). PMID 38888087
  5. Zhdanova IV, et al. “Sleep-inducing effects of low doses of melatonin ingested in the evening.” Clin Pharmacol Ther. 1995. Read September 24, 2026 (abstract). PMID 7768078
  6. Sletten TL, Magee M, Murray JM, et al. “Efficacy of melatonin with behavioural sleep-wake scheduling for delayed sleep-wake phase disorder: A double-blind, randomised clinical trial.” PLoS Med. 2018. Read November 30, 2026 (abstract and competing interests). PMID 29912983
  7. Auger RR, et al. “Clinical Practice Guideline for the Treatment of Intrinsic Circadian Rhythm Sleep-Wake Disorders.” J Clin Sleep Med. 2015. Read September 19, 2026 (abstract). PMID 26414986
  8. Herxheimer A, Petrie KJ. “Melatonin for the prevention and treatment of jet lag.” Cochrane Database Syst Rev. 2002. Read November 30, 2026 (abstract). PMID 12076414
  9. Liira J, Verbeek JH, Costa G, et al. “Pharmacological interventions for sleepiness and sleep disturbances caused by shift work.” Cochrane Database Syst Rev. 2014. Read November 30, 2026 (abstract). PMID 25113164
  10. Lewy AJ, Bauer VK, Ahmed S, et al. “The human phase response curve (PRC) to melatonin is about 12 hours out of phase with the PRC to light.” Chronobiol Int. 1998. Read November 30, 2026 (abstract). PMID 9493716
  11. Brown TM, et al. “Recommendations for daytime, evening, and nighttime indoor light exposure to best support physiology, sleep, and wakefulness in healthy adults.” PLoS Biol. 2022. Read September 19, 2026 (full text). PMID 35298459

This guide is for information and is not medical advice. Talk to a healthcare provider about medication, pregnancy, medical conditions and persistent sleep problems.

If this guide was useful, send it to someone who is also awake at 3 a.m.