There is a water soluble sugar that is in beans called oligosaccharides, and they are indigestible by human beings. They ferment during the digestion process, and hence, you have gas.
Dragonwagon, Crescent. Interview by Neal Conan. Talk of the Nation, NPR, 12 Jan. 2012.
Sourced by: Quote.org sourced