The effects of Viagra last one to four hours, depending on factors such as your age, medical condition, and prescribed dose. Studies have shown that if you sleep after taking Viagra, you may experience a significant increase in nighttime erections. Do not take Viagra without a doctor’s prescription.