Almonds, pistachios, and pecans are among the best nuts for constipation relief, thanks to their high fiber content and additional compounds that support digestion. A single ounce of almonds delivers about 3.5 grams of fiber, which is a meaningful contribution toward the 25 to 34 grams most adults need daily. But fiber isn’t the only reason nuts help keep things moving.
The Best Nuts Ranked by Fiber
Not all nuts are created equal when it comes to constipation. Based on USDA data, here’s how the most popular options compare per one-ounce serving (approximately 28 grams):
- Almonds: ~3.5 g of fiber per ounce (12.5 g per 100 g)
- Pistachios: ~3.0 g per ounce (10.6 g per 100 g)
- Pecans: ~2.7 g per ounce (9.6 g per 100 g)
- Walnuts: ~1.9 g per ounce (6.7 g per 100 g)
- Cashews: ~0.9 g per ounce (3.3 g per 100 g)
Cashews sit at the bottom of this list with less than a gram of fiber per serving, so they’re not a great choice if constipation is your main concern. Almonds and pistachios are clearly the top picks. If you eat a handful of almonds (about 20 nuts, or roughly 30 grams), you’re getting close to 4 grams of fiber in a single snack.
Why Fiber in Nuts Helps
Nuts contain both soluble and insoluble fiber, and the two work differently in your gut. Soluble fiber absorbs water and forms a gel-like substance that softens stool, making it easier to pass. Insoluble fiber adds bulk to stool and speeds its movement through your intestines. The combination is what makes high-fiber nuts effective for constipation rather than just one mechanism or the other.
Pistachios are particularly interesting here. They contain roughly 10% insoluble fiber by weight, with only about 0.3% soluble fiber. That heavy tilt toward insoluble fiber means pistachios are especially good at adding bulk and promoting faster transit through the digestive tract.
Almonds Have a Prebiotic Bonus
Almonds do something beyond just supplying fiber. The skins of almonds act as a prebiotic, feeding the beneficial bacteria in your gut. In a study where healthy adults ate about 56 grams of roasted almonds daily (roughly two ounces) for six weeks, researchers found significant increases in populations of Bifidobacterium and Lactobacillus, two bacterial groups closely linked to healthy digestion. Even almond skins alone, at just 10 grams per day, produced similar prebiotic effects.
This matters for constipation because a healthier gut microbiome supports more regular bowel movements. The bacteria break down fiber through fermentation, producing short-chain fatty acids that stimulate the muscles of the colon. So eating almonds with their skins on gives you fiber, prebiotic benefits, and the downstream effects of a better-nourished gut all at once.
Magnesium Adds a Natural Laxative Effect
Several nuts are rich in magnesium, a mineral that acts as a mild natural laxative. Magnesium draws water into the intestines through an osmotic effect, softening stool and making it easier to pass. This is the same principle behind magnesium-based laxatives you’d find at a pharmacy, just in a gentler, food-based form. Almonds and cashews are among the highest magnesium sources in the nut family.
A large analysis of data from the National Health and Nutrition Examination Survey found a clear association between higher dietary magnesium intake and lower rates of chronic constipation in U.S. adults. Beyond the osmotic effect, magnesium also triggers the release of certain gut hormones that stimulate intestinal movement. So even a nut like cashews, which is low in fiber, still contributes some constipation relief through its magnesium content.
How Much to Eat
A standard recommended serving is about 30 grams of nuts per day, which works out to roughly 20 almonds or 10 walnuts. This amount was used in large clinical trials and provides a solid boost of fiber, magnesium, and healthy fats without excessive calories. Most nuts run between 160 and 200 calories per ounce, so portion awareness matters if you’re watching your intake.
You can certainly eat more than one ounce if your digestive system tolerates it. Studies on nut consumption and gut health have used doses ranging from 42 to 99 grams per day. But jumping straight to large amounts can backfire. When a lot of undigested fiber and fat from nuts reaches your large intestine at once, bacteria ferment it, potentially causing bloating and gas. If you’re not used to eating nuts regularly, start with a small handful and increase gradually over a week or two.
Water Makes the Difference
Adding fiber without enough fluid can actually make constipation worse. Fiber needs water to do its job. In a clinical trial of 117 adults with chronic functional constipation, both groups ate about 25 grams of fiber per day. The group that also drank about 2 liters of water daily had significantly better results in stool frequency and laxative reduction compared to the group drinking only about 1 liter. The takeaway is straightforward: if you’re adding nuts to your diet for constipation, aim for 1.5 to 2 liters of water throughout the day.
Putting It Together
The most effective approach is choosing the highest-fiber nuts and eating them consistently as part of your daily routine. Almonds with skins on are the strongest all-around option, combining top-tier fiber, prebiotic benefits, and high magnesium. Pistachios are a close second, with their heavy insoluble fiber content promoting faster transit. Pecans are a solid third choice.
For context, over 90% of women and 97% of men in the U.S. fall short of their daily fiber goals. A single serving of almonds covers about 12 to 15% of most adults’ recommended fiber intake. That’s a meaningful dent from one small snack. Pair your nuts with other fiber-rich foods like fruits, vegetables, and whole grains, drink plenty of water, and the cumulative effect on regularity can be substantial.

