Trapped gas has several causes. It could be due to excessive intake of certain foods like dairy products and carbonated beverages, chewing gum, food intolerance, sensitivity to certain foods, or gastrointestinal disorders. Learning how to eat less and exercise can help prevent and relieve trapped air.