4 reasons to be cautious about melatonin

Are you wondering if this popular supplement is a safe way to get more sleep? Get the facts.

women with insomnia in bed

Updated on September 20, 2024.

Your sleep-deprived friends may swear by it and you’ve probably read about it online or seen it on drugstore shelves. But can melatonin really help you sleep better or are you better off just counting sheep to get some shut-eye?

What is melatonin and how does it affect my body clock?

First, the basics: Melatonin is a naturally occurring hormone in the brain that your body uses to help regulate your circadian rhythms. These rhythms regulate changes that the body goes through each day over a 24-hour cycle. Circadian rhythms are in turn regulated by a system of chemicals and genes that work together and are known collectively as your biological clock, or body clock.

Circadian rhythms are affected most by light and dark but other factors like physical activity, diet, and temperature can also affect them. Among other vital functions, your circadian rhythms influence your sleep patterns, such as when to sleep and when to wake up each day. They do this in part by causing the release of melatonin in the body.

How and when does the body naturally produce melatonin?

Your body gradually starts making melatonin each day when your eyes begin receiving less and less light, typically as the sun sets each day. This brings on that familiar drowsy feeling. Production of the hormone continues during the night. In fact, melatonin has been called the “Dracula of hormones” because levels rise when it gets dark outside. As dawn approaches, levels begin to drop, letting you know it’s time to rise for the day.

At least, this is how it works in a perfect world. In practice, a lot of factors can interfere with the process of making melatonin. These include:

  • Shift work that changes the normal sleep-wake schedule
  • Jet lag, from traveling between time zones
  • Exposure to light from electronic devices, particularly in the evenings

Some gene variants and neurological diseases (those that affect the brain) can disrupt circadian rhythms, too.

Given melatonin’s essential role in the body’s internal clock, many people assume that taking melatonin as a supplement to boost your body’s natural levels is a safe and smart remedy for sleep issues. This may be one reason why its use increased by five times among adults in the United States between 1999 and 2018, according to a 2022 study published in JAMA. The research was based on data from the National Health and Nutrition Examination Survey (NHANES).

What should I know about using melatonin?

Melatonin is generally safe to use, but it is important to recognize some caveats before taking it. 

Melatonin is not a solution to all sleep issues

Taking melatonin an hour or two before bedtime can be effective for sleep issues related to your circadian rhythms. There is some evidence that it could be effective for those with temporary jet lag from traveling across time zones, but this research has limitations, and the possible benefits appear to be modest.

Shift workers with irregular schedules may also benefit from melatonin use, as may people with delayed sleep-wake phase disorder. This is a condition that makes it difficult to fall asleep at night, resulting in daytime fatigue.

Since melatonin production also declines with age, older people may have trouble falling asleep. In these cases, melatonin may provide some relief, according to Meer Ahmed, MD, a sleep medicine specialist in Houston, Texas.

But it’s important to talk to your healthcare provider (HCP) before taking melatonin, Dr. Ahmed cautions. Short-term use of melatonin may not be harmful. But there is insufficient evidence on its long-term safety, according to the National Center for Complementary and Integrative Health. In some cases, relying on melatonin could simply mask another problem.

Insomnia is like a fever, Ahmed explains, in that it is often a symptom of an underlying health concern. For example, sleeplessness could signal a hormonal imbalance, a mental health issue such as anxiety or depression, or a sleep disorder, like sleep apnea. If left untreated by an HCP, these issues could worsen or possibly lead to complications.

Melatonin is not regulated as a medication

Like any supplement, there are other potential downsides to melatonin use that should be considered.

The U.S. Food and Drug Administration (FDA) doesn’t regulate melatonin or other dietary supplements in the same way that it controls prescription and over-the-counter medications. That means the agency doesn’t test melatonin for safety or effectiveness. Some products could contain harmful hidden ingredients.

Past research has found that the amount of melatonin in certain products has often varied wildly from what was listed on the label. The hormone serotonin was also detected in more than a quarter of the samples analyzed in one 2017 study published in the Journal of Clinical Sleep Medicine.

This could be potentially harmful for some people, particularly those who are taking selective serotonin reuptake inhibitors (SSRIs), which are antidepressants that increase serotonin levels in the brain. Combining medication or supplements that jointly boost serotonin can cause it to accumulate and reach high levels in the body. This is a serious condition called serotonin syndrome, which can result in shivering, diarrhea, muscle rigidity, fever, or seizures.

More recent research published in 2023 in JAMA looked at 25 melatonin gummy brands. Researchers did not find evidence of serotonin in the products analyzed, but they did find that only three of the 25 products surveyed contained an amount of melatonin that was close to the amount declared on the label. Some products had much less—and some had up to 347 percent more. One product actually had no detectable melatonin and instead had more than 31 milligrams of cannabidiol (CBD), a derivative of cannabis.

