Key takeaways:
Metformin is an oral medication that treats Type 2 diabetes. Diarrhea is the most common side effect of metformin, but it typically gets better in a few weeks.
The reason metformin causes diarrhea isn’t exactly clear. But it’s well-known that the immediate-release version of metformin causes diarrhea more frequently than the extended-release form.
To prevent and manage diarrhea, it’s recommended to take metformin with a meal. You can also work with a healthcare professional to slowly adjust your dose when needed.
Metformin lowers blood glucose (blood sugar) in different ways, and it does its job well. This commonly prescribed medication for Type 2 diabetes lowers how much sugar your liver makes, how much sugar is absorbed from food you eat, and it helps your body use its own sugar supply better — all within a few weeks of starting it. What’s more, low blood sugar (hypoglycemia) and weight gain are very rare with metformin. But, these benefits do come with some potential downsides.
Although it's mostly well tolerated, gut-related side effects like diarrhea, nausea and vomiting, and gassiness can occur. Of these, diarrhea is the most common. Fortunately, diarrhea from metformin is often short-lived. And there are ways you can successfully manage it or prevent it altogether.
The exact reason why metformin can cause diarrhea isn’t fully clear. But we do know that it works in the gut to lower blood sugar.
One possible explanation is that metformin can alter the bacteria and viruses that live in your gut (also called the microbiome). This disrupts the normal activity inside your gut. It could possibly lead to more frequent and loose stools as your body tries to readjust.
Another possible explanation is that metformin alters the movement of certain gut chemicals, such as serotonin or histamine. This can lead to diarrhea.
Diarrhea is common with metformin. In clinical trials, diarrhea occurred in more than half of people who took it.
Unfortunately, some people find this to be an inconvenient and limiting side effect that disrupts their daily routine. The good news is that gut-related side effects from metformin tend to improve over time.
Diarrhea is most common during the first few weeks of taking the medication. But these initial weeks can be tough. Generally, about 5% of people reported that gut-related side effects were the reason why they stopped taking metformin. However, know that it tends to get better in later weeks.
If diarrhea from metformin becomes especially bothersome, it’s important to talk to your prescriber. They can talk to you about ways to prevent and manage diarrhea, including possible dose adjustments.
Possibly. The golden rule is to take metformin with a meal or right after a meal. You’re more likely to have gut-related side effects, such as nausea and diarrhea, from metformin if you take it on an empty stomach.
It’s a good idea to take metformin with food from your very first dose and on. Pairing it with a meal, or even storing it in a secure location near your kitchen or dining table, is a good way to build this habit.
If you miss a dose of metformin with your usual meal, take the missed dose as soon as you remember. You may need to eat a snack depending on when your last meal was to avoid taking it on an empty stomach. But if it’s almost time for your next dose, skip the one you missed and take your next dose as normal. No need to double up on doses.
A metformin diet: Learn about foods to steer clear of in the grocery store while taking metformin.
Choosing between MOD and OSM: Discover two forms of extended-release metformin that are less likely to cause diarrhea.
Your metformin questions, answered: Hear the facts on how long it takes metformin to start working, in addition to other essential metformin FAQs.
If you’re taking metformin with food and still experiencing diarrhea, there are other management tips to try.
Switching formulations from the traditional immediate-release (IR) formulation to an extended-release (ER) formulation is one option. You might also see the ER formulation written as XR — they’re the same thing. Compared to metformin IR, the ER version releases medication more slowly and is less likely to cause gut-related side effects. Making the switch to metformin ER may be one way to tolerate metformin better.
Another way to manage diarrhea from metformin is to work closely with your prescriber when starting and adjusting your dosage. For both IR and ER formulations, there is a lower risk of having gut-related side effects with slow and careful dosage changes. This is because your body is given more time to adjust to a new dose.
A typical metformin starting dosage is 500 mg once or twice daily with a meal. If a higher dose is needed, it’s a good idea to raise it by no more than 500 mg every 1 to 2 weeks until you reach your target dose. This gives time for your body to adjust. Raising the dose too quickly or by too much worsens the risk of diarrhea.
If you’re still having stomach-related side effects after taking metformin for a few weeks, talk to a healthcare professional. They may recommend lowering your dose, switching to the ER formulation, or taking metformin right after a meal. They may also recommend ways to treat medication-induced diarrhea, such as with anti-diarrheal medications, while your body adjusts to metformin.
If none of these changes work, your prescriber may suggest stopping metformin altogether and trying a different diabetes medication. But it’s important that you don’t stop taking metformin on your own. Your prescriber can walk you through the next steps.
Taking metformin on an empty stomach isn’t generally recommended. Doing so increases the risk of gut-related side effects. It’s best to take metformin with a meal or snack. This helps your body slow down how quickly metformin is absorbed, making it easier on your digestive system.
There are several foods to consider avoiding while taking metformin. This includes high-fat and spicy foods, as they can make side effects such as nausea worse. Sugary drinks, snacks, and other sugary food items should also be minimized. They can make it harder for your body to stay on top of your blood sugar levels. Mixing alcohol and metformin could cause issues such as lactic acidosis, a potentially serious health condition.
Metformin can help you lose some weight. But this typically doesn’t happen because of diarrhea. Metformin weight loss is more likely linked to weight loss by reducing feelings of hunger and altering the natural bacteria in your digestive system.
Yes, high blood sugar can contribute to diarrhea. This is because elevated blood sugar levels over time can damage nerves in your digestive system. These nerves help your gut absorb water and nutrients, and you may experience diarrhea when they don’t work properly.
The most common metformin side effect is diarrhea. You may be able to prevent or manage this side effect by taking it with a meal, switching to an extended-release (ER) formulation, or working with your healthcare professional to slowly adjust your dose. Always talk to your healthcare professional before adjusting or stopping metformin on your own.
Boland, B. S., et al. (2013). Gastrointestinal complications of Diabetes. Endocrinology and Metabolism Clinics of North America.
Brody, H., et al. (2020). The gut microbiome. Nature.
Corcoran, C., et al. (2023). Metformin. StatPearls.
Hameed, M., et al. (2017). Dose comparison and side effect profile of metformin extended release versus metformin immediate release. Journal of Ayub Medical College Abbottabad.
McCreight, L. J., et al. (2016). Metformin and the gastrointestinal tract. Diabetologia.
MedlinePlus. (2024). Metformin.
RemedyRepack. (2025). Metformin hydrochloride- metformin hydrochloride tablet, film coated [package insert].
Siavash, M., et al. (2017). Severity of gastrointestinal side effects of metformin tablet compared to metformin capsule in type 2 Diabetes Mellitus patients. Journal of Research in Pharmacy Practice.
Time Cap Laboratories. (2025). Metformin hydrochloride extended release- metformin hydrochloride tablet, extended release [package insert].
Yerevanian, A., et al. (2019). Metformin: Mechanisms in human obesity and weight loss. Current Obesity Reports.
Research prescriptions and over-the-counter medications from A to Z, compare drug prices, and start saving.