Sleep ScheduleBedtime planner
Blog

Sleep Schedule Blog

The Right Time to Take Melatonin Isn't Bedtime

Melatonin is a timing signal, not a sedative. Learn when to take it: two hours before a target bedtime, and at destination bedtime flying east.

When to take melatonin: why the right time isn't bedtime

Swallow a melatonin, turn out the light, and wait. When sleep doesn't come, the supplement gets the blame. Most of the time the pill isn't the problem. The clock is.

Melatonin is a timing signal, not a sedative. It tells your body clock that darkness is arriving, and a signal only works if it shows up early enough. That distinction explains nearly every melatonin disappointment: a dose swallowed at bedtime does little, a bigger pill can't rescue bad timing, and the same dose that helps on an eastbound flight can set you back flying west.

The rules of when to take melatonin fit in a few sentences, and all of them follow from that signal idea: take it about two hours before a target bedtime to shift sleep earlier, take it at the destination's bedtime for the first nights after an eastbound flight, keep the dose small, and skip it entirely in situations where it has nothing to offer. What follows explains each rule and the mistakes that undo them. This is planning guidance, not medical advice, and a clinician can tailor timing and dose to your situation.

What melatonin actually does: a darkness signal, not a sedative

Melatonin is a chronobiotic, a darkness signal released by the brain's pineal gland as light dims. The body makes it on its own every evening, and as Johns Hopkins sleep expert Luis F. Buenaver explains, it "doesn't make you sleep." Rising evening levels instead produce a state of "quiet wakefulness" that makes sleep onset easier (Johns Hopkins Medicine).

A woman draws sheer curtains closed over a bedroom window at dusk, lit by the warm glow of a bedside lamp while blue twilight fades outside.
Dimming the room early gives the darkness signal somewhere to land.

That's a different job from a sleeping pill. A sedative pushes you toward unconsciousness. Melatonin nudges the timing of the circadian clock, the internal schedule that decides when your body expects night and when it expects morning. Taken at the moment you want to be asleep, the signal arrives too late to change anything. Taken earlier, it shifts when your body believes night begins.

One limit matters from the start: melatonin doesn't build sleep pressure, the drowsiness that accumulates while you're awake (Why Sleep Pressure and Your Body Clock Disagree at Bedtime). If nothing is pushing you toward sleep, a timing signal can't supply the push.

Your body already runs a melatonin schedule

Your body makes melatonin on its own every evening, releasing it as light dims. Bedtime is late in that process. By the time you turn out the light, the darkness signal is already underway, and the supplement stacks a signal on top of one the body already sent. That does little to move sleep earlier.

The deep night cuts the other way. The CDC notes that melatonin is less effective when your internal clock reads roughly 12 to 5 a.m., because natural levels are already high (CDC). Too late is useless; the middle of the night means competing with your own physiology.

How long before bed should you take melatonin, then? Hours, not minutes. The exact lead time depends on what you're trying to shift.

When to take melatonin: the two-hour rule for shifting sleep earlier

For moving sleep earlier, Johns Hopkins Medicine advises 1 to 3 milligrams about two hours before bedtime (Johns Hopkins Medicine). The schedule matters more than the milligrams, and the schedule assumes something many people don't have: a fixed target bedtime. Two hours before "whenever" isn't a plan. A bedtime that drifts with the evening gives the darkness signal nothing to anchor to.

A small white tablet on a saucer beside a glass of water and a closed supplement bottle on a wooden nightstand, with an analog clock softly blurred behind.
One small dose, hours before the light goes out.

Set the target first. Pick a bedtime you can hold for a week or two, then count back two hours from it. If you would rather work from the other end, Sleep Schedule starts from your wake-up time and runs the 90-minute cycle math backward to a target bedtime, or forward from a bedtime to a wake time. Which end you fix first is worth deciding deliberately (Should You Set Your Bedtime or Wake-Up Time First?).

Light can undo the dose. Bright screens and room lighting late in the evening suppress melatonin, so a pill taken at 9 p.m. in a bright living room is a signal fighting an anti-signal. Dim the evening first, then take it. And keep the hierarchy straight: the lead time does the work, not the strength of the pill.

Melatonin for jet lag: the eastbound protocol

Eastbound travel is where melatonin earns its keep, because it demands the harder adjustment: moving the body clock earlier than it wants to go.

A tired traveler sits on the edge of a hotel bed at night holding a glass of water, an open suitcase and a night city skyline through the window behind.
Destination bedtime, first night east.

