Does Soy Make You Gassy? The Science Explained

Soy does cause gas in most people, and the culprit is well understood: two specific sugars called raffinose and stachyose that the human gut cannot break down on its own. These sugars pass intact into the colon, where bacteria ferment them and release carbon dioxide and hydrogen in the process. But the amount of gas you get depends heavily on which soy food you eat, how it was processed, and what your gut bacteria are used to handling.

Why Soy Produces Gas

The human small intestine does not produce the enzyme needed to split raffinose and stachyose into simple sugars your body can absorb. The enzyme in question is alpha-galactosidase, and without it, virtually all of these oligosaccharides pass through the upper digestive tract untouched and arrive in the colon still intact.1The American Journal of Clinical Nutrition. Gas production in humans ingesting a soybean flour derived from beans naturally low in oligosaccharides Once there, colonic bacteria do have the enzymes to ferment them, and that fermentation throws off carbon dioxide and hydrogen gas. Some people’s gut bacteria also produce methane from these fermentation byproducts, which adds to the total volume of gas moving through the intestines.

This is not a deficiency or a disorder. It is normal human biology. Everyone lacks this enzyme, so everyone who eats enough of these sugars will produce some colonic gas. The variation between people comes down to their individual gut bacteria populations, how much gas those bacteria produce per unit of fermented sugar, and how sensitive they are to the resulting pressure in the intestines.

One thing worth clarifying: the fiber in soy is a separate issue from these oligosaccharides, and it does not seem to drive gas production in the same way. Research measuring breath hydrogen and methane in people consuming soy fiber found no significant increase in gas output when subjects ate diets containing varying amounts of soy polysaccharide, even though the fiber was extensively fermented in the colon.2The American Journal of Clinical Nutrition. Breath hydrogen and methane: poor indicators of apparent digestion of soy fiber So when people blame soy fiber for their bloating, the oligosaccharides are more likely responsible.

Not All Soy Foods Are Created Equal

This is where things get practical. Eating an equivalent amount of tofu and eating whole soybeans are very different experiences for your digestive system. The difference comes down to processing: making tofu involves soaking soybeans, grinding them, and then precipitating the protein out of the liquid. That precipitation step removes most of the water-soluble oligosaccharides along with the whey. Research has confirmed that tofu retains little of the gas-forming potential of whole soybeans.3Journal of Food Science. Reduction of Intestinal Gas-Forming Properties of Legumes by Traditional and Experimental Food Processing Methods

Tempeh, the fermented soybean cake common in Indonesian cuisine, also produces little gas. The fermentation process is key here: the mold used to make tempeh, typically Rhizopus oryzae or related species, actively breaks down stachyose and raffinose through enzymatic activity during the fermentation period.4PubMed Central. A review on health benefits and processing of tempeh with outlines on its functional microbes Hot water treatment and aqueous alcohol extraction, used in various industrial soy processing methods, similarly strip out most of the oligosaccharides.5Journal of the American Oil Chemists’ Society. Flatulence caused by soya and its control through processing

On the other end of the spectrum, foods made from minimally processed soy products can be just as gas-producing as whole beans. One study found that a high-protein food made from toasted soy grits caused as much gas as eating an equal weight of whole soybeans.3Journal of Food Science. Reduction of Intestinal Gas-Forming Properties of Legumes by Traditional and Experimental Food Processing Methods Toasting the grits did not remove the sugars; it just dried and heated them. Soy flour, soy milk, and soy-based protein bars can all carry significant oligosaccharide loads depending on how they were manufactured. The level of processing matters more than whether a product is labeled “soy.”

A rough hierarchy of soy foods from most to least gas-producing looks something like this:

  • High gas: whole soybeans, edamame, soy flour, soy grits, and some soy milks made from whole beans
  • Moderate gas: soy protein concentrates, commercially filtered soy milks
  • Low gas: tofu, tempeh, soy protein isolates, soy sauce

Soy sauce barely registers because it is consumed in tiny volumes and its long fermentation process degrades the oligosaccharides nearly completely.

