Galvanized iron pipes can last up to 40 years or more if they are properly installed and maintained.