During contact flash welding of rails, the metal is heated and continuously cooled in the zone of thermal influence. Accelerated heating and subsequent intensive cooling, implemented by the pulsed flashing-off method, lead to the formation of quenching structures. Subsequently, during the operation of the rails welded joint, this leads to the formation of cracks and to brittle destruction. We have investigated the possibilities of using contact heating after welding to avoid the formation of quenching structures in the metal of the welded joint made of R350LHT rail steel. The thermal cycles during welding and subsequent contact heating were recorded. The regularity of formation of the weld metal structure was established including the zone of thermal influence during pulsed contact heating for R350LHT rail steel. It is shown that contact pulse heating slows down the welded joint cooling and prevents the formation of quenching structures. However, contact pulse heating when using suboptimal modes can also lead to the opposite effect. It is determined that with a significant investment of heat by contact heating, cooling rate of the metal exceeds the critical one, transformation process passes through a diffusion-free mechanism with the formation of martensite coarse-grained structure. The use of thermokinetic and isothermal diagrams of austenite decomposition at known thermal welding cycles allows us to significantly narrow the search limits for optimal modes of contact butt welding of railway rails and subsequent contact heating. The use of optimal contact heating modes makes it possible to obtain a minimum length of heat-affected zones with reduced hardness without the formation of quenching structures in the welded joint of railway rails.