Can Melatonin Cause Constipation or Diarrhea? What We Know

Melatonin may cause constipation or diarrhea in some people, but it is a less common effect and the rate is unknown. Here is what trials show and what else can cause it.

Sleep Supplements & Science 11 min read September 25, 2026
Can Melatonin Cause Constipation or Diarrhea? What We Know

Anirva sells Sleep Harmony, a dietary supplement that contains melatonin. This article shares research for general education and is not medical advice.

If your digestion has felt different since you started melatonin, it makes sense to wonder whether the two are connected. Melatonin may cause constipation or diarrhea in some people, but Mayo Clinic lists both as less common effects, and no one knows exactly how often it happens. In trials of melatonin for irritable bowel syndrome, how often people had bowel movements did not change. Other causes, such as added ingredients, medicines and routine changes, are also possible.

In this article

Key Takeaways

At a glance
  • Possible, but less common. Mayo Clinic lists loose stools, constipation, stomach cramps and nausea among less common melatonin effects.
  • The rate is not well known. Trials rarely report these effects on their own. One 20 mg trial listed constipation in 4 of 39 people on melatonin and 1 of 38 on placebo, which is too few to be sure.
  • Gut trials are reassuring, but limited. In trials of 3 to 6 mg in people with IBS, bowel movement frequency did not change.
  • Other causes are common. Magnesium, 5-HTP, other medicines, diet changes and travel can all affect digestion.
  • Melatonin is one part of Sleep Harmony. The studies looked at melatonin by itself, so they do not describe the whole formula.

What Do Medical Sources Say About Melatonin and Digestion?

Mayo Clinic lists headache, dizziness, nausea and daytime drowsiness as the most common melatonin effects. Its list of less common effects includes stomach cramps, nausea, loose stools and constipation.

A 2019 review of 50 controlled studies found melatonin's side effects were generally minor and short-lived. Its abstract named fatigue, mood and thinking or movement performance as the most commonly reported ones, and it did not single out digestive effects.

The gut is not a stranger to melatonin. The gut makes melatonin too, and researchers think it helps regulate gut movement, according to a 2023 trial report. That is why digestive effects are plausible, though plausible does not mean common.

What Have Trials Found About Melatonin and the Bowel?

Melatonin has been tested as a possible treatment for irritable bowel syndrome (IBS), and those trials also tell us about bowel effects. In a 2023 trial of 136 people with IBS, 6 mg a day for eight weeks improved pain, bloating and stool scores compared with placebo. How often people had bowel movements each week did not change. The authors said patients tolerated the supplement well and reported no specific side effects.

Two earlier trials of 3 mg at bedtime found no clear effect on stool type or how often people went. A 2013 trial of 3 mg plus 5 mg for six months in postmenopausal women found better symptoms in people with constipation-predominant IBS. The gain was not significant in people with diarrhea-predominant IBS. A 2022 review of four such trials, with 115 people, found better overall IBS severity and pain.

These trials involved people with IBS, and most were small, so they do not show what happens in healthy adults who take melatonin for sleep.

What About Higher Doses?

Higher doses may matter. High doses are more likely to cause side effects. In one trial, 39 women receiving radiotherapy for breast cancer took 20 mg of melatonin and 38 took placebo. The registered results list constipation in 4 of 39 on melatonin (10%) and 1 of 38 on placebo (3%), and abdominal pain in 12 of 39 (31%) and 8 of 38 (21%). These numbers are small, and radiotherapy can affect the gut, so they do not show that melatonin caused the difference.

What Else Can Cause Constipation or Diarrhea?

Other ingredients. Large doses of magnesium supplements can cause nausea, diarrhea and stomach cramps, and the suggested limit from supplements is 350 mg a day. 5-HTP's most common side effects include heartburn, stomach pain, nausea and diarrhea. For valerian, stomach upset is among the most common effects, and placebo groups reported it too. Probiotics usually have few side effects.

Medicines and supplements. NIDDK lists antacids with aluminum or calcium, iron supplements and some antidepressants among the things that can worsen constipation. Mayo Clinic lists antacids with magnesium and artificial sweeteners among causes of diarrhea.

Routine changes. NIDDK notes that travel, changes in what you eat, low fiber and low fluids can all change bowel habits. Mayo Clinic lists infections and food intolerances as causes of diarrhea. When melatonin starts at the same time as one of these, it can look like the cause by coincidence.

Melatonin Is One Part of Sleep Harmony

If you are taking Sleep Harmony, melatonin is one of several ingredients rather than the only one. Sleep Harmony combines melatonin, calming herbs and three probiotics in one formula, and we chose ingredients that have each been studied for relaxation and sleep.

The studies above looked at melatonin by itself, so they do not describe the whole formula, and the finished formula has not been clinically tested.

About Sleep HarmonyEach 2-capsule serving of Sleep Harmony contains 5 mg of melatonin. It also has magnesium (50 mg, far below the 350 mg supplement limit), 5-HTP (50 mg), valerian and other herbs, GABA and probiotics. If digestion feels different after starting any blend, any ingredient could be involved, not only melatonin. Sleep Harmony has not been clinically tested as a finished formula. See the Sleep Harmony product page.

A Quick Look at the Research

Question Research What It Found How Solid Worth Knowing
Digestive effects listed Clinic side-effect lists Loose stools, constipation, cramps, nausea: less common Limited No rate given
Bowel effects in IBS trials One 136-person trial and smaller trials, 3–6 mg No consistent change in how often people went Limited People with IBS, not healthy adults
High-dose digestive events Registered results, 20 mg, 77 people Constipation 4 vs 1; abdominal pain 12 vs 8 Insufficient Small; radiotherapy patients
Magnesium as a cause University extension summary Large doses can cause diarrhea Moderate Depends on amount and form
5-HTP as a cause NIH MedlinePlus summary Diarrhea and stomach pain are common Moderate Summary, not a single trial

