What Vegetables Are Good for Constipation?

Several vegetables can help relieve constipation, and the most effective ones work through a combination of fiber, water, and natural compounds that speed up digestion. Green peas, sweet potatoes, broccoli, and Brussels sprouts are among the best options, each packing 2 to 5 grams of fiber per half-cup serving. But fiber content alone doesn’t tell the whole story.

The Best High-Fiber Vegetables for Constipation

Fiber is the main reason vegetables help keep you regular. It passes through your digestive system without being broken down, adding bulk to stool and helping it move through the colon. The daily target for fiber is about 14 grams per 1,000 calories you eat, which works out to roughly 22 to 28 grams for most women and 28 to 34 grams for most men. Most people fall well short of that.

Here are the vegetables with the most fiber per cooked half-cup serving:

  • Turnips: 4.8 grams
  • Green peas (frozen): 4.3 grams
  • Okra (frozen): 4.1 grams
  • Sweet potato: 4.0 grams
  • Brussels sprouts: 3.8 grams
  • Asparagus: 2.8 grams
  • Kale: 2.5 grams
  • Broccoli: 2.4 grams
  • Carrots (sliced): 2.0 grams
  • Green beans: 2.0 grams

Eating two or three servings of these vegetables daily can meaningfully close the gap between what you’re getting and what your body needs. A single cup of green peas at dinner, for example, delivers over 8 grams of fiber on its own.

Why Fiber Type Matters

Not all fiber does the same thing in your gut. Insoluble fiber absorbs liquid and adds physical bulk to stool, which helps push it through the intestines. Soluble fiber dissolves in water and forms a gel-like substance that softens stool, making it easier to pass. Most vegetables contain both types, but in different ratios.

Sweet potatoes, turnips, and green peas are heavy on insoluble fiber, making them particularly effective for adding the bulk that triggers your colon to contract and move things along. Brussels sprouts and asparagus also lean toward insoluble fiber. Okra, on the other hand, is famously mucilaginous (that slippery texture when you cook it), which reflects its soluble fiber content. That gel-like quality translates directly to softer, easier-to-pass stool.

If your constipation tends to involve hard, dry stool, prioritize vegetables with more soluble fiber like okra and carrots. If the issue is more about infrequent bowel movements, the bulking effect of insoluble-fiber-heavy vegetables like peas, turnips, and sweet potatoes may help more.

Vegetables That Feed Your Gut Bacteria

Some vegetables contain inulin, a type of soluble fiber that acts as a prebiotic. Your body can’t digest it, but the beneficial bacteria in your colon can. When those bacteria feed on inulin, they multiply, and a healthier population of gut bacteria is associated with faster transit time through the colon.

Jerusalem artichokes are one of the richest vegetable sources of inulin. Garlic, onions, asparagus, and globe artichokes also contain it. Research on healthy volunteers found that consuming Jerusalem artichoke stimulated the growth of bifidobacteria, a group of beneficial gut microbes, while reducing less helpful bacterial species. A separate study found that inulin significantly reduced colon transit time in patients with constipation-predominant irritable bowel syndrome.

You don’t need to eat these in large quantities. Adding garlic and onions to your cooking or tossing roasted Jerusalem artichoke into a salad a few times a week gives your gut bacteria consistent fuel.

Magnesium-Rich Vegetables

Magnesium helps relax the muscles in your intestinal wall, which supports the wave-like contractions that move stool through your colon. It also draws water into the intestines, softening stool in the process. This is the same mechanism behind magnesium-based laxatives, but getting it through food is gentler and more sustainable.

Dark leafy greens are the standout category here. Spinach, kale, and Swiss chard are all rich in magnesium. Sweet potatoes, beets, and avocado (technically a fruit, but often eaten like a vegetable) also contribute meaningful amounts. Children’s Hospital of Philadelphia specifically recommends adding spinach, kale, beets, sweet potato, or avocado to smoothies as a food-based approach to constipation relief.

Hydration Helps Too

Fiber works best when there’s enough water in your system for it to absorb. Some vegetables pull double duty by delivering both fiber and a high water content. Lettuce, celery, spinach, cabbage, and squash are all 90% water or higher. Eating these alongside higher-fiber vegetables like peas and Brussels sprouts helps ensure the fiber can do its job properly rather than sitting in your gut and making things worse.

Cooked vs. Raw Vegetables

Cooking vegetables breaks down some of their insoluble fiber, making them easier to digest. This is helpful if you have a sensitive stomach or conditions like inflammatory bowel disease, where raw fiber can cause cramping. For constipation specifically, cooked vegetables are still effective because the overall fiber content doesn’t drop dramatically. Steaming and roasting preserve more fiber than boiling, which can leach some nutrients into the cooking water.

Raw vegetables, on the other hand, retain their full insoluble fiber content, which provides maximum bulking effect. If your digestive system handles raw vegetables comfortably, eating them raw may give you a slight edge for constipation relief. A practical approach is to eat a mix of both.

Good Options for Sensitive Stomachs

High-fiber vegetables can cause gas and bloating, especially if you’re not used to eating much fiber. This happens because bacteria in your colon ferment fiber, producing carbon dioxide, hydrogen, and methane. Vegetables rich in oligosaccharides, a highly fermentable type of soluble fiber found in beans, onions, and garlic, tend to produce the most gas.

If you have irritable bowel syndrome or a sensitive digestive system, certain vegetables offer good fiber without as much bloating risk. Vegetables that are low in FODMAPs (the fermentable sugars that trigger digestive symptoms) while still providing meaningful fiber include:

  • Broccoli (fresh, raw): 3 grams per ¾ cup
  • Carrots: 3 grams per medium carrot
  • Parsnips: 3 grams per medium parsnip
  • Baby spinach: 3 grams per 1.5 cups
  • Kale: 2 grams per ½ cup
  • Green beans: 2 grams per 15 beans
  • Eggplant: 2 grams per cup
  • Potato (unpeeled): 2 grams per half potato

These are identified by Monash University, the leading research group on FODMAPs, as safe at the listed serving sizes. The key with a sensitive stomach is to increase fiber gradually over one to two weeks rather than making a dramatic dietary shift overnight. Adding one extra serving of vegetables per day and waiting a few days before adding another gives your gut bacteria time to adjust.

Putting It Together

The most effective approach combines several types of constipation-fighting vegetables rather than relying on just one. A day might include spinach in a morning smoothie (magnesium and water content), a side of roasted sweet potato at lunch (high insoluble fiber), and green peas with dinner (top-tier total fiber). That combination alone adds roughly 10 to 12 grams of fiber to your daily intake, covers both soluble and insoluble fiber, and provides magnesium and hydration.

If you’re currently eating very few vegetables, the fiber jump can initially cause some bloating. Start with cooked, lower-fiber options like carrots and green beans for the first week, then gradually work in the heavier hitters like peas, Brussels sprouts, and turnips. Drink extra water as you increase fiber intake, since fiber without adequate hydration can actually worsen constipation.