Why Do Beans Give Me Diarrhea and How to Prevent It

Beans trigger diarrhea primarily because they contain sugars your small intestine cannot break down. These sugars, known as raffinose-family oligosaccharides, pass intact into the colon, where bacteria ferment them rapidly, producing gas, drawing in water, and speeding up gut motility. That combination is what sends you to the bathroom. But oligosaccharides are only part of the story, and the good news is that most of the causes are manageable with the right preparation and eating habits.

The Sugars Your Body Cannot Digest

Beans are rich in a group of carbohydrates called raffinose-family oligosaccharides (RFOs), which include raffinose, stachyose, and verbascose. Humans lack the enzyme alpha-galactosidase in the small intestine, so these sugars arrive in the colon completely undigested. Once there, resident bacteria feast on them. The fermentation process generates hydrogen, carbon dioxide, and methane gas, which stretches the intestinal walls and contributes to bloating and cramping. At the same time, the undigested sugars pull water into the colon by osmosis. The combination of gas-driven distension and excess fluid is what produces loose stools or outright diarrhea.

These oligosaccharides fall under the broader category of FODMAPs, a group of fermentable carbohydrates that research has linked to symptoms like luminal distension from gas and water, changes in gut motility, and even shifts in the composition of gut bacteria.1PubMed Central. The Role of the FODMAP Diet in IBS For most people, moderate amounts of these sugars cause only mild gas. But in larger servings, or in people with sensitive guts, the fermentation overwhelms the colon’s ability to absorb the extra water, and diarrhea results.

The fermentation also produces short-chain fatty acids, including butyrate, which can speed up how quickly material moves through the colon. In animal studies, butyrate introduced directly into the colon increased the transit rate, and this effect was even more pronounced in models of irritable bowel syndrome.2PubMed Central. Short chain fatty acids and colon motility in a mouse model of irritable bowel syndrome So the very byproducts of bacterial fermentation may be actively pushing things along faster than normal.

Lectins and the Risk of Undercooked Beans

If your diarrhea from beans is explosive, comes on within a few hours, and is accompanied by severe nausea and vomiting, the culprit might not be oligosaccharides at all. Raw or undercooked kidney beans contain high concentrations of a lectin called phytohaemagglutinin (PHA), which is directly toxic to the cells lining your gut. Symptoms of lectin poisoning typically appear one to three hours after eating the beans and usually include nausea, vomiting, and diarrhea.3PubMed Central. Severe red kidney beans toxicity in an 8-year-old girl: a rare case of hypovolemic shock and prerenal acute kidney injury Most cases resolve on their own, but severe poisoning is possible. One documented case in a child led to hypovolemic shock and acute kidney injury from fluid loss.3PubMed Central. Severe red kidney beans toxicity in an 8-year-old girl: a rare case of hypovolemic shock and prerenal acute kidney injury

Red kidney beans are the worst offenders for lectin content, but white kidney beans and other varieties contain some too. The critical point is that slow cookers and low-temperature cooking may not reach a high enough temperature to destroy PHA. Boiling beans vigorously for at least ten minutes is the standard recommendation for neutralizing lectins. If you’ve ever made kidney beans in a slow cooker without boiling them first and felt violently ill afterward, this is almost certainly why. The distinction matters because lectin-driven diarrhea is an acute poisoning event, not the chronic digestive annoyance that oligosaccharides cause.

Saponins and Gut Permeability

Beans also contain saponins, naturally occurring compounds that can increase the permeability of the intestinal lining. Research has shown that certain saponins make the cells of the small intestine more “leaky,” allowing molecules through that would normally be blocked. This disrupts active nutrient transport and lets substances into the bloodstream that the gut would typically keep out.4PubMed. Influence of saponins on gut permeability and active nutrient transport in vitro When the intestinal barrier is compromised, the gut responds by secreting more fluid, which can contribute to loose stools.

Saponins are present in most legumes but tend to be reduced by soaking and thorough cooking, much like oligosaccharides and lectins. They rarely cause problems on their own in a well-cooked bean dish, but they may compound the effects of the other irritants, especially if your gut is already inflamed or sensitive for other reasons.

Why Some People React More Than Others

You might eat a bowl of black beans and spend the next few hours in misery while the person across the table feels perfectly fine. Several factors account for this difference.

People with irritable bowel syndrome (IBS) tend to be hit harder by fermentable carbohydrates. The mechanisms go beyond simple gas production. FODMAPs can modulate visceral hypersensitivity, meaning the gut’s nerves overreact to normal levels of distension. They also increase intestinal permeability and alter the balance of gut bacteria.1PubMed Central. The Role of the FODMAP Diet in IBS If you already have IBS, beans effectively amplify an existing problem rather than creating a new one.

