Some foods that can cause bloating are high in fermentable carbohydrates, such as certain fruits, vegetables, legumes, and whole grains. Foods high in fats, spicy foods, dairy products, carbonated beverages, and artificial sweeteners may also contribute to the stomach bloating.