Soluble fiber forms a gel when mixed with water. Foods such as oats, beans, apples, and psyllium may help soften hard stool and add structure to loose stool.

What to keep in mind

Insoluble fiber adds bulk and can help material move through the digestive tract. Whole grains, vegetables, nuts, and seeds commonly provide it. Most plant foods contain a mixture of both types.

Sudden increases can cause gas or bloating. Add fiber gradually, drink appropriately, and adapt the amount to your symptoms and medical needs.