For eastbound flights, the working rule is a low dose at your local target bedtime for the first few nights after arrival. Johns Hopkins offers a variant that front-loads the shift: start a few days before the trip, taking it two hours before bedtime at the destination (Johns Hopkins Medicine).

Direction is the whole game. The CDC explains that melatonin taken when the internal clock thinks it is early evening produces a phase advance, which eases adaptation eastward, while melatonin taken when the internal clock thinks it is morning produces a phase delay, which helps westward (CDC). The dose is an instruction to the clock, and the same instruction can be exactly wrong.

That mechanism is why mistimed travel doses backfire. A dose taken mid-flight when you land in daylight leaves melatonin circulating while your body reads morning light, which can worsen jet lag rather than ease it.

Light is the other half of the protocol: avoid bright light in the evening after arrival and seek it in the morning. Westbound trips barely need melatonin at all. Morning light and staying awake until a local bedtime do most of the work, and a phase delay is the easier shift to make.

Eastbound

Westbound

Melatonin

Low dose at the local target bedtime for the first few nights after arrival

Little to no role

Light

Dim evenings, bright mornings

Morning light, stay up until local bedtime

Clock effect

Phase advance

Phase delay

For rebuilding a full schedule after you land, see How to Reset Your Sleep Schedule After Crossing Time Zones.

How much melatonin to take: why 0.5 to 1 mg beats 5 to 10

More isn't stronger; more is longer. The CDC states that 0.5 to 1 mg is often enough to produce a circadian shift, and advises against high doses above 5 mg because excess melatonin can still be circulating at the wrong time of day as it is metabolized (CDC). A review in CNS Spectrums found that doses of 0.3 mg and 1 mg stimulated the physiological nighttime melatonin levels seen in young adults, and that in adults over 55, higher doses leave melatonin elevated longer, increasing unwanted effects such as daytime drowsiness (CNS Spectrums).

Small doses reproduce what the body would make on its own. Large doses overshoot the signal and stretch it into hours where it works against you.

Start at the low end, and remember what a 10 mg gummy actually is: the same signal, overdosed, with more hours of spillover.

Five timing mistakes that quietly ruin melatonin

  1. Taking it at bedtime like a sleeping pill. The signal arrives after the body's own melatonin rise, too late to shift the clock.
  2. Dosing mid-flight when you land in daylight. The dose can push the clock the wrong direction and deepen jet lag.
  3. Chasing bad timing with bigger doses. More milligrams don't move the signal earlier; they leave more melatonin active at the wrong hours.
  4. Taking it when the internal clock reads roughly 12 to 5 a.m. Natural levels are already high, and the dose is less effective.
  5. Using it without a fixed target bedtime. An instruction to the clock needs a schedule to land on.

A quiet cousin of all five: expecting melatonin to substitute for sleep pressure, dim evenings, or a consistent schedule. It can't fill any of those roles.

When melatonin won't help, and when to skip it

Melatonin shifts clocks; it doesn't treat sleep problems. Knowing the difference saves money and weeks of frustration.

It won't fix insomnia driven by anxiety, stress, pain, caffeine, or alcohol. Those aren't timing problems, and melatonin doesn't build sleep pressure. It won't treat obstructive sleep apnea or other medical sleep disorders, which need a clinician's evaluation rather than a supplement. It can't out-shout a bright environment, because late-evening screen and room light suppress melatonin and counteract the dose. And on an inconsistent schedule with no fixed target bedtime, there is nothing for the signal to anchor to.

Johns Hopkins draws two hard lines: stop taking melatonin if it hasn't helped after a week or two, and skip it entirely if you are pregnant or breastfeeding, or if you have an autoimmune disorder, a seizure disorder, or depression (Johns Hopkins Medicine).

For anything beyond scheduling, and before starting any supplement, talk to a clinician.

Timing beats dose: anchor the signal to a plan

Melatonin doesn't make you sleep. It tells your body clock that darkness is coming, so its entire value lives in when you take it: about two hours before a fixed target bedtime to shift sleep earlier, and at the destination's target bedtime for the first few nights after an eastbound crossing. Add dim evenings, a schedule you actually keep, and a dose at the low end of the range.

A signal needs an anchor. Plan your night with Sleep Schedule: set a wake-up time or a bedtime and it handles the 90-minute cycle math, on-device, with no account, no ads, and no tracking. For anything medical, including whether melatonin is right for you at all, the conversation belongs with a clinician.