Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing sexual dysfunction. 
Some men report being helped by an oral medication called yohimbine, which comes from the bark of a tree that grows in India and Africa. This drug, which needs to be taken every day, has been reported to help about 20 to 25 percent of the men taking it. A relatively new but widely used oral medication called Viagra requires a careful medical evaluation by your doctor.
Erectile dysfunction, also known as ED or impotence, is the inability to attain or maintain an erection of the penis adequate for the sexual satisfaction of both partners. It can be devastating to the self-esteem of a man and of his partner. As many as 30 million American men are afflicted on a continuing basis, and transient episodes affect nearly all adult males. But nearly all men who seek treatment find some measure of relief.
There are many different treatment options for erectile dysfunction but your individual diagnosis will determine which treatment option is right for you. It is important to realize that not all treatment options will work for everyone. A doctor who has specialized in men’s sexual health (typically a urologist) will be the most qualified to discuss all of your treatment options with you. Many specialists will often encourage you to schedule additional follow up appointments to review how your treatment is working for you or if a different option may be more beneficial.
ED usually has a multifactorial etiology. Organic, physiologic, endocrine, and psychogenic factors are involved in the ability to obtain and maintain erections. In general, ED is divided into 2 broad categories, organic and psychogenic. Although most ED was once attributed to psychological factors, pure psychogenic ED is in fact uncommon; however, many men with organic etiologies may also have an associated psychogenic component.
The idea of using low-energy shock waves to treat erectile dysfunction comes from studies that show that these types of shocks help heart blood vessels regrow, a process called revascularization. Shock wave therapy may also work on the penis, and there have been some promising results, but it’s not currently an approved ED treatment. "It’s similar to the type of shock waves used to break up kidney stones, and it may cause revascularization,” says Bennett. “However, there are not yet any good controlled studies to recommend it to patients."
Erectile dysfunction may be the result of arterial and non-arteritic causes. Hardening of the arteries that bring blood into the penis, atherosclerosis, is a common cause of erectile dysfunction, particularly in men with cardiovascular disease. However, problems with the nerves that supply the penis as well as the veins that drain blood out of the penis can also cause troubles with erection. Erectile dysfunction may also have a psychological cause.