As long as a gun is well-maintained against moisture and corrosion guns can last for a century or more and will remain highly functional. In some cases, proper care can allow a firearm to last centuries in a fully functional form.