Heat Treatment of martensitic stainless steels is used to increase the hardness that is caused by several microstructure changes. But such a treatment does affect both mechanical properties and corrosion resistance. Existing studies about the effect of austenitizing on the material properties and the corrosion resistance show contradictory results. Here we reveal the different effects of austenitizing on the passive layer of stainless steel and thus the corrosion resistance, thermodynamic phase calculations, microstructure investigations and various electrochemical measurements are performed. By potentiodynamic polarization scans the pitting potential, the critical pitting potential and the corrosion current are determined. Impedance spectroscopy are used to gain deeper insight into the passive layer properties. The results show a strong dependency of the corrosion behavior on the heat treatment where the governing corrosion mechanism are affected differently.