Blue urine is almost always caused by something you consumed, whether that’s a medication, a food dye, or a supplement. It looks alarming, but in the vast majority of cases, it’s harmless and temporary. The color comes from pigments or chemical byproducts that your kidneys filter out and dump into your urine, tinting it blue or blue-green.
Medications That Turn Urine Blue
Several common prescription and over-the-counter drugs can change your urine to shades of blue, green, or blue-green. The most well-known culprits include amitriptyline, an antidepressant that produces a greenish-blue tint, and cimetidine, used for ulcers and acid reflux. Indomethacin, a pain and arthritis medication, can push urine toward green or blue-green.
Methylene blue is another frequent cause. It’s used as both a medical dye during certain diagnostic procedures and as a treatment for specific conditions. If you’ve had a procedure involving methylene blue, your urine can turn a vivid, almost electric blue. This typically clears within a day or two as the dye passes through your system.
Propofol, the sedation drug commonly used during surgeries and ICU stays, can also cause green or blue-green urine. This happens because the liver produces phenolic byproducts as it breaks down the drug, and those byproducts get excreted through the kidneys. In reported cases, the discoloration showed up about two days after the infusion started and resolved on its own once the medication was stopped.
If you recently started a new medication and noticed the color change, that connection is very likely the explanation. The discoloration stops once the drug leaves your body.
Food Dyes and Supplements
Artificial food dyes, particularly bright blue and green ones found in candy, sports drinks, frosting, and processed snacks, can pass through your digestive system and tint your urine. The effect is more pronounced if you consumed a large amount or if you’re well-hydrated, since dilute urine makes unusual colors more visible against the pale background.
Certain multivitamins and supplements can contribute as well, especially those with added colorants. If you recently ate or drank something with a strikingly blue or green color, that’s the most likely explanation, and it should resolve within one to two urinations.
Blue Diaper Syndrome in Infants
In rare cases, parents notice a blue stain on their baby’s diaper. This can point to a condition called blue diaper syndrome, also known as tryptophan malabsorption syndrome. It stems from a defect in the way the intestines absorb tryptophan, an amino acid found in protein-rich foods like breast milk and formula.
When tryptophan isn’t properly absorbed, it stays in the gut, where bacteria break it down into a compound called indican. Indican and related byproducts end up in the urine and, once exposed to air, oxidize into a blue pigment (the same chemical family as indigo dye). The condition is associated with elevated calcium levels in the blood. It’s extremely rare and is typically identified in infancy. If you notice persistent blue staining in your baby’s diaper, a pediatrician can run tests to check for this.
Bacterial Infections
Certain bacteria, particularly Pseudomonas species, produce pigments as a natural byproduct of their metabolism. A urinary tract infection caused by these bacteria can occasionally give urine a blue-green hue. This is uncommon in otherwise healthy people but is seen more often in hospital settings, particularly in patients with catheters. You’d typically also have other signs of a UTI, like burning, urgency, cloudiness, or a strong odor.
How to Tell If It’s Serious
The simplest way to narrow down the cause is to think about what you’ve consumed in the last 24 to 48 hours. If you can trace the timing to a new medication, a brightly colored food, or a recent medical procedure, the blue color is almost certainly benign. It should clear up on its own once the substance works its way out of your system.
Blue urine is more worth investigating if it persists beyond a few days with no obvious dietary or medication explanation, if it’s accompanied by pain, fever, or a foul smell (suggesting infection), or if it appears in an infant’s diaper repeatedly. In those situations, a standard urinalysis can help identify whether the color is coming from a dye, a metabolic byproduct, or bacteria. The test is quick and non-invasive, just a urine sample.
For most people who land on this page after a startling trip to the bathroom, the answer is straightforward: something you ate, drank, or took as a medication is passing through your kidneys and painting your urine on the way out. It looks dramatic, but your body is doing exactly what it’s supposed to do.