Dozens of common medications can cause stomach bloating, from everyday painkillers to diabetes drugs and antibiotics. The culprits fall into several major categories, and in most cases, bloating happens because the drug slows digestion, disrupts gut bacteria, irritates the stomach lining, or causes fluid retention. Understanding which medication is behind your symptoms is the first step toward finding relief.
Opioid Pain Medications
Opioids are among the most reliable causes of bloating and abdominal discomfort. Around 40% of people taking opioid painkillers develop constipation, which directly leads to bloating, gas, and a feeling of fullness. These drugs activate receptors concentrated in the stomach and upper colon that slow intestinal movement, increase muscle tone in the gut wall, and tighten the sphincters that control the flow of food through your system. At the same time, opioids promote fluid absorption in the intestines, making stool harder and drier. The result is food sitting in your gut far longer than normal, fermenting and producing gas that has nowhere to go.
Metformin and Diabetes Drugs
Metformin, the most widely prescribed diabetes medication in the world, causes bloating in roughly 9% of people who take it. Diarrhea is even more common, affecting about 13% of users, while nausea and abdominal pain each affect around 6-7%. The exact mechanism is still not fully understood, but metformin alters the gut environment in ways that increase gas production and speed up intestinal movement.
If you’re taking the standard immediate-release version, you’re more likely to experience bloating and diarrhea than if you take the extended-release formulation. Switching to extended-release is one of the most straightforward fixes your prescriber can offer. Taking metformin with food also tends to reduce symptoms.
Antibiotics
Antibiotics cause bloating by disrupting the balance of bacteria in your gut. Your intestines host a community of over 100 trillion microorganisms that help ferment carbohydrates, synthesize vitamins, and regulate digestion. Antibiotics can’t selectively target only the harmful bacteria causing your infection. They also kill off beneficial species, reducing the diversity of your gut community and allowing opportunistic bacteria to take over. This imbalance, called dysbiosis, commonly produces bloating, diarrhea, constipation, nausea, and fatigue from poor nutrient absorption.
Broad-spectrum antibiotics cause the most disruption because they affect the widest range of bacterial species. The effects can persist for weeks or even months after you finish a course of treatment, which is why some people notice bloating long after their prescription has ended.
NSAIDs and Over-the-Counter Painkillers
Non-steroidal anti-inflammatory drugs like ibuprofen and naproxen irritate the stomach through a well-documented chain of events. These drugs block an enzyme called cyclooxygenase, which reduces the production of protective compounds that normally shield the stomach lining. Without that protection, the stomach contracts more forcefully and frequently than it should. This abnormal motility disrupts blood flow in the stomach wall, increases permeability, and triggers inflammation. The irritation and altered motility can produce a sensation of bloating, fullness, and upper abdominal discomfort even at standard doses.
Antidepressants and Antipsychotics
The effect depends heavily on which type you take. Older tricyclic antidepressants cause constipation through their anticholinergic activity, meaning they block a chemical messenger that keeps the gut moving. Constipation leads directly to bloating as stool and gas accumulate. SSRIs, the more commonly prescribed class today, tend to cause nausea and looser stools when you first start taking them, though this usually resolves within a few weeks.
Antipsychotic medications are particularly problematic. Newer atypical antipsychotics cause constipation in at least 25% of patients, with some studies reporting rates around 20% across the class as a whole. The constipation is often significant enough to cause noticeable abdominal distension and discomfort.
Blood Pressure Medications
Calcium channel blockers, especially verapamil, are well-known causes of constipation and bloating. These drugs work by relaxing smooth muscle in blood vessel walls to lower blood pressure, but the same relaxing effect hits the smooth muscle in your intestines. The gut slows down, stool moves more sluggishly, and gas builds up. Beta-blockers can cause the opposite problem, producing diarrhea that may also come with bloating and cramping. ACE inhibitors are another class linked to diarrhea and associated GI discomfort.
GLP-1 Weight Loss and Diabetes Drugs
Semaglutide (sold as Ozempic and Wegovy) significantly increases the risk of abdominal distension. A network meta-analysis of 11 clinical trials found that semaglutide raised the risk of bloating by about 42% compared to placebo. These drugs work by slowing gastric emptying, which is part of how they reduce appetite, but that same slowing means food sits in the stomach longer, producing more gas and a persistent feeling of fullness. The bloating tends to be most pronounced during the dose-escalation phase and may improve as your body adjusts.
Hormonal Medications
Progesterone-containing medications, including some birth control pills and hormone replacement therapy, can alter gut motility. Research shows that higher doses of progesterone slow gastric emptying and reduce intestinal transit, meaning food moves through the digestive system more slowly. This is the same mechanism behind the bloating many people experience during pregnancy, when progesterone levels rise dramatically. The effect is dose-dependent: lower doses may actually speed up digestion slightly, while higher doses consistently slow it down.
Hidden Ingredients in Medications
Sometimes the active drug isn’t the problem. Sorbitol, a sugar alcohol used as a sweetener in liquid medications, cough syrups, and chewable tablets, causes gas, bloating, and abdominal cramps in a dose-dependent way. As little as 5 grams per day can trigger symptoms, and intake above 20 grams reliably causes GI distress in most people. Other sugar alcohols like mannitol, xylitol, and maltitol have similar laxative properties and are frequently overlooked as the source of unexplained bloating. If you take multiple liquid medications or chewable supplements, the cumulative sorbitol dose can add up quickly without you realizing it.
Reducing Medication-Related Bloating
The most effective approach depends on which medication is causing the problem. For metformin, switching to the extended-release version often makes a meaningful difference. For opioids and anticholinergic drugs, increasing water intake, dietary fiber, and physical activity can help counteract the constipation that drives bloating. For antibiotics, eating smaller meals and avoiding high-fiber foods that produce extra gas during and after treatment can ease symptoms.
Several general strategies help regardless of which drug is involved. Eating smaller portions reduces the workload on a sluggish digestive system. Cutting back on carbonated drinks eliminates a direct source of gas. Reducing fried and fatty foods helps because dietary fat delays the clearance of gas from the intestines. Drinking water throughout the day, especially with meals, helps prevent the constipation that underlies much medication-related bloating.
Over-the-counter options can also help. Alpha-galactosidase supplements (sold as Beano) break down the complex carbohydrates in beans and vegetables that produce gas. Lactase supplements help if dairy is compounding the problem. Keeping a food and symptom diary for a few weeks can help you and your prescriber sort out whether the bloating is purely from the medication, partly from diet, or from the combination of both.

