Nearly all men will experience some erectile dysfunction (ED) for the first few months after prostate cancer surgery. The reason is that the cavernous nerves located along the sides of the prostate may need to be removed, or may be damaged in surgery. However, within one year after treatment, nearly all men with intact nerves will see substantial improvement. Treatment options for ED include medication, injections, a vacuum device, implants, and pelvic floor exercises.