The equilibrium rotation rate of a planet is determined by the sum of torques acting on its solid body. For planets with atmospheres, the dominant torques are usually the gravitational tide, which acts to slow the planet’s rotation rate, and the atmospheric thermal tide, which acts to spin up the planet. Previous work demonstrated that rocky planets with thick atmospheres may produce strong enough thermal tides to avoid tidal locking, but a study of how the strength of the thermal tide depends on atmospheric properties has not been done. In this work, we use a combination of simulations from a global climate model and analytic theory to explore how the thermal tide depends on the shortwave and longwave optical depth of the atmosphere, the surface pressure, and the absorbed stellar radiation. We find that for planets in the habitable zones of M stars only high-pressure but low-opacity atmospheres permit asynchronous rotation owing to the weakening of the thermal tide at high longwave and shortwave optical depths. We conclude that asynchronous rotation may be very unlikely around low-mass stars, which may limit the potential habitability of planets around M stars.