Search IconSearch
August 6, 2021/Living Healthy/Sleep

Can Melatonin Cause Bad Dreams? What Experts Say

What to expect after taking this increasingly popular sleep aid

melatonin dreams

When you’re unable to sleep, you have many potential options to induce snoozing: drinking tea or warm milk, meditation or doing deep breathing exercises.


Cleveland Clinic is a non-profit academic medical center. Advertising on our site helps support our mission. We do not endorse non-Cleveland Clinic products or services. Policy

In recent years, many people have turned to melatonin — a naturally secreted hormone that’s also sold as an over-the-counter dietary supplement — to bring on ZZZs.

A National Center for Health Statistics report found the number of adults taking melatonin more than doubled between 2007 and 2012.

As a supplement, melatonin is associated with helping you get to sleep — and stay asleep. However, many people who take melatonin also report having vivid or bad dreams, a side effect that may be concerning.

We spoke with behavioral sleep medicine psychologist Michelle Drerup, PsyD, about how melatonin affects your body and what side effects to look for.

What is melatonin?

Dubbed the “sleep hormone,” melatonin functions as both a turn-down service and an internal alarm clock. When your melatonin levels increase, you start to feel tired and more chilled out. Decreasing melatonin levels are a signal that it’s time to rise and shine. “Melatonin helps your body know when it’s time to sleep and wake up,” says Dr. Drerup.

Melatonin is synthesized from serotonin, a mood-regulating neurotransmitter associated with happy feelings. This synthesis happens in your pineal gland, a small, oblong-shaped gland located in your brain. Within the pineal gland, melatonin production fluctuates depending on the time of day.

“Darkness prompts the pineal gland to start producing melatonin, while light causes that production to stop,” says Dr. Drerup. “As a result, melatonin helps regulate one’s circadian rhythm and synchronize our sleep-wake cycle with night and day.” That’s why you start to feel sleepy as soon as it gets dark — or find yourself drowsy in afternoons during winter when the sun sets earlier.

In an ideal world, melatonin levels would sync up with the presence of natural light. However, melatonin levels can decrease due to factors such as stress, smoking and shift work that disrupt your sleep patterns. If you are in the habit of scrolling through your phone or tablet at night, the glow produced by your screen can also cause melatonin to drop. A lack of exposure to natural light during the day is also associated with lower melatonin levels.


“Timing of melatonin onset is key to help sleep,” Dr. Drerup says. “Most people’s bodies produce enough melatonin for sleep on their own.” In fact, research has shown adults with circadian rhythm sleep disorders, including delayed sleep-wake phase disorder and jet lag, benefit most from more melatonin.

Does melatonin cause bad or vivid dreams?

In general, you might have more vivid dreams if you’re anxious or stressed. Certain sleep disorders, such as obstructive sleep apnea, and taking medications such as beta blockers and antihistamines, can also lead to an increase in vivid dreams and/or nightmares.

However, according to Dr. Drerup, it’s unclear if taking extra melatonin before going to bed causes bad or vivid dreams. “There’s no conclusive evidence as to how exactly your dreams are affected by taking melatonin supplements,” she says.

Reasons you might have vivid dreams after taking melatonin

If you are having particularly vivid or bad dreams after taking melatonin, it may be your body’s natural response to falling into a deeper, more restful sleep. Studies have found that melatonin can increase REM sleep, the sleep cycle known for causing vivid dreams. “If you are spending more time in the stage of sleep where vivid dreams are most likely to occur, this may naturally lead to increases in bad/vivid dreams,” says Dr. Drerup.

When you’re sleeping, melatonin also releases vasotocin, a protein that regulates REM sleep, she adds. “Increased amounts of melatonin may lead to higher levels of vasotocin — therefore more REM sleep and potentially vivid dreams.” Scientists are also exploring the links between melatonin and memory. A 2020 study found that after melatonin broke down in the body, one of the resulting molecules helped mice improve their long-term memory.

