Sperm viability depends on environmental conditions (are they sperm-friendly?) and on the sperm quality (sperm parameters). Spermatozoids can theoretically survive for up to five days in fertile mucus (sperm friendly environment). However, actual survival time is usually closer to two to three days, and can be shorter when there is no mucus or if there are problems with sperm quality or quantity.