What Medications Cause Gas, Bloating, or Burping?

Dozens of common medications can cause gas, bloating, or flatulence as a side effect. The most frequent culprits include metformin, antibiotics, iron supplements, pain relievers like ibuprofen, certain blood pressure drugs, and cholesterol-lowering resins. In many cases, the gas is temporary and manageable, but knowing which medications are responsible can help you figure out what’s going on and what to do about it.

Metformin and Other Diabetes Drugs

Metformin is one of the most commonly prescribed medications in the world, and bloating is one of its best-known side effects. In a large meta-analysis of randomized controlled trials, about 9% of people taking metformin reported bloating, while nearly 13% experienced diarrhea. Nausea and abdominal pain each affected roughly 6–7% of users.

Metformin causes gas largely because it changes the environment inside your intestines. It alters how your gut bacteria ferment carbohydrates, which produces extra hydrogen and methane. The good news is that these symptoms usually improve after the first few weeks. Starting at a low dose and increasing gradually, or switching to an extended-release version, often makes a significant difference.

Another class of diabetes medication, alpha-glucosidase inhibitors (sold under names like acarbose), works by slowing carbohydrate digestion. The undigested sugars that reach your lower intestine become fuel for gas-producing bacteria, making flatulence an extremely common side effect of these drugs.

Antibiotics

Antibiotics don’t just kill the bacteria causing your infection. They also disrupt the normal balance of microbes living in your gut. This community of bacteria plays a central role in how your body processes food, and when the balance shifts, gas production can spike. The interaction between gut bacteria and undigested food is what generates intestinal gas in the first place, so anything that disturbs that ecosystem can trigger bloating, flatulence, and abdominal discomfort.

Broad-spectrum antibiotics tend to cause the most problems because they wipe out a wider range of bacteria. Amoxicillin-clavulanic acid (commonly prescribed for sinus and ear infections) is a particularly well-known offender. The disruption can also create conditions for bacterial overgrowth in the small intestine, which leads to excessive gas production even after you’ve finished the antibiotic course. Probiotic supplements or fermented foods during and after a course of antibiotics may help restore balance, though the evidence varies by strain and situation.

Pain Relievers and Anti-Inflammatories

Over-the-counter pain relievers like ibuprofen, naproxen, and aspirin are among the most widely used medications on the planet, and they commonly cause digestive symptoms. These drugs work by blocking an enzyme involved in inflammation, but that same enzyme also helps produce the protective mucus lining your stomach. Without enough of that protective layer, your stomach becomes more vulnerable to acid, leading to a cluster of symptoms known as dyspepsia: fullness, bloating, and upper abdominal pain during or right after eating.

Dyspepsia is not only the most common side effect of these pain relievers but also the leading reason people stop taking them. Taking them with food can reduce the irritation, and some people do better with formulations designed to be easier on the stomach. If you rely on these medications regularly and gas or bloating is a persistent problem, that’s worth bringing up with your provider.

Iron Supplements

Iron supplements are notorious for causing digestive trouble. About 90% of the iron in a standard oral dose isn’t absorbed and instead stays in your intestines. That leftover iron generates free radicals through chemical reactions in the gut, which can irritate the intestinal lining, promote inflammation, and shift the composition of your gut bacteria. The result is a familiar list of complaints: bloating, nausea, constipation, abdominal pain, and gas.

If iron supplements are giving you problems, taking them every other day rather than daily has been shown to improve absorption rates while reducing side effects. Taking iron with a small amount of vitamin C (like a glass of orange juice) can help your body absorb more of it, meaning less is left behind to cause trouble. Liquid or lower-dose formulations may also be gentler.

Blood Pressure Medications

Calcium channel blockers, a widely prescribed class of blood pressure medication, work by relaxing the smooth muscle in your blood vessel walls. But smooth muscle also lines your digestive tract, and when it relaxes there, it can slow the movement of food and gas through your intestines. Amlodipine, one of the most commonly used calcium channel blockers, lists flatulence, constipation, and dyspepsia among its reported gastrointestinal side effects.

Any medication that relaxes smooth muscle in the gut has the potential to cause gas accumulation by delaying the transit of gas through the digestive tract. Antispasmodic drugs prescribed for conditions like irritable bowel syndrome work through a similar mechanism and can paradoxically worsen the very bloating they’re sometimes meant to treat.

Cholesterol-Lowering Resins

Bile acid sequestrants, older cholesterol-lowering medications, are poorly tolerated in large part because of their gastrointestinal side effects. Cholestyramine and colestipol are often discontinued due to bloating, constipation, nausea, and abdominal cramps, on top of the unpleasant taste and gritty texture of the powdered formulations. These drugs work by binding bile acids in the gut, which disrupts normal fat digestion and creates the conditions for excess gas production. Newer versions like colesevelam tend to have better compliance and fewer reported side effects, though they cost more.

Hidden Ingredients in Medications

Sometimes the gas isn’t caused by the active drug at all. Many liquid medications, chewable tablets, and sugar-free formulations contain sugar alcohols like sorbitol, mannitol, or xylitol as sweeteners. These compounds are poorly absorbed in the small intestine, and when they reach the colon, gut bacteria ferment them rapidly, producing hydrogen, methane, and carbon dioxide. The result is bloating, cramping, and flatulence that can seem disproportionate to the small amount of sweetener involved.

Sorbitol in particular shows up in a surprising number of products: liquid cough syrups, chewable antacids, vitamin gummies, and sugar-free lozenges. If you’re taking a medication in liquid or chewable form and experiencing unexplained gas, checking the inactive ingredients for anything ending in “-ol” is a worthwhile step. Switching to a tablet or capsule form of the same drug can sometimes resolve the issue entirely.

Fiber Supplements and Laxatives

Fiber supplements like psyllium and methylcellulose are taken specifically to improve digestion, but they’re also a common source of gas, especially when you start taking them or increase the dose quickly. Fiber that reaches your colon undigested becomes a feast for gas-producing bacteria. Osmotic laxatives containing lactulose work through a similar process, drawing water into the intestine and providing substrate for bacterial fermentation.

The standard advice for fiber supplements is to start low and increase slowly over several weeks, giving your gut bacteria time to adjust. Drinking plenty of water alongside fiber also helps it move through your system more efficiently.

Reducing Gas From Medications

If a medication you need is causing uncomfortable gas, there are several practical strategies that can help without requiring you to stop the drug. Eating smaller, more frequent meals reduces the workload on your digestive system at any given time. Cutting back on foods that independently produce gas, like cruciferous vegetables, beans, and carbonated drinks, can lower your overall gas burden so the medication’s contribution is less noticeable.

Simple habits also matter more than you might expect. Eating slowly, avoiding chewing gum, skipping straws, and not talking while you chew all reduce the amount of air you swallow, which is a separate but additive source of gas. Over-the-counter simethicone products help break up gas bubbles already in the gut, offering symptom relief without interacting with most medications.

For some drugs, the timing or formulation makes all the difference. Taking iron every other day, starting metformin at a lower dose, choosing extended-release versions, or switching from a liquid to a pill form can meaningfully reduce gas while keeping you on the medication you need. If the problem persists, your provider may be able to substitute a different drug in the same class that’s easier on your gut.