Vegetables are considered some of the worst offenders when it comes to causing gas. However, not all vegetables are off-limits when you are trying to avoid gas. Foods that are not associated with gas include carrots, summer squash, vegetable soup and winter squash. Fruits you can consume with limited risk for causing gas include fruits that have been cooked or canned without peels.