Skip to content

Melatonin: What It Actually Does, and When It Is Worth Taking

A doctor explains what melatonin is, a timing signal not a sedative, the honest effect sizes, the US supplement quality problem, and who it truly helps.

The short version

  • Melatonin is a hormone that tells your body clock it is biological night. It is a timing signal, not a sedative, and expecting it to knock you out is the root of most disappointment with it.
  • For ordinary insomnia the average benefit is small: falling asleep in the region of ten minutes sooner. For timing problems, jet lag, delayed sleep phase, some shift work, the evidence is much better.
  • When you take it matters more than how much. For shifting the body clock, small amounts hours before bed do more than large amounts at bedtime.
  • US melatonin is sold as a dietary supplement, and analyses have found actual content ranging from a fraction of the label to several times it. Third-party verified products reduce that gamble.
  • In children, melatonin should be a decision made with a pediatrician, not a default. Pediatric melatonin ingestion calls to US poison control have risen sharply.

See a doctor promptly if

These are the signs that change this from something to read about into something to act on.

  • Loud snoring with pauses, gasping awakenings, or heavy daytime sleepiness. That points to sleep apnea, which melatonin does not treat
  • Falling asleep while driving, or any near-miss from sleepiness
  • Insomnia with low mood, hopelessness, or thoughts of self-harm
  • A child needing something nightly to sleep for weeks. That warrants a pediatric review, not a bigger bottle
  • New sleep problems with palpitations, weight change, or drenching night sweats

Melatonin is probably the most misunderstood substance on the pharmacy shelf. People buy it as a natural sleeping pill, take it at bedtime, feel little, buy a stronger one, feel groggy, and conclude either that their insomnia is beyond help or that melatonin is useless. Both conclusions miss what melatonin actually is. Used for the right problem at the right time, it is genuinely effective. Used the way most people use it, it barely moves the needle.

What melatonin actually is#

Melatonin is a hormone your own brain makes. As light fades in the evening, the pineal gland begins releasing it, levels climb through the night, and they fall toward morning. Its message to the body is simple: it is biological night now.

Notice what that message is not. It is not "go to sleep." Melatonin does not switch the brain off the way a sedative does. It opens the gate for sleep by telling the circadian system, the master clock in the hypothalamus, where night is. Whether sleep then happens depends on everything else: how long you have been awake, how much caffeine is on board, how aroused your nervous system is, and whether your bed has become a place your brain associates with frustration.

This is why bright evening light matters so much. Light hitting the eye, particularly in the evening, suppresses your own melatonin release and pushes the clock later. A brightly lit home and a phone at midnight are, functionally, anti-melatonin.

A timing signal, not a sedative. Hold onto that sentence, because it predicts everything else: what melatonin helps, what it cannot help, and why when you take it matters more than how much.

The honest effect sizes#

For ordinary insomnia in adults, the pooled trial data are consistent and unimpressive. On average, melatonin helps people fall asleep somewhere in the region of ten minutes sooner, with small or no improvements in total sleep time and sleep quality. Ten minutes is a real, measurable effect. It is also less than most people would notice on any given night, and far less than the improvements seen with CBT-I, the actual first-line treatment for chronic insomnia.

For circadian problems, the story flips. For jet lag, reviews have found melatonin meaningfully reduces symptoms when timed to the destination night, especially on eastward trips crossing several time zones. For delayed sleep phase, the night-owl body clock that will not shift, appropriately timed melatonin reliably pulls sleep timing earlier, particularly combined with morning light. For some shift work schedules, it can help daytime sleep after nights, although the evidence is more mixed.

The pattern is exactly what the mechanism predicts. Melatonin fixes clock problems, not sleep problems. If your clock is fine and your sleep is broken for other reasons, a timing signal has little to offer.

Timing beats amount#

The clock does not respond to melatonin like a light switch. It responds according to when the signal arrives relative to your own internal night.

  • Taken in the hours before your usual sleep time, melatonin nudges the clock earlier. This is why, for shifting a late sleeper, small amounts taken well before bed outperform large amounts at bedtime.
  • Taken at your normal bedtime, when your own melatonin is already rising, an extra dose adds little signal. This is the standard label instruction, and it is the least effective way to use it for a clock problem.
  • Taken during the night or toward morning, it can push the clock later, which is occasionally useful and usually not what you want.

