As a result, you cannot buy them over the counter ... you can purchase it in doses of 25, 50, or 100 milligrams (mg). Hims recommends taking Viagra 30 minutes to 4 hours before sexual activity.