The laser diode (LD) is a key component in thermally assisted magnetic recording (TAMR) systems. However, heating from the LD can induce thermal deformation of the slider assembly, and change the gap separation between the slider and disk medium. In this paper, we analyzed the relationship between the slider–medium gap and the optical efficiency of the TAMR head, by considering the thermal effects of epoxy, the adhesive layer, and the near-field transducer (NFT) on the TAMR slider. The epoxy effect was modeled by using finite element (FE) analysis. Five different epoxy models were simulated, and the optimal epoxy model was selected, on the basis of its thermal performance. FE analysis was also carried out to simulate the TAMR slider assembly, which consisted of the LD, NFT, adhesive layer, epoxy, and TAMR head. On the basis of iterative analysis, an FE model was constructed with optimized representation of the epoxy, TAMR head component, and NFT. Thermal analysis of the simulation representation indicated that the epoxy, adhesive layer, and NFT played a significant role in the performance of the TAMR system.