What Foods Cause Bloating and How to Avoid Them

Beans, onions, garlic, wheat, dairy, and cruciferous vegetables like broccoli and cabbage are among the most common foods that cause bloating. They all share a basic trait: they contain carbohydrates or sugars your body can’t fully break down in the small intestine. When these undigested compounds reach your large intestine, gut bacteria ferment them, producing hydrogen, methane, and carbon dioxide gas that stretches your intestinal walls and creates that uncomfortable, swollen feeling.

Understanding which foods are most likely to trigger bloating, and why, can help you make targeted swaps rather than cutting out entire food groups.

Beans and Legumes

Beans have earned their reputation. Lentils, chickpeas, red kidney beans, split peas, and soybeans are all rich in a group of sugars called oligosaccharides. Your body simply doesn’t produce the enzyme needed to break these sugars down. Instead, they pass intact into the large intestine, where bacteria feast on them and release gas in the process. A randomized, double-blind trial found that taking a supplement containing that missing enzyme before eating beans significantly reduced the number of days people experienced moderate to severe bloating and lowered the proportion of people reporting flatulence.

The good news is that preparation matters. Soaking dried beans overnight, discarding the soaking water, and cooking them in fresh water reduces some of the gas-producing compounds. Sprouting and fermenting legumes goes even further, improving digestibility and breaking down several of the substances your gut struggles with. Canned beans that have been rinsed also tend to cause less trouble than beans cooked from dry without soaking.

Onions, Garlic, and Wheat

These staple ingredients are high in fructans, a type of short-chain carbohydrate that resists digestion. Artichokes, leeks, and spring onions fall into the same category. Among grains, wholemeal bread, rye bread, wheat pasta, and rye crispbread are particularly rich in fructans. Because fructans show up in so many everyday foods, they’re one of the sneakiest sources of bloating. You might not suspect your morning toast or the garlic in a stir-fry, but for people who are sensitive, these can be major triggers.

Cooking doesn’t significantly reduce fructan content the way soaking reduces oligosaccharides in beans. If garlic and onion are consistent triggers for you, the green tops of spring onions and garlic-infused oil (where the fructans don’t transfer into the fat) are practical substitutes that keep the flavor without the bloating.

Cruciferous Vegetables

Broccoli, cabbage, Brussels sprouts, cauliflower, and kale contain raffinose, another sugar humans can’t digest because we lack the specific enzyme to break it apart. Like the oligosaccharides in beans, raffinose travels to the colon intact and gets fermented by bacteria. These vegetables are nutritional powerhouses, so the goal isn’t to avoid them entirely. Cooking them thoroughly, especially steaming or roasting, softens the plant fibers and can make them easier to tolerate. Starting with smaller portions and increasing gradually also gives your gut bacteria time to adjust.

Dairy Products

Around 68% of the world’s adult population has some degree of difficulty digesting lactose, the sugar in milk. When you don’t produce enough of the enzyme that breaks lactose down, it reaches the large intestine intact and draws extra water into the gut through osmosis while also being fermented by bacteria. The result is bloating, gas, and sometimes cramping or diarrhea.

The severity varies widely. Some people can handle a splash of milk in coffee or a serving of hard cheese (which is naturally low in lactose) without any issues, while a glass of whole milk or a bowl of ice cream sets off symptoms within an hour or two. Yogurt tends to be better tolerated because the bacterial cultures used in fermentation pre-digest some of the lactose. Lactose-free milk, which has the enzyme added during processing, is nutritionally identical to regular milk without the bloating risk.

Sugar Alcohols in “Sugar-Free” Products

Sorbitol, xylitol, mannitol, maltitol, and isomalt are sugar alcohols used to sweeten sugar-free gum, candy, protein bars, and diet drinks. Your small intestine absorbs them slowly and incompletely. When the unabsorbed portion reaches the colon, two things happen: the sugar alcohols pull water into the intestine through osmosis, and bacteria ferment them into gas. Sorbitol is particularly problematic because bacterial breakdown converts it into smaller molecules with an even stronger water-drawing effect.

Erythritol is the exception. Its smaller molecular size allows most of it to be absorbed before reaching the colon, and gut bacteria don’t ferment it. If sugar-free products consistently bloat you, checking the label for which sugar alcohol is used can make a real difference.

Fruits High in Sorbitol or Fructose

Apples, cherries, pears (especially nashi pears), peaches, and plums are naturally high in sorbitol, the same sugar alcohol found in processed sugar-free foods. The same osmotic and fermentation effects apply. Fruits with a high ratio of fructose to glucose, like apples, mangoes, and watermelon, can also cause problems because excess fructose is harder for the small intestine to absorb when it isn’t balanced by glucose.

Lower-bloating fruit options include bananas, blueberries, grapes, oranges, and strawberries. These contain less sorbitol and a more balanced sugar profile.

Carbonated Drinks

Sparkling water, soda, and beer introduce carbon dioxide directly into your stomach. As the cold liquid warms to body temperature, the dissolved gas rapidly expands. Research shows that symptoms of gastric discomfort typically appear after drinking more than 300 milliliters (roughly 10 ounces) of a carbonated beverage. Some of that gas gets belched out, but the rest moves into the intestines and contributes to bloating. Drinking carbonated beverages through a straw or gulping them quickly also increases the amount of air you swallow, compounding the effect.

Cashews, Pistachios, and Other High-FODMAP Nuts

Most nuts are well tolerated, but cashews and pistachios stand out as high in both fructans and the same oligosaccharides found in beans. A small handful might not cause issues, but larger portions, especially in nut butters or trail mixes, can trigger bloating in sensitive people. Almonds, walnuts, and macadamias are generally lower in these compounds and make good alternatives.

How a Low-FODMAP Approach Helps

Many of the foods on this list belong to a group of short-chain carbohydrates collectively called FODMAPs. A structured low-FODMAP eating plan, developed by researchers at Monash University, temporarily removes high-FODMAP foods and then reintroduces them one category at a time. According to Johns Hopkins Medicine, this approach reduces bloating and other digestive symptoms in up to 86% of people. The goal isn’t lifelong restriction. It’s a diagnostic tool: by reintroducing foods systematically, you identify your personal triggers rather than unnecessarily avoiding entire food groups.

Most people find they’re sensitive to one or two FODMAP categories, not all of them. Someone who bloats from onions and garlic (fructans) might tolerate beans and dairy perfectly well. A dietitian experienced with FODMAPs can guide the elimination and reintroduction phases, which typically takes six to eight weeks total.