How Soy Compares to Other Legumes

Soybeans are far from the worst offenders in the legume family. Analysis of oligosaccharide content across legume species shows that soybean seeds contain roughly 34 to 69 milligrams of raffinose-family oligosaccharides per gram of dry matter. That puts them at the lower end of the scale. Lupin seeds, by contrast, contain 57 to 130 milligrams per gram, nearly double the upper range of soybeans. Pea seeds fall in the range of 52 to 80 milligrams per gram, and faba beans sit at 32 to 65 milligrams, roughly comparable to soybeans.6Journal of Animal and Feed Sciences. The content of raffinose oligosaccharides in legumes and their importance for animals

The composition of those oligosaccharides also differs between species. In soybeans, stachyose is the dominant sugar, with smaller amounts of raffinose. Peas and faba beans tend to have more verbascose, a larger oligosaccharide, as their dominant form. Chickpeas carry a unique sugar called ciceritol that is absent in soybeans entirely.7Cereal Chemistry. Oligosaccharide Content and Composition of Legumes and Their Reduction by Soaking, Cooking, Ultrasound, and High Hydrostatic Pressure Whether these compositional differences matter for gas production in practice is less clear, since all of these sugars end up fermented by the same colonic bacteria. The total load is what matters most.

So if you find beans and lentils troublesome but think soy is uniquely bad, the data suggests otherwise. Soy’s reputation may owe more to the forms in which people encounter it. In many Western diets, soy shows up as soy milk, soy flour in baked goods, or edamame, all of which deliver a meaningful slug of oligosaccharides in a single sitting. Meanwhile, tofu-heavy cuisines in East and Southeast Asia have historically consumed soy in forms that have already had most of these sugars removed.

Does Soaking or Cooking Help?

Soaking soybeans before cooking does remove some oligosaccharides, because raffinose and stachyose are water-soluble and leach out into the soaking water. Research measuring oligosaccharide loss during standard bean preparation found that about half the raffinose and more than half the stachyose were lost during the combined pretreatments of soaking, dehulling, and cooking.8Journal of Food Engineering. Effect of soaking, dehulling, cooking and fermentation with Rhizopus oligosporus on the oligosaccharides, trypsin inhibitor, phytic acid and tannins of soybean, cowpea, and groundbean That is a genuine reduction, and discarding the soaking water rather than cooking with it makes the most of this effect.

But here is where expectations meet reality: losing half the oligosaccharides does not mean losing half the gas. The relationship between oligosaccharide dose and gas output is not perfectly linear, and the remaining sugars can still cause noticeable fermentation. If you are very sensitive, a 50% reduction may be the difference between uncomfortable bloating and a mild rumble. If you are not particularly sensitive, you may not notice the difference at all. Cooking with traditional additions like kombu seaweed or bay leaves, often recommended in home-cooking lore, has not been shown to reduce gas beyond what soaking and cooking themselves accomplish.

Fermentation, on the other hand, is more effective. When soybeans are fermented with Rhizopus oligosporus, the mold used in tempeh production, the oligosaccharide reduction goes well beyond what soaking alone achieves.8Journal of Food Engineering. Effect of soaking, dehulling, cooking and fermentation with Rhizopus oligosporus on the oligosaccharides, trypsin inhibitor, phytic acid and tannins of soybean, cowpea, and groundbean The mold’s enzymes actively digest the sugars during the fermentation window, rather than just dissolving them into water.

Alpha-Galactosidase Supplements

Since the whole problem is that humans lack alpha-galactosidase, you might wonder whether you can simply swallow the enzyme before a soy-heavy meal. That is exactly what products like Beano deliver: a dose of alpha-galactosidase derived from the fungus Aspergillus niger, taken with the first bite of food. A double-blind crossover study found that people taking the enzyme had significantly fewer flatulence events over a six-hour follow-up period compared to placebo.9PubMed. Does Beano prevent gas? A double-blind crossover study of oral alpha-galactosidase to treat dietary oligosaccharide intolerance

