Viagra is typically taken as needed, about 30 minutes to an hour before sexual activity. Viagra can be taken with or without food.