Gut health

Bloating even though you eat healthy? Look at your medicines

If you are still bloated on a clean, whole-food diet, cutting out more foods is rarely the answer. Look next at your medicines, ask your doctor about testing for conditions such as celiac disease, stomach infection and SIBO, and work toward adding foods back. Never stop a prescribed medicine on your own: raise it with the clinician who prescribed it.

Clinically reviewed by Dr. Ambily Kushal, RD, MS, PhD · Published · Last reviewed

Why doesn’t cutting out more foods help?

If a clean diet has not fixed your bloating, the cause is probably not in your diet. More restriction narrows what you eat, raises the risk of missing nutrients and leaves the real cause untouched.

Many people with bloating have already done the obvious things: gone gluten-free or dairy-free, cooked at home, cut processed food. When symptoms stay, the instinct is to cut more. Each new rule makes eating harder and rarely changes the bloating.

A better question is what else changed around the time the symptoms began: a new medicine, an infection, a course of antibiotics, a change in hormones, stress or sleep. The answer is often in the timeline, not the plate.

Long lists of avoided foods also make social meals, travel and family dinners harder, and they can feed worry about eating. A good plan aims to make your diet bigger again, not smaller.

Before you change anything about a medicine

Don’t stop or change a prescribed medicine on your own. If you think one is affecting your gut, raise it with the clinician who prescribed it.

Medicines are prescribed for good reasons, and stopping one suddenly can cause real harm, from returning pain to withdrawal effects. If you suspect a medicine, write down when you started it and when your gut symptoms began, and take that timeline to your prescriber. A dietitian can help you put it together and share it with your care team.

What else can cause bloating on a healthy diet?

Healthy foods themselves can cause gas, and eating habits, constipation, hormones and gut conditions all play a part. Sorting them out takes your history, not more rules.

A clean diet can still be the wrong fit for a sensitive gut. The answer is usually adjusting amounts and timing, not adding more foods to the avoid list.

  • High-fiber and high-FODMAP foods, such as beans, onions, garlic, some fruits and whole grains, which gut bacteria ferment into gas.
  • A sudden jump in fiber after switching to a whole-food diet.
  • Eating fast, large meals late in the day, carbonated drinks and chewing gum.
  • Constipation, which often causes bloating even when bowel movements seem regular.
  • Hormonal changes, including around periods and perimenopause.
  • Conditions such as irritable bowel syndrome, celiac disease or SIBO, which need your doctor to assess.

Which medicines can affect the gut?

Anti-inflammatory painkillers (NSAIDs) are the best-known example. Several other common medicines can cause gas, diarrhea, constipation or stomach discomfort.

Anti-inflammatory painkillers

NSAIDs, such as ibuprofen, naproxen, diclofenac and meloxicam, are a leading cause of stomach ulcers along with H. pylori infection. Research also shows they can make the gut lining more permeable and cause low-grade inflammation further down the gut, not only in the stomach. Long-term use and higher amounts raise the risk.

Other medicines worth mentioning to your doctor

  • Metformin, which commonly causes diarrhea, gas and stomach discomfort, especially early on.
  • Narcotic pain medicines, some antidepressants, calcium channel blockers, diuretics and some antacids, which are among the medicines linked with constipation.
  • Iron supplements, which can cause constipation; ask your doctor or pharmacist about options if they bother you.
  • Recent antibiotics, which change the balance of gut bacteria.

What testing should I ask my doctor about?

Depending on your symptoms, your doctor may check for celiac disease, the stomach infection Helicobacter pylori, and small intestinal bacterial overgrowth (SIBO). Testing is ordered and read by your doctor.

If you take supplements, ask your doctor whether to pause any before testing so they do not cloud the results.

  • Celiac disease: blood tests first. Keep eating gluten until testing is done, because a gluten-free diet can make results look normal.
  • H. pylori: a stomach infection that, like NSAIDs, can damage the stomach lining. It can be tested and treated.
  • SIBO: an overgrowth of bacteria in the small intestine, assessed with testing your gastroenterologist chooses.
  • Other checks your doctor may suggest, such as stool tests, thyroid tests or imaging, depending on your history.

What should I bring to my appointments?

A full list of what you take, a short timeline of your symptoms and a week of food and symptom notes. Together they let your doctor and dietitian see patterns quickly.

You do not need a perfect record. A few honest notes are more useful than a detailed diary you cannot keep up, and your dietitian can help you organize them before a visit with your doctor. Photos of meals on your phone work well if writing things down feels like a chore.

  • Every prescription, over-the-counter medicine, vitamin and herbal product, with when you started each one.
  • When your symptoms began, and anything that happened around then, such as an illness, travel, antibiotics or a new medicine.
  • What makes symptoms better or worse, including meals, stress, sleep and your menstrual cycle if relevant.
  • Any test results you already have, so nothing is repeated without a reason.

When is bloating a reason to see a doctor first?

See your doctor promptly for bloating with weight loss you did not plan, blood in your stool, black stools, vomiting, trouble swallowing, fever or severe pain.

Also get checked for new, persistent bloating that lasts most days for several weeks, especially with feeling full quickly or pelvic pain. These need medical evaluation, not just a food plan.

What it looked like for one patient

