Because of the complexity of corrosion, the law of uniform corrosion and localized corrosion is still not clear,so it is difficult to assess their impact on the structure safety. In order to differ them and find their own law, we obtain a lot of corrosion specimens by ways of constant temperature and humidity, and then detect the size of corrosion pits by roughness tester. After that, the method for calculating the thickness of uniform corrosion and localized corrosion is proposed. Then the method is used to analyze the experiment data. The result indicates the thickness of uniform corrosion and localized corrosion all increase with the rate of corrosion, and they all show a power relationship with corrosion rate, so it will provide a basis for distinguishing them in safety assessment.