Several classes of prescription and over-the-counter drugs can cause foamy or bubbly urine, most often by forcing extra protein through the kidneys or, less commonly, by causing semen to flow backward into the bladder. The list ranges from cancer immunotherapies and certain antibiotics to common prostate medications and bone-loss drugs. In most cases the foam itself is harmless, but it signals that something worth investigating is happening in the urinary tract, and knowing which medications are capable of triggering it can save you an anxious trip to the emergency room or, alternatively, prompt a conversation with your doctor that is genuinely overdue.
Why Medications Make Urine Foamy in the First Place
Normal urine contains very little protein. When you pour it into a toilet bowl, any bubbles that form from the splash tend to be large and pop within seconds. Protein-rich urine behaves differently: the proteins lower the surface tension of the liquid, creating a layer of small, persistent bubbles that can sit on the surface for minutes, much like a head of foam on a beer. Medications that injure the kidney’s filtering units or alter how the kidney handles protein can push enough protein into the urine to produce that telltale froth. Doctors call this proteinuria, and it is the single most common drug-related reason for foamy urine.
A second, less obvious mechanism involves retrograde ejaculation. Certain medications relax the muscle at the base of the bladder that normally snaps shut during orgasm, allowing semen to travel backward into the bladder instead of exiting the body. Because semen is protein-rich, the next time you urinate after an episode of retrograde ejaculation, the urine can look foamy or cloudy. This pathway is entirely separate from kidney damage, and recognizing it can prevent unnecessary worry.
Cancer Immunotherapies
Immune checkpoint inhibitors, a class of drugs that unleash the immune system against tumors, are among the more dramatic culprits. In one documented case, an 80-year-old man being treated with pembrolizumab for metastatic lung cancer developed new-onset foamy urine as his only complaint. Testing revealed a urine protein-to-creatinine ratio of 10.8 g/g, an extraordinarily high level, and a kidney biopsy showed immune-complex-mediated glomerulonephritis, a form of kidney inflammation driven by the immune system’s own antibodies lodging in the filtering tissue.1Journal of the American Society of Nephrology. A Case of Immune-Complex-Mediated Glomerulonephritis Associated with Pembrolizumab The case illustrates two important points: first, that foamy urine can be the earliest and sometimes only symptom of serious kidney involvement during immunotherapy; and second, that the kidney damage is not a direct toxic effect of the drug but rather a consequence of the revved-up immune response the drug is designed to produce.
Bevacizumab, a different cancer drug that blocks new blood vessel growth in tumors, is also well known for causing proteinuria. Because bevacizumab targets a growth factor that kidney blood vessels depend on for maintenance, it can injure the delicate capillary loops where filtration happens. Patients on bevacizumab-containing regimens are typically monitored with urine protein checks throughout treatment, and new-onset foamy urine in that setting usually triggers a lab test rather than a dose change, unless the levels climb high enough to signal real harm.
Certain Antibiotics
Most short courses of antibiotics pass through the kidneys without causing proteinuria, but a few newer agents have stood out in clinical trials. Gepotidacin, an antibiotic in development for urinary tract infections, showed proteinuria in about two-thirds of younger adults receiving repeated ascending oral doses in an early-phase safety trial, and in roughly one in seven participants over 65.2PubMed Central. Nephrotoxicity of New Antibiotics: A Systematic Review – Section: β-Lactams and β-Lactam/β-Lactamase Inhibitor Combination Antibiotics Those rates are eye-catching, though it is worth noting that Phase 1 trials use escalating doses specifically designed to probe the boundaries of tolerability, so the real-world rate at therapeutic doses could be lower. In the same systematic review, imipenem/cilastatin/relebactam, a broad-spectrum combination antibiotic, caused proteinuria in only about one percent of patients in a Phase 2 trial for complicated urinary tract infections.2PubMed Central. Nephrotoxicity of New Antibiotics: A Systematic Review – Section: β-Lactams and β-Lactam/β-Lactamase Inhibitor Combination Antibiotics
Older antibiotics with well-known kidney toxicity, such as aminoglycosides (gentamicin, tobramycin) and vancomycin, can also cause proteinuria, though these drugs are usually given intravenously in hospital settings where urine and blood are already being monitored. The practical takeaway is that if you notice foamy urine while on any antibiotic, especially one you have been taking for more than a few days, it is worth mentioning to the prescribing doctor rather than waiting for the course to end.
Bisphosphonates for Bone Loss
Bisphosphonates are the backbone of osteoporosis treatment and are also used to manage bone complications in cancer. Pamidronate, one of the intravenous bisphosphonates, has been linked to a form of kidney injury called collapsing focal segmental glomerulosclerosis, which can produce nephrotic-range proteinuria, meaning protein levels in the urine high enough to cause visible foaming, swelling in the legs, and drops in blood protein levels.3PubMed. Pamidronate-induced kidney injury in a patient with metastatic breast cancer Case reports describe patients developing this complication after receiving pamidronate for bone metastases, with kidney biopsy confirming the characteristic pattern of scarring in the glomeruli.
Zoledronic acid, a more potent bisphosphonate in the same family, carries similar warnings, and prescribing guidelines recommend checking kidney function before each infusion. Oral bisphosphonates like alendronate, which most people with osteoporosis take, carry a much lower risk of significant kidney injury, though they are still not recommended for people whose kidney function is already substantially reduced.
Medications That Cause Retrograde Ejaculation
For some people, foamy urine has nothing to do with kidney damage and everything to do with semen ending up in the bladder. This happens when a medication weakens the internal urethral sphincter, the muscular valve that normally closes during ejaculation to direct semen outward.
Alpha-Blockers for the Prostate
Tamsulosin, one of the most commonly prescribed medications for an enlarged prostate, is notorious for this. In a study of men taking tamsulosin for 12 weeks, the overall incidence of ejaculatory dysfunction was about 13%, and specific complaints included decreased ejaculatory volume in roughly 6% of men and “dry” ejaculation, where orgasm occurs but nothing comes out, in about 4%.4PubMed Central. Effect of tamsulosin on ejaculatory function in BPH/LUTS In both cases the semen is redirected into the bladder, and the next urination carries it out. The result can be urine that looks persistently foamy or milky. This side effect is not dangerous, but it surprises many men who were never warned about it, and it is one of the top reasons patients stop taking the drug.
Other alpha-blockers used for prostate symptoms, such as silodosin, can cause even higher rates of retrograde ejaculation. Silodosin is more selective for the receptors in the prostate and bladder neck, which is why it relaxes the sphincter more aggressively. If foamy or cloudy urine starts shortly after beginning one of these medications, the timing is a strong clue that retrograde ejaculation is the cause.
Antipsychotic Medications
Several antipsychotic drugs have been linked to retrograde ejaculation through their effects on the autonomic nervous system. Thioridazine, risperidone, iloperidone, and clozapine have all been documented, and a case report described a 25-year-old man with first-episode psychosis who developed retrograde ejaculation during treatment with quetiapine, which improved when low-dose imipramine was added.5PubMed Central. Retrograde ejaculation associated with quetiapine and treatment with low-dose imipramine Sexual side effects of antipsychotics are underreported because patients may feel embarrassed to bring them up, and clinicians do not always ask. If you are on an antipsychotic and notice foamy or cloudy urine after sexual activity, retrograde ejaculation is a plausible explanation, and there are management options worth discussing with your prescriber.
NSAIDs and Over-the-Counter Pain Relievers
Nonsteroidal anti-inflammatory drugs like ibuprofen, naproxen, and diclofenac are probably the most widely used medications capable of causing proteinuria, simply because so many people take them. Short courses for a headache or a sprained ankle rarely cause problems. The risk climbs with long-term daily use, particularly in people who already have reduced kidney function, diabetes, or high blood pressure. Chronic NSAID use can cause two forms of kidney injury: an acute allergic-type inflammation called interstitial nephritis, and a more insidious reduction in blood flow to the kidney that, over months or years, leads to measurable protein in the urine.
The practical concern is that many people take over-the-counter NSAIDs for years without thinking of them as “real” medications, and foamy urine may be the first hint that the kidneys are unhappy. If you rely on an NSAID daily for arthritis or chronic pain and you start noticing persistent foam in the toilet, a simple urine test can check for protein and prompt a conversation about alternatives.
Immunosuppressants
Calcineurin inhibitors, specifically cyclosporine and tacrolimus, are pillars of transplant medicine and autoimmune disease management, and both are well documented to cause kidney toxicity that includes proteinuria. The mechanism involves direct injury to the blood vessels and filtering structures within the kidney. Animal research has confirmed that immunosuppressant exposure alters both the protein profile and the metabolic byproducts in the kidney and urine, reflecting real structural changes in renal tissue.6PubMed Central. Association of Immunosuppressant-induced Protein Changes in the Rat Kidney with Changes in Urine Metabolite Patterns: A Proteo-Metabonomic Study Because patients on these drugs already undergo regular blood and urine monitoring, new foamy urine is less likely to go unnoticed. But for those early in their transplant journey or new to an immunosuppressant regimen, it is useful to know that this is a recognized side effect that the transplant team actively watches for.
Lithium
Lithium, used primarily for bipolar disorder, has a long track record of kidney effects. After years of use, a subset of patients develops a form of chronic kidney disease that can include proteinuria. Lithium can also impair the kidney’s ability to concentrate urine, leading to large volumes of dilute urine, which by itself does not cause foam but can change the character of what you see in the bowl. The kidney damage from lithium tends to be slow and cumulative, which is why regular kidney function testing is standard for anyone on long-term lithium therapy. Foamy urine in a lithium patient should prompt a check of both protein levels and kidney function markers.
Blood Pressure Medications That Actually Help
Not every blood pressure drug causes foamy urine. In fact, one entire class does the opposite. ACE inhibitors like lisinopril have been shown to reduce proteinuria substantially in people with kidney disease. In a study of patients with renal disease, lisinopril reduced proteinuria by an average of about 61%, an effect that was not fully explained by its blood-pressure-lowering ability alone but also appeared to stem from reducing pressure within the kidney’s own capillaries.7PubMed. Reduction of proteinuria by angiotensin converting enzyme inhibition A related class, the angiotensin receptor blockers (ARBs), works through a similar mechanism and is similarly protective.
This matters for two reasons. First, if you are already on an ACE inhibitor or ARB and develop foamy urine, the drug is probably not the cause, and something else should be investigated. Second, if foamy urine from another medication leads to a diagnosis of proteinuria, an ACE inhibitor or ARB is often part of the treatment plan, even if your blood pressure is normal, because of its independent kidney-protective effect.
When Foamy Urine Is Not a Medication Issue
Before blaming a pill bottle, it is worth knowing that several non-drug factors can also cause urine to foam. Dehydration concentrates the proteins naturally present in urine, sometimes enough to create visible bubbles. A forceful urine stream, especially when standing, introduces air into the water and produces large bubbles that look alarming but carry no medical significance. Those mechanical bubbles tend to be large and disappear quickly, while protein-driven foam consists of small, tightly packed bubbles that linger.
High dietary protein intake, particularly from supplements or very high-protein diets, can transiently raise urinary protein levels enough to produce foam. Toilet cleaning products and residues can also react with urine to create bubbles. And conditions unrelated to medications, such as uncontrolled diabetes, lupus, or a urinary tract infection, can all cause proteinuria or changes in urine composition that mimic a drug side effect.
What to Do If You Notice Persistent Foam
A single episode of foamy urine after a vigorous trip to the bathroom is rarely meaningful. Persistent foam, especially if it appears across multiple urinations over several days, is worth investigating. The first step is usually a urine dipstick test, which your doctor can do in the office. If protein shows up, a more precise measurement called a urine protein-to-creatinine ratio can quantify how much is spilling. From there, the investigation branches depending on your medication list, your medical history, and whether the proteinuria is mild or heavy.
If a medication is suspected, the decision about whether to stop, switch, or simply monitor depends on the stakes. Stopping a cancer immunotherapy because of mild proteinuria is a very different calculation than switching a prostate alpha-blocker because of retrograde ejaculation. In many cases, the answer is not to stop the medication but to add kidney-protective measures, adjust the dose, or increase the frequency of monitoring. The foam itself is just the messenger. What matters is the protein level behind it and whether it is stable, rising, or resolving.
Drugs That Are Often Blamed but Rarely Guilty
A few medications get accused of causing foamy urine more often than the evidence supports. Metformin, the most widely prescribed diabetes drug, is frequently mentioned in online forums, but metformin is actually cleared by the kidneys without damaging them in people with adequate kidney function. The foam that diabetic patients notice is far more likely to be from poorly controlled blood sugar causing kidney damage on its own. Similarly, statins are sometimes blamed because muscle-related side effects get conflated with kidney problems, but statins do not typically cause proteinuria. Proton pump inhibitors for acid reflux have been loosely associated with chronic kidney disease in observational studies, but the connection to proteinuria specifically is weak and confounded by the conditions that lead people to take the drugs in the first place.
The distinction matters because stopping a medication you actually need based on a misattribution can cause real harm. If you are unsure whether a drug could be responsible, a straightforward lab test can confirm or rule out proteinuria and point the investigation in the right direction. The foam is easy to see; what it means depends on context that only testing can provide.