The single most effective dietary change for preventing constipation is eating more fiber-rich foods, particularly legumes, fruits, and whole grains. Most adults need between 25 and 38 grams of fiber per day, but the average American gets only about 15 grams. Beyond fiber, certain foods contain natural compounds that draw water into the intestines or feed beneficial gut bacteria, both of which keep things moving. Here’s what to put on your plate.
How Fiber Keeps You Regular
Fiber works through two distinct mechanisms depending on its type. Insoluble fiber, found in wheat bran, vegetables, and whole grains, speeds the passage of food through your digestive tract and adds bulk to stool. Think of it as roughage that physically pushes things along. Soluble fiber, found in oats, beans, and many fruits, absorbs water and forms a gel-like substance that softens stool so it’s easier to pass.
You don’t need to obsess over which type you’re eating. Most whole plant foods contain both. The more important goal is hitting your daily target: 25 grams for women 50 and younger, 21 grams for women over 50, 38 grams for men 50 and younger, and 30 grams for men over 50. If your current intake is low, increase gradually over a couple of weeks and drink more water alongside it. Adding too much fiber too fast can cause bloating and gas.
The Highest-Fiber Foods per Serving
Legumes dominate the top of the fiber chart. A single cup of cooked split peas delivers 16 grams of fiber, nearly two-thirds of most women’s daily target. Lentils come in at 15.5 grams per cup, and black beans at 15 grams. Canned white beans like cannellini or navy beans provide about 13 grams per cup, making them one of the easiest high-fiber additions to soups, salads, or grain bowls.
Outside of legumes, these foods pack the most fiber per serving:
- Chia seeds: 10 grams per ounce (about 2 tablespoons)
- Green peas: 9 grams per cup
- Raspberries: 8 grams per cup
- Whole-wheat pasta: 6 grams per cup cooked
- Pearled barley: 6 grams per cup cooked
- Pears: 5.5 grams per medium fruit
- Bran flakes: 5.5 grams per three-quarter cup
Swapping refined grains for whole-grain versions is one of the simplest upgrades. White pasta has roughly half the fiber of whole-wheat. White rice has a fraction of what brown rice or barley offers. These substitutions add up quickly over three meals.
Prunes, Pears, and Other Natural Laxative Fruits
Some fruits do more than provide fiber. Prunes are the classic example, and their reputation is well earned. Beyond their fiber content, prunes are rich in sorbitol, a naturally occurring sugar alcohol that the body can’t break down during digestion. When sorbitol reaches the colon intact, it draws water into the intestine. The body essentially wants to flush it out, which triggers a bowel movement. Prune juice works through the same mechanism.
Pears and apple juice also contain sorbitol, though in smaller amounts. Eating whole pears gives you the added benefit of 5.5 grams of fiber per fruit. For people who find prunes unappealing, green kiwifruit is a strong alternative. A clinical trial presented by the American College of Gastroenterology found that eating two green kiwifruit per day was as effective as prunes or psyllium husk supplements for people with chronic constipation. Kiwifruit also caused fewer side effects like bloating, cramping, and pain compared to the other two options.
Fermented Foods and Gut Bacteria
Your gut bacteria play a direct role in how well your digestive system moves waste along. Fermented foods introduce beneficial bacteria that can improve both how often you go and the consistency of your stool. Research on specific bacterial strains found in fermented dairy products shows measurable improvements in constipation symptoms, including reduced straining, less abdominal discomfort, and more frequent bowel movements.
Fermented milk products like yogurt and kefir are the most studied delivery methods for these bacteria. You don’t need a specialty product. Regular yogurt with live active cultures, kefir, and even aged cheeses contain beneficial strains. Fermented vegetables like kimchi and sauerkraut offer additional options, though the research on constipation specifically is strongest for dairy-based fermented foods.
Prebiotic Foods That Feed Good Bacteria
Prebiotics are indigestible fibers that act as fuel for the beneficial bacteria already living in your gut. Think of them as fertilizer for the microbes doing the digestive work. When gut bacteria ferment these fibers, they produce compounds that help regulate intestinal movement and maintain a healthy balance between different bacterial populations.
The most effective prebiotic for constipation appears to be inulin, a fiber found naturally in several common foods. Good sources include garlic, onions, leeks, asparagus, bananas, apples, oats, flaxseed, and cocoa. You don’t need to eat these in large quantities. Cooking with garlic and onions regularly, snacking on bananas or apples, and starting your morning with oatmeal covers a lot of ground. These foods work best as a long-term habit rather than a quick fix, since it takes time for your gut bacteria population to shift in response to dietary changes.
Magnesium-Rich Foods
Magnesium helps contract the muscles lining your intestinal walls, which is part of the wave-like motion that pushes stool through your colon. At high enough doses, magnesium also draws water into the intestines, the same principle behind magnesium-based laxatives sold over the counter. While food sources deliver lower amounts than supplements, consistently eating magnesium-rich foods supports the muscle contractions that keep your digestive system on schedule.
The best food sources include pumpkin seeds, almonds, cashews, peanuts and peanut butter, black beans, cooked spinach, Swiss chard, brown rice, and dark chocolate (70% cocoa or higher). Many of these overlap with high-fiber foods, so a handful of almonds or a side of black beans is pulling double duty for your digestion.
Foods That Can Make Constipation Worse
What you remove from your diet matters nearly as much as what you add. Refined grains like white bread, white rice, and regular pasta have been stripped of most of their fiber during processing. Heavily processed snack foods, fast food, and frozen meals tend to be low in fiber and high in fat, which slows digestion.
Large amounts of dairy, particularly cheese and ice cream, can be binding for some people. Red meat is another common contributor because it’s fiber-free and often displaces plant foods from the plate. Alcohol and caffeine in excess can dehydrate stool by pulling water out of the colon. None of these foods need to be eliminated entirely, but if constipation is a recurring problem, reducing them while increasing the fiber-rich and sorbitol-containing foods above creates the biggest shift.
Putting It Together in Practice
You don’t need a complicated plan. A few targeted swaps can get most people to their fiber goal. Start your day with oatmeal topped with raspberries and a tablespoon of chia seeds, and you’re already at roughly 20 grams before lunch. Add a cup of lentil soup or a black bean bowl at another meal, and you’ve hit or exceeded the daily target for most adults.
Keep pears, kiwifruit, and prunes accessible for snacking. Use garlic and onions as a base for cooking. Choose whole-grain bread and pasta over refined versions. Drink water consistently throughout the day, especially as you increase fiber intake. These aren’t dramatic changes, but they address every mechanism your body uses to move food through efficiently: bulk, water retention, muscle contraction, and a well-fed population of gut bacteria doing their part.

