When should I take melatonin?
On this page
It depends on what you want it to do. To fall asleep faster, take it 1 to 3 hours before bed, so between 8 and 10pm for an 11pm bedtime. To move your bedtime earlier for good, take 0.5 mg about 5 hours before your usual bedtime, which lands in the late afternoon or early evening.
The bottle says to take it before bed, so most people swallow it as they turn off the light. That’s how you’d time a sleeping pill. Your brain starts releasing its own melatonin in the evening, about 2 to 2.5 hours before you usually go to sleep, and a tablet tells your body clock the same thing at whatever hour you swallow it.
We’d pick the job first and the hour second. For most people that means 0.5 to 1 mg one to three hours before bed, lamps instead of overhead lights once it’s in, and two weeks of your own nights before you decide it works.
It’s like a reminder to start getting ready for bed. Set it to go off at bedtime and it’s too late to help.
Why does the hour change what it does?
Taken in the hours before your own melatonin starts, a tablet pulls your body clock earlier. Taken just after you wake up, it pushes it later. While you’re asleep it barely moves the clock at all. A team in Chicago mapped this in 2010. 34 adults took one pill a day for 3 days in a dim lab, each at a different hour, and the biggest moves earlier came when 0.5 mg was taken in the afternoon, 2 to 4 hours before their own melatonin started.
For falling asleep, earlier did better too. A 2024 analysis of 26 trials found that the longer the gap between the dose and sleep, the more it cut the time it took to fall asleep. The authors suggested about 3 hours before the bedtime you want, against the schedule most clinics used, 2 mg half an hour before bed. Small doses worked early as well. In a 1995 sleep lab test, 0.3 or 1 mg at 6, 8 or 9pm all shortened the time to fall asleep, with no hangover on the morning tests.
When to take it to fall asleep faster
Start with 0.5 to 1 mg.
| Asleep by | Take it between |
|---|---|
| 10pm | 7 and 9pm |
| 11pm | 8 and 10pm |
| Midnight | 9 and 11pm |
| 1am | 10pm and midnight |
| 2am | 11pm and 1am |
When to take it to move your bedtime earlier
The time you wake up on a day with no alarm predicts when your own melatonin starts, within about an hour for most people in the original study. Take 0.5 mg 2 to 4 hours before that.
| You wake on a free day at | Your melatonin probably starts | Take 0.5 mg between | One time to remember |
|---|---|---|---|
| 6am | 8pm | 4 and 6pm | 5pm |
| 7am | 8:45pm | 4:45 and 6:45pm | 5:45pm |
| 8am | 9:35pm | 5:35 and 7:35pm | 6:35pm |
| 9am | 10:20pm | 6:20 and 8:20pm | 7:20pm |
| 10am | 11:10pm | 7:10 and 9:10pm | 8:10pm |
| 11am | Midnight | 8 and 10pm | 9pm |
The surprise for most people is the afternoon. If you sleep until 8am on weekends, the best hour to move your clock earlier is around 6:35pm, long before you’d think about bed. Then keep the room dim. Ordinary room light in the hours before bed made melatonin start later in 99 percent of 116 young adults in a 2011 study, which is why light does the same job, harder.
The equation behind that table came from young people sleeping on their own schedule in summer. It can be further off for older adults, shift workers and anyone whose alarm runs their life, so treat the times as a starting point and watch your own nights.
When the tables don’t apply
If you’re under 18, pregnant or breastfeeding, or take a prescription medicine every day, these windows aren’t for you. Start with the children’s answer, the pregnancy answer or the medicines answer. For a trip there’s the jet lag planner, and for nights at work the night shift planner. To move your bedtime later there’s no pill window at all, since the hour that does it is just after waking, when a tablet makes you drowsy. Evening light and a later wake time do that job.
Put your own wake time into the calculator below, or take the quiz for your window, your dose and a two-week test. Don’t drive after a dose.
6 sources
- Cruz-Sanabria F and others, Optimizing the time and dose of melatonin as a sleep-promoting drug: a systematic review of randomized controlled trials and dose-response meta-analysis, Journal of Pineal Research, 2024pubmed.ncbi.nlm.nih.gov
- 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, Journal of Clinical Endocrinology and Metabolism, 2010pubmed.ncbi.nlm.nih.gov
- Burgess HJ, Eastman CI, The dim light melatonin onset following fixed and free sleep schedules, Journal of Sleep Research, 2005pubmed.ncbi.nlm.nih.gov
- Eastman CI, Burgess HJ, How to travel the world without jet lag, Sleep Medicine Clinics, 2009pubmed.ncbi.nlm.nih.gov
- Zhdanova IV and others, Sleep-inducing effects of low doses of melatonin ingested in the evening, Clinical Pharmacology and Therapeutics, 1995pubmed.ncbi.nlm.nih.gov
- Gooley JJ and others, Exposure to room light before bedtime suppresses melatonin onset and shortens melatonin duration in humans, Journal of Clinical Endocrinology and Metabolism, 2011pubmed.ncbi.nlm.nih.gov