Medicare has been paying for many men's Viagra and erectile dysfunction drugs. While the prescription drug benefit in Medicare pays for many different drugs and medications, it does not pay for all medicines that may be prescribed by a doctor. Apparently, since 2007, ED drugs were not covered under the Part D prescription plans, unless they were prescribed for certain medical conditions. In many cases, Medicare incorrectly paid for millions of dollars for Viagra and other ED erectile dysfunction drugs.