A lot of men use it to treat ED, and others as a stimulant. They have their side effects, and so can only be acquired with a prescription. Your doctor can provide you with a sample, "if he thinks you need it". Otherwise, you could get it from a "reputable" online site, after filling out a medical profile and disclaimer. The online stores also follow strict medical guidelines - or at least they should, however you can state that you have ED, which then clears the way. Expect to pay a steep price; somewhere in the order of $15 for a 100mg pill. The usual indication for a starter is a 50mg pill, or a half. One of the side effects can be an erection that lasts for hours, and migraines are also common due to vascular dilation. Prostate problems also affect ED.
If you have no difficulty having an erection, Viagra may not work for you, as the mechanism is already functional. Viagra and others like Cialis, dilate blood vessels and overcome constrictions that are responsible for ED. Heart conditions and high blood pressure can be negatively affected. If you are going to self-diagnose, then at least read up on the subject at the Viagra website.