Why Is My Poop Sandy? Potential Causes Explained

Sandy or gritty-textured stool usually comes from something you ate, swallowed, or took as a supplement rather than from a serious underlying condition. Seeds, nuts, certain grains, fiber supplements, and mineral-based medications are the most frequent culprits. That said, a persistent sandy texture that shows up without an obvious dietary explanation can sometimes point to fat malabsorption, gallbladder issues, or other digestive problems worth investigating.

Undigested Food Particles Are the Most Common Cause

Your digestive system is good at breaking down most of what you eat, but it does not dissolve everything. Tiny seeds from strawberries, tomatoes, kiwi, raspberries, and figs pass through the gut largely intact. Sesame seeds, poppy seeds, chia seeds, and flaxseeds often do the same, especially if they were not chewed thoroughly or ground before eating. When these collect in your stool, the result can look and feel distinctly sandy or gritty.

Whole grains and high-fiber foods can produce a similar effect. Quinoa, millet, and amaranth are small enough to escape thorough chewing, and their outer hulls resist digestion. Corn kernels are another classic offender because their cellulose shells are indigestible. If you recently ate a grain bowl, a seeded bagel, or a handful of trail mix and then noticed grit in your stool, the connection is almost certainly direct.

The simplest test is to change what you eat for a couple of days. Cut out seeds, seeded fruits, and whole grains for 48 to 72 hours. If the sandy texture disappears, you have your answer. There is nothing wrong with you; your gut just did its job on the parts it could break down and passed the rest.

Supplements and Medications That Leave Gritty Residue

Certain supplements and over-the-counter medications create a sandy appearance in stool because they are not fully absorbed. Iron supplements are a well-known example. Ferrous sulfate and ferrous gluconate tablets can leave dark, gritty particles in stool, and they also tend to turn stool black or very dark green, which makes the gritty bits more noticeable.

Calcium supplements, particularly calcium carbonate, sometimes pass partially undigested. If you take a large dose or if your stomach acid levels are low, the tablet may not dissolve completely. The chalky remnants can show up as pale, sandy specks. Magnesium oxide supplements behave similarly because they are poorly absorbed even under ideal conditions.

Fiber supplements deserve special mention. Psyllium husk, methylcellulose, and other bulking agents are designed to add bulk and texture to stool. When they are taken without enough water, they can clump into grainy particles rather than forming a smooth gel. Drinking at least a full glass of water with any fiber supplement usually prevents this.

Some antacids contain calcium carbonate or aluminum hydroxide, and frequent use can leave residue in stool. If you have been taking antacids daily for heartburn and notice a new sandy texture, the antacid itself is a plausible explanation.

Fat Malabsorption and Steatorrhea

When your body cannot properly digest and absorb fats, the undigested fat ends up in your stool. This condition, called steatorrhea, produces stools that are pale, bulky, oily, and sometimes grainy or gritty in texture. The gritty feeling comes from fatty deposits and undigested food particles that would normally have been broken down by bile and pancreatic enzymes.

Bile acids play a central role in fat digestion. They are produced by the liver, stored in the gallbladder, and released into the small intestine to emulsify fats so enzymes can break them down. When this process is disrupted, fat passes through undigested. Bile acid diarrhea, a condition where the gut loses excessive amounts of bile acids, involves a disruption in the feedback loop that controls bile acid production, leading to a six- to seven-fold increase in bile acid synthesis and fluid secretion in the colon.1PubMed Central. Bile acid diarrhoea: pathophysiology, diagnosis and management The resulting diarrhea can carry undigested material that looks sandy or grainy.

Pancreatic insufficiency is another common cause. The pancreas produces lipase, the enzyme that digests fat. Conditions like chronic pancreatitis, cystic fibrosis, or pancreatic duct blockages reduce lipase output, leaving fat undigested. Celiac disease and Crohn’s disease can damage the lining of the small intestine enough to impair fat absorption as well. If you are seeing persistently pale, greasy, foul-smelling stool with a gritty texture, especially if it floats, fat malabsorption is a strong possibility worth discussing with a doctor.

Gallbladder Problems and Biliary Sludge