Good to Know

Before you start melatoninMelatonin is generally considered safe for short-term use. Its most common effects are headache, dizziness, nausea and daytime drowsiness, while digestive effects such as cramps, loose stools or constipation are less common and usually mild. Higher doses make side effects more likely. People who take blood thinners or have epilepsy need medical supervision when using melatonin. If you are pregnant, nursing, take prescription medicines or have a health condition, it is a good idea to check with your healthcare provider first.

How to Tell if Melatonin Is the Cause

Timing is the best clue. It can help to ask whether the change began after you started melatonin, and whether it eases when you stop. Changing one thing at a time makes it easier to tell, and it helps to note your dose, other supplements, medicines and any changes in food, travel or stress.

If symptoms are severe, keep going, or come with blood in the stool or a fever, a healthcare provider can help.

The Short Version

Can melatonin cause constipation or diarrhea? It may in some people, but it is a less common effect, and the rate is not well measured. In trials of people with IBS, melatonin did not change how often they went. Dose, other ingredients, medicines and routine are all worth a look before pointing to melatonin.

Frequently Asked Questions

Can melatonin cause constipation?
It may in some people. Mayo Clinic lists constipation as a less common melatonin effect. In IBS trials, melatonin did not change how often people went. A trial of 20 mg listed constipation in 4 of 39 people versus 1 of 38 on placebo, which is too few to be sure. Iron, some medicines, low fiber and travel are other common causes.
Can melatonin cause diarrhea, and does it happen often?
Mayo Clinic lists loose stools as a less common effect, and no source gives a reliable rate. In IBS trials of 3 to 6 mg, one trial reported no specific side effects. Other causes of diarrhea include magnesium supplements, 5-HTP, artificial sweeteners, food intolerances and infections.
Can higher doses of melatonin cause stomach problems?
Higher doses are more likely to cause side effects in general. In a small 20 mg trial, constipation and abdominal pain were listed more often on melatonin than placebo, though the numbers were small. No study has established a dose at which digestive effects begin.
Which sleep supplement ingredients can affect digestion?
Large amounts of magnesium can cause diarrhea and cramps, and 5-HTP commonly causes nausea, stomach pain or diarrhea. Valerian can cause stomach upset, while probiotics usually have few side effects. Artificial sweeteners in some products can also loosen stools. Checking every ingredient in a blend, not only melatonin, gives the fullest picture.
What should I do if melatonin upsets my stomach?
Note when it happens and what else changed. It is fine to stop a supplement that bothers you, and trials of 2 mg prolonged-release melatonin found no withdrawal symptoms after stopping. A healthcare provider can help if symptoms are severe, last, or come with blood in the stool or a fever.
Does Sleep Harmony work the same way as melatonin alone?
Sleep Harmony combines melatonin, calming herbs and three probiotics in one formula, so melatonin is only one part of it. The studies here looked at melatonin by itself, and the finished formula has not been clinically tested, so we cannot say how the whole formula compares.

References

  • Mayo Clinic Staff. Melatonin side effects: What are the risks? Mayo Clinic. mayoclinic.org
  • Foley HM, Steel AE. Adverse events associated with oral administration of melatonin: a critical systematic review of clinical evidence. Complement Ther Med. 2019;42:65–81. pubmed.ncbi.nlm.nih.gov PMID 30670284.
  • Dinevari MF, Jafarzadeh F, Jabbaripour Sarmadian A, et al. The effect of melatonin on irritable bowel syndrome patients with and without sleep disorders: a randomized double-blinded placebo-controlled trial. BMC Gastroenterol. 2023;23:135. link.springer.com DOI 10.1186/s12876-023-02760-0.
  • ClinicalTrials.gov. Melatonin supplementation for cancer-related fatigue in patients receiving radiotherapy (NCT02332928): adverse events table. clinicaltrials.gov NCT02332928.
  • Mukhopadhyay ND, Khorasanchi A, Pandey S, et al. Melatonin supplementation for cancer-related fatigue in patients with early stage breast cancer receiving radiotherapy: a double-blind placebo-controlled trial. Oncologist. 2024;29(2):e206–e212. pubmed.ncbi.nlm.nih.gov PMID 37699115; DOI 10.1093/oncolo/oyad250.
  • AARP. Can melatonin help you sleep? And is it safe? November 2025. aarp.org
  • University of Florida IFAS Extension. Magnesium (fact sheet FY1088). edis.ifas.ufl.edu
  • MedlinePlus. 5-HTP. National Library of Medicine. medlineplus.gov
  • NIH Office of Dietary Supplements. Valerian: fact sheet for health professionals. ods.od.nih.gov
  • National Center for Complementary and Integrative Health. 5 things to know about probiotics. NIH. nccih.nih.gov
  • NIDDK. Symptoms and causes of constipation. NIH. niddk.nih.gov
  • Mayo Clinic. Diarrhea: causes. Mayo Clinic. mayoclinic.org
  • National Center for Complementary and Integrative Health. Melatonin: what you need to know. NIH. nccih.nih.gov

Free tool

Curious what's actually disrupting your sleep?

Try our free Sleep Calculator — it'll help you find your ideal sleep schedule and match you with the right approach for your specific sleep issue.

Try the Sleep Calculator →
The honest answerDigestive effects are listed as less common, and in IBS trials melatonin didn't change how often people went. Other ingredients and habits are common alternate causes.
digestion melatonin melatonin side effects sleep supplements
SV
SABU VARGHESE
Anirva Editorial