Melatonin for Sleep: Does It Actually Work?

Melatonin for sleep — person sleeping peacefully in a dark bedroom at night

Introduction

It is 2 a.m., you have been staring at the ceiling for an hour, and the little bottle on your nightstand promises sleep in a tablet. Melatonin for sleep is the best-selling sleep supplement in the United States — use among adults has risen fivefold in the past two decades — and most people who buy it expect a sleeping pill. That is the first problem: melatonin is not a sleeping pill at all — it is a darkness signal, not a switch that forces sleep.

Your 2-Minute Decision

If you lie awake for an hour before falling asleep most nights: melatonin may help a little — about 7 minutes faster, on average. Start with 0.5–1 mg, 30–60 minutes before bed, and dim the evening light first. If it has not helped after two weeks, stop — the answer is sleep hygiene or CBT-I, not a bigger dose.

If you fly across five or more time zones, especially east: this is where melatonin works best. Take 0.5–5 mg close to your target bedtime at your destination.

For a late body clock — you cannot sleep before 2 a.m.: melatonin taken about an hour before your desired bedtime, plus a fixed wake time and morning light, can shift your clock earlier.

If you wake up at 3 a.m. and cannot get back to sleep: melatonin is unlikely to help — it mainly helps with falling asleep, not staying asleep. Look at stress, alcohol, and sleep apnea first.

What Melatonin Actually Is

Melatonin is a hormone produced by the pineal gland in the brain. Production rises in the evening as it gets dark, peaks in the middle of the night, and falls by morning. It sets the timing of your circadian rhythm — the roughly 24-hour clock that governs when you feel alert and when you feel sleepy — and light at night can block its production, as the National Center for Complementary and Integrative Health (NCCIH) explains.

So think of it as a clock signal, not a sedative: it whispers “it is nighttime” to a brain that may not listen if stress, caffeine, or a bright screen got in the way. Shop shelves sell 0.3 mg to more than 10 mg per dose; your body makes roughly 0.3 mg a night.

White melatonin supplement bottle beside a glass of water on a bedside table at night

What the Research Really Shows

Falling asleep: a small, real effect. The most-cited analysis pooled 19 placebo-controlled trials with 1,683 people who had primary sleep disorders. Melatonin shortened the time to fall asleep by about 7 minutes and added about 8 minutes of total sleep, according to this meta-analysis in PLOS ONE. Seven minutes is real — and modest.

Jet lag: the strongest case. A Cochrane review of ten placebo-controlled trials found melatonin reduced jet lag after flights crossing five or more time zones, with the clearest benefit on eastward travel. The NCCIH summary of the evidence calls melatonin “may be better than placebo” for jet lag.

A late body clock: a surprisingly large effect. For delayed sleep-wake phase disorder — the pattern where you cannot fall asleep until 2 or 3 a.m. — melatonin works as a clock-shifter, not a sedative. In a 2018 trial of 307 people, taking it one hour before a fixed desired bedtime helped people fall asleep 34 minutes earlier. Timing matters more than dose: taken at the wrong time, it can push your clock the wrong way.

Chronic insomnia: not enough evidence to recommend it. For ordinary, long-running insomnia — the most common reason people buy it — the NCCIH notes that guidelines from the American Academy of Sleep Medicine (2017) and the American College of Physicians (2016) found too little strong evidence to recommend it. The American College of Physicians strongly recommends cognitive behavioral therapy for insomnia (CBT-I) as the first treatment instead.

How Much Melatonin for Sleep to Take: Less Is More

