Green urine is almost always caused by something you ate, drank, or a medication you’re taking. It looks alarming, but in most cases it’s harmless and clears up on its own within a day or two. Less commonly, green urine can signal a urinary tract infection or a problem with bile flow from the liver.
Food Dyes Are the Most Common Cause
Your urine is naturally yellow because of a pigment called urochrome. When you consume foods or drinks containing bright artificial dyes, especially blue or green ones, those dyes mix with the yellow pigment and can turn your urine green. The culprits are often things you wouldn’t suspect: brightly frosted cupcakes, green beer on St. Patrick’s Day, lime-flavored sports drinks, certain cereals, and candies. Even some health supplements and green smoothie powders with added coloring can do it.
Asparagus is one natural food that can give urine a greenish tint in some people. This is separate from the well-known asparagus smell and has to do with how your body processes certain plant pigments. If you ate something with vivid coloring in the last 12 to 24 hours, that’s very likely your answer. The color should return to normal once the dye works its way through your system, typically within one to three bathroom trips after you stop eating the offending food.
Medications That Turn Urine Green
Several prescription and over-the-counter medications can change your urine to a green or blue-green color. This is a known, harmless side effect of how your body breaks down certain compounds. Common examples include:
- Propofol: a sedative used during surgery. Green urine occurs in less than 1% of patients receiving it, according to research in the Netherlands Journal of Medicine, and resolves after the drug is cleared from the body.
- Amitriptyline: an antidepressant sometimes prescribed for chronic pain or migraines.
- Indomethacin: an anti-inflammatory drug used for conditions like gout and arthritis.
- Promethazine: an anti-nausea medication.
- Cimetidine: a heartburn and acid reflux drug.
If you recently started a new medication and noticed the color change, check the drug’s side effects list or ask your pharmacist. The green color doesn’t mean the medication is harming your kidneys or bladder. It simply means your body is metabolizing the drug and excreting colored byproducts. Your urine will return to its normal shade once you stop the medication or your body adjusts.
Urinary Tract Infections
Certain bacteria that cause urinary tract infections produce pigments as a metabolic byproduct. Pseudomonas bacteria, in particular, are known for creating a blue-green pigment that can visibly tint your urine. This type of UTI is less common than a standard one, but it does happen, especially in people with catheters or compromised immune systems.
The key difference between a harmless cause and an infection is the presence of other symptoms. If your green urine comes with burning during urination, a frequent urgent need to go, cloudy or foul-smelling urine, lower abdominal pain, or fever, a bacterial infection is much more likely. A simple urine test can confirm or rule this out quickly.
Bile and Liver Problems
In rarer cases, green urine points to a problem with how your liver processes bile. Your liver produces a green pigment called biliverdin as part of its normal recycling of old red blood cells. Normally, biliverdin is converted into bilirubin (which is yellow-brown) and excreted through your stool, giving it its characteristic color. When bile flow is blocked or liver function is impaired, biliverdin can build up and spill into the urine instead.
Conditions that can cause this include gallstones blocking the bile duct, cholestasis (a slowdown or blockage of bile flow from the liver), and significant liver dysfunction. The NIH notes that elevated biliverdin levels can cause green discoloration of urine, skin, and even the whites of the eyes. These are serious conditions with other obvious symptoms: yellowing skin, pale or clay-colored stools, upper right abdominal pain, nausea, and fatigue. Green urine from a bile problem won’t appear in isolation.
Rare Genetic Conditions
A handful of rare metabolic disorders can produce blue or green urine, most notably in infants. Blue diaper syndrome is an inborn error of metabolism where an infant’s body can’t properly absorb the amino acid tryptophan. Bacteria in the gut break down the excess tryptophan into a compound called indican, which turns blue or blue-green when it hits the diaper. This is typically identified very early in life and is not something that suddenly appears in adults.
How to Figure Out Your Cause
Start with the simplest explanation. Think back over the past 24 hours: did you eat anything with bright food coloring, drink a heavily dyed beverage, or take a new supplement? If so, drink a few extra glasses of water and see if the color clears by your next few trips to the bathroom. For most people, this is where the investigation ends.
If you’re on any of the medications listed above, the connection is straightforward. No action is needed unless the color bothers you enough to discuss alternatives with your prescriber.
Green urine that persists for more than two days without an obvious dietary or medication explanation deserves attention, especially if it comes alongside pain, burning, fever, nausea, or changes in your stool color. A urine test and basic blood work can quickly distinguish between an infection and a bile flow issue. Isolated green urine with no other symptoms and an obvious trigger is, in almost every case, nothing to worry about.