The results were real but modest. The reduction in gas events reached statistical significance only at the five-hour mark, and the study found no significant difference in bloating or pain between the enzyme group and the placebo group. So the enzyme appears to reduce gas volume rather than eliminate it, and it may not address the discomfort that bothers people most.

There is also a durability problem. The enzyme has to survive passage through the stomach, where strong acid and digestive proteases can degrade it. Research into this has shown that stomach pH below about 2.0 and gastrointestinal proteases are detrimental to alpha-galactosidase activity, which may explain why reported consumer results vary widely. Interestingly, the same research found that soy protein itself can protect the enzyme from degradation, suggesting that taking the supplement alongside soy foods rather than other legumes may actually give it a better chance of surviving to the small intestine where it needs to work.10LWT – Food Science and Technology. The pH-dependent protection of α-galactosidase activity by proteins against degradative enzymes during soymilk in vitro digestion

Low-Oligosaccharide Soy Varieties

A different approach to the problem skips processing and supplementation entirely and starts with soybeans that contain fewer oligosaccharides from the start. Plant breeders have developed soybean lines with naturally lower concentrations of raffinose and stachyose, and feeding trials show they work. When people ate soy flour made from a low-oligosaccharide variety, their gas output was dramatically lower. At a dose of 80 grams, conventional soy flour produced an average of about 7.5 gas-passing events over 12 hours, while the low-oligosaccharide version produced roughly 3.9 events, statistically indistinguishable from a rice control meal at 3.2 events.1The American Journal of Clinical Nutrition. Gas production in humans ingesting a soybean flour derived from beans naturally low in oligosaccharides

Breath hydrogen testing confirmed the pattern. Over eight hours, the conventional soy flour produced roughly three times the breath hydrogen of the low-oligosaccharide version at higher doses. The low-oligosaccharide soy’s hydrogen output was comparable to a control meal containing no legumes at all.

More recently, gene-editing technology has pushed this approach further. Researchers used multiplex genome editing to target four genes involved in the biosynthesis of raffinose and stachyose in soybean seeds. The resulting mutant line had its oligosaccharide content almost completely eliminated.11The Crop Journal. Multiplex genome editing targeting soybean with ultra-low anti-nutritive oligosaccharides These varieties are not yet commercially widespread, but they represent a potential future where soy products simply do not cause gas, full stop. Whether consumers will embrace gene-edited soy for this purpose is another question, but the technical barrier has largely been cleared.

The Prebiotic Upside

Here is an irony worth sitting with: the same oligosaccharides that cause gas are also prebiotics that selectively feed beneficial gut bacteria. Animal research has shown that soy oligosaccharides significantly increase populations of bifidobacteria and lactic acid bacteria in the gut, with lactic acid bacteria counts rising by about 10 to 12% after regular consumption over three weeks.12PubMed Central. Effects of soybean oligosaccharides on intestinal microbial communities and immune modulation in mice These are the same bacterial groups found in yogurt and probiotic supplements, and their proliferation is generally associated with better gut health and immune function.

This creates a genuine trade-off. Eliminating soy oligosaccharides entirely, whether through breeding, processing, or enzymatic supplements, removes a food source for bacteria you want in your gut. The gas is, in a real sense, a side effect of a beneficial process. People who eat soy regularly and notice their gas symptoms decrease over weeks may be experiencing a shift in their gut microbiome as those beneficial bacteria populations expand and the fermentation process becomes more efficient and less gassy. This adaptation is anecdotal in the soy-specific context but consistent with what is known about gut bacterial adjustment to fiber and other fermentable carbohydrates more broadly.

When Soy Meets Irritable Bowel Syndrome

For people with irritable bowel syndrome, the gas equation is different. IBS involves not just excess gas production but also altered gas transit through the intestines, abnormal perception of normal amounts of gas, and dysfunctional muscular activity in the abdominal wall.13PubMed. Irritable bowel syndrome and bloating In practical terms, this means someone with IBS can feel severely bloated and uncomfortable from gas volumes that a person without IBS would barely notice.

