In this contribution, we attempt to optimize the heat process of a gear. The goal is to evaluate the best use of two frequencies to complete the heating phase in the least amount of time achieving a uniform distribution of temperature in the treated area of the gear. Assuming the application of the appropriate cooling, this temperature distribution will lead to the appropriate hardness along and between the teeth of the gear. A 3D model of part of the gear wheel is modelled in a multiphysics magneto-thermal analysis. The two frequencies used for the heating are first evaluated. In the optimization process, the duration of the application for each frequency is a parameter. Temperatures are evaluated through the heating process at selected locations as constraints of the optimization process.