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 physician’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 disturbed sleep, 3 mg at bedtime lowered abdominal pain scores from 2.35 to 0.70 and 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 did not separate from placebo either. The authors concluded the pain benefit was independent of 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 an analgesic for a sensitized bowel. It is not a laxative, and 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.
In 80 postmenopausal women with irritable bowel syndrome, treated for six months with 3 mg fasting and 5 mg at bedtime, pain and bloating fell in 70% of the constipation-predominant group. In the diarrhea-predominant group, 45% improved, and that was no better than placebo. Keep that 45% in mind. It is roughly what a placebo buys on a symptom scale.
In a trial of children with functional abdominal pain, melatonin plus a probiotic beat placebo plus the same probiotic at an interim check (P = 0.001) but missed the endpoint declared in advance (P = 0.082). Both groups got the probiotic, so the trial cannot isolate 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 exposure was never measured, the esophagus was never examined, and two of three p-values were marginal. 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. The line comes from a review about vertebrate species in general, offers no reference for the ratio, and leans on an earlier review that never prints one.
The correction matters more than the number. Gut melatonin is made by enterochromaffin cells in the lining and released in response to food, not darkness. It feeds the bloodstream mostly during the day. That fits the trials. A molecule that answers to meals, and is proposed to act on the bowel wall, its immune tone and its muscle, 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, abdominal 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, and the gap held after adjusting for sleep quality. The schedule mattered beyond how well anyone slept.
A 2026 review of 17 studies of nursing shift patterns put rotating shifts at an odds ratio of 1.74 for irritable bowel syndrome, with no link to inflammatory bowel disease or colorectal cancer. The signal lives in symptoms, not in structural disease. For a pain physician, that points at how the nervous system processes the bowel as much as at the bowel itself.
A fixed night shift is like living in another time zone. A rotating roster is a long flight every few days. Nobody wrote that exposure on her chart because a staffing office, not a physician, wrote the schedule, and the shift differential 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 quality predicted more abdominal 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, shared symptom perception explains the link at least as well as anything happening in the bowel wall. In a pain clinic, that is as much a second-brain story as a first-brain one.
In a cohort of 1,291 people whose Crohn’s disease was in remission, impaired sleep doubled the odds of active disease at follow-up (odds ratio 2.00). The same study found that disease activity, depression, corticosteroids and narcotic pain medicines all predicted disturbed sleep. Medicine that erodes sleep may feed the very loop it was meant to quiet, which 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 largely powers down in sleep: in capsule recordings, contractions fell from 21 ± 5 an hour awake to 15 ± 4 asleep, and in another study propagating contractions vanished in slow-wave sleep and returned with brief arousals. 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 feeding as much as light, and 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 phase shift.
- 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, and C-reactive protein only trended.
- 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 roster, compatible with this disease? That talk has no billing code, and most physicians 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 complete 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 sleep disturbance, 3 mg at bedtime lowered abdominal pain and raised the rectal pain threshold without changing sleep. In postmenopausal women, benefit was clearest with constipation-predominant symptoms and did not beat placebo with diarrhea-predominant symptoms. Discuss it 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 associated with it, especially rotating shifts. Among 399 nurses, irritable bowel syndrome affected 48% of those on rotating shifts against 31% on day shifts, even after accounting for sleep quality. A review of 17 nursing studies found a similar pattern. These studies show association, 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, poorer sleep quality predicted more abdominal pain the following day, while pain did not predict the next night’s sleep. The study was small and exploratory, and felt sleep quality mattered more than device-measured sleep. 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 vertebrate species with no supporting reference. What holds up is more useful: gut melatonin is released in response to food, feeds the bloodstream mostly in the daytime, and 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 sublingual melatonin to omeprazole improved heartburn and overall symptom scores more than omeprazole alone over four weeks. Acid exposure 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 evaluate all three as drivers of your pain and a sensitized nervous system, working alongside the physicians who already manage your gut.
Request an appointment, call (314) 481-5000, or text (314) 886-5902.
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


