8 Foods That Can Cause Gas and Bloating: Beans, Mushrooms, and More

Avoid these problem foods for digestive health

Foods like beans, broccoli, and cabbage have long been associated with gas and bloating, but other lesser-known culprits include mushrooms as well as artificial sweeteners which can cause flatulence (gas).

Gas can be embarrassing, but everyone has it (and often more than they think). While gas is a normal part of the digestive process, there are certain foods that are gassier than others. These included hard-to-digest foods that end up fermenting in the gastrointestinal (GI) tract.

This article lists some of the more common foods that cause flatulence and the different ways you can counter or prevent gas.

An illustration with foods that cause gas

Illustration by Paige McLaughlin for Verywell Health

1

Beans

Barbecue baked beans

Jacob Snavely / Photolibrary / Getty Images

Most people know that beans tend to cause more gas than other foods. That is because beans contain carbohydrates known as oligosaccharides, most especially a type called raffinose.

These long-chain sugars cannot be broken down easily during digestion. Instead, they pass undigested into the colon where they are fermented by the bacteria in your gut. Methane gas is a byproduct of this process.

Some people find relief when they take an enzyme supplement (such as Beano) before eating a meal. This product breaks down the sugars in beans and makes them easier to digest.

Soaking beans before cooking also removes a significant amount of raffinose without altering the nutritional value of the bean.

2

Mushrooms

Fresh Mushrooms

James Tse / Getty Images

Mushrooms also contain sugars that are difficult to digest, most especially a type called mannitol found in common white mushrooms (Agaricus bisporus). Mannitol is poorly absorbed in the small intestine and tends to cause more GI disturbances than other natural, long-chain sugars.

That's not to say that all mushrooms contain high amounts of mannitol. Others like oyster mushrooms (Pleurotus ostreatus) contain trehalose, which generally only causes problems if a person lacks a specific digestive enzyme called trehalase.

If you get gassy after eating mushrooms, you can try other varieties like shiitake mushrooms (Lentinula reticeps) to see if you have a similar effect. In some cases, they may not.

3

Milk and Milk Products

Milk

Sasta Fotu / EyeEm / Getty Images

If you're one of the many lactose-intolerant adults, you already know that dairy products can cause a significant amount of gas and bloating.

People who are lactose intolerant lack an enzyme called lactase, which is necessary to break down lactose (a type of milk sugar). This results in gas and bloating along with other symptoms such as diarrhea, nausea, and abdominal pain.

Some people find that taking a lactase supplement like Lactaid can help reduce or prevent gas symptoms when eating dairy. There are also lactose-free milk and dairy products at most grocery stores and plenty of plant-based milk products if you are especially sensitive to cow's milk.

Intolerance vs. Allergy

Lactose intolerance is different than a milk allergy. Lactose intolerance implies the inability to properly break down lactose, while a milk allergy occurs when your immune system responds abnormally to milk proteins. People with a milk allergy should avoid milk in any form.

4

Wheat

Whole Wheat Version of Harvest Bread
J.McGavin

People don't often think of wheat as a food that causes gas. However, a specific carbohydrate in wheat called fructans can create gas when it is broken down in the lower digestive tract. Whole wheat and bran are especially rich in fructans.

During digestion, only about 5% to 15% of fructans are digested in the small intestine, The rest are left to ferment in the colon (large intestine).

You may be able to reduce gas by eating white bread (although white bread lacks fiber and can cause constipation). You can also try sourdough bread, which reduces the fructan content through the process of fermentation.

Wheat also contains another long-chair sugar called fructose that can cause gas, particularly if you are fructose intolerant.

5

Fruits

Fruit Bowl

Westend61 / Getty Images

Fruits are well-known for causing gas due to high concentrations of fructose.

People with fructose intolerance are unable to break down fructose, either because they lack a digestive enzyme called aldolase B or because cells on the surface of the intestines aren't able to break down fructose efficiently.

Some high-fructose fruits that can cause gas include:

  • Apples
  • Apricots
  • Cherries
  • Peaches
  • Pears
  • Plums
  • Prunes
  • Fruit juices and drinks

