Everyone is different, and foods that cause gas for one person may not for someone else. But in general,foods that are high in carbs cause more gas.
High-fat foods stay in the stomach longer. Cutting back on them can help reduce bloating and discomfort. Less fat helps the stomach empty faster, allowing gas to move more quickly out of you.
In general, protein doesn’t contribute to gas, but if you have problems digesting lactose, a sugar in milk, dairy products will give you gas.