Should you take melatonin?
Melatonin can help with timing problems like jet lag, and the time you take it decides which way it moves your clock.
Melatonin can help when your problem is timing: jet lag, or a body clock that's shifted so late you can't fall asleep until 2 or 3 in the morning 1. If you've been lying awake for months, that's something else. For that kind of insomnia, doctors' guidelines don't recommend melatonin, because there isn't good enough evidence that it works or that it's safe 1.
If timing is your problem, I'd look at the light in your day before you buy a bottle. Light moves the same body clock that melatonin does 2, and you can start working on it tomorrow morning.
What melatonin does
Melatonin is a hormone your brain makes when it gets dark 1. Your levels start to climb about two hours before your usual bedtime, and daylight keeps them low all day 2. It helps set the timing of your sleep and of your body clock, the 24-hour clock inside you 1.
A melatonin pill can move that clock too, and which way it moves depends on when you take it. Taken in the early evening, hours before your usual bedtime, it moves your clock earlier. Taken in the morning, after your usual wake-up time, it moves it later. At the wrong time, it can make a timing problem worse 2.
Start with the light in your day
Light at night can block melatonin 1. Bright light in the morning moves your body clock earlier, so your own melatonin starts rising earlier in the evening too 2. So get outside soon after you wake up, even if it's only to walk the dog or walk the kids to school. In the evening, keep the room you're in lit by a lamp instead of the bright ceiling light, and keep your phone dim, so there's less light holding your melatonin back.
If you can't fall asleep until 2 or 3 a.m.
If you go to bed at a sensible hour, lie there for ages and would sleep half the morning if nobody woke you, your body clock may be running late. When a doctor finds that it's a sleep disorder, melatonin seems to help with sleep 1. But it isn't clear yet that the help is worth the possible harms 1.
In one small trial, adults with a diagnosed late body clock took melatonin every evening and were told to go to bed earlier and dim their lights before bed, and after four weeks the body clocks that were measured ran nearly 90 minutes earlier on average 3. Nobody got a dummy pill, so there's no telling how much of that came from the melatonin 3. I'd keep up the light changes alongside it if a doctor does put you on melatonin, since in that trial the pill was never tried without those dimmer lights.
Melatonin for jet lag
Melatonin may also ease jet lag after flights east or west 1. Flying east, you need your clock to run earlier, and flying west, you need it later, so the time you take it has to match the direction you flew 2. Get it backwards and it can leave you more out of step than before 2. Light moves the same clock when you travel 2. So on a trip, time your sun and your sunglasses as carefully as you'd time the pill.
Is melatonin safe?
For a short stretch, it looks safe for most people, but very little is known about taking it for months or years. In short studies of adults, the side effects were mild: headache, dizziness, nausea and sleepiness 1.
In the U.S., melatonin is sold as a dietary supplement, which the FDA regulates less strictly than medicines 1. In several other countries you need a prescription for it 1. Researchers who tested 25 different kinds of melatonin gummies bought in the U.S. found that 22 didn't have the amount on the label. One had none they could detect, and the rest ranged from about three-quarters to more than three times what the label said 6. An earlier test found serotonin, a hormone that can cause harm even at fairly low levels, in about a quarter of the supplements it checked 1.
When to see a doctor first
Melatonin is easy to buy, but talk to a doctor before you take it if any of these fit you 1.
- You're on a blood thinner or you have epilepsy. Only take it with a doctor keeping an eye on you 1.
- You take any other medicine. Your doctor can check it against what you already take 1.
- You're pregnant or breastfeeding. There's been very little research on whether it's safe for you 1.
- You're older. It may stay active in your body longer than it does in younger people and leave you drowsy the next day 1. Sleep medicine guidelines also advise against it for people with dementia 1.
- It's for a child. Talk to their pediatrician first. There aren't many studies in kids, so the right amount and the effects of years of use aren't clear. It's also a hormone, and nobody knows yet whether it affects development, including puberty 1.
If you've been lying awake for months
If you've had trouble falling asleep or staying asleep at least 3 nights a week for 3 months or more, that counts as long-term insomnia 4. For that, the first step is cognitive behavioral therapy for insomnia, or CBT-I for short 1.
It takes 6 to 8 weeks, and you don't have to sit in an office for it. You can do it with a doctor, a nurse or a therapist, in person, over the phone or online 5. Part of it is changing what you do in bed. You only go to bed when you're sleepy, you get up if you can't sleep, and you start with a set amount of time in bed that grows as your sleep gets better 5.
Turn this into a plan for your day.
Answer a few questions about your schedule and light access, and Calibrate builds a daily light-timing plan around the day you actually live.
References
- National Center for Complementary and Integrative Health (2024). Melatonin: what you need to know. U.S. National Institutes of Health; updated May 2024; accessed October 12, 2026. www.nccih.nih.gov/health/melatonin-what-you-need-to-know
- Riedy SM, Williams SG (2025). Jet lag disorder. CDC Yellow Book 2026: Health Information for International Travel; U.S. Centers for Disease Control and Prevention; April 23, 2025; accessed October 12, 2026. www.cdc.gov/yellow-book/hcp/travel-air-sea/jet-lag-disorder.html
- Swanson LM, de Sibour T, DuBuc K, et al. (2024). Low-dose exogenous melatonin plus evening dim light and time in bed scheduling advances circadian phase irrespective of measured or estimated dim light melatonin onset time: preliminary findings. J Clin Sleep Med 20(7):1131-1140. doi.org/10.5664/jcsm.11076
- National Heart, Lung, and Blood Institute (2022). Insomnia: diagnosis. U.S. National Institutes of Health; updated March 24, 2022; accessed October 12, 2026. www.nhlbi.nih.gov/health/insomnia/diagnosis
- National Heart, Lung, and Blood Institute (2022). Insomnia: treatment. U.S. National Institutes of Health; updated March 24, 2022; accessed October 12, 2026. www.nhlbi.nih.gov/health/insomnia/treatment
- Cohen PA, Avula B, Wang YH, Katragunta K, Khan I (2023). Quantity of melatonin and CBD in melatonin gummies sold in the US. JAMA 329(16):1401-1402. doi.org/10.1001/jama.2023.2296