Small intestinal bacterial overgrowth (SIBO) is another condition that magnifies bean-related distress. In SIBO, bacteria that should be confined mostly to the colon have colonized the small intestine instead. When oligosaccharides arrive in the small intestine, these bacteria begin fermenting them prematurely, before the sugars even reach the colon. Reducing FODMAP intake has been shown to help manage symptoms in a significant majority of SIBO patients, because the bacteria simply have less substrate to ferment.5Carolina Digital Repository. Small intestinal bacterial overgrowth and the FODMAPs elimination diet: a case study

Your individual microbiome composition also plays a role. People whose gut bacteria are already adapted to high-fiber, legume-rich diets tend to ferment oligosaccharides more efficiently, producing less gas overall. Those who rarely eat beans have fewer of the bacterial strains that handle these sugars gracefully, so a sudden large serving overwhelms their microbial community. This is why gradual introduction matters so much, a point we’ll return to shortly.

Soaking, Rinsing, and Cooking Properly

The single most effective thing you can do to reduce bean-related digestive trouble is soak dried beans before cooking, then discard the soaking water. This step physically leaches oligosaccharides out of the beans and into the water. One study found that soaking common beans and then discarding the water reduced raffinose content by about 25%, stachyose by about 25%, and verbascose by roughly 42%.6PubMed. Soaking the common bean in a domestic preparation reduced the contents of raffinose-type oligosaccharides but did not interfere with nutritive value The key is throwing out the soak water rather than cooking the beans in it. If you cook in the same water, you’re reabsorbing the very sugars you just extracted.

Temperature and acidity of the soaking water also matter. Research comparing different soaking conditions across chickpeas, lentils, and beans found that soaking at moderately warm temperatures (around 45°C) at a slightly acidic pH for three hours achieved reductions of up to 65% in chickpeas, 85% in lentils, and 52% in beans.7PubMed. Hydrolysis and diffusion of raffinose oligosaccharides family products in chickpeas, lentils, and beans under different pH and temperature steeping conditions Lower soaking temperatures favored enzymatic breakdown of the sugars, while higher temperatures promoted diffusion into the water. You don’t need a laboratory setup to approximate this: soaking beans overnight at room temperature with a splash of vinegar or lemon juice is a reasonable home approach that moves the conditions in the right direction.

Beyond soaking, thorough cooking is essential for both oligosaccharide reduction and lectin neutralization. A vigorous rolling boil for at least ten minutes destroys most PHA in kidney beans. Pressure cooking is even more effective at breaking down both lectins and oligosaccharides because it reaches higher temperatures than a standard stovetop pot. If you rely on a slow cooker, always pre-boil your beans before transferring them in.

Canned Beans as a Shortcut

Canned beans have already been soaked, cooked at high temperatures, and packed in liquid, which means a substantial portion of their oligosaccharides have already leached out during commercial processing. A study measuring raffinose-family oligosaccharide levels in canned beans found reductions ranging from 30% to 69% compared to the raw dried starting levels, depending on the variety.8PubMed Central. Multi-environment evaluation of raffinose-family oligosaccharide content in diverse dry bean varieties and their reduction upon canning Rinsing canned beans under running water before eating them washes away additional oligosaccharides that dissolved into the canning liquid.

That wide range (30% to 69%) reflects real differences between varieties, which means your choice of bean type matters almost as much as your preparation method. If you’re choosing canned beans partly for digestive comfort, it’s worth noting that the reduction you get depends on the specific bean. Still, for someone who doesn’t want to deal with overnight soaking and long cooking times, canned beans rinsed well are a genuinely easier-on-the-gut option.

Which Beans Cause the Most Trouble

Not all beans are equally gas-producing. A study measuring soluble sugars across 23 different dry bean varieties found dramatic differences. Yellow split beans, large lima beans, and black-eyed peas contained the highest total soluble sugars, while speckled butter peas and lentils had considerably lower amounts.9PubMed. Determination of Soluble Mono, Di, and Oligosaccharide Content in 23 Dry Beans (Phaseolus vulgaris L.) Garbanzo beans had the highest levels of simple sugars, while yellow split beans topped the charts specifically for raffinose-family oligosaccharides.

Research across eight legume species using high-resolution mass spectrometry confirmed that species can be meaningfully distinguished by their total oligosaccharide content and the types of oligosaccharides they contain. Cowpeas (black-eyed peas) turned out to be a particularly rich source of non-digestible oligosaccharides, while fava beans and black soybeans were at the lower end.10PubMed. Oligosaccharides composition in eight food legumes species as detected by high-resolution mass spectrometry In most legumes, stachyose is the dominant oligosaccharide, but in mung beans and broad beans (fava beans), verbascose predominates instead.10PubMed. Oligosaccharides composition in eight food legumes species as detected by high-resolution mass spectrometry