No single dose is agreed, but the pattern is clear: low doses already work, and higher doses mostly buy side effects.

  • Start at 0.5–1 mg. Doses this size already push blood melatonin into and beyond the natural nighttime range.
  • The benefit grows up to about 4 mg, then stops. A 2024 dose-response meta-analysis of 26 trials found the effect grew with dose up to around 4 mg a day — but the gains above 1 mg were small, and the Mayo Clinic’s advice is to ask a health care professional about the right dose.
  • Timing beats dose. The same 2024 analysis found that the gap between taking melatonin and going to sleep predicted how fast people fell asleep. Take it 30–60 minutes before bed; for a late body clock, a few hours before the desired bedtime.
  • The 5–10 mg tablets on the shelf are roughly ten times the studied starting dose. They are not more effective for falling asleep, and they raise the odds of next-day grogginess, headache, and vivid dreams. If 3 mg does nothing, 10 mg will not save the experiment.

The Label Problem: What Is Actually in the Bottle?

In the United States, melatonin is regulated as a dietary supplement, not a drug. The FDA does not verify the contents or effectiveness of a supplement before it reaches the shelves — a fact the NCCIH states plainly. And the contents often do not match the label: in a 2017 study of 31 supplements, most missed the labelled amount, and 26 percent contained serotonin. A 2023 analysis of gummies found 22 of 25 inaccurately labelled, with content from 74 to 347 percent of the stated dose; one contained no melatonin at all.

Three ways to lower the risk: prefer tablets or capsules over gummies, the worst offenders — which also look like candy to a child. Look for third-party verification on the label, such as USP Verified or NSF Certified. And judge by effect, not by the number on the bottle: if the label says 5 mg and the bottle holds 12 mg, your “low dose” was never low.

Side Effects and Who Should Be Careful

Short-term use appears safe for most healthy adults, with mostly mild side effects in trials. According to the Mayo Clinic, the most common are headache, dizziness, nausea, and drowsiness; less common ones include vivid dreams, irritability, stomach cramps, and confusion. Mayo Clinic’s Q&A on sleep supplements adds that melatonin does not cause dependence and has fewer side effects than prescription sleep drugs.

Talk to a doctor first if you take blood thinners such as warfarin (melatonin can increase bleeding risk, and the NCCIH advises medical supervision), anticonvulsants, blood pressure or diabetes medicine, or immunosuppressants. The Mayo Clinic advises against it in autoimmune disease and recommends medical supervision for epilepsy; safety research is lacking in pregnancy and breastfeeding, and in older people it can stay active longer.

Do not drive or use machinery within five hours of taking it. If you wake up groggy, the dose was too high or too late.

Melatonin for Sleep and Children: Keep It Out of Reach

Children are where melatonin use has grown fastest — and where the risks are least understood. The NCCIH states that studies on children are few, long-term use is little studied, and as a hormone it could affect development, including puberty — though this is not proven. Its advice: work with a health care provider first.

The CDC reports that during 2019–2022, melatonin was implicated in approximately 11,000 emergency department visits in the United States for unsupervised ingestion by children aged 5 and younger — about 7 percent of all such visits in that age group. Most incidents involved flavored products such as gummies, and most children were not hospitalized — but the trend is rising fast. If children visit or live in your house, store it locked away, out of sight and reach, like any medicine: a bottle of gummies on a nightstand looks exactly like candy to a three-year-old.

What to Try Before the Bottle

Melatonin works best on top of a sleep routine, not instead of one.

Warm bedside lamp glowing beside a steaming cup of tea at night, a calming bedtime ritual to support melatonin for sleep
  • Morning light, evening dark. Bright light within an hour of waking anchors your clock; dim light in the last hour lets your own melatonin rise. The most powerful lever, and it costs nothing.
  • Same bedtime and wake time every day, weekends included.
  • A cool, dark, quiet bedroom. Our guide to improving sleep quality covers the full setup.
  • No caffeine after midday, no alcohol as a nightcap. Caffeine blocks sleep pressure for hours; alcohol fragments the second half of the night. Foods that support sleep — tart cherry, kiwi, warm milk — are gentler.
  • A wind-down, not a scroll. An hour of low stimulation beats an hour of news and social media. If stress keeps you up, our guide on lowering cortisol naturally is the place to start.
  • Magnesium, if you are low. See the signs you may need magnesium and our guide to magnesium for sleep before adding another pill.

