See a urologist or primary care doctor for an evaluation
Treat underlying causes such as diabetes, high blood pressure, high cholesterol, obesity, low testosterone, depression, and anxiety
Stop smoking and avoid nicotine products
Limit alcohol intake
Exercise regularly
Lose excess weight if needed
Improve sleep quality and treat sleep apnea if present
Manage stress and mental health
Review medications with a doctor to identify possible sexual side effects
Use prescription erectile dysfunction medications if appropriate
Consider vacuum erection devices
Consider penile injections if prescribed
Consider intraurethral medication if prescribed
Consider testosterone replacement only if blood tests confirm low testosterone
Seek counseling or sex therapy if psychological factors are involved
Consider surgical options such as penile implants if other treatments fail
Get urgent medical care for sudden penile pain, injury, or an erection lasting more than 4 hours