This research didn’t look at tablets or capsules, so it’s unknown what other variations from stated ingredients there might be in other melatonin products on the market.

Melatonin comes with some potential side effects

Taking melatonin could also lead to some uncomfortable symptoms. They’re usually mild, but some people may experience:

  • Nausea
  • Dizziness
  • Headache
  • Daytime sleepiness
  • Vivid dreams and nightmares
  • Irritability
  • Short-term feelings of depression

For these reasons, it’s important not to drive or operate machinery for five hours after taking melatonin.

Dangerous drug interactions could occur

Taking melatonin as a supplement could also interfere with other important medications you might be taking. These may include:

  • Blood thinners
  • Diabetes drugs
  • Blood pressure medications
  • Anti-anxiety drugs such as diazepam
  • Fluvoxamine (used to treat obsessive compulsive disorder)
  • Immune system-suppressing drugs
  • Anti-seizure drugs
  • Certain contraceptives

If you’re taking any type of medication, it’s important to talk to your HCP before taking melatonin or any other dietary supplements.

When to steer clear of melatonin

Certain people should be more cautious about melatonin use, particularly if it triggers a negative reaction. People who may need to avoid taking melatonin include those with these conditions:

Chronic insomnia: Having trouble falling asleep or staying asleep that lasts a month or more shouldn’t be managed with melatonin, according to the American Academy of Sleep Medicine and the American College of Physicians. These experts recommend other, more proven remedies, such as a combination of lifestyle changes, cognitive behavioral therapy (CBT), and/or medication. There is not enough evidence that melatonin is safe and effective for long-term use.

Restless legs syndrome (RLS): This tingling feeling in the legs that often keeps people awake could be worsened by melatonin. The supplement can intensify RLS symptoms because it lowers the amount of dopamine in the brain, according to the Restless Legs Syndrome Foundation. If you’ve been diagnosed with RLS or suspect that you have the condition, talk to your HCP about lifestyle changes or medications that could help.

Dementia: This progressive deterioration of cognitive function is often associated with insomnia, one of the many complications of the condition that can challenge both patients and their caregivers. Although a 2021 review found that melatonin may help a little with insomnia associated with dementia, the evidence is limited, and it may ultimately do more harm than good. This is because dementia causes people to metabolize melatonin more slowly, resulting in daytime drowsiness. In people with moderate or severe dementia, melatonin supplementation may increase the risk of falls.

Use of alcohol or other sedating medication: If you’ve been drinking alcohol, it’s also not safe to take melatonin. Both are sedatives and, if taken together, they could cause you to become overly sedated, Ahmed advises.

The same goes for certain drugs known as sedatives or hypnotics, which include benzodiazepines, zolpidem, or eszopiclone. Taking melatonin along with these drugs can cause excessive sedation.

Pregnancy and breastfeeding: Melatonin is also not recommended if you’re pregnant or breastfeeding. Researchers don’t have enough data to know if it’s safe for fetuses or breastfed babies.

Can children take melatonin?

Parents desperate for some shut-eye may be tempted to give it to their children. There is some evidence that melatonin can help children with attention deficit hyperactivity disorder (ADHD) or autism spectrum disorder (ASD). Circadian rhythm sleep problems are common in children with these conditions, in part due to the prescription stimulants often used to treat them.

The possible side effects of melatonin use in kids include increased bedwetting or urination as well as agitation. Consult your child’s pediatrician before trying melatonin and if you do have it in your home, keep it in a safe place out of reach of children. Many melatonin products are available in forms appealing to children, such as gummies or chewables, but it can be harmful if taken at unintended high doses.

It’s worth noting that sleep problems in children can often be eased by creating a regular bedtime routine and sticking to healthy sleep hygiene practices, just like adults.

Reduce your reliance on melatonin and other sleep aids

Quick fixes are often tempting—and they’re often too good to be true. Before reaching for melatonin, consider making some simple lifestyle adjustments that can improve your sleep hygiene and help you sleep more soundly. Moves you can try include the following:

Stick to a sleep schedule. If possible, go to bed at the same time each night, and get up at the same time in the morning. If you must nap, limit your naps to 20 to 30 minutes, in the earlier part of the day.

Make your bedroom cool and comfortable. Set the room temperature between 60 and 67 degrees Fahrenheit. Make sure it’s dark and quiet.

Use light to your advantage. Expose yourself to bright light in the morning but avoid it in the evening. This can help regulate your circadian rhythms.

You can also try wearing glasses that block blue light in the evening hours. Blue light is the kind generated by electronic devices like smartphones and computer screens. A 2021 review published in Chronobiology International found that blue-light-blocking glasses may help you fall asleep if you’re struggling with a sleep disorder, jet lag, or a disrupted schedule because of shift work.

Wind down. As bedtime approaches, read or do something relaxing like taking a warm bath. Avoid using your computer, phone, or tablet. The blue light these devices emit can interfere with your sleep.

