Medications That Turn Urine Blue: Amitriptyline & More

Quick Answer

Several medications can turn urine blue or blue-green. The best-known examples are amitriptyline, a tricyclic antidepressant, and cimetidine, an acid-reducing drug. Other drugs linked to blue urine include propofol, indomethacin, triamterene, and methylene blue.

In most cases, medication-related blue urine is harmless and reverses when the drug is stopped. The color becomes worth checking when it persists after the medication ends, or when it comes with fever, burning, urgency, or flank pain, which can point to infection rather than a drug effect. Use the blue or green urine guide to compare your shade, and read on for which medications cause it and when to call a doctor.

Why These Medications Turn Urine Blue

Urine color comes from urochrome, a pigment produced when your body breaks down old red blood cells. Most drug-related color changes happen because the drug itself, or a breakdown product, is excreted in urine and carries a visible tint. The color is a side effect of elimination, not a sign of kidney damage.

Drug-induced blue urine usually follows a predictable pattern:

  • It appears within hours to a day of starting the medication.
  • It is consistent while you take the drug and fades after you stop.
  • It is not accompanied by pain, fever, or urinary symptoms unless a separate problem is present.

Knowing which drugs are responsible helps you avoid unnecessary worry—and helps you recognize when a color change is not explained by medication at all.

Amitriptyline: The Antidepressant

Amitriptyline is a tricyclic antidepressant used for depression, nerve pain, migraine prevention, and some sleep problems. It has been reported to cause blue-green urine in some people. The effect is uncommon but well documented, and it is not dangerous on its own.

If you take amitriptyline and notice a blue or green tint, the drug is a reasonable first suspect. Do not stop the medication on your own—talk to your prescriber about the color change and whether any adjustment is needed. The amitriptyline urine guide covers the full range of urinary effects, including what to expect after stopping.

Cimetidine: The Acid Reducer

Cimetidine is an H2 blocker used to reduce stomach acid in conditions like GERD and peptic ulcer disease. It can produce blue-green urine in rare cases. The color is harmless and reverses after the drug is stopped.

Cimetidine is less commonly prescribed than it once was, but it remains in use. If you take it and notice a color change, mention it at your next visit so it can be documented. The cimetidine urine guide explains the timeline and what else to watch for.

Other Medications Linked to Blue Urine

Beyond amitriptyline and cimetidine, several other drugs have been linked to blue or blue-green urine:

  • Propofol, an anesthetic used during surgery, can turn urine green or blue-green. The effect is temporary and tied to the procedure.
  • Indomethacin, an anti-inflammatory drug, has been reported to cause blue urine in some patients.
  • Triamterene, a diuretic, can cause blue or greenish urine, especially when combined with certain other drugs.
  • Methylene blue, used in some medical tests and treatments, reliably turns urine blue or green.
  • Metronidazole and nitrofurantoin, both antibiotics, can darken urine and occasionally produce a blue-green tint.

If you started one of these and noticed blue urine within a day or two, the drug is the likely cause. Mention it at your next visit, but do not stop a prescribed medication without talking to your clinician first.

How Long Does Medication-Related Blue Urine Last?

For most drugs, blue or green urine appears within a few hours to a day of the first dose and fades within 24 to 48 hours after the last dose. The exact timing depends on the drug’s half-life and how quickly your kidneys clear it.

If blue urine persists beyond two to three days after stopping the medication, the drug is unlikely to be the whole explanation. At that point, other causes—food dyes, medical test dyes, or a rare infection—deserve consideration.

When to See a Doctor

Contact a healthcare provider if any of the following applies:

  • Blue or green urine persists for more than a few days after stopping the suspected medication.
  • You have fever, chills, burning, urgency, or flank pain, which may point to a urinary tract infection.
  • The color comes with pain, nausea, or vomiting.
  • You notice blood or clots alongside the color change.
  • You feel dizzy, weak, or lightheaded, or you are passing much less urine than usual.
  • You are pregnant and notice a persistent change in urine color.
  • The color appears in a child without an obvious food dye or medication explanation.

A simple urinalysis can check for infection, blood, and other markers. If you are unsure whether your shade is concerning, the urine color by cause section groups explanations by food, medication, and medical conditions so you can narrow down what is most likely before your appointment.

The Bottom Line

Medication-related blue urine is usually harmless. Amitriptyline and cimetidine are the best-known culprits, and propofol, indomethacin, triamterene, and methylene blue can also tint urine blue or green. The color fades after the drug is stopped. Take it seriously when it persists without a medication explanation or comes with fever, pain, burning, or other urinary symptoms. If that describes your situation, get checked. If it does not, review your medication list, stay hydrated, and watch for the color to normalize.