Abstract Thermal errors of machine tools are one of the major sources of inaccuracy. Therefore, the reduction of temperature induced deviations or the compensation of the resulting tool center point (TCP) errors have been of strong interest to the manufacturing industry for a couple of years. Up to now, the observation of the environment, the main spindle, the linear axes and the machine bed were in the focus of research, but with the rising demand for 5-axis machine tools and the increasing requirements regarding their accuracy, the analysis of the thermal behavior of rotary axes becomes more and more important. This paper gives an overview of corresponding thermal measurements of machine tools. The thermal behavior of rotary and swiveling axes is analyzed in detail. A simulation model and an approach for a phenomenological compensation of the TCP error are introduced and verified by measurements.