Amount matters less than people assume. The receptors respond to concentrations close to what your own pineal gland produces, and trials do not show large amounts beating small ones. What large amounts add is next-day grogginess, and melatonin still circulating after your biological night should have ended.

The US supplement problem#

In the United States, melatonin is sold as a dietary supplement, which means it is not held to prescription-drug standards for content and consistency before sale.

The consequences are documented. Published analyses of commercial melatonin products, including gummies, have found actual content ranging from almost none to several times the labeled amount, with batch-to-batch variation inside the same brand, and occasional contamination with serotonin, a related compound that does not belong in a supplement. In the UK and much of Europe, by contrast, melatonin is a prescription medicine manufactured to pharmaceutical standards.

You cannot fix this from the outside of the bottle, but you can shorten the odds. Look for third-party verification marks such as USP Verified or NSF, which test that the contents match the label. Skip products stacked with botanical blends, which add variables without adding evidence. And treat the labeled strength as an estimate.

Children: a caution, not a ban#

Melatonin has become a default bedtime tool in many households, and that troubles pediatric sleep specialists more than the drug itself does.

Most childhood sleep problems are behavioral: bedtime resistance, inconsistent schedules, screens, and learned associations. Behavioral approaches have the best evidence in children and fix the actual problem. Melatonin, at best, papers over it, and we lack good long-term data in developing bodies, including any effects on the hormonal systems of puberty, a question raised but not settled.

There is a legitimate role. In some children with autism spectrum disorder or ADHD, where the sleep problem is real, persistent and clock-related, melatonin has reasonable evidence and is used under medical guidance. That is the model to copy: a pediatrician's decision, a verified product, the smallest useful amount, a plan to review, and behavioral work running alongside. A nightly gummy bought on autopilot is none of those things.

Who melatonin genuinely helps#

SituationDoes melatonin help?The key point
Jet lag, especially eastwardYes, good evidenceTimed to the destination night; combine with light at the right hours
Delayed sleep phase (extreme night owl)Yes, good evidenceSmall amounts hours before bed, plus bright morning light
Shift work, sleeping after nightsSometimesEvidence mixed; darkness and scheduling matter more
Ordinary chronic insomniaMarginallyAround ten minutes faster sleep onset on average; CBT-I is first-line
Waking at 3am and not returning to sleepGenerally noUsually alcohol, stress, mood or clock issues; a bedtime signal does not reach 3am
Sleep apnea, restless legsNoDifferent diseases needing their own treatment
Children with routine bedtime battlesNot first-lineBehavioral approaches first; melatonin only with a pediatrician

Two entries deserve a note. Older adults produce less melatonin, and clock-related sleep changes are common in later life, so there are cases where a clinician reasonably suggests a trial. And for blind people with non-24-hour sleep rhythms, melatonin timing is a recognized specialist treatment.

What melatonin will not fix#

It will not treat sleep apnea, and using it to sleep deeper through an obstructed airway helps nothing. It will not calm the conditioned arousal of chronic insomnia, where the bed itself has become a cue for wakefulness; that is what CBT-I dismantles. It will not counteract an evening of espresso, a nightcap, or a bright phone held at arm's length, all of which push against the very signal you swallowed. And it will not compensate for a schedule that changes by four hours between weekdays and weekends, which is a self-inflicted weekly jet lag no supplement can outrun.

At work#

Shift work is where I use melatonin thinking most, because the problem there genuinely is timing. For workers coming off a night shift, the sequence that helps is built around light first and melatonin second: bright light during the shift, dark sunglasses for the commute home, a blacked-out bedroom, and, for some, melatonin before the daytime sleep to reinforce the message that this is night. It is the environment doing most of the work. I have seen far more improvement from blackout curtains and a consistent anchor sleep than from anything in a bottle, and no supplement makes it safe to drive home dangerously sleepy. For rotating rosters, the honest advice is that chasing the clock with melatonin across rapid rotations rarely keeps up, and effort is better spent on darkness, caffeine timing and roster design.

What I actually see in clinic#

The most common melatonin story I hear runs like this: it worked for a while, then stopped, so they doubled it, and now they take a high-strength gummy every night, sleep no better, and feel foggy until mid-morning. When we unpick it, the original problem was never a clock problem. It was stress, or alcohol, or a bed that had become a place of dread. The first bottle seemed to work because anything you believe in works for two weeks.