What are the side effects of taking melatonin?

Dose-wise, Dr. Drerup suggests you take between 1 to 3 milligrams of melatonin per night. “Melatonin is generally safe for most people, but too high of a dose can lead to unpleasant side effects.”

Common side effects from taking melatonin include:

  • Headaches.
  • Dizziness.
  • Nausea.
  • Drowsiness.

Less common side effects from taking melatonin include:

  • Temporary feelings of depression.
  • Mild anxiety.
  • Abdominal cramps.
  • Irritability.
  • Reduced alertness.
  • Low blood pressure.

The long-term effects of taking melatonin are also a question mark. “Minimal research exists on using melatonin beyond a few months,” says Dr. Drerup. “In general, melatonin usage has only been deemed safe for up to three months, even though many people take it for much longer.”

However, because melatonin is sold as a dietary supplement, it isn’t regulated by the FDA. This means what’s marketed as melatonin could be something far different. A 2017 study found the actual melatonin content in 71% of supplements didn’t match the amount advertised on the label. Researchers found supplements contained fillers, preservatives or even serotonin — the latter of which can be harmful in higher doses.

And while melatonin is easily available over the counter, Dr. Drerup recommends talking to your doctor before starting to take it, just as you would any other supplement. “It’s best to check especially if you have any health conditions, and also so your doctor can review any potential interactions with other medications/supplements.”


Learn more about our editorial process.

Related Articles

Person sleeping as alarm clock goes off
July 8, 2024/Sleep
Sleep Inertia: What It Is and How To Get Rid of It

A morning routine called RISE-UP may cut down the time you spend groggy and disoriented after waking up

Happy couple sleeping in bed together, holding hands
June 3, 2024/Sleep
The Scandinavian Sleep Method: A Surprisingly Simple Fix for Couples Struggling With Blanket-Hogging

Sleeping with separate blankets can help you get the ZZZs you need — without fighting for covers all night

Person sitting on bed in pjs with head in hand, eyes closed
May 29, 2024/Sleep
Here’s What Happens When You Don’t Get Enough Sleep

Stress, weight gain and forgetfulness are just a few effects of losing sleep

Person in bed experiencing nightmares
May 22, 2024/Sleep
7 Reasons You’re Having Nightmares

Stress, alcohol, sleep apnea and (you guessed it!) scary movies are a few common causes of bad dreams

Person sitting in chair writing in tablet
May 21, 2024/Sleep
Should You Be Keeping a Dream Journal?

Recording your dreams may help you become more mindful, understand your thought patterns, process your emotions and even reduce your stress

Person sitting in bed in the evening, reading a book, with cup of tea on bedside table
May 15, 2024/Sleep
Restless? Try These Bedtime Teas for Better Sleep

Chamomile, lavender and valerian root teas may offer a faster route to dreamland

Person asleep in bed, talking in their sleep
May 3, 2024/Sleep
Why Do People Talk in Their Sleep?

Many factors can contribute to sleep talking, like stress or anxiety, lack of or low-quality sleep, or even more serious sleep-related conditions

Young child in bed reading at night
May 2, 2024/Children's Health
Nighty-Night: Tips To Get Your Kid To Stay In Bed

A consistent, structured routine, which may include incentives, can help children learn to stay in bed and get the ZZZs they need

Trending Topics

Female and friend jogging outside
How To Increase Your Metabolism for Weight Loss

Focus on your body’s metabolic set point by eating healthy foods, making exercise a part of your routine and reducing stress

stovetop with stainless steel cookware and glassware
5 Ways Forever Chemicals (PFAS) May Affect Your Health

PFAS chemicals may make life easier — but they aren’t always so easy on the human body

jar of rice water and brush, with rice scattered around table
Could Rice Water Be the Secret To Healthier Hair?

While there’s little risk in trying this hair care treatment, there isn’t much science to back up the claims