
Insomnia: What It Is and What Actually Helps
Insomnia explained: how it is defined, why it becomes self-sustaining, why CBT-I is the first-line treatment, and when to see a doctor.
Insomnia & sleep problemsTravel, shift work & seasons
Melatonin sits on pharmacy shelves next to the sleeping pills, but it does not work like one. Here is what it can and cannot do, and how to use it well if it fits your situation.
Written by the Complete Sleep editorial team
Pending medical review
Published Updated 6 min read
What changed September 2026: the studies quoted in the text added to Sources; NHS prescribing FAQ corrected.


Medical reviewer
Sleep Physician · Board-certified in Sleep Medicine
Pending medical review
In short
Melatonin is a hormone that signals night to your body clock, not a sedative. Evidence supports low doses (0.5 to 3 mg), taken at the right time, for jet lag and delayed sleep phase, with weaker support for shift work. For ordinary insomnia the American Academy of Sleep Medicine suggests clinicians not use it. Check with a doctor for children, pregnancy, other health conditions or medicine interactions.
Key takeaways
Melatonin is a hormone your brain makes in the pineal gland when it gets dark. Levels rise in the evening, fall around dawn, and bright light suppresses them. Its job is to tell the rest of your body what time it is, not to knock you out.
Taken at the right time, a small dose of a supplement can nudge your internal clock earlier or later. What it cannot do is override a brain that is wide awake from worry or caffeine. If you have taken melatonin and felt nothing, that is not unusual. It is a timing signal, not a sedative.
A Cochrane review of trials in travellers found melatonin reduced jet lag when taken close to the target bedtime at the destination, with the clearest benefit for people crossing five or more time zones, especially flying east. Doses from 0.5 mg to 5 mg worked similarly overall, though 5 mg got people to sleep faster than 0.5 mg; doses above 5 mg were no more effective, and slow-release versions were less effective. See our guide to recovering from jet lag.
Some people's body clock runs so late that they cannot fall asleep until 2 or 3 a.m., known as delayed sleep-wake phase disorder. The American Academy of Sleep Medicine (AASM) suggests strategically timed melatonin for it, a weak recommendation because the trials are small. In one trial of 116 people, 0.5 mg taken an hour before the target bedtime, plus a fixed bedtime, helped participants fall asleep about 34 minutes earlier. Protocols range from about one to five hours before the bedtime you want, so the exact timing is best set with a clinician.
Reviews of night workers found melatonin may add roughly 24 minutes to daytime sleep after a shift, but the studies were small, low quality and inconclusive overall. Light management and scheduling matter more. See shift work and sleep for the practical side.
If your problem is lying awake with a racing mind, or waking at 3 a.m. and not getting back to sleep, melatonin has little to offer. The AASM's 2017 guideline on chronic insomnia suggests that clinicians not use melatonin for sleep-onset or sleep-maintenance insomnia in adults, because there is not enough good evidence that it helps.
That does not mean you did something wrong by trying it. Insomnia is usually a problem of conditioning and arousal, and the treatment with the best evidence is cognitive behavioural therapy for insomnia (CBT-I). Our article on what insomnia is and what actually helps explains it.
More is not better. Doses of 0.5 mg to 3 mg are enough to shift the clock and are a sensible starting point; higher doses add side effects without clear extra benefit above about 5 mg. Many North American products contain 5 mg or 10 mg, so start low.
It takes an hour or two to act, so taking it at midnight after an hour of tossing and turning rarely helps.
In the US and Canada, melatonin is sold over the counter as a supplement, so it is not held to the manufacturing standards of a medicine. In the UK, by contrast, it is prescription-only.
A 2017 analysis of 31 supplements found most did not contain what the label claimed, and about one in four contained unlisted serotonin. A 2023 study of 25 gummies found 22 mislabelled, some with up to 347 percent of the stated dose. Look for independent third-party testing (in the US, the USP Verified mark), and take particular care with gummies because they look like sweets.
For most healthy adults, short-term use appears safe. Common side effects are headache, daytime tiredness, nausea, dizziness and irritability. Long-term safety is not well studied. In the UK, for short-term sleep problems, the NHS usually prescribes it for one to four weeks and up to 13 weeks, mainly to people aged 55 and over; for long-term insomnia it may be prescribed for longer under specialist supervision.
Some groups should talk with a doctor before using it at all:
Beyond these groups, talk with a doctor if you have used melatonin most nights for more than a few weeks, still cannot sleep, or are very sleepy in the day, snore loudly or wake gasping, because those point to a different problem, such as sleep apnea, that melatonin cannot fix.
Melatonin is a clock signal, not a sleeping pill. It has decent evidence for jet lag and for a body clock that runs late, modest evidence for shift work, and weak evidence for everyday insomnia. If you use it, keep the dose low, get the timing right, choose a tested product, and check with a doctor first if you are in one of the groups above. If sleep is still a struggle, the reliable fix is usually behavioural, not a bigger dose.
For ordinary insomnia the evidence is weak. The American Academy of Sleep Medicine's 2017 guideline suggests clinicians not use melatonin for sleep-onset or sleep-maintenance insomnia in adults, because there is not enough good evidence that it helps. Cognitive behavioural therapy for insomnia (CBT-I) has the strongest evidence.
Doses of 0.5 to 3 mg are enough to shift the clock and are a sensible starting point; higher doses add side effects without clear extra benefit above about 5 mg. For jet lag, take it close to bedtime at your destination; for a body clock that runs late, take a low dose in the evening, an hour or more before the bedtime you want, with a clinician helping you settle the timing. It takes an hour or two to act.
Short-term use appears safe for most healthy adults, but long-term safety is not well studied, and the NHS usually prescribes it for one to four weeks, up to a maximum of 13. If you have been taking it most nights for more than a few weeks and still sleep poorly, talk with a doctor about what is really driving the problem.
Ask a paediatric clinician first. Melatonin is a hormone, its long-term effects on children are unknown, and accidental ingestions have risen sharply. The AASM advises discussing schedule and behaviour changes first and storing melatonin out of reach like any other medicine.
Two-minute check
Wondering about snoring or daytime sleepiness? STOP-Bang is scored in your browser.
Take the self-check
Insomnia explained: how it is defined, why it becomes self-sustaining, why CBT-I is the first-line treatment, and when to see a doctor.

Waking at 3am is common. Learn why the second half of the night is lighter, what stress, alcohol, light and sleep apnea add, and what actually helps.

Plain-language guide to restless legs syndrome: what it feels like, why it is often missed, links with iron and pregnancy, and when to see a doctor.