These undigested carbohydrates will pass to your large intestine, where bacteria ... and intestinal muscle spasms also cause pain. Gas pain tends to be food-related. It involves shifting location ...