It varies by material, but generally, pipes should be inspected every 20 years and replaced if necessary.