Your gallbladder concentrates and stores bile between meals, then contracts to release it when you eat. Sometimes the bile in the gallbladder thickens into a sludge made up of cholesterol crystals, calcium salts, and mucin. This biliary sludge can affect digestion and, in some cases, contribute to changes in stool texture.

Biliary sludge is more common than many people realize, and its course is unpredictable. Studies show that it resolves on its own in roughly 40% of patients, follows a pattern of appearing and disappearing in another 40%, and progresses to actual gallstones in about 20%.2PubMed Central. Similarities and differences between biliary sludge and microlithiasis: Their clinical and pathophysiological significances Most people with biliary sludge have no symptoms at all, but when it does cause problems, it can lead to pain in the upper right abdomen, nausea after fatty meals, and changes in stool color or consistency.

If the bile duct is partially blocked by sludge or a stone, less bile reaches the intestine. That means less fat gets digested, and the stool may become lighter in color and grittier in texture. Complete bile duct obstruction produces clay-colored or very pale stool, which is a red flag that warrants prompt medical attention. Partial blockages are subtler, sometimes just producing stools that are a shade lighter than usual with an odd, grainy quality.

Barium Residue After Medical Imaging

If you recently had a barium swallow, barium enema, or upper GI imaging study, sandy or chalky stool in the following days is expected. Barium sulfate is a dense white contrast agent that coats the lining of your digestive tract so it shows up on X-rays. It is not absorbed into the body and passes out in your stool over the next few days.

Barium-laden stool tends to be white or very light gray and can have a distinctly gritty or sandy consistency. The barium normally passes through without depositing in the intestinal wall, though mucosal injury can occasionally allow small amounts to become embedded in the gut lining.3PubMed Central. Barium Sulfate Deposition in the Gastrointestinal Tract: Review of the literature For the vast majority of people, the gritty barium stool clears within two to three days. Drinking plenty of water and eating fiber-rich foods helps move it through more quickly. If you are still seeing white or chalky stool a week after the procedure, or if you develop constipation and abdominal pain, let the clinic know.

Mineral Deposits and Intestinal Stones

In rare cases, gritty material in stool can come from mineral deposits that form inside the intestine itself. Intestinal stones, sometimes called enteroliths, are hardite accumulations of calcium and other minerals that develop in the gut. When they break apart or erode, they can release gritty fragments into the stool.

Analysis of these intestinal stones shows they are predominantly made of calcium oxalate, with calcium dihydrate oxalate accounting for about 85% and calcium monohydrate oxalate making up roughly 10% of their composition.4SAGE Open Medical Reports. Intestinal stones: A rare cause of bowel obstruction These stones form most often in people with intestinal diverticula, surgical pouches, or areas of the bowel that do not empty properly. If stagnant intestinal contents sit long enough, minerals can crystallize.

Intestinal stones are genuinely uncommon, and they are far more likely to cause obstruction symptoms like cramping, bloating, and inability to pass stool than to simply shed grit. But in people with known diverticula or prior bowel surgery, small mineral fragments in the stool are possible. If you are passing what looks like sand or tiny stone fragments along with significant abdominal pain, an imaging study can determine whether an enterolith is responsible.

Pica and Geophagia

This one may seem obvious, but it is clinically significant: if someone is eating dirt, sand, clay, or chalk, those materials pass through the digestive tract and show up in stool. This behavior, known as pica when it involves non-food substances, is more common than many people expect. It occurs in young children who explore the world by putting things in their mouths, in pregnant women (particularly craving clay or starch), and in people with iron deficiency anemia or certain developmental conditions.

Geophagia, the specific practice of eating earth or clay, has been documented across cultures and throughout history. Some traditional practices involve eating specific types of clay for perceived health benefits. But consuming soil or sand can cause real digestive problems, including constipation, fecal impaction, and even intestinal blockages. Sand and clay do not break down in the gut; they accumulate and compact, especially if consumed in large quantities.

If a child’s stool contains visible sand or grit and they have access to a sandbox or play in dirt, ingestion is the likely explanation. In adults, pica can be a sign of nutritional deficiency. Iron levels, zinc levels, and a general nutritional workup are reasonable first steps when pica is suspected.

