The analytical life prediction model of natural gas well pipe in CO2 corrosion is established based on the research of CO2 corrosion. The residual life of the pipe, which will provide foundation for pipe examining and replacing decision can be calculated by the model. The research is valuable in terms of theory and practice.