Thermoelectric generator (TEG) is usually studied under steady state heating conditions however, the use of pulsed heat power could significantly enhance its performance. Therefore, this paper presents a numerical investigation of the thermal and electrical performance of a typical thermoelectric generator (TEG) under both steady state and transient pulsed heating conditions. A threedimensional finite element model is used to study the temperature, voltage, current distribution and power output of the TEG. A comparison is made between the performance of the TEG under steady state and transient pulsed heating conditions. Furthermore, a parametric study is performed to investigate the influence of thermoelectric leg length and cross-sectional area on the performance of the TEG under both heating conditions. Rectangular and triangular pulsed heat functions are used for the transient study. Results show that rectangular pulsed heating provides the best performance compared to the triangular pulsed heating and steady state heating. In addition, the power output of the TEG decreased as the leg height increased however, it increased as the leg area increased. Therefore, shorter thermoelectric legs with wider cross-sectional area are suggested to enhance the performance of the TEG. This study will provide a valuable reference for future design of thermoelectric generators to obtain optimum performance.