If bad sleep has lasted for weeks, see natural remedies for insomnia — CBT-I sits at the top of that list, ahead of any supplement.

Your First Two Weeks With Melatonin for Sleep

Week 1 — baseline, no melatonin. Keep a sleep diary: bedtime, time to fall asleep, wake-ups, wake time, and a 1–10 restedness rating. Fix the evening light and the wake time.

Open journal with a pen on a bedside table beside a warm lamp at night

Week 2 — add melatonin, low and timed. Take 0.5–1 mg, 30–60 minutes before your target bedtime (or 1–2 hours before, if your clock runs late). Same diary, everything else unchanged.

Decide by the numbers. If you fall asleep 15–20 minutes faster and feel more rested, keep the lowest dose that works, for a few weeks, not forever. No improvement? Stop — the real problem is probably your schedule, stress, or a sleep disorder. If you feel groggy, the dose was too high or too late: halve it, take it earlier, or stop.

Long-term safety beyond six months is not well studied, so use it short-term or occasionally — for travel, or resetting a shifted schedule — not as a permanent nightly habit.

Red Flags: See a Doctor Instead

Melatonin cannot treat a sleep disorder, and a supplement can hide one for months. See a doctor promptly for loud, chronic snoring with pauses in breathing or gasping (possible sleep apnea); insomnia lasting more than three weeks despite good sleep habits; falling asleep during the day or while driving; restless legs at night; sleepwalking or acting out dreams as an adult; morning headaches or waking unrefreshed despite 7–9 hours in bed; or new depression or anxiety alongside poor sleep.

A sleep study is a single night and can find problems no supplement will fix. If you are still struggling after trying melatonin, Mayo Clinic’s advice is to speak with your health care team.

Full moon shining through sheer curtains into a dark bedroom at night for melatonin for sleep

The Bottom Line on Melatonin for Sleep

Melatonin is a clock signal, not a sleeping pill. It helps most with jet lag and a late body clock, a little with falling asleep — about seven minutes on average — and has too little evidence for chronic insomnia, where CBT-I is the first treatment. If you try it, start at 0.5–1 mg, 30–60 minutes before bed, buy a third-party-verified tablet rather than a gummy, and judge it by a two-week sleep diary. If it does not help, the answer is not a bigger dose — it is better sleep habits, lower stress, or a doctor’s visit.

Sources

  • National Center for Complementary and Integrative Health (NCCIH). Melatonin: What You Need To Know.
  • Mayo Clinic. Melatonin.
  • Mayo Clinic News Network. Mayo Clinic Q and A: Can a supplement help you sleep?
  • Ferracioli-Oda E, Qawasmi A, Bloch MH. Meta-analysis: melatonin for the treatment of primary sleep disorders. PLOS ONE. 2013;8(5):e63773. PubMed
  • 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. Journal of Pineal Research. 2024;76(5):e12985. PubMed
  • Herxheimer A, Petrie KJ. Melatonin for the prevention and treatment of jet lag. Cochrane Database of Systematic Reviews. 2002;(2):CD001520.
  • Sateia MJ, et al. Clinical Practice Guideline for the Pharmacologic Treatment of Chronic Insomnia in Adults. Journal of Clinical Sleep Medicine. 2017;13(2):307–349.
  • Freeman DI, et al. Emergency Department Visits for Unsupervised Pediatric Melatonin Ingestion — United States, 2019–2022. MMWR. 2024;73(9):215–217. CDC
  • Cohen PA, et al. Quantity of Melatonin and CBD in Melatonin Gummies Sold in the US. JAMA. 2023;329(16):1401–1402.

Disclaimer: This article is for general information only and is not medical advice. Melatonin is a hormone and can interact with medicines and medical conditions. Talk to your doctor or pharmacist before taking melatonin, especially if you are pregnant or breastfeeding, take prescription medicine, or have epilepsy, an autoimmune condition, or a sleep disorder. If you think you may have sleep apnea or another sleep disorder, seek medical care rather than self-treating with supplements.