Jan 6, 2022 · Gas pain may occur if gas is trapped or not moving well through your digestive system. An increase in gas or gas pain may result from eating foods that are more likely to produce gas. Often, relatively simple changes in eating habits can lessen bothersome gas.