Foods that commonly cause gas. According to the National Institute of Diabetes and Digestive and Kidney Diseases, most foods that contain carbohydrates can cause gas, however, fats and proteins cause little gas. Foods that cause gas include the following: Raffinose.