Urinary tract problems can contribute to erectile dysfunction, though usually indirectly. An acute urinary tract infection mainly causes pain and burning that dampen desire, and erections usually recover once it is treated. Chronic prostatitis, a long-lasting inflammation or pain syndrome of the prostate and pelvis, is more strongly linked with erection and ejaculation problems. An enlarged prostate is common in the same men who develop erectile dysfunction, and some of its treatments affect sexual function. Any urinary symptoms with new erection problems deserve a medical check.
Find more answers in Erectile dysfunction: treatments, myths and facts.
Urinary problems and erections: the links
| Condition | Effect on erections | Outlook |
|---|---|---|
| Acute UTI or bladder infection | pain, reduced desire | recovers after treatment |
| Acute bacterial prostatitis | pain, fever, avoidance of sex | recovers after antibiotics |
| Chronic prostatitis / pelvic pain syndrome | erection and ejaculation problems, painful orgasm | often improves with combined treatment |
| Enlarged prostate (BPH) | shared risk factors; some drugs affect ejaculation or desire | treatable; daily tadalafil helps both |
| Urethral stricture | pain, weak stream | treatable by a urologist |
Chronic prostatitis and pelvic pain
Many men with chronic pelvic pain have tense pelvic floor muscles, pain around the perineum and testicles, and discomfort after ejaculation. These symptoms understandably affect sexual confidence. Treatment often combines pelvic floor physiotherapy, anti-inflammatory measures, sometimes antibiotics, and psychological support. PDE5 inhibitors may help both erections and some pain symptoms.
Enlarged prostate
Benign prostatic hyperplasia and erectile dysfunction share risk factors such as age, diabetes and metabolic syndrome. Daily tadalafil 5 mg is approved for urinary symptoms and also treats erections. Alpha-blockers like tamsulosin can reduce ejaculate volume; finasteride and dutasteride can lower desire in some men. Combining alpha-blockers with ED tablets requires caution because both lower blood pressure.
When to see a doctor
Burning on urination, fever, blood in urine, difficulty passing urine or pelvic pain should be checked promptly. Treating the urinary problem often improves sexual function. If erections remain weak afterwards, look at the general causes and treatments described in Natural ways to overcome erectile dysfunction without medication. Another condition of the scrotum that men ask about is covered in What are the consequences of an untreated varicocele?.
Medicines to review
Men treated for urinary symptoms often take several medicines. Statins and many heart drugs combine safely with sildenafil, as explained in Can you take Viagra while on statins?, but alpha-blockers need a careful start.
Bladder habits that help
Drinking enough water, not holding urine for long periods and treating constipation all reduce pressure on the pelvic floor. Men with frequent night-time urination should mention it, because it disturbs sleep and can point to diabetes or an enlarged prostate, both of which also affect erections.
Frequently asked questions
It is usually wise to wait until symptoms settle and treatment has started.Should I avoid sex during a UTI?
Not usually; the infection itself is more likely to be responsible.Can antibiotics cause erection problems?
Rarely; most men improve as the inflammation and pain are treated.Does prostatitis cause permanent ED?
Yes, daily low-dose tadalafil is approved for the urinary symptoms of an enlarged prostate and also helps erections.Can tadalafil help both urinary and erection problems?