There is a significant difference in the lifespans of corn snakes in the wild and captivity. In the wild, they can live for about 10 to 15 years, whereas in captivity, they live for around 23 years or more. However, some of the oldest corn snakes live in captivity until they are 32 years and 3 months old.