Don’t just lie there. If you can’t sleep, get out of bed and do something relaxing until you feel drowsy again.

Limit caffeine intake. Be sure to avoid caffeinated foods or beverages, including coffee, soda, and chocolate, at least four to six hours before going to bed.

Skip other potential sleep disrupters. Avoid cigarettes, alcohol, and heavy meals too close to bedtime.

Article sources open article sources

Bauer, Brent. Is melatonin a helpful sleep aid — and what should I know about melatonin side effects? Mayo Clinic. October 28, 2022.
Centers for Disease Control and Prevention. Are You Getting Enough Sleep? Page last reviewed March 4, 2024.
Chaulagain A, Lyhmann I, Halmøy A, et al. A systematic meta-review of systematic reviews on attention deficit hyperactivity disorder. Eur Psychiatry. 2023 Nov 17;66(1):e90. 
Cleveland Clinic. Melatonin. Page last reviewed July 5, 2022.
Cohen PA, Avula B, Wang Y, et al. Quantity of Melatonin and CBD in Melatonin Gummies Sold in the US. JAMA. 2023;329(16):1401–1402.
Drug and Therapeutics Bulletin team. Melatonin for jet lag. BMJ Journals: Drug and Therapeutics Bulletin 2020;58:21-24.
Erland LA, Saxena PK. Melatonin Natural Health Products and Supplements: Presence of Serotonin and Significant Variability of Melatonin Content. J Clin Sleep Med. 2017 Feb 15;13(2):275-281. 
Hester L, Dang D, Barker CJ, et al. Evening wear of blue-blocking glasses for sleep and mood disorders: a systematic review. Chronobiol Int. 2021 Oct;38(10):1375-1383.
Li J, Somers VK, Xu H, et al. Trends in Use of Melatonin Supplements Among US Adults, 1999-2018. JAMA. 2022 Feb 1;327(5):483-485. 
Mayo Clinic. Insomnia. Page last reviewed January 16, 2024.
Mayo Clinic. Melatonin. Page last reviewed August 10, 2023.
Mayo Clinic. Serotonin syndrome. Page last reviewed January 22, 2022.
Mayo Clinic. Sleep tips: 6 steps to better sleep. Page last reviewed May 7, 2022.
Mazur Karol, Machaj Dominik, Mazur Dominika, Asztabska Aneta, Płaczek Alicja. The use of melatonin in the treatment of jet lag – clinical review. Journal of Education, Health and Sport. 2020;10(5):175-179. eISSN 2391-8306.
National Center for Complementary and Integrative Health. Melatonin: What You Need To Know. Page last updated July 2022.
National Institute of General Medical Sciences. Circadian Rhythms. Page last reviewed September 2023.
Restless Legs Syndrome Foundation. Is Melatonin Right for You? January 1, 2020.
Savage RA, Zafar N, Yohannan S, et al. Melatonin. [Updated 2024 Feb 9]. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2024 Jan-.
Sumsuzzman DM, Choi J, Jin Y, et al. Neurocognitive effects of melatonin treatment in healthy adults and individuals with Alzheimer's disease and insomnia: A systematic review and meta-analysis of randomized controlled trials. Neurosci Biobehav Rev. 2021 Aug;127:459-473.
Papillon-Ferland L, Mallet L. Should Melatonin Be Used as a Sleeping Aid for Elderly People? Can J Hosp Pharm. 2019 Jul-Aug;72(4):327-329.
Young S, Hollingdale J, Absoud M, et al. Guidance for identification and treatment of individuals with attention deficit/hyperactivity disorder and autism spectrum disorder based upon expert consensus. BMC Med. 2020 May 25;18(1):146.
White, Lilian, MD. Back to school and back to sleep: melatonin supplementation in children. American Family Physician. August 22, 2022.

More On

What are the health complications associated with obstructive sleep apnea?

video

What are the health complications associated with obstructive sleep apnea?
Obstructive sleep apnea is a respiratory problem where you repeatedly stop breathing in your sleep. Internist and sleep expert Carol Ash, DO, discusse...
Sleep tips for shift workers

article

Sleep tips for shift workers
Get the sleep you need when you work nontraditional hours.
6 creepy ways your bedroom can make you sick

slideshow

6 creepy ways your bedroom can make you sick
Dust mites and lingering viruses are just two health hazards. Use these tips to make a clean sweep.
How can sleep apnea affect my heart?

video

How can sleep apnea affect my heart?
In people who suffer from sleep apnea, sleep goes from a restful, restorative state to a stressful physiological state that results in cardiovascular ...
What are circadian rhythm sleep disorders (CRSD)?

video

What are circadian rhythm sleep disorders (CRSD)?
A circadian rhythm sleep disorder is when the sleep schedule in your internal body is a mismatch for what's going on in the outside world. Sleep exper...