You can reduce your risk of gas by eating fruits lower in fructose, such as bananas, blueberries, and strawberries. Some people also turn to enzyme supplements like Fructaid to reduce symptoms of fructose intolerance.

6

Cruciferous Vegetables

Cabbage in a basket

Diana Miller / Cultura / Getty Images 

Cruciferous vegetables are notorious for causing gas. These are vegetables of the family Brassicaceae that have many species and cultivars.

Four of the cruciferous vegetables well known to cause gas include:

  • Broccoli
  • Cabbage
  • Cauliflower
  • Brussels sprouts

As with beans, cruciferous vegetables contain a high concentration of raffinose. While raffinose can be broken down by an enzyme called alpha-galactosidase, it is somewhat inefficient in doing so when a lot of cruciferous vegetables are eaten, leaving them to ferment in the colon.

You can reduce the gassiness by cooking cruciferous vegetables well rather than eating them raw or semi-cooked. You can also eat smaller amounts to get the nutritional benefits without the gas.

7

Sugar-Free Sweeteners

Close-Up Of Sugar And Sweetener Packets In Container At Cafe
Sharon Pruitt / EyeEm / Getty Images

Many foods labeled as "sugar-free" or "diet" often contain sweeteners such as mannitol, xylitol, sorbitol, or erythritol. These are naturally occurring sugar alcohols that are added to foods and drinks to make them sweeter.

All of these long-chain sugars need to be broken down in the liver to be converted to glucose, the body's main source of energy. But doing so is difficult, leaving much of the sugar to ferment in the colon.

If you have chronic gas, it may be due to the excess intake of diet sodas, sugar-free snacks, and other artificially sweetened foods. Cutting back on these may help.

8

Drinks With High Fructose Corn Syrup

Cola in Glass

Jose Luis Pelaez / The Image Bank / Getty Images

High-fructose corn syrup can produce gas as your gut breaks down the fructose. Many sweetened drinks and sodas are made with high fructose corn syrup instead of sugar.

The effects can be even worse if it's in a carbonated drink, which often introduces additional gas into your intestinal tract. So, if you don't burp the excess gas out, it will come out as flatulence.

Other foods made with high-fructose corn syrup include:

  • Candies, including candy bars and hard candies
  • Packaged baked goods
  • Juice boxes
  • Packaged sauces like barbecue sauce
  • Ice cream
  • Jams and fruit preserves
  • Pancake and dessert syrups

Tips to Reduce Gas

In addition to avoiding foods that cause gas, certain foods are less likely to result in gas and bloating, including:

  • Eggs
  • Meat, poultry, or fish
  • Vegetables such as lettuce, tomatoes, zucchini, and okra
  • Fruits such as cantaloupe, grapes, berries, cherries, and avocado
  • Olives
  • Gluten-free bread
  • Rice
  • Fermented foods such as yogurt, kombucha, and kimchi

Eating food slowly is also important since it prevents taking in too much air, which is known to contribute to bloating and burping.

Other self-help measures that can help ease bloating and release gas include:

  • Physical activity of any sort, including walking
  • Abdominal exercises and stretching, including yoga
  • Soaking in a hot bath
  • A heating pad or hot water bottle
  • Peppermint oil (available in capsule form)
  • Diaphragmatic (belly) breathing
  • Sipping peppermint, chamomile, or ginger tea
  • Abdominal massage

Summary

Many foods can contribute to excess gas. Most of the time, gas is caused when undigested sugars or fiber reach the large intestine and are broken down by bacteria. Common gassy foods include dairy, specific fruits and vegetables, beans, and sugars.

