What Does It Mean If Your Pee Is Blue or Green?

Blue urine is almost always caused by something you ate, drank, or took as medication. It’s rare and can be startling, but in the vast majority of cases it’s harmless and temporary. Truly blue urine is uncommon enough that even many doctors have only seen it a handful of times, and when it does show up, a medication or food dye is nearly always the explanation.

Why Urine Turns Blue (or Blue-Green)

Normal urine gets its yellow color from a pigment called urochrome, a byproduct of your body breaking down red blood cells. When a blue-colored compound enters your bloodstream and gets filtered through your kidneys, it mixes with that yellow pigment on the way out. The result is often more green or teal than pure blue, depending on how concentrated your urine is and how much of the blue compound is present. Pure blue urine typically means a larger amount of the blue substance is overwhelming the natural yellow.

Medications Are the Most Common Cause

The single most likely reason for blue urine is a medication. Methylene blue is the classic culprit. It’s a blue dye with mild antiseptic properties, used in several bladder medications designed to reduce urinary irritation and inflammation. Your body absorbs it through the gut, and your kidneys excrete most of it in unchanged form, meaning it comes out still visibly blue. The color typically appears within two to six hours after taking it and can persist for up to 24 hours.

But methylene blue isn’t the only offender. A surprisingly long list of medications can tint urine blue or green, including:

  • Amitriptyline, a common antidepressant
  • Indomethacin, an anti-inflammatory pain reliever
  • Cimetidine, used for acid reflux
  • Propofol, an anesthetic used during surgery
  • Promethazine (Phenergan), an anti-nausea medication
  • Triamterene, a diuretic for high blood pressure
  • Sildenafil (Viagra)
  • Certain B vitamins in high doses

If you recently started a new medication or had a medical procedure involving anesthesia, that’s very likely your answer. In one documented case, green urine appeared about two hours after methylene blue was used during surgery and cleared up within roughly 10 hours.

Food Dyes and Supplements

Artificial food coloring is another common and completely harmless cause. Bright blue dyes found in candy, sports drinks, popsicles, frosting, and certain processed foods can pass through your system in high enough quantities to visibly tint your urine. The same goes for some dietary supplements, particularly those with added colorants. If you ate or drank something vividly colored in the past 12 to 24 hours, that’s worth considering before looking for a more complicated explanation.

Urinary Tract Infections

Certain bacteria that cause urinary tract infections produce pigments as a metabolic byproduct. Some strains of Pseudomonas, for example, can generate blue-green pigments that discolor urine. This is more commonly seen in people with urinary catheters. Studies of patients with long-term catheterization found that a related condition (purple urine bag syndrome, where bacterial pigments react in the collection bag) occurred in 8 to 17 percent of catheterized patients. In one study of elderly catheterized patients with dementia, 27 percent developed the discoloration.

If your blue or green urine comes with burning, urgency, fever, or foul smell, a bacterial infection is a real possibility. The discoloration itself is generally considered benign, but the underlying infection may need treatment, particularly in people with weakened immune systems where it can occasionally signal more serious complications.

Blue Diaper Syndrome

There is one rare genetic condition worth knowing about, mainly relevant to parents of newborns. Blue diaper syndrome is a familial metabolic disorder where an infant’s body can’t properly absorb the amino acid tryptophan from the gut. Bacteria in the intestines convert the unabsorbed tryptophan into a compound called indican, which turns blue when it hits the diaper. The condition is associated with high calcium levels in the blood and kidney problems. It’s extremely rare and would be identified in infancy, so it’s not a concern for adults noticing blue urine for the first time.

What to Do About It

Start by thinking through what you’ve consumed in the last day or two. Check your medications, including any over-the-counter supplements or bladder-related products. Look at what you ate, especially anything with intense artificial coloring. If you can trace the color to a medication or food, the urine should return to normal within 24 hours of stopping or processing the substance.

Blue or green urine that you can’t explain, that lasts more than a day or two, or that comes with other symptoms like pain, fever, or changes in how often you urinate is worth a medical evaluation. The same applies if you notice any red or pink tint mixed in, which could indicate blood. But for the vast majority of people who glance into the toilet and see an unexpected shade of blue, the answer is something they swallowed, and the color will be gone by tomorrow.