In the trials, melatonin for IBS acted like a painkiller for an oversensitive bowel. 3 mg at bedtime lowered belly pain scores and raised the rectal pain threshold without changing sleep. It is not a laxative. In these patients, it was not a sleeping pill.
She is an intensive care nurse with Crohn’s disease, officially in remission, with a clean calprotectin. She has still had three flares in two years, and her own diary shows each one starting in the week after her schedule swung between nights and days.
Her biologic was adjusted twice. Her chart never mentions the roster. And her belly pain, the thing that actually wrecks her week, was filed as a side effect of the disease instead of a signal with its own timetable. That timetable is exactly where melatonin for IBS earns a closer look.
I’m Dr. Gurpreet Singh Padda, MD, MBA, MHP. The video for Chapter 17 of The Angry Gut, the book I wrote with Ami Michelle Grimes, is called Your Gut Has Jet Lag. Here I take up a narrower question from a pain doctor’s chair: melatonin for IBS and bowel pain. What the trials found surprises most people.
Melatonin for IBS: what the trials actually measured
Most people think of melatonin as a sleep aid. In the bowel trials, it behaved like something else.
In a double-blind trial of 40 patients with irritable bowel syndrome and poor sleep, 3 mg at bedtime lowered belly pain scores from 2.35 to 0.70. It also raised the rectal pain threshold, the pressure at which the bowel starts to hurt. Total sleep time, time to fall asleep and sleep efficiency did not change. Bloating, stool pattern, anxiety and depression scores were no different from placebo either. The authors concluded the pain benefit did not depend on any effect on sleep.
A larger trial of 136 patients sorted people by whether they had a sleep disorder at all. Melatonin, 3 mg fasting plus 3 mg at bedtime for eight weeks, improved bowel symptoms in both groups. Patients with no sleep problem got the bowel benefit anyway. Weekly stool frequency did not improve in anyone.
Put together, melatonin acts like a painkiller for an oversensitive bowel. It is not a laxative. In these patients, it was not a sleeping pill.
Who melatonin did not help
An honest picture includes the failures, because they tell you who this is for.
Look at 80 women past menopause with irritable bowel syndrome. They took 3 mg fasting and 5 mg at bedtime for six months. Pain and bloating fell in 70% of those with the constipation type. In the diarrhea type, 45% improved, and that was no better than placebo. Keep that 45% in mind. It is about what a placebo buys on a symptom scale.
In a trial of children with functional belly pain, melatonin plus a probiotic beat placebo plus the same probiotic at an early (interim) check (P = 0.001). But it missed the goal set in advance (P = 0.082). Both groups got the probiotic, so the trial cannot single out melatonin at all. An effect that shows up early and fades by the planned finish line is a timepoint, not a treatment.
For reflux, 72 adults finished a four-week trial of melatonin 3 mg added to omeprazole 20 mg. Heartburn and overall symptom scores improved more than with omeprazole alone. But acid levels were never measured, the esophagus was never examined, and two of three p-values were borderline. That trial tested melatonin on top of a drug that already works.
The four hundred times figure, corrected
You may have read that the gut holds at least 400 times more melatonin than the pineal gland. That line comes from a review about animals with backbones in general. It gives no source for the ratio. It leans on an earlier review that never prints one.
The fix matters more than the number. Gut melatonin is made by special cells in the lining (enterochromaffin cells). They release it in response to food, not darkness. It flows into the blood mostly during the day. That fits the trials. This molecule answers to meals and is thought to act on the bowel wall, its immune tone and its muscle. So it should be able to ease bowel pain without touching sleep. In the trials, it did.
Rotation, not night work alone, tracks the belly pain
Back to the nurse. In a survey of 399 nurses, belly pain was reported by 81% of those on rotating shifts, 54% on day shifts and 61% on fixed nights. Irritable bowel syndrome ran at 48% on rotating shifts against 31% on days. The gap held after adjusting for sleep quality. The schedule mattered beyond how well anyone slept.
A 2026 review of 17 studies of nurse shift patterns put rotating shifts at an odds ratio of 1.74 for irritable bowel syndrome. It found no link to inflammatory bowel disease or colorectal (colon and rectal) cancer. The signal lives in symptoms, not in structural disease. For a pain doctor, that points at how the nervous system reads the bowel as much as at the bowel itself.
A fixed night shift is like living in another time zone. A rotating schedule is a long flight every few days. Nobody wrote that exposure on her chart, because a staffing office, not a doctor, wrote the schedule. And the shift bonus pays by the hour whether or not her colon keeps up.
Tonight’s sleep predicts tomorrow’s pain
Sleep and gut pain run in a loop, and the direction is worth knowing. In 24 women with irritable bowel syndrome who kept daily diaries, poor sleep predicted more belly pain the next day. A painful day did not predict worse sleep that night.
There is a twist that matters in a pain practice. Sleep quality as the women felt it predicted pain. Sleep efficiency measured by a wrist device predicted next-day anxiety and fatigue, but not pain. When the felt measure tracks pain and the machine does not, how people sense symptoms explains the link at least as well as anything in the bowel wall. In a pain clinic, that is as much a second-brain story as a first-brain one.
In a group of 1,291 people whose Crohn’s disease was in remission, poor sleep doubled the odds of active disease at follow-up (odds ratio 2.00). The same study found that disease activity, depression, steroids and narcotic pain medicines all predicted poor sleep. Medicine that wears down sleep may feed the very loop it was meant to quiet. That is one reason stewardship means harm reduction, never simple abstinence. The nervous-system half of this loop is covered in how the first brain and the second brain signal each other.
Where melatonin fits in a pain plan
Melatonin is not a substitute for fixing the schedule. The colon mostly powers down in sleep. In capsule recordings, contractions fell from 21 ± 5 an hour awake to 15 ± 4 asleep. In another study, pushing contractions vanished in deep sleep and came back with brief wake-ups. A body woken again and again rarely gives the bowel its quiet stretch.
From the pain side, working alongside your gastroenterologist, this is the order I use.
- Write the schedule on the chart. Track symptoms against when you slept, not only how long. The swing is the exposure.
- Anchor meals. Gut rhythm follows meals as much as light. Meal timing is the part of a night shift you still control. Time-restricted eating in shift workers covers that evidence.
- Protect a fixed sleep window on days off. Every swing back and forth is another time-zone shift for your body.
- Treat insomnia directly. In a pilot of 26 people with Crohn’s disease, cognitive behavioral therapy for insomnia beat a waitlist on sleep. Pain scores improved within the treated group, a weaker comparison. C-reactive protein, an inflammation marker, only trended down.
- Ask what melatonin is for. If it comes up, ask whether the target is sleep or bowel pain, because the trials separate those. Work any change through your physician.
And the hardest question: is this job, on this schedule, compatible with this disease? That talk has no billing code, and most doctors skip it. It still has to happen. The previous post in the series explains why a biologic is a bridge, not a cure. The next asks what a stool test can really tell you about your gut. The Chapter 17 Deep Dive carries each study with its full figures and caveats.
Frequently asked questions
Does melatonin help IBS pain?
In some patients, yes. In a trial of 40 people with irritable bowel syndrome and poor sleep, 3 mg at bedtime lowered belly pain and raised the rectal pain threshold without changing sleep. In women past menopause, the benefit was clearest with the constipation type. It did not beat placebo with the diarrhea type. Talk with your physician before starting. How the body clock shapes pain in the brain covers the wider picture.
Can working night shifts cause IBS?
Shift work is linked to it, especially rotating shifts. Among 399 nurses, irritable bowel syndrome affected 48% of those on rotating shifts against 31% on day shifts. That held even after accounting for sleep quality. A review of 17 nursing studies found a similar pattern. These studies show a link, not proof of cause. What happens when your internal clock breaks explains the pain side of the mechanism.
Can a bad night’s sleep cause stomach pain the next day?
It can predict it. In a diary study of 24 women with irritable bowel syndrome, worse sleep predicted more belly pain the next day. Pain did not predict the next night’s sleep. The study was small and early-stage. Sleep quality as people felt it mattered more than sleep measured by a device. Why sleep and chronic pain feed each other goes further.
Does the gut really make 400 times more melatonin than the brain?
That number has no measurement behind it. It comes from a general review of animals with backbones, with no supporting source. What holds up is more useful. Gut melatonin is released in response to food. It flows into the blood mostly in the daytime. And it is not a darkness signal the way pineal melatonin is. The melatonin your cells make in daylight is a related story.
Can melatonin help nighttime acid reflux?
The evidence is thin. In a trial of 72 adults who finished treatment, adding under-the-tongue melatonin to omeprazole improved heartburn and overall symptom scores more than omeprazole alone over four weeks. Acid levels and the esophagus itself were never measured. Ask whether the timing of your last meal before sleep is part of the plan. How meal timing resets the gut clock explains why that matters.
Put your schedule on the chart
If gut pain, poor sleep and a hard schedule keep feeding each other, we look at all three as drivers of your pain and an oversensitive nervous system. We work alongside the doctors who already manage your gut.
Request an appointment, or call or text us.
Sources
- Ananthakrishnan, A. N., Long, M. D., Martin, C. F., Sandler, R. S., & Kappelman, M. D. (2013). Sleep disturbance and risk of active disease in patients with Crohn’s disease and ulcerative colitis. Clinical Gastroenterology and Hepatology, 11(8), 965-971. https://doi.org/10.1016/j.cgh.2013.01.021
- Bubenik, G. A. (2002). Gastrointestinal melatonin: localization, function, and clinical relevance.. Digestive Diseases and Sciences, 47(10), 2336-48. https://doi.org/10.1023/a:1020107915919
- Buchanan, D. T., Cain, K., Heitkemper, M., Burr, R., Vitiello, M. V., Zia, J., & Jarrett, M. (2014). Sleep measures predict next-day symptoms in women with irritable bowel syndrome. Journal of Clinical Sleep Medicine, 10(9), 1003-1009. https://doi.org/10.5664/jcsm.4038
- Chojnacki, C., Walecka-Kapica, E., Lokieć, K., Pawłowicz, M., Winczyk, K., Chojnacki, J., & Klupińska, G. (2013). Influence of melatonin on symptoms of irritable bowel syndrome in postmenopausal women.. Endokrynologia Polska, 64(2), 114-120. https://pubmed.ncbi.nlm.nih.gov/23653274/
- Dipasquale, V., Palermo, L., Barbalace, A., Tumminello, G., & Romano, C. (2023). Randomised controlled trial of melatonin for paediatric functional abdominal pain disorders.. Journal of Paediatrics and Child Health, 59(3), 458-463. https://doi.org/10.1111/jpc.16323
- Faghih Dinevari, M., Jafarzadeh, F., Jabbaripour Sarmadian, A., Abbasian, S., Nikniaz, Z., & Riazi, A. (2023). The effect of melatonin on irritable bowel syndrome patients with and without sleep disorders: A randomized double-blinded placebo-controlled trial study. BMC Gastroenterology, 23(1), 135. https://doi.org/10.1186/s12876-023-02760-0
- Malekpour, H., Noori, A., Abdi, S., Abbasinazari, M., Mahboubi, A., & Ghamsari, M. A. (2023). Is the addition of sublingual melatonin to omeprazole superior to omeprazole alone in the management of gastroesophageal reflux disease symptoms: A clinical trial.. The Turkish Journal of Gastroenterology, 34(12), 1206-1211. https://doi.org/10.5152/tjg.2023.23021
- Nojkov, B., Rubenstein, J. H., Chey, W. D., & Hoogerwerf, W. A. (2010). The impact of rotating shift work on the prevalence of irritable bowel syndrome in nurses. The American Journal of Gastroenterology, 105(4), 842-847. https://doi.org/10.1038/ajg.2010.48
- Pérez-Manchón, D., Lozano-Hernández, C. M., Mata-González, G., Arias-Arias, A. J., Mayoral-Gonzalo, N., Gómez-de Quero Córdoba, M., & Ruiz-Zaldibar, C. (2026). Impact of nursing shift patterns on work-related gastrointestinal disorders: A systematic review and meta-analysis. Frontiers in Public Health, 14, 1839569. https://doi.org/10.3389/fpubh.2026.1839569
- Song, G. H., Leng, P. H., Gwee, K. A., Moochhala, S. M., & Ho, K. Y. (2005). Melatonin improves abdominal pain in irritable bowel syndrome patients who have sleep disturbances: A randomised, double blind, placebo controlled study. Gut, 54(10), 1402-1407. https://doi.org/10.1136/gut.2004.062034
Dr. Gurpreet Singh Padda, MD, MBA, MHP

