In this article, the impact of selected parameters of heating using a gas torch on the hardness of hardened alloy steels C45 was presented. The staff of the ship's engine room sometimes uses flame hardening during casual repairs of the machines weared as a result of operational extortions. The purpose of emergency repairs is to restore the possibility of work of ship machinery and equipment for the duration of the vessel's journey. An acetylene-oxygen torch was used to heat the steel. As the analysed parameters of the technological process, the heating time and the distance between the nozzle and the workpiece were selected. The values of the mentioned parameters have been selected so that the temperature of hardened steel is in the range from 800 to 1250 oC. The following values of the adopted machining parameters were used: the heating time was 60, 85 and 110 seconds, while the distance of the torch nozzle was 10, 20 and 30 mm. After heating, the samples were cooled by immersing in water. The research was based on a randomized orthogonal experiment plan. The purpose of the quantitative assessment of the influence of heating parameters on the hardness of hardened C45 steel, done statistical analysis variance analysis, multiple regression and mathematical optimization by the Tagichi method. Conducted tests and statistical analysis showed a significant effect of selected parameters of flame heating on the hardness of hardened C45 steel. The greatest influence on the hardness of the steel is the distance between the nozzle and the workpiece. The highest value of hardness was obtained using the following parameters of flame hardening: nozzle distance 30 mm, heating time 60 seconds.