Summary High bottomhole temperature can lead to decreased downhole tool life in geothermal and high-pressure/high-temperature (HPHT) oil and gas wells. The temperature increase is exacerbated when circulation stops (e.g., during connection, tripping, and well control situations). While continuous circulation technology is an appropriate solution for managing temperature, it is not yet widely adopted in HPHT and geothermal drilling practices. This work investigates factors that impact downhole temperature (DHT) and recommends strategies to better manage the temperature when continuous circulation is not available. An integrated thermo-hydraulic model was developed to capture the transient behavior of DHT and was applied here to study the transient temperature profile when there is no fluid circulation. The model was validated using the open-source FORGE field data set, with the mean absolute percentage error between 1% and 4%. In addition, hundreds of case scenarios were numerically studied to investigate the impact of several key factors on the DHT. The evaluated factors include the pumps-off time, type and physical properties of the drilling fluid, wellbore hydraulic diameter, reservoir temperature, geothermal gradient, total wellbore depth and profile, and operational parameters before stopping the circulation. The cooling effects of different drilling parameters were compared to a benchmark case of continuous circulation. A correlation map was generated to visualize the impact of those parameters on the DHT distribution when circulation stops. A logarithmic relationship between the pump stop time and the DHT was observed. For the FORGE case scenario, the DHT increases by 27°C and 48°C after the pump stops for 30 minutes and 60 minutes, respectively. It was observed that water-based mud (WBM) with a high viscosity increases fluid convection heat resistance between the formation and wellbore. Also, drilling with a higher flow rate before stopping the pump can cool the near-wellbore formation faster and reduce the DHT even after circulation ceases. Wells with high geothermal gradients, like FORGE wells, have a higher temperature buildup during circulation stoppage than wells with low geothermal gradients targeting the same reservoir (formation) in-situ temperature. This study investigates the efficacy of different cooling strategies to avoid DHT buildup when there is no circulation. It thereby facilitates the optimization of geothermal and HPHT well design and construction to prevent downhole tool failures. The developed correlation map can aid drilling engineers in understanding the impact of different drilling conditions on the DHT.