In most cases, a doctor’s exam and taking a medical history is enough for a to diagnose erectile dysfunction and recommend treatment. If you are experiencing other health conditions, further tests (blood, urine, psychological exam, and ultrasound) might be needed to further understand your condition.