Vitamin B12 deficiency on its own is not a well-established direct cause of stool color changes. There is no clinical guideline or strong body of evidence linking low B12 levels to a specific shift in stool appearance the way, say, iron supplements are known to turn stool black. But the picture gets more interesting when you consider that B12 deficiency rarely happens in a vacuum. The diseases and digestive disruptions that cause B12 deficiency frequently do alter stool color, sometimes dramatically, which is likely why so many people notice both problems at once and wonder whether one caused the other.
What Actually Determines Stool Color
Normal stool gets its brown color from a pigment called stercobilin. This pigment is the end product of a chain that starts with old red blood cells being broken down in the spleen and liver, releasing a yellow-green compound called bilirubin. Bilirubin is secreted into the intestine via bile, and bacteria in the gut convert it through several steps into stercobilin, which is brown. Anything that disrupts this chain, whether by changing how much bilirubin reaches the gut, altering the bacterial populations that process it, or speeding food through the intestines before conversion can finish, will shift stool color. Pale or clay-colored stool usually signals that bile is not reaching the intestines properly. Very dark or tarry stool can indicate bleeding higher in the digestive tract. Green stool often means food moved through too quickly for bacterial conversion to finish.
With that framework in mind, the question becomes whether B12 deficiency interferes with any of those steps. The short answer is: not in a clinically meaningful, direct way. But the conditions that deplete B12 often wreak havoc on the same digestive plumbing that controls bile flow, fat absorption, and transit time.
When Crohn’s Disease Is the Underlying Culprit
The terminal ileum, the very last stretch of your small intestine, is the only place where B12 is actively absorbed. It is also where bile acids are reabsorbed and recycled. When Crohn’s disease inflames or damages this region, both systems break down at the same time. A study of patients with ileal Crohn’s disease found that abnormal bile-acid metabolism and impaired B12 absorption each showed up in a large share of patients, and combining multiple tests identified disturbances in about two-thirds of them.
When bile acids are not properly reabsorbed, they spill into the colon, where they irritate the lining and pull water into the stool. This can cause diarrhea that is often watery and may appear lighter or more yellow-green than normal. At the same time, poor bile acid recycling means less bile is available for the next round of digestion, which hampers fat absorption. The resulting fatty stool, called steatorrhea, tends to be pale, greasy, foul-smelling, and may float. So a person with ileal Crohn’s disease can easily experience both B12 deficiency and noticeably abnormal stool at the same time, not because the B12 shortage changed the stool, but because both problems stem from the same damaged stretch of intestine.1PubMed. Tests of bile-acid and vitamin B12 metabolism in ileal Crohn’s disease
Pancreatic Insufficiency and Pale, Fatty Stools
The pancreas plays a less obvious but critical role in B12 absorption. Before B12 can latch onto the receptor in the terminal ileum, it needs to be handed off from one carrier protein to another, a step that depends on pancreatic enzymes. When the pancreas is not producing enough digestive enzymes, a condition called exocrine pancreatic insufficiency, B12 absorption drops significantly. Research has shown that blocking pancreatic secretion leads to a dramatic decline in cobalamin uptake, and that simply adding oral pancreatic enzyme supplements does not fully restore it.2American Journal of Veterinary Research. Effect of exocrine pancreatic insufficiency on cobalamin absorption in dogs
Pancreatic insufficiency is also one of the classic causes of steatorrhea. Without enough lipase to break down dietary fat, undigested fat passes through to the stool. The result is bulky, pale, oily stool that may leave a greasy film in the toilet bowl. People with chronic pancreatitis, cystic fibrosis, or other causes of pancreatic insufficiency often develop both B12 deficiency and this characteristic pale stool. Again, B12 deficiency did not cause the color change. Rather, the failing pancreas caused both problems simultaneously.
Autoimmune Gastritis and the Iron Connection
Autoimmune gastritis is one of the most common medical causes of severe B12 deficiency. In this condition, the immune system attacks the parietal cells lining the stomach. These cells do two important jobs: they produce the intrinsic factor protein needed for B12 absorption, and they secrete hydrochloric acid. When they are destroyed, you lose B12 absorption and acid production at the same time.3PubMed Central. Autoimmune gastritis
The loss of stomach acid matters for stool color through an indirect route. Without adequate acid, the body cannot properly absorb inorganic iron from food. Iron deficiency is commonly found alongside B12 deficiency in people with autoimmune gastritis. Iron deficiency on its own does not typically change stool color in a recognizable way, but when a doctor diagnoses the iron deficiency and prescribes iron supplements, those supplements very frequently turn stool black or very dark green. So a person with autoimmune gastritis might experience the following chain of events: they develop B12 deficiency and iron deficiency together, start taking iron supplements, and notice their stool turning black. They may reasonably wonder whether it was the B12 deficiency that changed things, when in fact it was the iron supplement treating the co-existing iron deficiency.
This scenario is worth understanding because autoimmune gastritis is a condition where B12 deficiency, iron deficiency, and stool changes frequently overlap in the same patient, creating an easy-to-make but incorrect causal link between B12 and stool color.
Metformin, B12, and Gastrointestinal Symptoms
Millions of people take metformin for type 2 diabetes, and accumulating evidence links long-term metformin use with B12 deficiency.4PubMed Central. Vitamin B12 Deficiency in Patients Taking Metformin: Pathogenesis and Recommendations Metformin is also notorious for causing gastrointestinal side effects, particularly diarrhea, nausea, and changes in bowel habits, especially in the first weeks of use or at higher doses. Diarrhea from metformin can make stool appear lighter, looser, or greenish because food transits the gut too quickly for full bile pigment conversion.
A person taking metformin who develops B12 deficiency might notice both neurological symptoms of B12 shortage (tingling, fatigue, cognitive fog) and abnormal stool at the same time. The temptation is to blame the B12 deficiency for all of it, but the stool changes are almost certainly a direct gastrointestinal effect of the drug, not a downstream consequence of the B12 depletion. This is another situation where correlation looks like causation because the same medication is driving both problems through different mechanisms.
Can B12 Supplements Change Stool Color?
Some people report changes in stool color after starting B12 supplements, particularly injectable or high-dose oral forms. Anecdotal reports include darker stool or occasionally a reddish tint. However, there is no strong clinical evidence that B12 supplementation alone causes meaningful stool color changes. B12 is a water-soluble vitamin, and excess amounts are excreted primarily through urine, which is why high-dose B12 often turns urine bright pink or red. A small amount does pass through the digestive tract, and the cobalt-containing structure of the molecule gives it a deep red color, but the quantities involved are tiny compared to the pigments already present in stool.
If you start a B12 supplement and notice your stool turning black, it is worth checking whether the supplement also contains iron or whether you are taking an iron supplement alongside it. Many multivitamins and prenatal vitamins bundle B12 with iron, and the iron is almost certainly what is darkening the stool. Pure B12 supplements without iron are unlikely to produce a visible color shift.
When Stool Color Actually Warrants Concern
Stool color varies naturally based on what you eat. Beets can produce alarming red tones, spinach or kale can push things toward green, and blueberries can darken stool significantly. These diet-driven shifts are harmless. The colors that should prompt a call to your doctor have nothing to do with B12:
- Black, tarry stool: If you are not taking iron supplements or bismuth-containing medications like Pepto-Bismol, black tarry stool can indicate bleeding in the upper digestive tract.
- Bright red stool: This can signal bleeding lower in the colon or rectum, though it can also come from beets or red food dye.
- Pale or clay-colored stool: Persistently white or pale stool suggests bile is not reaching the intestine, which can indicate a bile duct obstruction, liver disease, or pancreatic problems.
- Greasy, floating stool: When this is persistent and accompanied by weight loss, it points toward fat malabsorption from pancreatic insufficiency, celiac disease, or other conditions affecting the small intestine.
If you have confirmed B12 deficiency and are also noticing unusual stool color, the stool change is more likely a clue to the underlying cause of your B12 deficiency than a result of the deficiency itself. Pale, fatty stool points toward a malabsorption problem in the small intestine or pancreas. Frequent loose stool could suggest Crohn’s disease, celiac disease, or bacterial overgrowth. These are conditions that impair B12 uptake and independently alter stool appearance.
Megaloblastic Anemia and an Indirect Theoretical Pathway
There is one theoretical mechanism by which severe B12 deficiency could subtly influence stool color, though it is unlikely to produce a change you would notice with your eyes. In B12 deficiency, the bone marrow produces abnormally large, dysfunctional red blood cells, a condition called megaloblastic anemia. Part of this process involves ineffective erythropoiesis, where many red blood cell precursors die before maturing. When these precursors break down, they release extra bilirubin into the bloodstream, which eventually reaches the gut via bile.
In theory, the extra bilirubin could slightly increase the amount of stercobilin in the stool, making it marginally darker. In practice, this effect is small compared to the normal daily turnover of red blood cells, and it would be imperceptible against the backdrop of everything else that influences stool color on a given day. No clinical reference identifies “darker stool” as a sign of megaloblastic anemia. This pathway exists in biochemistry textbooks but does not translate into a visible symptom you would ever notice or a doctor would ever use diagnostically.
Small Intestinal Bacterial Overgrowth
Small intestinal bacterial overgrowth, often called SIBO, is another condition that can cause B12 deficiency and stool changes at the same time. In SIBO, bacteria that normally live in the colon proliferate in the small intestine, where they consume B12 before your body can absorb it. These same bacteria ferment carbohydrates, producing gas and drawing water into the intestine. The result is bloating, diarrhea, and sometimes stool that appears lighter or more yellow than usual because of the excess water content and rapid transit time.
SIBO is particularly common in people with conditions that slow intestinal motility, such as diabetes, scleroderma, or prior abdominal surgery. It can also develop after long-term proton pump inhibitor use, which reduces stomach acid and allows bacteria to survive the passage from mouth to small intestine. Because SIBO can be treated with targeted antibiotics, identifying it as the cause of both B12 deficiency and stool changes matters practically. Treating the bacterial overgrowth can resolve both problems at once, whereas simply supplementing B12 would leave the stool symptoms and the underlying cause untouched.
Celiac Disease and the Overlap
Celiac disease damages the lining of the small intestine when a person eats gluten. While the damage is most severe in the upper small intestine, it can extend far enough to affect B12 absorption in the terminal ileum in some cases. More commonly, celiac disease causes iron and folate deficiency because those nutrients are absorbed higher up, but B12 deficiency has been documented in a subset of celiac patients, particularly those with extensive intestinal involvement.
The stool changes in celiac disease are often distinctive: pale, bulky, foul-smelling, and fatty due to fat malabsorption. These changes are driven by the damaged intestinal lining’s inability to absorb nutrients and fats efficiently. A person diagnosed with B12 deficiency who also has this type of stool pattern should be evaluated for celiac disease, especially if they also have iron or folate deficiency, unexplained weight loss, or a family history of autoimmune conditions.
Why the Confusion Persists
The persistent belief that B12 deficiency changes stool color likely comes from the fact that B12 deficiency is so rarely an isolated finding. Almost every condition that causes B12 deficiency also disrupts some other aspect of digestion that does affect stool appearance. Crohn’s disease disrupts bile acid recycling. Pancreatic insufficiency causes fat malabsorption. Autoimmune gastritis leads to co-existing iron deficiency and subsequent iron supplementation. SIBO produces diarrhea. Celiac disease causes steatorrhea. Metformin causes loose stool directly.
When you experience two symptoms at the same time, the brain naturally assumes one caused the other. In this case, the relationship is not B12 deficiency causing stool changes but rather a shared upstream cause producing both. Recognizing this distinction matters because it changes what you do about it. If you are supplementing B12 but ignoring the stool changes, you might be missing an underlying condition that needs its own treatment. The stool changes are often the more diagnostically useful symptom, pointing your doctor toward the right tests to figure out why your B12 dropped in the first place.