A vinyl fence can last 20 to 30 years or more with proper maintenance, thanks to its durability against weather and elements.