Undigested carbohydrates will pass to your large intestine, where bacteria break them down and create gas. You may have more gas symptoms if you consume more carbohydrates that your stomach and small intestine don't fully digest.
Does digesting food cause gas?
Gas comes from two main sources: swallowed air and normal breakdown of certain foods by harmless bacteria naturally present in the large intestine. Many foods with carbohydrates can cause gas. Fats and proteins cause little gas.
Why does everything I eat give me gas?
Gas in your stomach is primarily caused by swallowing air when you eat or drink. Most stomach gas is released when you burp. Gas forms in your large intestine (colon) when bacteria ferment carbohydrates — fiber, some starches and some sugars — that aren't digested in your small intestine.