Parasites and Infections

Certain intestinal infections can alter stool texture in ways that might be described as sandy. Parasitic infections in particular can cause mucus-laden, gritty stool. Giardia, a waterborne parasite, produces foul-smelling, greasy diarrhea that sometimes has a grainy quality because of the high fat content passing through unabsorbed. Cryptosporidium can produce a similar pattern.

Severe bacterial infections that damage the intestinal lining can cause sloughing of mucosal tissue, which sometimes appears as small flecks or particles in loose stool. This is different from the sandy texture caused by seeds or supplements; it tends to be accompanied by cramping, fever, and watery or bloody diarrhea. Travel to areas with unsafe water, recent antibiotic use, and exposure to contaminated food are all risk factors for these infections.

If sandy stool appeared after traveling, after swimming in untreated water, or alongside symptoms like persistent diarrhea, bloating, and gas, a stool test for parasites and bacterial pathogens can clarify the cause.

Mucus Strands and How They Mimic Grit

Sometimes what looks like sand is actually mucus. The intestines produce mucus constantly to lubricate stool as it moves through the colon. You normally do not notice it because it is transparent and well-mixed with stool. But when the gut is inflamed or irritated, mucus production increases, and it can separate out into visible strands or clumps. Dried or semi-dried mucus clumps can have a surprisingly gritty feel and appearance.

Irritable bowel syndrome, food intolerances, and mild infections all increase mucus output. Inflammatory bowel diseases like ulcerative colitis and Crohn’s disease produce even more mucus, often mixed with blood. If you are seeing what you think is sandy material but it has a slightly slimy or translucent quality, mucus is the more likely explanation. Unlike actual grit from food or supplements, mucus will dissolve or break apart if you run water over it. That is a crude but effective way to tell the difference.

When to Talk to a Doctor

Most sandy-textured stool is benign and diet-related. But certain patterns deserve medical attention sooner rather than later:

  • Pale or clay-colored stool: Consistently light stool suggests a bile flow problem, potentially from a gallstone, biliary sludge, or a blockage in the bile duct. This is not something to wait on.
  • Oily, floating stool: If stool is greasy, floats, and has a gritty texture, fat malabsorption is likely. The underlying cause needs to be identified because it often involves the pancreas, gallbladder, or small intestine.
  • Weight loss or nutritional deficiencies: Sandy stool paired with unintentional weight loss, fatigue, or signs of vitamin deficiency (easy bruising, bone pain, mouth sores) suggests your gut is not absorbing nutrients properly.
  • Blood in stool: Any visible blood, whether bright red or dark and tarry, alongside a change in stool texture warrants investigation.
  • Persistent change lasting weeks: A few days of sandy stool after eating a bag of sunflower seeds is nothing. Weeks of gritty stool with no clear dietary explanation is worth checking out.

A basic workup typically includes stool tests for fat content, parasites, and blood; blood tests for pancreatic enzymes, liver function, and celiac markers; and sometimes imaging of the gallbladder and bile ducts. Most of these tests are straightforward and can quickly narrow down whether the sandy texture is harmless or a sign of something that needs treatment.

Stool Color and Texture as Informal Diagnostics

The sandy texture question fits into a broader reality about stool: its appearance carries useful information, even if it is not a topic most people enjoy thinking about. Color, consistency, and buoyancy all reflect what is happening in your digestive tract. Medium-brown stool that holds together and passes easily is the baseline. Deviations from that baseline are your body’s way of flagging changes in diet, hydration, bile flow, enzyme activity, or gut transit time.

Stool that is yellow and greasy points toward fat malabsorption. Very dark or black stool can indicate iron supplements or upper gastrointestinal bleeding. Green stool usually reflects either a lot of leafy greens in the diet or food moving through the colon too quickly for bile to be fully broken down. And sandy or gritty stool, as discussed above, is most often a food or supplement artifact. Paying casual attention to these patterns is one of the easiest, cheapest forms of health monitoring available. You do not need a chart or an app. You just need to notice when something changes and whether it resolves on its own or sticks around.