Why Is My Poop Green and Black? Causes Explained

Green and black stool usually comes from something you ate, drank, or swallowed as a supplement. Iron supplements alone can turn your poop dark green to black, and leafy greens can make it bright green. In most cases, the color shift is harmless and temporary. But certain combinations of color, texture, and smell can signal bleeding in the digestive tract, so it’s worth understanding what’s behind the change.

How Stool Gets Its Normal Color

Your liver produces bile, a yellow-green fluid that helps digest fats. As bile travels through your intestines, enzymes chemically break it down and gradually shift its color from green to brown. That process takes time. The average transit through the colon alone is 30 to 40 hours, with anything up to about 72 hours considered normal.

When food moves through your system faster than usual, such as during a bout of diarrhea, bile doesn’t fully break down. The result is stool that retains a green tint. This is one of the most common and least concerning reasons for green poop: your gut simply moved things along too quickly.

Foods That Turn Stool Green

Chlorophyll, the pigment that makes plants green, passes through your digestive system and can color your stool on the way out. The biggest culprits are dark leafy greens like spinach, kale, and broccoli, but the list extends to avocados, fresh herbs, matcha, and even pistachios. If you’ve recently eaten a large salad or a green smoothie, that’s likely your answer.

Artificial food dyes can do the same thing. Brightly colored frosting, candy, or sports drinks continue tinting whatever they touch as they move through your gut. Blue and purple dyes, when mixed with the natural yellow-green of bile, often produce green stool rather than the color you’d expect.

Why Iron Supplements Deserve Special Mention

Iron supplements sit at the intersection of green and black. They can turn stool anywhere from dark green to outright black, which is why they’re worth calling out specifically. If you recently started taking iron (or switched to a higher dose), that’s very likely the explanation for both colors showing up. Iron-fortified formula does the same thing in infants.

The color change from iron is harmless. It doesn’t mean the supplement is irritating your stomach or that something is wrong. It simply means unabsorbed iron is passing through.

Other Common Causes of Black Stool

Beyond iron, several everyday substances can stain stool black:

  • Bismuth subsalicylate (Pepto-Bismol). When bismuth meets the small amounts of sulfur naturally present in your saliva and gut, it forms bismuth sulfide, a black compound. This can darken both your tongue and your stool.
  • Activated charcoal. Used in some detox products and supplements, it passes through largely unchanged and turns stool very dark.
  • Dark-colored foods. Black licorice, blueberries, blood sausage, and other deeply pigmented foods can darken stool enough to look black or near-black.

In all of these cases, the stool may be dark but it won’t have an unusually foul smell, and it typically has a normal consistency.

When Black Stool Signals Bleeding

Black stool caused by bleeding in the upper digestive tract (the stomach or upper small intestine) has a medical name: melena. Blood that starts higher up in the gut gets digested as it travels downward, turning jet black by the time it reaches your stool. Melena looks and feels distinctly different from stool that’s simply been stained by food or supplements.

Three features set melena apart:

  • Texture. It’s tarry and sticky, almost like roofing tar. Stained-black stool from iron or Pepto-Bismol has a normal consistency.
  • Smell. Melena has a particularly strong, offensive odor that’s noticeably worse than typical stool. The smell comes from blood being broken down and digested. The longer blood has traveled through the GI tract, the darker and more pungent it becomes.
  • Color quality. Classic melena is jet black. A smaller amount of bleeding may look more dark brown than true black.

If your black stool is tarry, sticky, and unusually foul-smelling, and you haven’t been taking iron, bismuth, or charcoal, that combination of features points toward upper GI bleeding and warrants prompt medical evaluation. A simple stool test called a fecal occult blood test can confirm whether blood is present.

Antibiotics and Other Medications

Some antibiotics can tint stool yellow or green by disrupting the normal bacterial balance in your gut. Those bacteria play a role in the final stages of bile breakdown, so when antibiotics reduce their numbers, bile may not fully convert to its usual brown. The effect is temporary and resolves after you finish the course of medication.

Green and Black Stool in Babies

Newborns pass meconium, a thick, dark green to black substance, in the first few days of life. This is completely normal and clears within a day or two. After that transition, green stools are more common in formula-fed infants than breastfed ones, partly because many formulas are fortified with iron. If your baby’s pediatrician has recommended an iron-containing formula, dark green or blackish stools are an expected side effect, not a sign of a problem.

Figuring Out Your Specific Cause

Start with the simplest explanation. Think back over the last day or two: did you eat a lot of leafy greens, take an iron supplement, use Pepto-Bismol, or eat something with bright food coloring? If yes, give it a day or two. Once the food or supplement clears your system, your stool color should return to its typical brown.

If you’re also experiencing diarrhea, the green color may simply reflect rapid transit. Bile didn’t have enough time to complete its chemical conversion from green to brown. As your bowel movements normalize, the color will too.

The combination that calls for attention is black, tarry, sticky stool with a strong odor that you can’t trace to any food, supplement, or medication. That pattern, especially alongside lightheadedness, fatigue, or abdominal pain, suggests bleeding that needs medical investigation.