Doctors can diagnose erectile dysfunction with the help of physical exams, blood test, urine test, ultrasound or psychological exams.