Take sildenafil as needed before sexual activity. It affects the way the medicine works. There are many other treatments for erectile dysfunction. You can take it up to 4 hours before you want to have sex. Make sure you have discussed any other medications you are currently taking or plan to take before starting sildenafil with your doctor and pharmacist.Sildenafil (Viagra) is a medicine used to treat erectile dysfunction (ED, also called impotence). Sildenafil works by helping to relax the blood vessels in the penis, allowing more blood to flow in and cause an erection. You should take sildenafil about an hour before planned sexual activity, so it has time to work. Viagra (sildenafil) and cost. Viagra (sildenafil) is a brand-name oral tablet prescribed for erectile dysfunction. The cost of the drug with and without insurance can depend on several factors. · Viagra is usually taken only when needed, 30 minutes to 1 hour before sexual activity. You may take it up to 4 hours before sexual activity. Do not take Viagra more than once per day. Shake the oral suspension (liquid) before you measure a dose. Use the dosing syringe provided, or use a medicine dose-measuring device (not a kitchen spoon).