This work analyses the corrosion resistance of S235J2G3 carbon steel samples obtained on machining, using different values of working parameters. Based on the study conducted, the influence of surface roughness for corrosion resistance can be observed and a curve can approximate the corrosion behaviour.