Starches. Most starches, including potatoes, corn, pasta, and wheat, produce gas as they are broken down in the large intestine. Rice is the only starch that does not cause gas. Fiber. Many foods contain soluble and insoluble fiber. Soluble fiber dissolves easily in water and takes on a soft, gel-like texture in the intestines.