There are certain foods (known as gassy foods) like beans, cabbage, broccoli, sprouts, cauliflower, radish etc., that are notorious for producing gas. Chewing gum, consumption of aerated drinks, and eating in a hurry can lead to formation of gas in the stomach. Artificial additives in the food can also lead to the formation of gas. Sometimes, remaining on an empty stomach results in gas formation and subsequent pain.