The opposite story is rarer and more satisfying: the genuine night owl, usually young, failing morning classes or morning shifts, who has been told repeatedly to just go to bed earlier. Their clock is set to a different city. With morning light, an evening wind-down, and a small, correctly timed signal, their sleep moves, sometimes for the first time in years. Same substance, opposite result, because this time the problem matched the tool.

The bottom line#

Melatonin is a timing signal your own brain already makes, not a sedative, and it behaves accordingly. For clock problems, jet lag, delayed sleep phase, some shift work, it genuinely helps, and timing matters more than strength. For ordinary insomnia its average benefit is about ten minutes, which is why the disappointed majority are disappointed. In the US, the bottle may not contain what it claims, so third-party verified products are worth the small premium, and children deserve a pediatrician's judgment rather than a gummy by default. If sleep is broken for months, the answer is not a stronger bottle. It is finding out which problem you actually have.

Common questions

Does melatonin actually work for insomnia?
Modestly at best. Pooled trial data suggest adults with insomnia fall asleep somewhere around ten minutes sooner on average, with little change in total sleep. That is a real but small effect, well short of what CBT-I achieves. Where melatonin shines is timing problems: jet lag, delayed sleep phase and some shift work schedules.
When should I take melatonin?
It depends on the goal, which is why the label instruction of thirty minutes before bed serves some uses poorly. For shifting a late body clock earlier, taking it several hours before your current natural sleep time does more than taking it at bedtime. For jet lag eastward, it is timed to the destination night. Timing is the active ingredient, so it is worth getting advice specific to your situation.
Is melatonin safe to take every night?
Short-term use appears safe for most adults, with mild side effects such as grogginess, headache or vivid dreams. Good long-term data, especially beyond a few months, are limited. It is not habit-forming the way sedatives are, but nightly use for months is a sign the underlying problem has not been addressed, and worth a medical conversation.
Why does melatonin not work for me?
Usually one of three reasons. The problem is not a timing problem, for example conditioned insomnia or sleep apnea, so a timing signal cannot fix it. Or the timing of the dose is wrong for the goal. Or the product does not contain what the label claims, which US testing has repeatedly found. All three are fixable, but not by taking more.
Can I give melatonin to my child?
Not as a first move. Most childhood sleep problems respond to behavioral approaches, which have better evidence and no chemical questions. Melatonin has a legitimate, specialist-guided role in some children, particularly with autism or ADHD, but it should be a decision made with a pediatrician, using a verified product, stored out of reach. Gummies look like candy, and pediatric ingestions have risen sharply.
Does higher-strength melatonin work better?
Generally no. The body clock responds to amounts close to what the pineal gland itself produces, and trials do not show that large amounts outperform small ones for sleep timing. Larger amounts mostly buy more next-day grogginess and, for some people, melatonin still circulating at the wrong biological time.
Melatonin versus sleeping pills, which is safer?
They are different tools. Melatonin is not a sedative, does not cause dependence, and has milder side effects, but it also does far less for ordinary insomnia. Prescription hypnotics act faster and carry tolerance, dependence and next-day impairment risks. For chronic insomnia, the best-evidenced treatment is neither: it is CBT-I.

Sources

  1. NCCIH (NIH): Melatonin: What You Need To Know
  2. American Academy of Sleep Medicine: Sleep Education
  3. CDC: Sleep
  4. Mayo Clinic: Melatonin
  5. MedlinePlus: Melatonin
  6. NHS: Melatonin
Medically reviewed 26 August 2026How this was written and checked
A necessary note. This site is health education, not medical care. It cannot diagnose you and it does not replace a doctor who can examine you. Sessions and report reviews booked here are educational: they create no doctor-patient relationship, and no diagnosis, prescription or treatment order is issued. Never delay urgent care because of anything you read or hear here.

Still not sure what this means for you?

Bring your reports to a call with one of our doctors. Leave with a written summary and the right questions for your own doctor.

Book a Clarity Session$149 · 20 minutes · written summary included
In an emergency, do not use this site. Chest pain, trouble breathing, weakness on one side, trouble speaking, heavy bleeding, serious injury, or thoughts of harming yourself: contact your local emergency service now.