Beans and legumes Beans are also rich in fiber, and a high intake of fiber can increase gassiness. However, not all legumes increase flatulence equally. A 2011 study found that people who ate baked beans and pinto beans were more likely to notice increased gassiness than people who ate black-eyed peas.