Reference guide

Foods and medications that change stool and urine color

A complete reference for every common cause of unexpected color changes in stool or urine — organized by what you see, with the mechanism, timing, and when it clears. If you already know what you ate, use the lookup tool for a direct answer.

Red and pink

5 entries

Dark and black

5 entries

Green

6 entries

Blue and purple

5 entries

Orange

3 entries

Quick-reference table

All entries sorted by clearance time. Click any name to open the full lookup result.

Name Color Onset Clears
Activated charcoal medBlackNext BM1–3 BMs
Acai foodBlue-purple6–12h24–36h
Broad-spectrum antibiotics medGreenDaysWhile taking
Beets foodRed / pink4–12h24–36h
Blackberries / elderberries foodBlue-black6–12h24–36h
Black licorice foodDark12–18h24–48h
Blueberries foodBlue / green6–18h24–48h
Carrots / sweet potato foodOrange (skin)WeeksWeeks
Dragon fruit (red) foodRed / pink6–12h24–48h
Green food dye foodGreen6–12h12–24h
Iron supplements medBlack / dark12–24hWhile taking
Matcha / spirulina / chlorella foodGreen6–12h12–24h
Metformin medGreen / looseDays2–4 weeks
Pepto-Bismol medBlack6–18hWhile taking
Phenazopyridine (AZO) medOrange (urine)1–2hWhile taking
Red / purple cabbage foodBlue / green6–12h24–36h
Red food dye (Red 40) foodRed / pink6–12h12–24h
Rifampin medOrange-red (all fluids)HoursWhile taking
Senna medYellow-green6–12h12–24h
Spinach / kale foodGreen6–16h24–36h
Squid ink foodBlack8–16h12–24h
Tomato juice / paste foodRed-orange8–18h24–36h
Ube (purple yam) foodPurple / blue6–12h24–36h

Frequently asked questions

What foods cause red or pink stool?

Beets are the most common culprit — the pigment betacyanin isn't fully broken down by about 1 in 7 people and passes through intact. Red-fleshed dragon fruit has the same pigment. Red food dye (Red 40) at high doses and large amounts of tomato paste can also cause reddish stool. These are all completely benign and clear within 24–48 hours.

What causes black stool other than blood?

Iron supplements are the most common benign cause — unabsorbed iron forms black iron sulfide in the gut and is expected on every iron supplement label. Activated charcoal causes dramatically black stool and clears in 1–3 bowel movements. Pepto-Bismol (bismuth subsalicylate) reacts with gut sulfur to form bismuth sulfide, also black. Large amounts of black licorice and squid ink pasta can darken stool as well. If you haven't consumed any of these, black or tarry stool warrants a call to your doctor.

Why is my stool green?

Green stool most often comes from large amounts of green foods — spinach, kale, matcha, spirulina, chlorella, or green food dye. It can also result from faster-than-normal gut transit, where bile doesn't fully break down before leaving the body (bile starts out green-yellow and turns brown as it's metabolized). Senna laxatives and metformin both cause this by speeding transit. Some antibiotics alter the gut bacteria that process bile, with the same effect.

What foods cause blue or purple stool?

Blueberries, blackberries, elderberries, acai, ube (purple yam), and red/purple cabbage all contain anthocyanins — pigments that partially survive digestion and can visibly color stool blue, purple, or blue-green. The effect is more pronounced with large servings. Red/purple cabbage is particularly interesting because its anthocyanins are pH-sensitive: they can appear blue, green, or purple depending on gut acidity.

Does beet-red stool mean something is wrong?

Not if you ate beets in the last 48 hours. The pigment betacyanin isn't broken down by about 1 in 7 people — it passes through intact and colors stool and urine pink or red. This is a quirk of individual gut chemistry, not a sign of illness. It clears within 24–36 hours of your last beet. The only reason to be concerned is if the red color appears without any dietary explanation — then it's worth calling your doctor.

What medications turn urine orange?

Rifampin (rifampicin), an antibiotic commonly used for tuberculosis, famously turns all body fluids orange — urine, sweat, tears, and saliva. Patients are warned about this in advance because it can permanently stain soft contact lenses. Phenazopyridine (sold as AZO) is a urinary pain reliever that turns urine a very bright orange and is used as a dye test to confirm urinary tract infections.

When to see a doctor

Color changes that have a clear dietary or medication explanation are virtually always benign. See a doctor if the color change has no obvious cause, if you're also experiencing abdominal pain, fever, or significant changes in how you feel, if black stool is sticky or tarry (different from the uniform black of charcoal or iron), or if red coloring appears in urine without a dietary explanation. When in doubt, a quick call to your doctor costs nothing and rules out the small number of cases where color change is a signal worth investigating.