The life-span of a rat depends on if it's a wild rat or a rat kept as a pet. Rats that are kept healthy in captivity as a family pet can live up to 4 years. Rats in the wild tend to live a little less and will only live 2 or 3 years.