A woman in her late 30s had years of severe bloating despite a gluten-free, dairy-free, whole-food diet. Her dietitian identified long-term use of an NSAID for back pain as the likely driver.

Her dietitian raised it with her care team, and her prescribing clinicians tapered the painkiller gradually while keeping her pain managed. Gentle gut support came alongside, and her dietitian paused her supplements while her gastroenterologist ran tests.

By week 5 her bloating was nearly gone, by week 13 her digestive symptoms had resolved, and by week 17 she could eat small amounts of gluten and dairy again. The painkiller was never confirmed as the cause by endoscopy; it was a clinical judgment. It is one person’s course, not a promise of results.

How does a dietitian support the gut while the cause is addressed?

One change at a time, in a sensible order. Gentle steps come first, and anything that could irritate an inflamed gut waits.

The order matters because people with sensitive guts often react to new things. Changing one thing at a time, a few days apart, makes any reaction easy to read and keeps the plan moving.

  • A food and symptom diary, with photos if that is easier, to link meals and symptoms.
  • Regular meals, enough fluid and fiber from food at a level your gut tolerates.
  • A short, structured trial such as low-FODMAP only when it fits your symptoms, with a planned end.
  • Any supplements chosen with your dietitian and care team, added one at a time, and paused before testing.
  • Probiotics usually later rather than first, if at all, once things have settled.

What is the goal?

Eating more foods comfortably, not fewer. The best sign that the gut has settled is tolerating foods you had cut out.

Once symptoms improve, foods come back one at a time in small amounts, with notes on how you feel. Many people find they tolerate more than they expected once the cause has been dealt with.

A plan that ends with you eating a wider, more relaxed diet is a better outcome than one that ends with a longer list of foods to avoid.

Expect some ups and downs. A heavy restaurant meal or a stressful week may bring mild bloating back for a day; that is normal and does not mean starting over.

What patients say about this kind of care

Understanding what is happening in your gut is the first step past more restriction.

“She listened to me and gave me so much important, vital information about my gut health.”
Patient working on gut health

When a clean diet has not worked, the questions move to medicines, infections and timing.

“She was very strategic, asking questions to get to the possible root causes”
Patient

Knowing why a symptom happens makes a plan easier to follow.

“She explained a lot of what's going on in my body”
Patient working on weight, fatty liver and gut health

Your history and your timeline shape the plan as much as any food list.

“Great two-way conversations. She really wants to know what I need help with.”
Patient

The plan changes as your gut changes, one step at a time.

“I'm on track to meeting my health goals because she listens and responds accordingly.”
Patient in ongoing care

Excerpts from patient reviews of Dr. Ambily Kushal, quoted word for word. Each describes one person’s care; individual experiences vary and are not a promise of results.

Frequently asked questions

Why am I bloated when I eat healthy?

Healthy food can still cause gas, and bloating has many causes beyond diet, including medicines, infections, constipation, hormones and conditions such as celiac disease or SIBO. Looking at your timeline and medicine list often helps more than cutting more foods.

Can painkillers cause bloating?

Anti-inflammatory painkillers (NSAIDs) can irritate the stomach and gut lining, and long-term use raises the risk. If you take one regularly and have gut symptoms, raise it with the clinician who prescribed it rather than stopping it yourself.

Should I stop my medicine to see if it helps?

No. Talk with your prescriber first. Stopping some medicines suddenly can cause harm, and your prescriber can weigh a safer option or a gradual change.

Should I go gluten-free before celiac testing?

No. Keep eating gluten until your doctor has finished testing, because a gluten-free diet can make results look normal.

Do probiotics help bloating?

Sometimes, but not always, and they can make some people feel worse at first. Ask your dietitian or doctor whether one fits your situation and when to try it.

Is it normal to be bloated after eating lots of vegetables and beans?

Some gas is normal, because gut bacteria ferment fiber. If a big increase in fiber is making you uncomfortable, building it up more slowly and adjusting which high-fiber foods you eat often helps. Ongoing pain or bloating that does not settle deserves a closer look with your doctor and dietitian.

Can stress make bloating worse?

It can. The gut and brain are closely linked, and stress, poor sleep and rushed meals often make symptoms worse. Slower meals and regular eating times are simple places to start.

How long does it take for the gut to settle?

It varies. Once a likely cause is addressed, some people notice a change within weeks, while others take months. Follow-up visits help you see what is working.

Sources

  1. Mechanisms of Damage to the Gastrointestinal Tract From Nonsteroidal Anti-Inflammatory Drugs (Bjarnason et al., 2018) (Gastroenterology)
  2. Symptoms & Causes of Peptic Ulcers (Stomach or Duodenal Ulcers) (National Institute of Diabetes and Digestive and Kidney Diseases)
  3. Symptoms & Causes of Constipation (National Institute of Diabetes and Digestive and Kidney Diseases)
  4. Metformin (MedlinePlus (National Library of Medicine))
  5. Diagnosis of Celiac Disease (National Institute of Diabetes and Digestive and Kidney Diseases)
  6. ACG Clinical Guideline: Small Intestinal Bacterial Overgrowth (Pimentel et al., 2020) (American Journal of Gastroenterology)

Related reading

Our condition guides are general education, not medical advice. Talk with your doctor about your own diagnosis, tests and medicines.