Design/methodology/approach A thermohydrodynamic lubrication model (THD) of the mechanical seal was constructed and solved using the commercial software FLUENT. The pressure and temperature distributions of the fluid under different groove types, as well as the sealing performance under different pressures, rotational speeds and sealing gaps, are obtained. Findings The annular groove (AG) can effectively reduce the temperature, and the T-type spiral groove (STG) can effectively inhibit the leakage. The increase of pressure and rotational speed leads to the enhancement of dynamic pressure effect and the increase of leakage, while the sealing gap increases and the leakage increases while taking away more heat. The choice of groove type is very important to the impact of sealing performance. Originality/value In consideration of the beneficial effect of deep grooves on cooling performance, the viscous temperature equation and the impact of the thermodynamic lubrication model are evaluated in conjunction with the sealing performance of four distinct groove types. This approach provides a theoretical basis for the optimal design of mechanical seals. Peer review The peer review history for this article is available at: https://publons.com/publon/10.1108/ILT-05-2024-0184/