Sperm needs a warm, moist environment to survive. Otherwise, it will perish quickly. Outside of the body, sperm will only live an hour at most. Its lifespan will depend on a variety of environmental factors and how long the sperm is exposed to the air. While sperm will not live long outside of the body, women should avoid having a man ejaculate anywhere near her vagina if she is avoiding pregnancy.