Several common foods are known to cause bloating, and they do it through different mechanisms: some produce gas during digestion, others pull extra water into your intestines, and a few do both at once. The biggest culprits fall into a handful of categories, including beans, dairy, certain vegetables, wheat-based products, and carbonated drinks. Understanding why each one triggers bloating can help you figure out which foods are worth limiting or preparing differently.
Beans, Lentils, and Other Legumes
Beans are one of the most reliable bloating triggers, and the reason comes down to a sugar your body literally cannot break down. Legumes contain a group of carbohydrates called raffinose family oligosaccharides. Humans lack the enzyme needed to digest these sugars in the small intestine, so they pass intact into the colon, where gut bacteria ferment them and produce gas. The more beans you eat, the more raw material those bacteria have to work with.
Legumes also contain lectins, proteins that can cause bloating and gas in their own right. The good news is that proper cooking dramatically reduces both problems. Soaking dried beans for several hours and then boiling them thoroughly disables most lectins, which are water-soluble and sit on the outer surface of the bean. Canned beans, already cooked and packed in liquid, are also low in lectins. One important exception: slow-cooking raw beans at low heat may not reach temperatures high enough to fully break down these compounds, so a long boil is better than a long simmer.
Dairy Products
An estimated 70 to 75 percent of the world’s population has some degree of lactose deficiency, making dairy one of the most widespread bloating triggers. When your body doesn’t produce enough of the enzyme that breaks down lactose (the natural sugar in milk), that undigested lactose travels to the large intestine and causes two problems at once.
First, the unabsorbed lactose creates an osmotic pull, drawing extra fluid and electrolytes into the intestine until the concentration balances out. This swelling of the intestine also speeds up transit time, which means even less lactose gets absorbed on the way through. Second, once the free lactose reaches the colon, bacteria ferment it and produce hydrogen gas. The combination of excess water and gas production is what creates that heavy, distended feeling after a bowl of ice cream or a glass of milk. Yogurt, milk, and soft cheeses tend to be the worst offenders, though tolerance varies widely from person to person.
Cruciferous and High-FODMAP Vegetables
Broccoli, cabbage, Brussels sprouts, cauliflower, and kale all contain the same raffinose sugars found in beans. Because you can’t digest these sugars on your own, they ferment in the colon and generate gas. Cooking these vegetables softens their cell walls and can reduce (though not eliminate) the amount of fermentable material that reaches the gut.
Beyond the cruciferous family, several other vegetables are high in FODMAPs, a group of short-chain carbohydrates that the small intestine absorbs poorly. Onions, garlic, artichokes, and asparagus are common examples. These foods ferment rapidly in the gut, producing gas and also drawing water into the intestine through the same osmotic effect seen with lactose. If you notice bloating after meals heavy in these vegetables, the FODMAP content is the likely explanation.
Wheat and Other Grain Products
Wheat-based bread, cereal, crackers, and pasta are high-FODMAP foods, largely because of their fructan content. Fructans are a type of carbohydrate chain that ferments in the colon and produces gas. This is separate from celiac disease or a wheat allergy. Many people who don’t have either condition still experience bloating after eating wheat, and the fructans are typically why.
Whole-grain versions of these foods add another layer: fiber. Fiber is broadly healthy, but the fermentable types (including fructans and inulin, which are commonly added to processed “high-fiber” products) generate gas as a byproduct of bacterial digestion. If you’re increasing your fiber intake, doing so abruptly is one of the fastest ways to trigger cramping, bloating, and gas. Experts recommend adding no more than 3 to 4 grams per day in the first week when introducing a new fiber source, then gradually increasing from there.
Certain Fruits
Apples, pears, cherries, and peaches are among the fruits most likely to cause bloating. They’re high in fructose and sorbitol, both of which are poorly absorbed in some people. Fructose is a FODMAP sugar, and sorbitol is a naturally occurring sugar alcohol. Both ferment in the colon when they aren’t fully absorbed in the small intestine. Watermelon and mangoes can cause similar issues. Lower-FODMAP fruit options like bananas, blueberries, grapes, and oranges tend to be easier on the gut.
Sugar Alcohols in Processed Foods
Sugar alcohols like xylitol, sorbitol, and erythritol are used as sweeteners in sugar-free gum, candy, protein bars, and keto-friendly desserts. Research suggests that 10 to 15 grams per day is generally a safe threshold, but many processed foods blow past that limit easily. A single scoop of some keto-friendly ice creams can contain up to 30 grams of xylitol, triple the safe daily amount in one serving.
In controlled studies, xylitol consistently caused bloating, gas, upset stomach, and diarrhea. Erythritol appeared gentler on the stomach, only triggering nausea and gas at large doses. These compounds work like other poorly absorbed carbohydrates: they pull water into the intestine and ferment in the colon. If you eat sugar-free products regularly and deal with unexplained bloating, checking the sugar alcohol content on the label is a good first step.
Carbonated Drinks
Soda, sparkling water, and beer introduce carbon dioxide gas directly into your stomach. As the cold liquid warms to body temperature, the dissolved CO2 rapidly converts to free gas, expanding in the stomach and causing distension. Research on carbonated beverages found that noticeable gastric discomfort typically begins after drinking more than 300 milliliters, roughly 10 ounces or a standard can of soda.
Some of that gas gets released through belching, which happens when the expanding pressure triggers a reflex in the upper stomach. But gas that doesn’t get belched out continues through the digestive tract and can contribute to bloating further down. Sodas with added sugar or high-fructose corn syrup compound the problem by adding fermentable sugars on top of the gas itself.
Salty and High-Sodium Foods
Bloating from salt feels different from gas-related bloating. Rather than producing gas, high sodium intake causes your body to retain water, which can create a puffy, tight sensation in the abdomen. Research from Johns Hopkins found that high-sodium diets increased the risk of bloating by about 27 percent compared to low-sodium versions of the same diet.
The mechanism isn’t fully understood yet, but water retention is one clear factor. There’s also emerging evidence that sodium may alter the gut microbiome in ways that increase gas production from bacterial activity. Either way, processed foods, restaurant meals, canned soups, and cured meats tend to be the biggest sources of hidden sodium, and cutting back on them is one of the simpler ways to reduce bloating that isn’t tied to any specific food intolerance.
Why Some Foods Bother You but Not Others
Most food-related bloating comes down to one of three pathways: fermentation of undigested carbohydrates by gut bacteria (producing gas), osmotic water draw into the intestine (causing distension), or direct introduction of gas through carbonation. Many of the worst offenders, like beans and dairy, trigger more than one pathway at the same time.
Your individual gut bacteria play a significant role in how severely you react. Interestingly, consistent exposure to gas-producing foods may gradually shift your microbiome. Over time, continued consumption of fermentable foods can increase gas-consuming bacterial pathways, meaning your gut may adapt and produce less noticeable bloating from foods you eat regularly. This is one reason a gradual increase in fiber or legume intake works better than jumping in all at once.
Keeping a simple food diary for a week or two, noting what you eat and when bloating occurs, is often the most effective way to identify your personal triggers. The foods listed above are the most common starting points, but the combination and amount that bothers you will be specific to your own digestive system.

