Beans, dairy, cruciferous vegetables, certain fruits, and carbonated drinks are among the most common foods that cause gas. In most cases, gas comes down to one thing: your body can’t fully break down certain carbohydrates in the small intestine, so bacteria in your colon ferment them instead, producing hydrogen, methane, and carbon dioxide as byproducts.
Beans and Legumes
Beans are the most well-known gas producers, and for good reason. They contain a sugar called raffinose that the human small intestine simply cannot digest. Raffinose passes intact into the colon, where gut bacteria break it down and release gas in the process. Lentils, chickpeas, black beans, and kidney beans all contain significant amounts of raffinose.
The good news: soaking dried beans before cooking and discarding the soaking water can reduce raffinose content by about 25%, with some related sugars dropping even more. Canned beans that have been rinsed also tend to cause less trouble than dried beans cooked without soaking. Starting with small portions and gradually increasing your intake gives your gut bacteria time to adapt, which often reduces symptoms over a few weeks.
Cruciferous Vegetables
Broccoli, Brussels sprouts, cabbage, cauliflower, and kale all belong to the cruciferous vegetable family. Like beans, they contain raffinose and other complex carbohydrates that resist digestion in the upper gut. They also contain sulfur compounds, which is why the gas they produce tends to be particularly odorous compared to other food sources.
Cooking these vegetables breaks down some of the tough fibers and makes them easier to digest. Raw broccoli or cabbage in a salad is more likely to cause gas than a roasted or steamed version of the same vegetable.
Dairy Products
Roughly 65% to 70% of the global adult population has some degree of lactose intolerance. If you fall into that group, your body doesn’t produce enough of the enzyme needed to break down lactose, the natural sugar in milk. Undigested lactose travels to the colon, where bacteria ferment it and produce hydrogen, methane, carbon dioxide, and hydrogen sulfide. The result is bloating, cramping, and flatulence, often within a few hours of eating dairy.
Milk and ice cream tend to be the worst offenders because they contain the most lactose per serving. Hard aged cheeses like cheddar and Parmesan contain very little lactose and are usually well tolerated. Yogurt falls somewhere in between, since the bacterial cultures used to make it have already broken down some of the lactose.
Certain Fruits
Not all fruits cause gas equally. Apples, pears, cherries, and peaches are among the biggest culprits because they contain types of sugars that are poorly absorbed in the small intestine. These sugars, sometimes grouped under the term FODMAPs, draw water into the gut and get fermented by bacteria, producing gas and bloating.
If stone fruits and apples bother you, lower-gas alternatives include bananas, blueberries, grapes, oranges, and strawberries. These fruits contain less of the problematic sugars and are generally easier on the digestive system.
Onions, Garlic, and Wheat
Onions and garlic are packed with a type of carbohydrate called fructans, which humans lack the enzymes to digest. Even small amounts can trigger gas and bloating in sensitive individuals, and because these two ingredients appear in so many cooked dishes and sauces, they can be hard to avoid. Wheat-based products like bread, cereal, crackers, and pasta also contain fructans, which is one reason some people feel bloated after eating them, even if they don’t have celiac disease.
Artichokes and asparagus contain similar compounds, including a fiber called inulin. While inulin is technically a prebiotic that feeds beneficial gut bacteria, that feeding process generates gas as a side effect.
Sugar Alcohols and Artificial Sweeteners
Sugar-free gum, mints, protein bars, and “diet” candies often contain sugar alcohols like sorbitol, mannitol, and xylitol. These sweeteners are only partially absorbed in the small intestine. The unabsorbed portion draws extra water into the gut through osmosis and then gets fermented by bacteria in the colon, producing hydrogen, methane, and carbon dioxide.
Not all sugar alcohols are equally problematic. Sorbitol and mannitol tend to cause the most severe symptoms because of their molecular structure. Xylitol is somewhat better tolerated. Erythritol, found in many newer “zero sugar” products, causes the fewest digestive issues because human gut bacteria don’t ferment it at all. If sugar-free products consistently give you gas, checking the label for the specific sweetener can help you figure out which ones to avoid.
Carbonated Drinks
Soda, sparkling water, beer, and other carbonated beverages introduce carbon dioxide directly into your digestive tract. Most of this gas interacts with your esophagus and stomach, leading to belching. But some of it can travel further into the intestines, contributing to bloating and flatulence. Research suggests that symptoms related to mechanical distension in the stomach tend to appear after drinking more than about 300 ml (roughly 10 ounces) of a carbonated beverage in one sitting.
Beer adds a second layer to the problem because it also contains fermentable carbohydrates from wheat and barley, giving gut bacteria additional material to work with.
Whole Grains and High-Fiber Foods
Fiber is essential for digestive health, but adding too much too quickly is one of the fastest ways to increase gas. Whole wheat, bran, oats, and other high-fiber grains pass partially undigested into the colon, where bacteria ferment them. This is a normal and even beneficial process, since fermentation produces short-chain fatty acids that support colon health. But the gas it generates is real.
If you’re increasing your fiber intake, doing so gradually over two to three weeks gives your gut microbiome time to adjust. Drinking plenty of water alongside high-fiber foods also helps move things through your system more efficiently.
Reducing Gas Without Avoiding Everything
You don’t necessarily have to cut gas-producing foods out of your diet entirely. A digestive enzyme supplement containing alpha-galactosidase (the active ingredient in products like Beano) can help break down raffinose and related sugars before they reach the colon. In a randomized, double-blind trial, this enzyme significantly reduced bloating and flatulence compared to a placebo, with no reported side effects. Taking it at the start of a meal is key, since it needs to work alongside the food in your stomach.
For lactose intolerance, lactase enzyme tablets taken before eating dairy serve the same purpose. They supply the enzyme your body is missing, allowing lactose to be digested before it reaches the colon.
Keeping a simple food diary for a week or two can help you identify your personal triggers. Gas-producing foods vary from person to person based on your individual gut bacteria, enzyme levels, and sensitivity. Some people can eat broccoli without any issues but can’t tolerate onions, while others have the opposite experience. Tracking what you eat alongside your symptoms gives you a much clearer picture than trying to follow a generic list.