Gas is usually caused by something you've eaten or swallowing air. You may need to stay away from dairy. If you are lactose intolerant, the sugar lactose will get broken down and fermented in the colon, which causes tremendous gas and bloating. People with celiac disease cannot digest gluten, which causes gases to form. If you have celiac, you'll need to stay away from gluten products.