Treatment for ED depends on its cause. Exercise can help improve ED in some men. Medicines and penis pumps are available to increase blood flow to the penis, making an erection possible. Injections into the penis, suppositories inserted in the urethra and topical medicines can also help. Surgery may help if other treatments do not. Talk with your health care provider about the best option for you.