TiN coatings were deposited on AISI M2 high-speed-steel (HSS) substrates by multi-arc ion plating technique. The thickness of substrate was 1.0 mm and five thicknesses of TiN coatings were 3.0, 5.0, 7.0, 9.0 and 11.0 μm, respectively. X-ray diffraction (XRD) has been used for measuring residual stresses. The stresses along five different directions (Ψ=0°, 20.7°, 30°, 37.8° and 45°) have been measured by recording the peak positions of TiN (220) reflection for each 2θ at different tilt angles Ψ. Residual compressive stresses present in the TiN coatings. Furthermore, the results revealed that the value of the residual stresses in TiN coatings was high. While the coatings thickness changed from 3 to 11 μm, the residual stresses varied from -3.22 to -2.04 GPa, the intrinsic stresses -1.32 to -0.14 GPa, the thermal stresses -1.86 to -1.75 GPa. The residual stresses in TiN coatings showed a nonlinear change. When the coatings thickness was about 8 μm, the residual stresses in TiN coatings reached to the maximum value.