Melatonin is the most popular sleep aid in America: its use among adults rose more than fivefold between 1999 and 2018, and it is sold everywhere from pharmacies to gas stations. So it is a real letdown when you take it and still lie awake. The reasons are surprisingly specific. Melatonin is not a sleeping pill, it works only when it is timed right, the product in your bottle may not contain what the label says, and the most common kind of sleeplessness, chronic insomnia, is exactly the kind it helps least. This guide explains why melatonin may not be working for you, what sleep specialists recommend instead, and the research testing better options.
Looking for treatment options for Sleep Disorders?
Browse open clinical trials near you! We'll handle the follow-up.
Does melatonin work?
A little, for most people, and a lot for a few specific problems. Melatonin is a hormone your brain releases as evening darkness falls; it tells the body clock that night has started rather than knocking you out. When researchers pooled 19 placebo controlled trials involving 1,683 people, melatonin helped people fall asleep about 7 minutes faster and sleep about 8 minutes longer. Real, but modest. That is why the American Academy of Sleep Medicine suggests that doctors not use melatonin as a treatment for chronic insomnia, while recognizing that properly timed melatonin can help with problems of sleep timing, such as jet lag, shift work, and a body clock that runs late. If your problem is lying awake with a racing mind or waking at 3 a.m., melatonin was never likely to fix it.
Why melatonin is not working for you
The timing is off. Because melatonin shifts the body clock rather than sedating you, when you take it matters as much as whether you take it. Many people take it right at bedtime as if it were a sleeping pill, which is not how it works best for timing problems. A sleep clinician can advise on timing for your situation.
The product is not what the label says. Melatonin is sold in the US as a dietary supplement, not regulated as a drug, so the FDA does not check the dose. When researchers tested 25 melatonin gummy brands in 2023, 22 were inaccurately labeled: actual content ranged from 74 to 347 percent of the stated amount, and one product contained no melatonin at all, only CBD. You may be taking far more or less than you think.
The problem is not melatonin shaped. Chronic insomnia, trouble sleeping at least three nights a week for three months, affects about 1 in 10 adults and is driven largely by a brain that stays on alert at night. Melatonin does little for that.
Something else is keeping you up. Untreated sleep apnea, restless legs, anxiety, depression, pain, caffeine late in the day, alcohol, and bright screens all override a small hormonal nudge.
It worked before and does not now. Whether the body adapts to long term melatonin use has not been well studied. More often the sleep problem itself has changed, for example a short bout of poor sleep has turned into chronic insomnia, or a new medicine, stress, or health condition has entered the picture.
Melatonin side effects and safety
Short term, melatonin is generally well tolerated; the most common effects are drowsiness the next morning, headache, dizziness, and vivid dreams. Two things deserve more attention. First, children: calls to US poison control centers about children swallowing melatonin rose 530 percent between 2012 and 2021, leading to more than 4,000 hospitalizations, which is why sleep doctors advise asking a pediatrician before giving it to a child. Second, long term use in adults: in November 2025, a large observational analysis presented at the American Heart Association's meeting found that adults with insomnia who had used melatonin for a year or more had about a 90 percent higher rate of heart failure over five years than matched non users. That study was preliminary, not peer reviewed at the time, and cannot show that melatonin caused the difference; people who need sleep aids for years may simply be less healthy. It is a reason to talk to a doctor about long term use, not a reason for alarm.
What sleep doctors recommend instead
For chronic insomnia, the first line treatment in US guidelines is not a pill at all but cognitive behavioral therapy for insomnia, or CBT-I: a structured program of about six to eight sessions that retrains sleep habits, sets a consistent sleep window, and quiets the mental arousal that keeps people awake. It works for most people and keeps working after treatment ends, and it is now widely available online and through apps. When medicine is needed, prescription options include drugs that block orexin, the brain's wakefulness signal, and a few others that guidelines suggest for sleep onset or sleep maintenance. And if snoring, gasping, or daytime sleepiness are part of the picture, a sleep study to look for sleep apnea comes first. Our insomnia treatment guide covers each option, and our guide explains how sleep studies work. None of this replaces a conversation with your own clinician.
Trials for people whose sleep aid is not working
Insomnia is one of the most actively studied sleep problems, with well over a hundred recruiting studies in the US, and several are directly relevant to people who have tried melatonin without success. There are head to head comparisons of the over the counter options people actually use, trials of prescription orexin blockers, and many studies of digital CBT-I, often designed for specific groups such as older adults or people with diabetes. Most medicine trials are placebo controlled, so not everyone receives the study treatment, and behavioral studies often compare two forms of therapy.
Studies recruiting now for exactly this situation
A University of Pennsylvania study compares commonly used over the counter and prescription sleep medicines, including melatonin, with sleep hygiene education in adults 18 to 80 with insomnia disorder, adjusting treatment step by step based on how each person responds. A Phase 3 trial of suvorexant, an orexin blocking prescription medicine, enrolls adults 18 to 70 with insomnia disorder who are in stable treatment for opioid use disorder, at 13 US sites. A digital CBT-I study for adults 55 and older tests an automated program that also measures effects on thinking and memory. Applying takes about 5 minutes, and more are on our insomnia clinical trials page.
Common questions
Why doesn't melatonin work for me? Most often because the problem is chronic insomnia, which melatonin helps only slightly, because it is taken at the wrong time, or because the product contains a different amount than labeled. Sleep apnea, anxiety, caffeine, alcohol, and screens can also override it.
How long does melatonin take to work? Melatonin begins acting within an hour or so of taking it, but its main effect is on the body clock, and for timing problems that can take several days of consistent use to show. If weeks pass without benefit, it is unlikely to be the right tool for your sleep problem.
Why did melatonin stop working? It is not clear that the body becomes tolerant to it. More often the sleep problem has changed, for example into chronic insomnia, or a new stressor, medicine, or condition is involved. That is a good moment to talk to a clinician rather than raise the dose.
What should I try if I can't sleep even with melatonin? Talk to a clinician about cognitive behavioral therapy for insomnia, the recommended first treatment, and about whether a sleep study is needed to rule out sleep apnea. Prescription options exist when therapy alone is not enough, and clinical trials are testing new ones.
See insomnia clinical trials recruiting now
Browse open studies, filter by location, and apply in about 5 minutes: Insomnia Clinical Trials
