Abstract: | We generalize the formalism proposed by Dalibard, Dupont-Roc, and Cohen-Tannoudji (the DDC formalism) in the fourth order for two atoms in interaction with scalar fields in vacuum to a thermal bath at finite temperature T, and then calculate the interatomic interaction energy of two ground-state atoms separately in terms of the contributions of thermal fluctuations and the radiation reaction of the atoms and analyze in detail the thermal corrections to the van der Waals and Casimir–Polder interactions. We discover a particular region, i.e. $sqrt[4]{{lambda }^{3}beta }ll Lll lambda $ with L, β and λ denoting the interatomic separation, the wavelength of thermal photons and the transition wavelength of the atoms respectively, where the thermal corrections remarkably render the van der Waals force, which is usually attractive, repulsive, leading to an interesting crossover phenomenon of the interatomic interaction from attractive to repulsive as the temperature increases. We also find that the thermal corrections cause significant changes to the Casimir–Polder force when the temperature is sufficiently high, resulting in an attractive force proportional to TL−3 in the λ ≪ β ≪ L region, and a force that can be either attractive or repulsive and even vanishing in the β ≪ λ ≪ L region depending on the interatomic separation. |