If you’re trying to minimize digestive fallout, lentils and fava beans are generally easier starting points than kidney beans, navy beans, or lima beans. Red and green lentils also cook quickly without soaking, which makes them a practical choice for people testing their tolerance.

Enzyme Supplements

Over-the-counter alpha-galactosidase supplements (sold under brand names like Beano) are designed to supply the enzyme your small intestine lacks. Taken just before a bean-heavy meal, the enzyme breaks down raffinose-family oligosaccharides before they reach the colon, theoretically preventing the fermentation that causes symptoms. A double-blind crossover study found that alpha-galactosidase significantly reduced the number of gas events per hour over a six-hour period compared to placebo. However, it did not reduce bloating or pain.11PubMed. Does Beano prevent gas? A double-blind crossover study of oral alpha-galactosidase to treat dietary oligosaccharide intolerance

That distinction is worth paying attention to. If your main complaint is excessive flatulence, these supplements have decent evidence behind them. If your main complaint is cramping and diarrhea, the enzyme alone may not be enough, because gas production is only one piece of the problem. The osmotic water-drawing effect of undigested sugars and the motility changes from short-chain fatty acids are separate mechanisms that an enzyme supplement doesn’t fully address. Still, reducing the fermentable load reaching your colon will generally lower the total volume of gas and fluid produced, so many people do find meaningful relief.

Building Tolerance Gradually

One of the most underrated strategies is simply eating beans more often, starting with small amounts. Your gut microbiome is not fixed; it shifts in response to what you feed it. Regularly introducing fermentable substrates like bean oligosaccharides and resistant starch encourages the growth of bacterial populations that ferment these compounds more cleanly, producing beneficial short-chain fatty acids with less gas as a byproduct.12PubMed Central. Prebiotic Potential of Dietary Beans and Pulses and Their Resistant Starch for Aging-Associated Gut and Metabolic Health

The practical approach is to start with a tablespoon or two of well-cooked, well-rinsed beans a few times a week and increase the portion size over several weeks. Many people who report that they “can’t eat beans” have actually never given their microbiome the chance to adapt because they either avoid beans entirely or eat a large serving once a month and suffer the consequences. The adaptation period varies, but most people notice a meaningful reduction in symptoms within two to three weeks of consistent small servings.

Combining strategies amplifies the benefit. Soaking and discarding the water, choosing lower-oligosaccharide varieties like lentils, starting small, and optionally taking an enzyme supplement on the side gives you multiple layers of protection. Over time, as your gut bacteria adjust, you can gradually relax the precautions and eat larger servings of a wider range of beans without trouble.

Sprouting and Fermentation

Two less common but effective preparation methods deserve mention. Sprouting beans before cooking them activates the seed’s own enzymes, which begin breaking down oligosaccharides as part of the germination process. Even a day or two of sprouting can meaningfully reduce RFO levels, and sprouted beans also cook faster.

Fermenting legumes, as in the production of tempeh, miso, or certain traditional African and South Asian bean preparations, goes a step further. Lactic acid bacteria consume oligosaccharides during fermentation, substantially lowering the FODMAP content of the final product. Legumes have been recognized as a natural source of prebiotic compounds including oligosaccharides, resistant starch, and polyphenols, and fermentation with lactic acid bacteria can transform these into a product that is both easier to digest and richer in beneficial microbes.13PubMed Central. Legumes and Legume-Based Beverages Fermented with Lactic Acid Bacteria as a Potential Carrier of Probiotics and Prebiotics If you enjoy fermented foods, incorporating fermented bean products into your diet may let you enjoy the nutritional benefits of legumes with fewer digestive consequences.

When Beans Are Not the Real Problem

Sometimes persistent diarrhea after eating beans is a sign of something broader going on. If you react badly not just to beans but also to garlic, onions, wheat, stone fruits, and dairy, you may be sensitive to FODMAPs across the board, which points more toward IBS or SIBO than toward a bean-specific issue. In that case, selectively removing beans won’t solve the problem because the underlying sensitivity extends to the entire category of fermentable carbohydrates.

It’s also worth distinguishing between true diarrhea (watery, urgent, multiple episodes) and simply having softer stools. Beans are high in fiber, and fiber increases stool bulk and water content. A noticeable change in stool consistency after adding beans to a previously low-fiber diet is normal and not a sign of intolerance. If you’ve recently increased your fiber intake and your stools are softer but you don’t have urgency, cramping, or multiple watery episodes, your gut is likely just adjusting. Give it a couple of weeks before deciding beans are off the table.