Green beans are a type of legume, but they are different from other beans in terms of their gas production. Green beans are not fully mature and have less resistant starch in them than fully mature beans. Resistant starch is a type of starch that escapes digestion in your small intestine and reaches your colon, where it can feed your beneficial bacteria. Resistant starch can have many health benefits, but it also creates gas and bloating as a side effect. Green beans still contain some fiber and lectins, which are proteins that can bind to carbohydrates and make digestion harder. Therefore, some people may still experience gas and bloating after eating green beans, especially if they eat too much or have a sensitive gut.