Ask your doctor if you have any questions. Use only the brand of this medicine that your doctor prescribed. The best time to take sildenafil is about 1 hour before sexual activity, but you can take the medication any time from 4 hours to 30 minutes before sexual activity. It lasts 4 to 5 hours, or longer if you have mild to moderate ED. Keep from freezing.Drug Images What is Viagra? If you have erectile dysfunction (ED), your doctor may recommend that you take Viagra. It’s a prescription drug that’s used in . Sildenafil is in a class of medications called phosphodiesterase (PDE) inhibitors. Sildenafil treats erectile dysfunction by increasing blood flow to the penis during sexual . · Products and services Proper Use Drug information provided by: Merative, Micromedex ® Use sildenafil exactly as directed by your doctor. Do not use more of it .