If there is a jar of melatonin gummies by your bed, or you are thinking of buying one, these are fair questions: does it work, is it safe, and how long can you keep taking it?
The short answer is that melatonin appears to be safe for many adults over short periods, helps some sleep problems more than others, and has not been studied well enough for anyone to give a firm long-term limit.
If your poor sleep has come with very low mood or thoughts of harming yourself, please set this page aside and call Tele-MANAS on 14416, which is free and open 24 hours.
What does melatonin actually do?
Melatonin acts as a signal that it is time to sleep, rather than something that knocks you out.
Your body makes it naturally. Levels rise at night, and it helps control when you sleep. That is why the Indian Psychiatric Society’s guideline describes it as a chronobiotic, meaning something that acts on the body clock, and says the data do not support it as a sleeping medicine.
What it does not do is deal with the things that often keep insomnia going, such as worry about sleep, irregular hours or long stretches awake in bed.
It is also a different kind of product from prescribed sleeping tablets. If you are trying to come off those, the guide to sleeping tablets is the one for you, and please do not swap one for the other by yourself.
Does melatonin work for sleep?
Melatonin seems to help some body-clock problems, but its effect on everyday insomnia is small.
- Jet lag: research suggests it may help, and the evidence is stronger for flying east.
- A delayed body clock: it appears to help people whose natural sleep time runs much later than they need, though it is unclear whether the benefits outweigh the possible harms.
- Long-standing insomnia: the US National Center for Complementary and Integrative Health says there is not enough strong evidence to recommend it. The European Insomnia Guideline does not recommend ordinary fast-release melatonin for insomnia, unless body-clock factors are involved.
To put the effect in numbers, a 2013 analysis of 19 trials with 1,683 people found that those taking melatonin fell asleep about 7 minutes sooner and slept about 8 minutes longer than those taking a placebo. Their sleep quality also improved a little. The authors described the improvement as modest.
If your problem is months of broken nights, a structured therapy called CBT-I is the first-line treatment in major guidelines.
Is melatonin safe, and how long can I take it?
Short-term melatonin appears to be safe for many adults, but nobody can give a firm safe limit for long-term use, because the research is lacking.
Side effects can include headache, dizziness, nausea and daytime sleepiness. Do not drive if it makes you sleepy, and try to avoid alcohol while taking it. The NHS says you are unlikely to become addicted to it when it is taken as prescribed.
It may help to see how doctors use it where it is a prescribed medicine. In the UK, a usual course for short-term insomnia is 1 to 4 weeks, sometimes up to 13 weeks, and specialists may prescribe it for longer. The European guideline allows a prolonged-release form for up to 3 months in people aged 55 or over. These describe supervised treatment with a specific product. They are not a safe allowance for gummies.
You may have seen headlines about melatonin and the heart. A large health-records study presented in 2025 linked long-term use with more heart failure in adults with insomnia. A peer-reviewed 2026 analysis of US national survey data found no significant link, and concluded that the evidence so far establishes neither harm nor safety. People who take melatonin often have worse sleep or more depression, which makes these comparisons hard to read.
If you are still relying on melatonin after a few weeks, that is a good reason to have your sleep looked at.
Check with a doctor before using it if you have epilepsy, take blood thinners, have liver or kidney problems, or have an autoimmune condition.
Short-term use appears to be safe for many adults, but long-term safety has not been well studied.
Are gummies the same as melatonin from a doctor?
Not necessarily: both contain melatonin, but you cannot assume a gummy holds what its label says, and it comes without a doctor’s review.
A 2023 study of 25 melatonin gummy products sold in the US found that 22 were inaccurately labelled. Amounts ranged from 74 to 347 per cent of the label, and one product had no detectable melatonin. A 2017 study of 31 supplements also found amounts that often did not match the label, and about a quarter contained serotonin.
The gummy study tested US products, so it cannot tell you about any particular pack on sale in India. It is still a reason to treat the number on a pack as approximate.
The bigger difference is the care around it. A prescribed product is chosen for a specific sleep problem, by someone who has asked why you are not sleeping and who will review it. In the UK melatonin is prescription-only, and the NHS does not recommend ordering it online.
Whatever you take, tell your doctor about it, including gummies.
Can children or pregnant women take melatonin?
Children, and women who are pregnant or hoping to be, should get medical advice before using melatonin.
In pregnancy: melatonin is not usually recommended, because little is known about its effect on babies. The Indian guideline also advises avoiding medications in the first trimester where possible. If you are breastfeeding, or you find you are pregnant while taking it, speak to your doctor. Sleep and mood around birth deserve attention in their own right, as the guide to mental health in pregnancy and after birth explains.
In children: a 2019 review of 18 studies with 1,021 children found melatonin did better than placebo for falling asleep and total sleep, but the studies were small and brief. Long-term effects on hormonal development are unknown, so the decision is one to make with a paediatrician, who will usually ask about routines, screens and worries first.
At home: gummies look and taste like sweets. Reports to US poison centres about young people rose from 8,337 in 2012 to 52,563 in 2021, and the large majority were accidental. Store them out of children’s reach, as you would any medicine.
When does poor sleep need a doctor?
Poor sleep needs a doctor if it has lasted for months, is affecting your days, or comes with other symptoms.
- Someone notices loud snoring, gasping or pauses in your breathing at night, which can be signs of sleep apnoea.
- You get an uncomfortable urge to move your legs when resting in the evening.
- Your mood is low, you have lost interest in things, or you worry constantly.
- Pain, another illness or a new medicine seems to be keeping you awake.
- You are relying on melatonin night after night and are not sure what to do next.
These need their own assessment, and a gummy will not treat them. A doctor will usually ask how long this has been going on, what your nights and days look like, and what you have already tried, because the answers point to the cause.
Sources
- Melatonin: What You Need To Know · National Center for Complementary and Integrative Health, US National Institutes of Health
- Melatonin (medicines guide) · NHS
- Clinical Practice Guidelines for Sleep Disorders · Indian Journal of Psychiatry / Indian Psychiatric Society
- The European Insomnia Guideline: An update on the diagnosis and treatment of insomnia 2023 · Journal of Sleep Research / European Sleep Research Society
- Meta-Analysis: Melatonin for the Treatment of Primary Sleep Disorders · PLoS ONE
- Melatonin and cardiovascular risk: an NHANES reality check after recent heart failure concerns · Open Heart (BMJ)
- Tele MANAS: Revolutionizing Mental Health Care in India · Ministry of Health and Family Welfare, via Press Information Bureau
General information only, not a substitute for a consultation.

