Why Metformin Causes Diarrhea and How to Stop It

Metformin causes diarrhea through at least three overlapping mechanisms: it increases serotonin activity in the gut, it disrupts bile acid recycling, and it shifts the balance of intestinal bacteria. Roughly 10 to 12 percent of people taking metformin experience diarrhea, making it the drug’s most common side effect. For most people the problem fades within a few weeks, but understanding what’s actually happening in your digestive system helps explain why it starts, why it lingers for some, and what can be done about it.

Serotonin and Faster Gut Movement

Most of your body’s serotonin isn’t in your brain. About 95 percent of it is made in the lining of your intestines, where it controls how fast food moves through your digestive tract. Normally, after serotonin does its job, specialized transporters pull it back into the cells so the signal stops. Metformin interferes with that cleanup process, blocking serotonin reuptake in the gut wall. The result is more serotonin hanging around longer, continuously telling your intestines to keep things moving.

Research from the University of North Carolina found that metformin caused a fourfold increase in intestinal motility, meaning the gut pushed its contents through roughly four times faster than normal. That same study showed a 50 percent increase in water content in the large intestine. When researchers blocked a specific serotonin receptor involved in gut movement, both effects were reduced. So the chain is straightforward: metformin raises serotonin levels in the gut, serotonin speeds up contractions and pulls more water into the colon, and the combination produces loose, urgent stools.

Bile Acid Buildup in the Colon

Your liver produces bile acids to help digest fat. Normally, your small intestine reabsorbs about 95 percent of those bile acids and recycles them back to the liver. Metformin disrupts this recycling loop. The Cleveland Clinic classifies metformin-related diarrhea as a form of bile acid malabsorption caused by excessive bile acid production.

When unabsorbed bile acids reach the colon, they irritate the lining, triggering it to secrete extra fluid and speeding up the muscle contractions that push stool forward. This is why metformin-related diarrhea often feels urgent and crampy rather than just loose. The bile acid mechanism also helps explain why symptoms can be worse after fatty meals, since fat triggers more bile release in the first place.

Changes to Gut Bacteria

Metformin reshapes the community of bacteria living in your intestines. It increases populations of certain species, including Escherichia (the family that includes E. coli) and Bifidobacterium, while reducing others like Lactobacillus and Clostridium. These shifts aren’t all bad. Some of the bacterial changes are thought to contribute to metformin’s blood sugar benefits. But the disruption itself can cause gas, bloating, and diarrhea, especially in the early weeks before the microbiome stabilizes.

People with type 2 diabetes often already have an imbalanced gut microbiome before starting metformin. Existing dysbiosis or small intestinal bacterial overgrowth (SIBO) significantly increases the frequency of gastrointestinal side effects. In other words, if your gut bacteria are already off-kilter, metformin is more likely to push you over the threshold into noticeable symptoms.

Why Symptoms Usually Improve Over Time

For most people, metformin-related diarrhea improves within a few weeks as the body adjusts. The gut adapts to higher serotonin signaling, bile acid metabolism finds a new equilibrium, and the microbiome settles into its altered composition. This is why doctors typically start with a low dose and increase gradually. The standard approach is to begin at 500 mg twice daily and increase by 500 mg each week, giving the digestive system time to catch up at each step. Taking the medication with meals also slows absorption and reduces the initial gut impact.

Splitting higher doses across three meals instead of two can further improve tolerance. Doses above 2,000 mg per day are often better tolerated when divided into three daily portions rather than two.

Extended-Release vs. Immediate-Release

Switching to extended-release metformin is one of the most common recommendations for persistent diarrhea. The logic makes sense: a slower-dissolving tablet exposes the gut to a lower concentration of metformin at any given moment. In practice, though, the difference is smaller than many people expect. A systematic review of randomized trials found that extended-release metformin reduced diarrhea rates from about 12 percent to about 10 percent, a difference that wasn’t statistically significant. Some individuals do get meaningful relief from the switch, but it’s not a guaranteed fix.

The Vitamin B12 Connection

If your diarrhea or other gut symptoms persist for months or years on metformin, vitamin B12 deficiency may be making things worse. Metformin is well known to reduce B12 absorption over time, and research has found that people who are B12-deficient while taking metformin experience significantly more gastrointestinal symptoms, including bloating, nausea, abdominal pain, and vomiting.

The effect is dramatic among long-term users. People who have taken metformin for 10 years or more and are B12-deficient are over four times more likely to have active gut symptoms than other patient groups. This means that persistent digestive problems on metformin aren’t always caused by the drug’s direct gut effects. A simple blood test for B12 can identify whether deficiency is contributing, and supplementation can resolve those symptoms independently of the metformin itself.

What Actually Helps

Because multiple mechanisms are at work, no single strategy eliminates metformin-related diarrhea for everyone. But the approaches that have the most evidence behind them are practical and stackable:

  • Gradual dose increases: Starting low and titrating up weekly gives the gut time to adapt at each dose level.
  • Taking it with food: Eating slows metformin absorption and buffers the gut lining, reducing the initial serotonin and bile acid surge.
  • Splitting doses: Three smaller doses per day expose the gut to less metformin at once compared to two larger doses.
  • Trying extended-release: Worth attempting if immediate-release causes persistent problems, even though the average benefit is modest.
  • Checking B12 levels: Especially important if you’ve been on metformin for several years and symptoms are worsening or not improving.
  • Probiotics: A meta-analysis found that probiotics reduce metformin-associated gastrointestinal side effects, likely by stabilizing the bacterial shifts the drug causes.

Most people find that their symptoms settle noticeably within the first month. For the minority whose diarrhea doesn’t resolve, the combination of bile acid effects, serotonin disruption, bacterial shifts, and possible B12 deficiency means there are multiple angles worth addressing rather than simply tolerating the problem.