Viagra is a medication that helps you to get and keep an erection, so it can make you last longer in bed if you're finding it difficult to stay erect during sex. However, Viagra does not help you last longer if you're orgasming faster than you want to.