Beans contain indigestible sugars that cuose that problem. Different beans have different contents of them. Some beans, like pinto beans, navy beans, particularly bad. And there are other beans, like anasase beans, f which are great or black beans, that really are not gas prs.