For many people, a physical exam and answering questions (medical history) are all that’s needed for a doctor to diagnose erectile dysfunction and recommend a treatment. If you have chronic health conditions or your doctor suspects that an underlying condition might be involved, you might need further tests or a consultation with a specialist. Depending on the cause and severity of your erectile dysfunction and any underlying health conditions, you might have various treatment options.