The life span of sperm after they’re ejaculated depends on the environmental conditions. Sperm ejaculated into a woman’s vagina remain alive in the mucus of the cervix and are able to fertilize an egg for three to five days. Sperm ejaculated outside the body usually live only a few hours.

Source: mayoclinic