Soy products fall within the broader category of foods high in fermentable carbohydrates, sometimes grouped under the FODMAP framework that many gastroenterologists use to guide IBS management. Under this system, soy foods are not treated as a monolith. Firm tofu, for example, is generally considered low-FODMAP because its oligosaccharides have been washed away during processing. Soy milk made from whole soybeans, on the other hand, tends to be high-FODMAP. Soy milk made from soy protein isolate is typically low-FODMAP. The distinction matters enormously for IBS patients and is a common source of confusion, since “soy milk” on a label does not tell you which kind you are getting without reading the ingredient list.

Research into FODMAP detection in commercially available soy milks has confirmed that different processing methods yield very different oligosaccharide levels in the final product.14PubMed Central. A Bifunctional “Two-in-One” Array for Simultaneous Diagnosis of Irritable Bowel Syndrome and Identification of Low-FODMAP Diets If you have IBS and want to include soy in your diet, the type of soy product you choose is more important than whether you “eat soy” at all.

Soy Formula and Infant Gas

Parents of fussy, gassy infants often encounter soy-based formula as an alternative to cow’s milk formula, and the marketing around these products deserves some scrutiny. A randomized clinical trial found that soy-based formulas did reduce gastrointestinal symptoms, including gas, fussiness, and crying, in infants who were having trouble tolerating milk-based formulas.15PubMed. Efficacy of Soy-Based Formulas in Alleviating Gastrointestinal Symptoms in Infants With Milk-Based Formula Intolerance: A Randomized Clinical Trial The improvement brought symptoms down to levels comparable to a non-symptomatic reference group.

However, a critical review of infant formula marketing found that the evidence behind claims like “soy for fussiness and gas” is actually insufficient to support the broad way these products are marketed. The review concluded that removing or reducing lactose, using hydrolyzed or soy protein, and adding pre- or probiotics to formula have not been adequately shown to benefit infants with general fussiness, gas, or colic, even though marketing claims encourage parents to buy modified formulas for these symptoms.16PubMed. A Critical Review of the Marketing Claims of Infant Formula Products in the United States The distinction matters: soy formula may help infants with genuine cow’s milk protein intolerance, but for the garden-variety fussiness and gas that most babies experience, a switch to soy formula may not solve the problem and adds cost. Soy-based infant formulas are heavily processed and contain soy protein isolate rather than whole soy, so the oligosaccharide content is largely removed. The gas issue with these formulas, when it exists, is usually unrelated to the raffinose and stachyose mechanism that affects adults eating whole soy foods.

Dose, Timing, and Individual Variation

How much soy you eat in one sitting matters more than your total daily intake spread across meals. The feeding trial with low-oligosaccharide soy tested two doses: 34 grams and 80 grams. At the lower dose, conventional soy flour still produced more breath hydrogen than the low-oligosaccharide version, but the difference was much smaller. At the 80-gram dose, conventional soy flour produced roughly three times the breath hydrogen of the low-oligosaccharide variety.1The American Journal of Clinical Nutrition. Gas production in humans ingesting a soybean flour derived from beans naturally low in oligosaccharides The relationship between dose and gas output is not perfectly proportional, but the direction is clear: bigger servings mean more substrate for colonic bacteria, which means more gas.

Individual variation is enormous. In the same study, breath hydrogen values varied greatly between participants even on the same diet. Some people’s gut bacteria simply produce more gas per unit of fermented sugar than others. Your personal gut microbiome composition, how quickly food moves through your colon, how much air you swallow while eating, and whether you have any underlying motility issues all contribute. Two people can eat the same bowl of edamame and have genuinely different experiences, and neither one is imagining things.

Timing also plays a role. Eating soy foods alongside a large mixed meal slows gastric emptying and spreads the delivery of oligosaccharides to the colon over a longer period, which may reduce the peak gas production rate compared to eating soy on an empty stomach. This is not a studied intervention so much as a straightforward implication of digestive physiology: diluting the substrate over time gives bacteria less to work with at any given moment.