20 Sources
Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy.
  1. Fan PH, Zang MT, Xing J. Oligosaccharides composition in eight food legumes species as detected by high-resolution mass spectrometry. J Sci Food Agric. 2015;95(11):2228-36. doi:10.1002/jsfa.6940

  2. Amoah I, Ascione A, Muthanna FMS, et al. Sustainable strategies for increasing legume consumption: culinary and educational approaches. Foods. 2023 Jun;12(11):2265. doi:10.3390/foods12112265

  3. Sławińska A, Jabłońska-Ryś E, Stachniuk A. High-performance liquid chromatography determination of free sugars and mannitol in mushrooms using corona charged aerosol detectionFood Anal. Methods. 2012;14:209–216. doi:10.1007/s12161-020-01863-8

  4. Makinen KK. Gastrointestinal disturbances associated with the consumption of sugar alcohols with special consideration of xylitol: scientific review and instructions for dentists and other health-care professionals. Int J Dent. 2016;2016:5967907. doi:10.1155/2016/5967907

  5. Montalto M, Gallo Am, Gasbarrini A. Fructose, trehalose and sorbitol malabsorption. Eur Rev Med Pharmacol Sci. 2013:17 Suppl 2:26-9.

  6. Deng Y, Misselwitz B, Dai N, Fox M. Lactose intolerance in adults: biological mechanism and dietary management. Nutrients. 2015;7(9):8020-35. doi:10.3390/nu7095380

  7. Fedewa A, Rao SSC. Dietary fructose intolerance, fructan intolerance and FODMAPs. Curr Gastroenterol Rep. 2014 Jan; 16(1): 370. doi:10.1007/s11894-013-0370-0

  8. Pejcz E, Spychaj R, Gil Z. Technological methods for reducing the content of fructan in wheat bread. Foods. 2019 Dec;8(12):663. doi:10.3390/foods8120663

  9. Mäkinen KK. Gastrointestinal disturbances associated with the consumption of sugar alcohols with special consideration of xylitol: Scientific review and instructions for dentists and other health-care professionals. Int J Dent. 2016;2016:5967907. doi:10.1155/2016/5967907

  10. Cozma-Petruţ A, Loghin F, Miere D, Dumitraşcu DL. Diet in irritable bowel syndrome: what to recommend, not what to forbid to patients. World J Gastroenterol. 2017;23(21):3771-3783. doi:10.3748/wjg.v23.i21.3771

  11. National Institutes of Health. Hereditary fructose intolerance.

  12. Elango D, Rajendran K, Van der Laan L. Raffinose family oligosaccharides: friend or foe for human and plant health? Front Plant Sci. 2022;13:829118. doi:10.3389/fpls.2022.829118

  13. Ruiz-Ojeda FJ, Plaza-Díaz J, Sáez-Lara MJ, Gil A. Effects of sweeteners on the gut microbiota: A review of experimental studies and clinical trials. Adv Nutr. 2019;10(suppl_1):S31-S48. doi:10.1093/advances/nmy037

  14. Kregiel D. Health safety of soft drinks: contents, containers, and microorganisms. Biomed Res Int. 2015;2015:128697. doi:10.1155/2015/128697

  15. International Foundation for Gastrointestinal Disorders. Controlling intestinal gas.

  16. Mari A, Backer FA, Mahamid M, et al. Bloating and abdominal distension: clinical approach and managementAdv Ther. 2019;36(5):1075–1084. doi:10.1007/s12325-019-00924-7

  17. Kavuri V, Raghuram N, Malamud A, Selvan SR.. Irritable bowel syndrome: yoga as remedial therapy. Evid Based Complement Alternat Med. 2015;2015:398156. doi:10.1155/2015/398156

  18. American Association of Retired People. 11 ways to relieve bloating fast.

  19. Alammar N, Wang L, Saberi B, et al. The impact of peppermint oil on the irritable bowel syndrome: a meta-analysis of the pooled clinical dataBMC Complement Altern Med. 2019;19(1):21. doi:10.1186/s12906-018-2409-0

  20. Zeng X, He J, Li X, et al. Clinical efficacy of one-finger meditation massage on IBS-C based on the “gut-brain axis” theory: study protocol for a randomized controlled trial. BMC Complement Med Ther. 2023;23:185. doi:10.1186/s12906-023-04019-3

Additional Reading
Amber J. Tresca

By Amber J. Tresca
Amber J. Tresca is a freelance writer and speaker who covers digestive conditions, including IBD. She was diagnosed with ulcerative colitis at age 16.