Someone has almost certainly recommended melatonin to you. A friend who came back from America with a tub of gummies the size of a paint pot. A colleague who takes it "for flights." A relative who swears it changed their life and cannot understand why you are still lying awake. It has become the thing people suggest the moment you mention you are not sleeping well, offered with the easy confidence of advice that costs nothing to give.
So the obvious question is whether they are right. And the answer turns out to be more interesting than yes or no, because almost everyone reaching for melatonin, including plenty of people who take it every single night, has the wrong idea about what it actually does. They think it is a sleeping pill. It isn't. It never was. That one misunderstanding explains why so many people try it, feel a bit let down, and quietly decide their sleep is simply broken.
Which matters more than it sounds, because sleep is never really a standalone problem. When sleep goes, mood tends to follow it out the door, and anxiety is usually happy to take the empty seat.
What Melatonin Actually Is
Deep in the centre of your brain, roughly between your ears and slightly behind your eyes, sits a small gland shaped a bit like a pine cone. This is the pineal gland, and its main job is to produce melatonin.
It does this on a schedule, and the schedule is set by light. When the light reaching your eyes starts to fade in the evening, specialised cells in your retina send word to your body's master clock (a cluster of neurons called the suprachiasmatic nucleus, which is a mouthful for something the size of a grain of rice), and the master clock gives the pineal gland the nod. Melatonin production ramps up. It peaks in the small hours. It falls away as morning light arrives.
So here is the useful reframe: melatonin is not a switch that turns sleep on. It is an announcement. It is your body's internal broadcast saying "it is night now, everyone," and every system that cares about the time of day tunes in and adjusts accordingly. Body temperature drops. Alertness fades. Your metabolism shifts gear.
Think of it less like an off switch and more like the moment the house lights dim in a theatre. The dimming does not make the play happen. It tells everyone in the building that the play is about to happen, so kindly finish your conversation and sit down. Melatonin is the house lights. Sleep is the play. These are different things, and conflating them is where most of the trouble starts.
Not a Sleeping Pill: The Misunderstanding at the Heart of It All
Compare this to how an actual sedative works. A sleeping tablet acts directly on the brain systems that produce unconsciousness. It does not ask your body clock's opinion; it simply reaches into the machinery and pushes. That is why sedatives are powerful, why they carry meaningful risks, and why they are prescribed with care.
Melatonin does not do that. Melatonin sends a signal. If your body clock is already broadcasting "it is night" at full volume, adding more melatonin is a bit like shouting "IT IS NIGHT" at a room where everyone already knows it is night and has settled in with a book. You have not added information. The volume of the signal was never the problem.
This is precisely what the research keeps finding. A frequently cited meta-analysis of nineteen studies covering nearly 1,700 people found that melatonin did help people fall asleep faster. By about seven minutes. Seven. That is a genuine, statistically real effect, and it is also roughly the length of time you spend looking for your other sock. Another review of fourteen trials landed on a slightly larger figure and then said the quiet part out loud: the effect appears to be clinically unimportant.
If you have taken melatonin and thought "I am not sure that did anything," congratulations. You have independently replicated the scientific literature.
But (and this is the interesting bit) the same body of research contains a genuine surprise, and it is hiding in who melatonin actually helps.
Why Your Body Clock and Your Mood Are the Same Conversation
Before getting to who it helps, it is worth understanding why any of this matters beyond feeling tired.
Your body clock is not a sleep accessory. It is a scheduling system that most of your brain runs on, and mood-regulating machinery is very much on the timetable. Researchers looking at circadian rhythm disruption and mental health have documented how thoroughly the two are entangled. Disrupted daily rhythms are not just a symptom that tags along with depression; they show up as one of its most consistent features, with the timing of temperature, activity and hormone cycles knocked out of their usual pattern.
The link runs deeper than correlation. The serotonin system, which sits at the centre of most conversations about mood, is tightly interconnected with circadian regulation. Stress perturbs serotonin, perturbed serotonin disrupts circadian processes, and disrupted circadian processes increase vulnerability to depression. It is less a chain of dominoes and more a set of gears that all turn together, which is bad news when one of them jams and good news when one of them gets fixed.
And the direction of travel is clearer than you might expect. A systematic review of the relationship between sleep disturbance, anxiety and depression found that while the relationship runs both ways, insomnia is a stronger and more consistent predictor of later depression than depression is of later insomnia. Put plainly: bad sleep does not just accompany low mood. It helps cause it. People with insomnia and no depression carry roughly double the risk of developing it, and the association with new-onset anxiety is stronger still.
This is why "just a sleep thing" is almost never just a sleep thing. Your body clock is quietly running a mood regulation service in the background, and when its schedule goes, the service degrades. Which raises the stakes considerably on getting the melatonin question right, in both directions. Taking it when it will not help wastes time you could spend on things that would. And dismissing it entirely means missing the specific situations where it does something no amount of camomile tea can manage.
What the Research Really Found
Here is where the story turns.
Researchers pooling the melatonin trials noticed something odd. The average effect was small, yes. But averages are famously good at hiding things, and what they were hiding here was that melatonin's effect was not spread evenly across the people taking it. It clustered.
Specifically, melatonin reduced the time to fall asleep substantially more in people with delayed sleep phase syndrome than in people with insomnia. Delayed sleep phase is the condition where your internal clock is genuinely set to the wrong time zone: you are wide awake at 2am and comatose at 8am, not because you are anxious or wired, but because your body sincerely believes it is four hours earlier than the calendar claims.
And the researchers drew the conclusion that unlocks everything else. The effects of melatonin, they wrote, appear to be mediated by directly resetting the internal circadian pacemaker, rather than by acting on the brain's sleep-inducing structures.
Read that again. It is not sedating anyone. It is moving the clock.
Which means melatonin is not a weak sleeping pill. It is a decent clock-adjusting tool that has been badly miscast as a weak sleeping pill, and has spent decades getting mediocre reviews for a role it never auditioned for. Judging melatonin by how sleepy it makes you is like judging a compass by how fast it goes.
The same principle shows up in how it is actually used clinically. The American Academy of Sleep Medicine's guideline on circadian rhythm sleep-wake disorders endorses strategically timed melatonin for delayed sleep-wake phase disorder, for blind adults whose clocks drift because they receive no light signal, and for certain children with neurological conditions. Note the word "strategically." The guidance is not about how much. It is about when. Timing of administration matters more than dose for achieving circadian effects, which is exactly what you would expect from something that works by adjusting a clock rather than by pressing a sedation button.
Where Melatonin Genuinely Shines
So who is it actually for? A short and specific list.
Jet lag. This is melatonin's home turf, and the evidence is unusually strong. A Cochrane review of ten trials found that eight of them showed melatonin, taken near bedtime at the destination, meaningfully reduced jet lag after flights crossing five or more time zones. The reviewers described it as remarkably effective and safe for occasional short-term use. This makes complete sense once you accept the clock model: jet lag is not a sleep disorder, it is a timing disorder. Your clock is in New York and your body is in Tokyo, and melatonin helps drag the clock across the ocean to catch up. (Your colleague who takes it "for flights" has, without necessarily knowing why, landed on the one use the evidence most firmly supports.)
Shift work. Anyone whose working hours fight their biology is dealing with a timing problem, not a sedation problem. Research on melatonin and shift schedules has shown it can produce substantial shifts in the melatonin profile and improve adaptation to nocturnal schedules. If this is your life, our guide on switching from night shift to day shift without wrecking your head covers the wider strategy that melatonin only ever forms one part of.
Delayed sleep phase. The night owl whose owlishness is not a personality trait but a genuinely displaced clock. This is where the effect sizes get respectable.
Older adults. Natural melatonin production declines with age, and this is the clearest physiological case for topping the signal up. It is why UK guidance reserves melatonin mainly for short-term sleep problems in people aged 55 and over, and why age is one of the few places where the "your body is short of it" logic actually holds. If the signal is genuinely getting quieter, restoring it is a coherent idea rather than a hopeful one.
Notice what is missing from that list. "I had a stressful week and my brain will not shut up" is not on it. Neither is "I scroll until midnight and then cannot sleep." Those are real problems with real solutions, but they are not clock problems, and a clock tool will not fix them.
The Anxiety Trap: When Reaching for a Bottle Makes Sleep Harder
There is a subtler risk here, and it has nothing to do with the chemistry.
Sleep is one of those rare functions that actively resists effort. Trying harder to sleep produces less sleep, reliably, in a way that would be funny if it were happening to someone else. And anything that increases how much you are thinking about sleep tends to increase how much you are trying.
Now picture the evening where you take a tablet at ten. By half past ten you are in bed, and a small part of your mind has turned into a quality inspector. Is it working? Do I feel drowsy? That might be drowsiness. Or is that just lying down? It has been forty minutes. It should be working by now. Why is it not working? Is something wrong with me?
Congratulations, you have manufactured a performance review, and the person under review is trying to lose consciousness. This is not a melatonin problem specifically; you can do it with lavender spray. But a tablet gives the anxiety something concrete to measure, and measurement is the enemy of sleep. The clock-watching, the hyper-monitoring, the creeping sense that your body is failing at something it should do automatically: that is the machinery of sleep-related anxiety, and it feeds itself. The worse you sleep, the more anxious you get about sleeping, and the more anxious you get, the worse you sleep. Given what we know about how insomnia predicts anxiety and depression, this loop is worth taking seriously rather than shrugging at.
Worth being honest about, too: a proportion of what people experience from melatonin is likely placebo, and placebo is not nothing. If a nightly ritual genuinely helps you wind down, that has value. But it is a fragile kind of value, because it collapses the moment you start inspecting it.
If your nights are dominated by a mind that will not switch off, the tool you need is not a bottle. It is something that addresses the switching off. Our pieces on box breathing and on how to stop thinking about work at 3am go at the actual problem.
Myth vs. Fact
Myth: Melatonin makes you sleepy. Fact: It tells your body it is night. Whether sleep follows depends on whether your body believed otherwise. If your clock already knows it is night, you have added nothing.
Myth: More is better. Fact: The research on timing versus dose points the other way. This is a signal, and signals do not improve by being screamed. Follow the instructions on the bottle or from your prescriber rather than experimenting upward.
Myth: It is natural, so it is harmless. Fact: It is a hormone. Hormones are natural and they are also why nobody sells thyroid medication next to the chewing gum. Melatonin affects hormone levels, interacts with other medications, and is not right for everyone. That it sits on an open shelf in some countries reflects how it is classified there, not a verdict on how gentle it is.
Myth: It is addictive. Fact: There is no good evidence of physical dependence. The dependence people describe is usually psychological: the ritual becomes load-bearing. That is worth noticing, but it is a different thing from addiction. If the thought of a night without it makes you tense, that tension is the thing worth looking at, not the tablet.
Myth: If it does not work, my sleep is broken beyond repair. Fact: If it does not work, the most likely explanation is that you do not have the problem it solves. That is good news wearing a disguise.
What the Bottle Won't Tell You
Now for the part that genuinely should give you pause.
Researchers in Canada bought thirty-one melatonin products off ordinary shop shelves across sixteen brands and ran them through proper analytical chemistry. What they found was not encouraging. More than 71% of the products failed to come within 10% of what their own label claimed. Actual melatonin content ranged from 83% less than stated to 478% more. Two different batches of the same product varied from each other by as much as 465%.
Sit with that for a second. If you bought a bottle in that study, you did not know what dose you were taking, and neither did the person who sold it to you, and neither did the person who made it. You were not taking a supplement so much as entering a raffle.
Then it got worse. Mass spectrometry found serotonin, which is a far more tightly controlled substance, in 26% of the products tested. Unlabelled. As a contaminant. The authors noted that unlabelled serotonin in meaningful quantities could cause serious side effects. Roughly one bottle in four had something in it that nobody had mentioned on the outside.
This is the strongest practical argument in the whole discussion, and it is not about efficacy at all. It is about the fact that where melatonin is sold as a supplement rather than a medicine, the number on the front of the bottle is closer to a suggestion than a measurement. In the United States, melatonin is a dietary supplement, which means its manufacture is not regulated the way a medicine's would be, and the study above is a direct description of what that produces on real shelves. Where it is dispensed as a prescription medicine, as in the UK, the thing in the box is reliably the thing on the box. Same molecule, very different odds, depending entirely on which country you bought it in.
Whatever you take, take it as the label or your prescriber instructs. That is not a legal disclaimer; it is the only sensible response to a product category with this much variance in it.
So Should You Take It?
Here is an honest way to decide.
Melatonin is worth discussing with a doctor or pharmacist if:
- You are crossing five or more time zones, especially heading east
- You work shifts and your schedule is at war with your biology
- Your sleep timing is genuinely displaced (asleep at 4am, awake at noon, consistently, regardless of how tired you are)
- You are over 55 and your sleep has changed in a way that tracks with age
- You are on other medication, in which case this conversation is not optional
Melatonin is unlikely to be your answer if:
- Your problem is a mind that will not stop
- You sleep fine at weekends and badly on work nights (that is a stress problem in a sleep costume)
- Your sleep timing is normal but your sleep quality is poor
- You are hoping it will compensate for a bedroom that is too warm, too bright, and contains a phone
Things that outperform melatonin for most people, cost nothing, and have no batch variability:
- Morning light. The single most powerful lever you have. Your clock is set primarily by light, and a genuine dose of it early in the day does more for your night than anything you can swallow. Ten to twenty minutes outside within an hour of waking, no sunglasses. Even on a grey day, outdoor light is dramatically brighter than your kitchen.
- A consistent wake time. Not bedtime. Wake time. It is the anchor the entire rhythm hangs from, and it is the one most people sacrifice first. Our guide to fixing your sleep schedule walks through doing this without misery.
- Dimming the evening. You already have a melatonin production facility. Bright light at 11pm tells it to close early. Turning the lights down for the last hour is free, and it works on the actual mechanism rather than trying to override it.
- Sorting the room. Cool, dark, quiet, phone elsewhere. Deeply unglamorous. Reliably effective. Covered properly in our sleep hygiene guide.
- Addressing the anxiety directly, if anxiety is what is actually happening. Cognitive behavioural therapy for insomnia has a far stronger evidence base than melatonin does for exactly this kind of problem, and it is worth asking your doctor about.
And one more thing, quietly: if your sleep has been poor for months and your mood has gone with it, the melatonin question is probably not the important one. Given how firmly the research links persistent sleep disruption to the onset of anxiety and depression, that pattern is worth taking to a professional rather than to a supplement shelf. Not because it is alarming, but because it is treatable, and because treating it early is easier than treating it late.
The most useful thing about melatonin might be what it teaches rather than what it does. It is a reminder that your sleep is not a light switch that broke. It is a rhythm, negotiated daily between your biology and your environment, and rhythms respond far better to being conducted than to being medicated.
Frequently Asked Questions
Does melatonin actually work? For circadian problems (jet lag, shift work, displaced sleep timing) yes, with reasonable evidence behind it. For general insomnia, the average effect on falling asleep faster is small enough to be clinically unimportant. It works, but for a narrower set of problems than most people assume.
Is melatonin a sleeping pill? No. Sedatives act directly on the brain's sleep machinery. Melatonin sends a timing signal to your body clock. If your clock is correctly set, the signal adds nothing new.
Can I buy melatonin over the counter? It depends entirely on where you live. In the United States it is sold as a dietary supplement, so you can pick it up in any pharmacy or supermarket without a prescription, though that also means it is not regulated as a medicine and the quality control issues above apply. In the UK it works the opposite way: it is a prescription-only medicine, mainly prescribed for short-term sleep problems in people aged 55 and over. Australia, most of the EU and many other countries sit somewhere between the two. Wherever you are, check your local rules rather than assuming.
How long does melatonin take to work? Around one to two hours, according to NHS guidance, which is itself a clue about what it is doing. Sedatives do not take two hours.
Does melatonin help with anxiety? Not directly, and it is not an anxiety treatment. Sleep and anxiety are closely linked, so improving genuinely disordered sleep timing may help indirectly. But if anxiety is driving your sleeplessness, the anxiety is the thing to address.
Is it safe to take melatonin every night? That is a question for a doctor, and genuinely so, not as a polite deflection. Where melatonin is prescribed as a medicine, courses tend to be measured in weeks rather than years (UK guidance typically runs to around thirteen weeks, with some people needing longer under supervision), and there is no good evidence about the effects of taking it indefinitely. The wider point is that years of nightly use to solve a problem melatonin does not address is a lot of effort for very little return.
Why did melatonin do nothing for me? Most likely because you do not have a circadian timing problem. That is genuinely useful information: it points you towards what is actually going on rather than leaving you stuck.

