Excessive flatulence can occur from swallowing more air than usual or from eating foods that are difficult to digest. It can also be related to a health problem affecting the digestive system, such as recurrent indigestion or irritable bowel syndrome (IBS).