Certain foods may cause gas. Foods that produce gas in one person may not cause gas in another. Vegetables that may cause gas are:  Artichokes. Beans. Broccoli. Cauliflower. Mushrooms. Onions.