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. Viagra can help you have an erection when sexual stimulation occurs.