Exercise regularly, especially cardio and strength training
Maintain a healthy weight
Eat a balanced diet rich in fruits, vegetables, whole grains, lean protein, and healthy fats
Reduce alcohol intake
Quit smoking and avoid nicotine
Get enough sleep
Manage stress and anxiety
Treat high blood pressure, diabetes, and high cholesterol
Review medications with a doctor if erections worsened after starting a new drug
Limit pornography if it seems to affect arousal or performance
Improve foreplay and sexual stimulation
Stay hydrated
Avoid recreational drugs
Do pelvic floor exercises
See a healthcare professional if the problem is persistent or sudden
