The Melatonin GuideTake it on your own clock
A pillow with a small clock
When to take it

How long before bed should I take melatonin?

By GyroscopeUpdated November 14, 20265 sources
On this page
  1. Your window, by bedtime
  2. Why earlier works
  3. Dim the room when you take it
  4. The fine print

One to three hours before bed. In a 2024 analysis of 26 trials, the longer the gap between the dose and sleep, the more it helped people fall asleep, and the authors suggested about 3 hours. For an 11pm bedtime, take it between 8 and 10pm.

Most labels and a lot of websites still say 30 minutes to an hour. That advice treats melatonin like a sleeping pill, timed to kick in as your head hits the pillow. The 2024 authors compared their finding with the schedule clinics used most, 2 mg half an hour before bed, and suggested moving the dose earlier.

We’d take 0.5 to 1 mg in that 1 to 3 hour window, switch to lamps once it’s in, and judge it on two weeks of your own nights. If you’ve been taking it at lights out and felt nothing, the hour is the first thing to change.

It works like dusk. Your body expects the evening to start a few hours before sleep, and a dusk that shows up at bedtime is late.

Your window, by bedtime

Asleep byTake it between
10pm7 and 9pm
11pm8 and 10pm
Midnight9 and 11pm
1am10pm and midnight
2am11pm and 1am

These are for falling asleep faster. Moving your bedtime earlier for good uses a different, earlier window, about 5 hours before your usual bedtime, and the main timing answer has that table.

Why earlier works

Your own melatonin starts rising about 2 to 2.5 hours before you usually go to bed, and the time you wake on a day off predicts when. A tablet taken in that stretch joins your own evening rise instead of arriving after it.

A tablet also takes a while to get going. In a 2016 Danish study, 12 men swallowed 10 mg and their blood levels peaked about 40 minutes later on average. Take it 30 minutes before bed and the peak lands after the lights are out.

Earlier doses held up in the sleep lab too. In 1995, volunteers took 0.3 or 1 mg at 6, 8 or 9pm. Every dose at every hour shortened the time it took to fall asleep, and nobody had a hangover on the morning tests.

Dim the room when you take it

The tablet is only half of the evening. In a 2011 study of 116 adults aged 18 to 30, ordinary room light in the hours before bed made their own melatonin start later in 99 percent of them, and it ran about 90 minutes shorter. Lamps instead of ceiling lights, from the time you take it, help the dose do its job.

The fine print

If you’re under 18, pregnant or breastfeeding, or take a prescription medicine every day, skip these windows and start with the children’s answer, the pregnancy answer or the medicines answer. Don’t drive after a dose.

Put your bedtime into the calculator below for your own window, or see your dose across the night to check it’s gone by your alarm.

When should you take it?

96% of people within 1.5 hours74% within 1 hourmidnight6amnoon6pmasleepyou wake
Take 0.5 to 1 mg8:30 to 10:30pmasleep by 11:30pm
What should it do?

Your own melatonin probably starts around 9:35pm.

To fall asleep faster by 11:30pm, take 0.5 to 1 mg between 8:30 and 10:30pm. 3 mg is plenty for most people, and 5 mg is the top.

  • Lamps only from your window to bed, and no overhead lights.

The full window, with your night curve and the tables.

5 sources
  1. 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
  2. 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
  3. Andersen LP and others, Pharmacokinetics of oral and intravenous melatonin in healthy volunteers, BMC Pharmacology and Toxicology, 2016pubmed.ncbi.nlm.nih.gov
  4. Burgess HJ, Eastman CI, The dim light melatonin onset following fixed and free sleep schedules, Journal of Sleep Research, 2005pubmed.ncbi.nlm.nih.gov
  5. 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
With Gyroscope One, snap the bottle when you take it and see your melatonin nights against your usual sleep, from your Apple Watch, Oura, WHOOP or Garmin. Open Gyroscope

Your personalized guide

When should I take melatonin, and how much?

Eight taps. You get when your own melatonin probably starts, the hour and the dose for what you want it to do, and a way to tell in two weeks if it's working.

  • Your window, on your own clock
  • Your dose against the trials
  • Free, under a minute
Start